/* ══════════════════════════════════════════════════════════════
   SIVA INMIGRACIÓN — Design System
   Paleta: Azul #3F48CC · Rojo #FF0000 · Verde #00A651 · Blanco
   Tipografía: Montserrat (headings) + Inter (body)
══════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --blue: #3f48cc;
  --blue-light: #6c74e8;
  --blue-dark: #2a3199;
  --red: #ff0000;
  --red-dim: #e0263a;
  --green: #00a651;
  --white: #ffffff;

  /* Neutral scale */
  --navy-950: #060911;
  --navy-900: #0a0f1c;
  --navy-800: #0f1526;
  --navy-700: #161f37;
  --off-white: #f3f5fb;
  --gray: #9aa3c0;
  --gray-dim: #6b7492;

  /* Semantic aliases (kept for structural continuity) */
  --accent: var(--blue-light);
  --gold: var(--blue-light);
  --border: rgba(255, 255, 255, 0.09);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;

  --ff-heading: 'Montserrat', 'Inter', sans-serif;
  --ff-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.scroll-smooth { scroll-behavior: smooth; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  background: var(--navy-950);
  color: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-heading); font-weight: 800; color: var(--white); }
strong { color: var(--white); font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { position: relative; padding: 130px 0; }
@media (max-width: 900px) { section { padding: 90px 0; } }

.gold, .accent-text { color: var(--accent); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 12.5px; font-weight: 700; color: var(--accent);
  margin-bottom: 16px;
}
.label::before { content: ''; width: 28px; height: 2px; background: var(--red); display: inline-block; }

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

/* Scroll-reveal (driven by IntersectionObserver in main.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1.in-view { transition-delay: 0.1s; }
.reveal.d2.in-view { transition-delay: 0.2s; }
.reveal.d3.in-view { transition-delay: 0.3s; }
.reveal.d4.in-view { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════
   LOADER
══════════════════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-950);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo-wrap {
  position: relative; width: 240px; height: 240px;
  display: flex; align-items: center; justify-content: center;
}
.loader-logo {
  width: 192px; height: auto; position: relative; z-index: 2;
  animation: loaderPulse 1.7s ease-in-out infinite;
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(2.12px 2.12px 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(-2.12px 2.12px 0 #fff)
    drop-shadow(-3px 0 0 #fff) drop-shadow(-2.12px -2.12px 0 #fff)
    drop-shadow(0 -3px 0 #fff) drop-shadow(2.12px -2.12px 0 #fff)
    drop-shadow(1.5px 0 0 #fff) drop-shadow(1.06px 1.06px 0 #fff)
    drop-shadow(0 1.5px 0 #fff) drop-shadow(-1.06px 1.06px 0 #fff)
    drop-shadow(-1.5px 0 0 #fff) drop-shadow(-1.06px -1.06px 0 #fff)
    drop-shadow(0 -1.5px 0 #fff) drop-shadow(1.06px -1.06px 0 #fff);
}
.loader-spinner {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--blue-light);
  border-right-color: var(--red);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(0.95); }
}

.loader-bar { width: 220px; height: 3px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.loader-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--green));
  animation: loaderFill 1.9s ease forwards;
}
@keyframes loaderFill { to { width: 100%; } }

.loader-text { font-size: 12.5px; letter-spacing: 0.1em; color: var(--gray); text-transform: uppercase; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  padding: 13px 0;
  background: rgba(6, 9, 17, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 104px; height: 104px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon img {
  width: 100%; height: 100%; object-fit: contain;
  filter:
    drop-shadow(2px 0 0 #fff) drop-shadow(1.41px 1.41px 0 #fff)
    drop-shadow(0 2px 0 #fff) drop-shadow(-1.41px 1.41px 0 #fff)
    drop-shadow(-2px 0 0 #fff) drop-shadow(-1.41px -1.41px 0 #fff)
    drop-shadow(0 -2px 0 #fff) drop-shadow(1.41px -1.41px 0 #fff)
    drop-shadow(1px 0 0 #fff) drop-shadow(0.7px 0.7px 0 #fff)
    drop-shadow(0 1px 0 #fff) drop-shadow(-0.7px 0.7px 0 #fff)
    drop-shadow(-1px 0 0 #fff) drop-shadow(-0.7px -0.7px 0 #fff)
    drop-shadow(0 -1px 0 #fff) drop-shadow(0.7px -0.7px 0 #fff);
}
.nav-logo-copy { display: flex; flex-direction: column; line-height: 1.08; }
.nav-logo-copy span:first-child { font-family: var(--ff-heading); font-weight: 800; font-size: 18px; color: var(--white); letter-spacing: 0.01em; }
.nav-logo-copy span:last-child { font-size: 10.5px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--gray); transition: color 0.25s ease; position: relative; }
.nav-links a:hover { color: var(--white); }

.nav-cta { flex-shrink: 0; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border);
}
.hamburger span { width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mob-menu {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 340px);
  background: var(--navy-900); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px; padding: 100px 32px 40px;
  transform: translateX(100%); transition: transform 0.45s var(--ease);
  z-index: 999;
}
#mob-menu.open { transform: translateX(0); }
#mob-menu a {
  padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--off-white);
  border-bottom: 1px solid var(--border);
}
#mob-menu a:last-child { border-bottom: none; margin-top: 12px; color: var(--blue-light); font-weight: 700; }

/* Buttons */
.btn-gold, .form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px;
  background: linear-gradient(120deg, var(--blue), var(--blue-light));
  color: #fff; font-weight: 700; font-size: 14.5px; letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(63, 72, 204, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn-gold:hover, .form-submit:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(63, 72, 204, 0.5); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px;
  border: 1.5px solid var(--border); color: var(--white);
  font-weight: 600; font-size: 14.5px;
  transition: all 0.3s ease;
}
.btn-outline:hover { border-color: var(--blue-light); background: rgba(108, 116, 232, 0.08); }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 140px; padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(6,9,17,0.55) 0%, rgba(6,9,17,0.78) 55%, var(--navy-950) 100%),
    url('https://images.unsplash.com/photo-1508433957232-3107f5fd5995?q=80&w=2000&auto=format&fit=crop');
  background-size: cover; background-position: center 30%;
  background-attachment: fixed;
}
@media (max-width: 900px) { .hero-bg { background-attachment: scroll; } }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(63,72,204,0.35), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,0,0,0.18), transparent 45%);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1;
  box-shadow: inset 0 0 220px rgba(0,0,0,0.75);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

