/* ── TECNO VANZ — Industrial Dark Theme ──────────────────────── */
:root {
  --tv-orange:  #E39A2B;
  --tv-orange-dim: rgba(227, 154, 43, 0.18);
  --tv-orange-glow: rgba(227, 154, 43, 0.35);
  --tv-bg:      #0B0B0B;
  --tv-surface: #111111;
  --tv-surface2:#181818;
  --tv-white:   #F2F2F2;
  --tv-muted:   #9CA3AF;
  --tv-border:  rgba(227, 154, 43, 0.3);
  --tv-font:    'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--tv-bg);
  color: var(--tv-white);
  font-family: var(--tv-font);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--tv-muted); }

.highlight { color: var(--tv-orange); }

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 5rem 0; }

/* ── Reveal animation ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Particle canvas ───────────────────────────────────────── */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* ── Metal texture overlay ─────────────────────────────────── */
.metal-texture {
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.015) 2px,
      rgba(255,255,255,0.015) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.01) 40px,
      rgba(255,255,255,0.01) 41px
    );
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tv-border);
  transition: background 0.3s;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo img {
  height: 36px;
  width: auto;
}
.navbar-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--tv-white);
  letter-spacing: 0.04em;
}
.navbar-brand span { color: var(--tv-orange); }
.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tv-orange);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.navbar-cta:hover { background: #f0ab3e; transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 70% 40%, rgba(227,154,43,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(227,154,43,0.04) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 3px,
      rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 60px,
      rgba(255,255,255,0.008) 60px, rgba(255,255,255,0.008) 62px
    ),
    linear-gradient(160deg, #1a1200 0%, #0d0a00 35%, #0B0B0B 70%, #050505 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,11,11,0.5) 30%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tv-orange-dim);
  border: 1px solid var(--tv-border);
  color: var(--tv-orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: normal;
  color: var(--tv-orange);
  position: relative;
}
.hero-sub {
  font-size: 1.1rem;
  color: #c0c0c0;
  margin-bottom: 2.25rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tv-orange);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 0 0 0 var(--tv-orange-glow);
}
.btn-primary:hover {
  background: #f0ab3e;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--tv-orange-glow);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--tv-border);
  color: var(--tv-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--tv-orange); color: var(--tv-orange); }
/* ── Hero two-column layout ────────────────────────────────── */
.hero-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-content { flex: 1; min-width: 0; max-width: 620px; }
.hero-logo-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-logo-img {
  width: clamp(200px, 28vw, 380px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(227,154,43,0.25));
}
@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .hero-logo-col { align-self: center; }
  .hero-logo-img { width: clamp(160px, 50vw, 260px); }
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 1.8rem; font-weight: 800; color: var(--tv-orange); }
.hero-stat span { font-size: 0.78rem; color: var(--tv-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ══════════════════════════════════════════════════════════════
   SECTION LABEL
══════════════════════════════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tv-orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--tv-orange);
  display: block;
}
.section-title { margin-bottom: 0.75rem; }
.section-sub { max-width: 560px; margin-bottom: 3rem; }

/* ══════════════════════════════════════════════════════════════
   PAIN POINTS
══════════════════════════════════════════════════════════════ */
.pain-section { background: var(--tv-surface); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pain-card {
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--tv-surface2);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--tv-orange);
}
.pain-card:hover { border-color: var(--tv-border); transform: translateY(-3px); }
.pain-icon {
  width: 48px;
  height: 48px;
  background: var(--tv-orange-dim);
  border: 1px solid var(--tv-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.pain-card h3 { color: var(--tv-white); margin-bottom: 0.5rem; }
.pain-card p { font-size: 0.92rem; }

/* ══════════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  border: 1px solid var(--tv-border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, var(--tv-orange-dim) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  background: rgba(227,154,43,0.05);
  box-shadow: 0 0 0 1px var(--tv-orange), 0 12px 40px rgba(227,154,43,0.12);
}
.service-card:hover::after { opacity: 1; }
.service-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tv-orange);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 { color: var(--tv-white); margin-bottom: 0.5rem; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   TECHNICAL SECTION
══════════════════════════════════════════════════════════════ */
.technical-section {
  background: var(--tv-surface);
  position: relative;
  overflow: hidden;
}
.technical-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(227,154,43,0.02) 20px,
    rgba(227,154,43,0.02) 21px
  );
}
.technical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 680px) {
  .technical-grid { grid-template-columns: 1fr; }
}
.tech-block {
  background: var(--tv-surface2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}
.tech-block h3 {
  color: var(--tv-orange);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tech-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #d1d5db;
}
.tech-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tv-orange);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT STRIP
══════════════════════════════════════════════════════════════ */
.contact-strip {
  background: linear-gradient(135deg, #1a1200 0%, #0B0B0B 50%, #0d0a00 100%);
  border-top: 1px solid var(--tv-border);
  border-bottom: 1px solid var(--tv-border);
  padding: 4rem 0;
}
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.contact-text p { margin-top: 0.5rem; max-width: 460px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: #080808;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 42px; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; }
.footer-col h4 {
  color: var(--tv-orange);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--tv-muted); }
.footer-col ul li a {
  color: var(--tv-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--tv-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--tv-muted);
}

/* ══════════════════════════════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.7);
  animation: none;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 10px rgba(37,211,102,0); }
}

/* ══════════════════════════════════════════════════════════════
   UBICACIÓN — MAPA
══════════════════════════════════════════════════════════════ */
.ubicacion-section {
  background: var(--tv-surface);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ubicacion-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) {
  .ubicacion-layout {
    grid-template-columns: 1fr;
  }
}

/* Map container */
.tv-map {
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tv-border);
  box-shadow: 0 0 0 1px rgba(227,154,43,0.08), 0 8px 32px rgba(0,0,0,0.5);
}
/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  background: #181818 !important;
  color: #f2f2f2 !important;
  border: 1px solid rgba(227,154,43,0.4) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
}
.leaflet-popup-tip {
  background: #181818 !important;
}
.leaflet-popup-close-button {
  color: #9CA3AF !important;
}
/* Attribution small */
.leaflet-control-attribution {
  background: rgba(11,11,11,0.7) !important;
  color: #555 !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: #888 !important; }

/* Direction buttons */
.ubicacion-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}
.dir-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.dir-btn:hover { transform: translateY(-2px); opacity: 0.92; }

.dir-btn-google {
  background: #4285F4;
  color: #fff;
  box-shadow: 0 4px 18px rgba(66,133,244,0.35);
}
.dir-btn-google:hover { box-shadow: 0 6px 28px rgba(66,133,244,0.55); }

.dir-btn-waze {
  background: #33CCFF;
  color: #000;
  box-shadow: 0 4px 18px rgba(51,204,255,0.3);
}
.dir-btn-waze:hover { box-shadow: 0 6px 28px rgba(51,204,255,0.5); }

.ubicacion-coords {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tv-muted) !important;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero-stats { gap: 1.5rem; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .navbar-brand { display: none; }
  .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; }
}