#hero-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }

.hero-rays { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-ray {
  position: absolute; top: -20%; width: 180px; height: 140%;
  background: linear-gradient(180deg, rgba(108,116,232,0.16), transparent 70%);
  filter: blur(30px);
  transform-origin: top center;
  animation: rayDrift 12s ease-in-out infinite;
}
.hero-ray.r1 { left: 5%;  transform: rotate(12deg); animation-delay: 0s; }
.hero-ray.r2 { left: 25%; transform: rotate(-8deg); animation-delay: 1.5s; background: linear-gradient(180deg, rgba(255,0,0,0.10), transparent 70%); }
.hero-ray.r3 { left: 50%; transform: rotate(6deg);  animation-delay: 3s; }
.hero-ray.r4 { left: 72%; transform: rotate(-14deg); animation-delay: 4.5s; background: linear-gradient(180deg, rgba(0,166,81,0.10), transparent 70%); }
.hero-ray.r5 { left: 88%; transform: rotate(10deg); animation-delay: 2s; }
@keyframes rayDrift {
  0%, 100% { opacity: 0.5; transform-origin: top center; }
  50% { opacity: 0.9; }
}

.hero-grain {
  position: absolute; inset: 0; z-index: 3; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--blue-light), var(--red), transparent);
  box-shadow: 0 0 24px 4px rgba(108,116,232,0.6);
  animation: scanSweep 2.4s var(--ease) 0.3s 1 both;
}
@keyframes scanSweep {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-content { position: relative; z-index: 5; max-width: 780px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; color: var(--off-white);
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.15s forwards;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0,166,81,0.6); animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(0,166,81,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(0,166,81,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,166,81,0); }
}

.hero-title {
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: block; opacity: 0; transform: translateY(110%);
  animation: lineUp 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.25s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.42s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.59s; }
@keyframes lineUp { to { opacity: 1; transform: translateY(0); } }

.hero-title .accent {
  background: linear-gradient(90deg, var(--blue-light), var(--red-dim), var(--green), var(--blue-light));
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lineUp 0.9s var(--ease) forwards, colorShift 6s linear infinite 1.2s;
}
@keyframes colorShift { to { background-position: 300% center; } }

.hero-sub {
  font-size: 18px; line-height: 1.75; color: var(--gray);
  max-width: 600px; margin-bottom: 38px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.75s forwards;
}
.hero-sub strong { color: var(--white); }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.9s forwards;
}

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 1.05s forwards;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--gray); }
.trust-item i { color: var(--blue-light); font-size: 14px; }
.trust-divider { width: 1px; height: 16px; background: var(--border); }

@keyframes fadeUp { to { opacity: 1; } }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 5; opacity: 0.7; }
.scroll-mouse { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.4); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-mouse-dot { width: 4px; height: 8px; border-radius: 2px; background: var(--blue-light); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

@media (max-width: 640px) {
  .hero-trust { gap: 14px; }
  .trust-divider { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════════════ */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--navy-900); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.marquee-inner { display: inline-flex; align-items: center; animation: marqueeScroll 34s linear infinite; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--ff-heading); font-weight: 700; font-size: 17px;
  letter-spacing: 0.03em; color: var(--gray-dim); padding: 0 28px;
  text-transform: uppercase;
}
.marquee-item i { color: var(--blue-light); font-size: 8px; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════════════
   WHY
══════════════════════════════════════════════════════════════ */
.why-header { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: end; margin-bottom: 64px; }
.why-quote { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.4; color: var(--white); font-weight: 700; }
.why-quote em { color: var(--blue-light); font-style: normal; font-weight: 700; }
.why-sub { font-size: 16px; line-height: 1.8; color: var(--gray); padding-bottom: 6px; }

@media (max-width: 900px) { .why-header { grid-template-columns: 1fr; gap: 22px; } }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.f-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.f-card:hover { border-color: rgba(108,116,232,0.4); transform: translateY(-6px); background: var(--surface-hover); }
.f-num { font-family: var(--ff-heading); font-size: 13px; font-weight: 800; color: var(--gray-dim); letter-spacing: 0.08em; margin-bottom: 22px; }
.f-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(108,116,232,0.12); border: 1px solid rgba(108,116,232,0.3);
  font-size: 20px; color: var(--blue-light);
}
.f-card h3 { font-size: 18px; margin-bottom: 12px; }
.f-card p { font-size: 14.5px; line-height: 1.75; color: var(--gray); }

/* ══════════════════════════════════════════════════════════════
   AMBIENTES — Servicios principales
══════════════════════════════════════════════════════════════ */
.ambientes-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.ambiente-pill {
  display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--gray);
}

.ambientes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1024px) { .ambientes-grid { grid-template-columns: 1fr; } }

.amb-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; border: 1px solid var(--border);
}
.amb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.amb-card:hover .amb-img { transform: scale(1.06); }
.amb-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px; background: linear-gradient(180deg, transparent 30%, rgba(6,9,17,0.75) 65%, rgba(6,9,17,0.96) 100%);
}
.amb-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 19px;
  backdrop-filter: blur(6px);
}
.amb-overlay h3 { font-size: 21px; margin-bottom: 10px; }
.amb-overlay p { font-size: 14px; line-height: 1.65; color: var(--gray); margin-bottom: 14px; }
.amb-temp {
  display: inline-flex; align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--white); background: rgba(255,255,255,0.1);
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════════
   PROCESO
══════════════════════════════════════════════════════════════ */
.proceso-header { max-width: 620px; margin-bottom: 60px; }
.proceso-header p { font-size: 16px; color: var(--gray); margin-top: 16px; line-height: 1.8; }

.proceso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 900px) { .proceso-grid { grid-template-columns: 1fr; } }

.proceso-step {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--blue-light);
}
.step-number { font-family: var(--ff-heading); font-size: 13px; font-weight: 800; color: var(--red-dim); letter-spacing: 0.08em; margin-bottom: 16px; text-transform: uppercase; }
.proceso-step h3 { font-size: 19px; margin-bottom: 12px; }
.proceso-step p { font-size: 14.5px; color: var(--gray); line-height: 1.75; }

/* ══════════════════════════════════════════════════════════════
   PRODUCTO — Compromiso
══════════════════════════════════════════════════════════════ */
.producto-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: center; }
@media (max-width: 1024px) { .producto-wrap { grid-template-columns: 1fr; gap: 46px; } }

.producto-lead { font-size: 16.5px; line-height: 1.8; color: var(--gray); margin: 20px 0 36px; max-width: 540px; }

.feature-rows { display: flex; flex-direction: column; gap: 22px; margin-bottom: 40px; }
.f-row { display: flex; gap: 18px; align-items: flex-start; }
.f-row-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(108,116,232,0.12); border: 1px solid rgba(108,116,232,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--blue-light);
}
.f-row h4 { font-size: 15.5px; margin-bottom: 6px; }
.f-row p { font-size: 14px; color: var(--gray); line-height: 1.7; }

.specs-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.spec-cell { background: var(--navy-900); padding: 20px 14px; text-align: center; }
.spec-val { display: block; font-family: var(--ff-heading); font-weight: 800; font-size: 19px; color: var(--white); margin-bottom: 6px; }
.spec-name { display: block; font-size: 11px; color: var(--gray-dim); line-height: 1.4; }
@media (max-width: 560px) { .specs-bar { grid-template-columns: repeat(2, 1fr); } }

.specs-note { font-size: 12.5px; color: var(--gray-dim); margin-top: 14px; line-height: 1.6; }

.panel-scene { position: relative; aspect-ratio: 1/1; max-width: 460px; margin: 0 auto; }
.led-panel-body {
  position: absolute; inset: 6%; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(108,116,232,0.5), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255,0,0,0.28), transparent 50%),
    conic-gradient(from 180deg, var(--navy-800), var(--navy-700), var(--navy-800));
  border: 1px solid var(--border);
  box-shadow: 0 0 90px rgba(63,72,204,0.35), inset 0 0 60px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  animation: panelSpin 22s linear infinite;
}
.led-panel-body::after {
  content: ''; position: absolute; inset: 14%; border-radius: 50%;
  background: var(--white) url('../img/logo-siva.png') center/62% no-repeat;
  border: 1px solid var(--border);
  box-shadow: 0 0 26px rgba(255,255,255,0.5);
  animation: panelSpinReverse 22s linear infinite;
}
@keyframes panelSpin { to { transform: rotate(360deg); } }
@keyframes panelSpinReverse { to { transform: rotate(-360deg); } }

.p-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; background: rgba(10,15,28,0.85);
  border: 1px solid var(--border); backdrop-filter: blur(10px);
  font-size: 12.5px; font-weight: 700; color: var(--white); white-space: nowrap;
}
.p-badge .p-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pb-tl { top: 6%; left: -4%; }
.pb-br { bottom: 8%; right: -6%; }
@media (max-width: 560px) { .pb-tl { left: 0; } .pb-br { right: 0; } }

/* ══════════════════════════════════════════════════════════════
   STATS — Servicios y costos
══════════════════════════════════════════════════════════════ */
#stats { padding: 90px 0; background: var(--navy-900); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-hdr { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.stats-hdr p { color: var(--gray); font-size: 15px; margin-top: 14px; line-height: 1.75; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-cell { text-align: center; }
.stat-num { font-family: var(--ff-heading); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); color: var(--white); margin-bottom: 10px; }
.stat-num .stat-prefix { color: var(--blue-light); }
.stat-lbl { font-size: 13.5px; color: var(--gray); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   SECTORES — Trámites que gestionamos
══════════════════════════════════════════════════════════════ */
.sectores-hdr { max-width: 620px; margin-bottom: 54px; }
.sectores-hdr p { color: var(--gray); font-size: 16px; margin-top: 14px; line-height: 1.75; }

.sectores-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1024px) { .sectores-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sectores-grid { grid-template-columns: repeat(2, 1fr); } }

.sector-card {
  padding: 32px 18px; text-align: center; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.sector-card:hover { border-color: rgba(255,0,0,0.35); background: var(--surface-hover); transform: translateY(-4px); }
.sector-icon { font-size: 26px; color: var(--blue-light); margin-bottom: 16px; }
.sector-card h3 { font-size: 14px; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════════════════════ */
.contact-hdr { max-width: 600px; margin-bottom: 54px; }
.contact-hdr p { color: var(--gray); font-size: 16px; margin-top: 14px; }

.contact-box {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
@media (max-width: 900px) { .contact-box { grid-template-columns: 1fr; } }

.contact-info {
  background: linear-gradient(155deg, var(--blue-dark), var(--navy-800));
  padding: 50px 42px; position: relative;
}
.contact-info h3 { font-size: 22px; margin-bottom: 10px; }
.ci-sub { font-size: 14.5px; color: rgba(243,245,251,0.75); margin-bottom: 36px; line-height: 1.7; }

.ci-list { display: flex; flex-direction: column; gap: 26px; }
.ci-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--white);
}
.ci-body h4 { font-size: 14.5px; margin-bottom: 6px; }
.ci-body p, .ci-body a { font-size: 14px; color: rgba(243,245,251,0.8); line-height: 1.6; }
.ci-body a:hover { color: var(--white); }
.ci-wa-link { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--green) !important; }

.contact-form-wrap { background: var(--navy-900); padding: 50px 42px; }
.contact-form-wrap h3 { font-size: 22px; margin-bottom: 26px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--gray); margin-bottom: 9px; text-transform: uppercase; }
.form-control {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--white);
  font-size: 14.5px; transition: border-color 0.25s ease, background 0.25s ease;
}
.form-control::placeholder { color: var(--gray-dim); }
.form-control:focus { outline: none; border-color: var(--blue-light); background: rgba(255,255,255,0.06); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239aa3c0' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select.form-control option { background: var(--navy-900); color: var(--white); }
textarea.form-control { resize: vertical; min-height: 110px; }

.form-submit { width: 100%; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--gray-dim); margin-top: 14px; text-align: center; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer { padding: 50px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--ff-heading); font-weight: 800; font-size: 16px; color: var(--white); }
.footer-logo img { width: 30px; height: auto; }
.footer-copy { font-size: 13px; color: var(--gray-dim); text-align: center; }
.footer-socials { display: flex; gap: 12px; }
.footer-soc {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--gray);
  transition: all 0.25s ease;
}
.footer-soc:hover { color: var(--white); border-color: var(--blue-light); background: rgba(108,116,232,0.12); }

@media (max-width: 640px) { .footer-inner { flex-direction: column; text-align: center; } }

/* ══════════════════════════════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════════════════════════════ */
.wa-btn {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,166,81,0.45);
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-btn:hover { transform: scale(1.08); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(0,166,81,0.45); }
  50% { box-shadow: 0 12px 30px rgba(0,166,81,0.7), 0 0 0 10px rgba(0,166,81,0.08); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Navbar collapse
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}
