/* ═══════════════════════════════════════════════════════════════
   MexMail — Estilos principales
   Paleta "Escudo": el navy y el azul del logotipo, un verde para lo
   verificado. Todos los colores y medidas viven en :root y en
   [data-theme="dark"]; para retematizar se editan SOLO esos bloques.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   1. TOKENS — TEMA CLARO
───────────────────────────────────── */
:root {
  /* Marca (fijos, no cambian con el tema) */
  --navy:        #0E1B40;
  --navy-deep:   #070E22;
  --navy-soft:   #16265A;
  --azul:        #0364FF;
  --azul-bright: #3D8BFF;
  --azul-deep:   #0247B8;
  --ok:          #12A66F;
  --ok-bright:   #2BD394;

  /* Fondos */
  --bg:       #F5F8FE;
  --bg-alt:   #EAF0FB;
  --card:     #FFFFFF;

  /* Texto */
  --text:     #0E1B40;
  --text-2:   #46516E;
  --text-3:   #6B7590;
  --on-dark:  #EEF2FA;
  --on-dark-2:#A9B4CC;
  --on-dark-3:#7B87A6;

  /* Acento operable */
  --accent:       #0364FF;
  --accent-hover: #0247B8;
  --accent-on:    #FFFFFF;
  --accent-soft:  rgba(3, 100, 255, 0.10);
  --accent-glow:  rgba(3, 100, 255, 0.22);

  /* Semántico */
  --ok-bg:   rgba(18, 166, 111, 0.12);
  --warn:    #C8871B;
  --warn-bg: rgba(200, 135, 27, 0.12);
  --bad:     #C8362E;
  --bad-bg:  rgba(200, 54, 46, 0.10);

  /* Bordes y sombras (teñidos de navy, no grises) */
  --border:   rgba(14, 27, 64, 0.10);
  --border-2: rgba(14, 27, 64, 0.18);
  --sh-sm: 0 1px 2px rgba(14, 27, 64, 0.05), 0 2px 8px rgba(14, 27, 64, 0.05);
  --sh-md: 0 4px 12px rgba(14, 27, 64, 0.07), 0 14px 36px rgba(14, 27, 64, 0.08);
  --sh-lg: 0 10px 28px rgba(14, 27, 64, 0.10), 0 30px 70px rgba(14, 27, 64, 0.14);

  /* Navbar */
  --nav-bg:     rgba(245, 248, 254, 0.84);
  --nav-border: rgba(14, 27, 64, 0.08);

  /* Tipografía */
  --font:      'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Espaciado y radios: la jerarquía de radios también informa
     (panel > tarjeta > control) */
  --sp-xs: 0.5rem; --sp-sm: 1rem; --sp-md: 1.5rem; --sp-lg: 2.5rem; --sp-xl: 4rem; --sp-2xl: 6.5rem;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-full: 9999px;

  --ease:      0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --maxw: 1160px;
  --nav-h: 72px;
}

/* ─────────────────────────────────────
   2. TOKENS — TEMA OSCURO
───────────────────────────────────── */
[data-theme="dark"] {
  --bg:      #070E22;
  --bg-alt:  #0B1530;
  --card:    #0F1C42;

  --text:    #EEF2FA;
  --text-2:  #A9B4CC;
  --text-3:  #7B87A6;

  --accent:       #3D8BFF;
  --accent-hover: #6AA6FF;
  --accent-on:    #05122E;
  --accent-soft:  rgba(61, 139, 255, 0.14);
  --accent-glow:  rgba(61, 139, 255, 0.26);

  --ok:      #2BD394;
  --ok-bg:   rgba(43, 211, 148, 0.12);
  --warn:    #E0A340;
  --warn-bg: rgba(224, 163, 64, 0.14);
  --bad:     #F0746C;
  --bad-bg:  rgba(240, 116, 108, 0.12);

  --border:   rgba(238, 242, 250, 0.10);
  --border-2: rgba(238, 242, 250, 0.20);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.30), 0 2px 8px rgba(0, 0, 0, 0.24);
  --sh-md: 0 4px 12px rgba(0, 0, 0, 0.36), 0 14px 36px rgba(0, 0, 0, 0.32);
  --sh-lg: 0 10px 28px rgba(0, 0, 0, 0.44), 0 30px 70px rgba(0, 0, 0, 0.40);

  --nav-bg:     rgba(7, 14, 34, 0.84);
  --nav-border: rgba(238, 242, 250, 0.09);
}

/* ─────────────────────────────────────
   3. RESET Y BASE
───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--ease), color var(--ease);
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-sm);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); letter-spacing: -0.015em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 var(--sp-sm); color: var(--text-2); text-wrap: pretty; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }
p a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }

ul, ol { margin: 0 0 var(--sp-sm); padding-left: 1.15rem; color: var(--text-2); }
li { margin-bottom: 0.35rem; }

strong, b { font-weight: 700; color: var(--text); }
code, .mono { font-family: var(--font-mono); font-size: 0.86em; font-weight: 500; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-lg) 0; }

::selection { background: var(--azul); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { left: 8px; }

/* ─────────────────────────────────────
   4. LAYOUT
───────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-md); }
.container.narrow { max-width: 820px; }

.section { padding: var(--sp-2xl) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-deep); color: var(--on-dark); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-dark p, .section-dark li { color: var(--on-dark-2); }

.section-head { max-width: 720px; margin-bottom: var(--sp-lg); }
.section-head p { font-size: 1.125rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.split { display: grid; gap: var(--sp-xl); align-items: start; }
.grid { display: grid; gap: var(--sp-md); }

/* ─────────────────────────────────────
   5. BOTONES
───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.45rem; border-radius: var(--r-md);
  font: 700 0.98rem/1 var(--font); letter-spacing: -0.005em;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: 0 6px 18px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-on); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.section-dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero .btn-primary, .section-dark .btn-primary { background: var(--azul); color: #fff; box-shadow: 0 8px 24px rgba(3, 100, 255, 0.35); }
.hero .btn-primary:hover, .section-dark .btn-primary:hover { background: var(--azul-bright); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ─────────────────────────────────────
   6. NAVBAR
───────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), background var(--ease);
}
.nav.scrolled { border-bottom-color: var(--nav-border); }
.nav { transition: border-color var(--ease), background var(--ease), transform 0.32s cubic-bezier(0.4, 0, 0.2, 1); }
.nav.oculta { transform: translateY(-100%); }
.nav-progress {
  position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--azul), var(--azul-bright));
  transform-origin: 0 50%; transform: scaleX(var(--progreso, 0));
  opacity: 0; transition: opacity var(--ease);
}
.nav.scrolled .nav-progress { opacity: 1; }
.nav-links > a.activo { color: var(--accent); }
.hero-oscuro .nav:not(.scrolled) .nav-links > a.activo { color: #fff; }
.theme-toggle svg { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.theme-toggle.girando svg { transform: rotate(360deg); }
/* Sobre el hero navy la barra va transparente y con texto claro; al pasar
   el hero (clase .scrolled, umbral calculado en JS) toma el fondo del tema. */
.hero-oscuro .nav:not(.scrolled) {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  --logo-shield: #24387A; --logo-text: #fff;
}
.hero-oscuro .nav:not(.scrolled) .nav-links > a,
.hero-oscuro .nav:not(.scrolled) .nav-login { color: var(--on-dark-2); }
.hero-oscuro .nav:not(.scrolled) .nav-links > a:hover,
.hero-oscuro .nav:not(.scrolled) .nav-login:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.hero-oscuro .nav:not(.scrolled) .theme-toggle { color: var(--on-dark-2); border-color: rgba(255, 255, 255, 0.18); }
.hero-oscuro .nav:not(.scrolled) .theme-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero-oscuro .nav:not(.scrolled) .nav-toggle span { background: #fff; }
.hero-oscuro .nav:not(.scrolled) .btn-primary { background: var(--azul); color: #fff; }
.hero-oscuro .nav:not(.scrolled) .btn-primary:hover { background: var(--azul-bright); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-md);
  height: 100%; display: flex; align-items: center; gap: var(--sp-md);
}

.logo { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); }
.logo-mark { width: 34px; height: 37px; flex: none; }
.logo-word { height: 20px; width: auto; }
/* El logo se dibuja con <use> desde un sprite; los selectores no entran al
   <use>, pero las propiedades personalizadas sí heredan. Por eso los colores
   del logo se controlan con --logo-* en el contexto que lo contiene. */
.lm-shield { fill: var(--logo-shield, var(--navy)); }
.lm-mail   { fill: var(--logo-mail, var(--azul)); }
.lw-mex    { fill: var(--logo-text, var(--text)); }
.lw-mail   { fill: var(--logo-mail, var(--azul)); }
[data-theme="dark"] { --logo-shield: #24387A; }
.logo-on-dark { --logo-shield: #24387A; --logo-text: #fff; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-links > a {
  color: var(--text-2); font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  padding: 0.5rem 0.75rem; border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-links > a:hover { color: var(--text); background: var(--accent-soft); }
.nav-only-mobile { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-login { color: var(--text-2); font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.6rem; white-space: nowrap; }
.nav-login:hover { color: var(--text); }

.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────
   7. HERO — el sobre sellado
   Siempre navy: es el color del escudo, en cualquier tema.
───────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 78% 10%, rgba(3, 100, 255, 0.22), transparent 60%),
              linear-gradient(165deg, #0A1533 0%, var(--navy-deep) 60%, #050B1C 100%);
  color: var(--on-dark);
  padding: calc(var(--nav-h) + 4.5rem) 0 4.5rem;
}
.hero-inner { display: grid; gap: var(--sp-xl); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; font-size: clamp(2.2rem, 4.8vw, 3.55rem); }

/* Campo de fondo: puntos y glifos que derivan lentamente (canvas, pausado fuera de vista) */
.hero-campo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; pointer-events: none; }

/* Entrada escalonada del hero: una sola secuencia al cargar */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .w > span { display: inline-block; transform: translateY(110%); animation: sube 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.08s + var(--i, 0) * 0.055s); }
.hero-sub, .hero .btn-row, .hero-facts { opacity: 0; animation: aparece 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-sub { animation-delay: 0.55s; }
.hero .btn-row { animation-delay: 0.7s; }
.hero-facts { animation-delay: 0.85s; }
.sobre-wrap { opacity: 0; animation: aparece 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
@keyframes sube { from { transform: translateY(110%); } to { transform: none; } }
.hero h1 .azul { color: var(--azul-bright); }
.hero-sub { font-size: 1.2rem; color: var(--on-dark-2); max-width: 54ch; margin-bottom: 1.75rem; }
.hero-sub strong { color: #fff; }
.hero .btn-row { margin-bottom: 2.25rem; }

/* Hechos: números como parte de la frase, no vitrina de cifras */
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0; padding: 0; list-style: none; }
.hero-facts li { color: var(--on-dark-2); font-size: 0.95rem; margin: 0; }
.hero-facts b { color: #fff; font-weight: 800; }

/* El sobre. Un solo objeto, una sola secuencia al cargar. */
.sobre-wrap { display: flex; justify-content: center; perspective: 1400px; }
.sobre {
  position: relative; width: min(100%, 500px); aspect-ratio: 440 / 300;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}
.sobre-carta {
  position: absolute; left: 7%; right: 7%; top: 2%; height: 78%;
  background: #F5F8FE; border-radius: 10px 10px 0 0;
  padding: 10% 7% 0; overflow: hidden;
  animation: carta-entra 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.sobre-carta .linea { height: 7px; border-radius: 4px; background: #C5CFE6; margin-bottom: 10px; }
.sobre-carta .linea.titulo { width: 46%; height: 11px; background: var(--navy); margin-bottom: 16px; }
.sobre-carta .linea:nth-child(3) { width: 92%; }
.sobre-carta .linea:nth-child(4) { width: 78%; }
.sobre-carta .linea:nth-child(5) { width: 86%; }
.sobre-carta .linea:nth-child(6) { width: 58%; }
.sobre-cuerpo {
  position: absolute; inset: 22% 0 0 0;
  background: linear-gradient(180deg, #1B2E6B 0%, #14245A 100%);
  border-radius: 14px;
  clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sobre-fondo {
  position: absolute; inset: 22% 0 0 0;
  background: #101E4E; border-radius: 14px;
}
.sobre-solapa {
  position: absolute; left: 0; right: 0; top: 22%; height: 46%;
  background: linear-gradient(180deg, #2A45A0 0%, #1E357F 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 14px 14px 0 0;
  transform-origin: 50% 0;
  transform: rotateX(180deg);
  animation: solapa-cierra 0.7s cubic-bezier(0.3, 0.8, 0.3, 1) 0.85s both;
  z-index: 2;
}
.sobre-sello {
  position: absolute; left: 50%; top: 58%; width: 24%;
  transform: translate(-50%, -50%) scale(0.4); opacity: 0;
  animation: sello-cae 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.4) 1.5s both;
  z-index: 3;
}
.sobre-sello .logo-mark { width: 100%; height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45)); }
.sobre-sello { --logo-shield: #EEF2FA; --logo-mail: var(--azul); }
.sobre-halo {
  position: absolute; left: 50%; top: 58%; width: 24%; aspect-ratio: 135.5 / 146.35;
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(61, 139, 255, 0.55);
  animation: halo 1.6s ease-out 2s both;
  z-index: 1;
}
.sobre-leyenda {
  margin: 1.4rem auto 0; text-align: center; font-size: 0.92rem; color: var(--on-dark-3);
  opacity: 0; animation: aparece 0.6s ease-out 2.1s both;
}
.sobre-leyenda b { color: var(--on-dark-2); font-weight: 600; }

@keyframes carta-entra { from { transform: translateY(-26%); } to { transform: translateY(20%); } }
@keyframes solapa-cierra { from { transform: rotateX(180deg); } to { transform: rotateX(0deg); } }
@keyframes sello-cae { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes halo { from { box-shadow: 0 0 0 0 rgba(61, 139, 255, 0.55); } to { box-shadow: 0 0 0 46px rgba(61, 139, 255, 0); } }
@keyframes aparece { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ─────────────────────────────────────
   8. MANIFIESTO — lo que no hacemos
───────────────────────────────────── */
.manifiesto p { font-size: 1.1rem; }
.no-hacemos {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-md) var(--sp-lg); box-shadow: var(--sh-md);
}
.no-hacemos h3 { margin-bottom: 1rem; }
.no-hacemos ul { list-style: none; padding: 0; margin: 0; }
.no-hacemos li {
  display: grid; grid-template-columns: 26px 1fr; gap: 0.75rem; align-items: start;
  padding: 0.7rem 0; border-top: 1px solid var(--border); margin: 0; color: var(--text);
}
.no-hacemos li:first-child { border-top: 0; }
.no-hacemos li b { display: block; }
.no-hacemos li span { color: var(--text-3); font-size: 0.95rem; }
.no-hacemos .tacha {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bad-bg); color: var(--bad);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.no-hacemos .tacha svg { width: 14px; height: 14px; }
.no-hacemos li .palomita {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.no-hacemos li .palomita svg { width: 14px; height: 14px; }
.no-hacemos .si {
  margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--ok); color: var(--text);
  display: grid; grid-template-columns: 26px 1fr; gap: 0.75rem; align-items: center; font-weight: 600;
}
.no-hacemos .si .palomita { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.no-hacemos .si svg { width: 14px; height: 14px; }

/* ─────────────────────────────────────
   9. LA RUTA DE UN CORREO (elemento de marca)
   Cinco estaciones en secuencia: por eso van numeradas.
───────────────────────────────────── */
.ruta { display: grid; gap: var(--sp-xl); align-items: start; }
.ruta-intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
.ruta-intro p { font-size: 1.1rem; }
.ruta-intro .btn { margin-top: 1rem; }

.estaciones { list-style: none; margin: 0; padding: 0; position: relative; }
.estaciones::before {
  content: ""; position: absolute; left: 21px; top: 28px; bottom: 28px; width: 2px;
  background: linear-gradient(180deg, var(--azul) 0%, var(--ok) 100%);
  opacity: 0.55;
}
.estacion {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem;
  padding: 0 0 2.2rem; margin: 0;
}
.estacion:last-child { padding-bottom: 0; }
.estacion-num {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--card); border: 2px solid var(--azul); color: var(--azul);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.section-alt .estacion-num { box-shadow: 0 0 0 6px var(--bg-alt); }
.estacion:last-child .estacion-num { border-color: var(--ok); color: var(--ok); }
.estacion h3 { margin-bottom: 0.35rem; }
.estacion p { margin-bottom: 0.6rem; }
.estacion-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  padding: 0.28rem 0.55rem; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent;
}
.tag.ok { background: var(--ok-bg); color: var(--ok); }

/* ─────────────────────────────────────
   10. CARACTERÍSTICAS — filas con muestra real
───────────────────────────────────── */
.feature { display: grid; gap: var(--sp-lg); align-items: center; padding: var(--sp-lg) 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.feature p { font-size: 1.05rem; }
.feature-demo { display: flex; justify-content: center; }

/* Muestra: notificación de WhatsApp */
.demo-wa {
  width: min(100%, 360px); background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 1rem 1.1rem;
}
.demo-wa .wa-head { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--text-3); margin-bottom: 0.7rem; }
.demo-wa .wa-dot { width: 26px; height: 26px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.demo-wa .wa-dot svg { width: 15px; height: 15px; }
.demo-wa .wa-msg { background: var(--bg-alt); border-radius: 12px 12px 12px 4px; padding: 0.75rem 0.9rem; font-size: 0.95rem; color: var(--text); line-height: 1.45; }
.demo-wa .wa-msg b { display: block; margin-bottom: 0.2rem; }
.demo-wa .wa-msg small { display: block; margin-top: 0.4rem; color: var(--text-3); font-size: 0.78rem; }

/* Muestra: respuesta con IA */
.demo-ia {
  width: min(100%, 380px); background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden;
}
.demo-ia .ia-in { padding: 0.9rem 1.1rem; font-size: 0.92rem; color: var(--text-2); border-bottom: 1px solid var(--border); }
.demo-ia .ia-in b { color: var(--text); display: block; margin-bottom: 0.15rem; }
.demo-ia .ia-out { padding: 0.9rem 1.1rem; font-size: 0.92rem; color: var(--text); background: var(--accent-soft); }
.demo-ia .ia-out .ia-tag { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; color: var(--accent); margin-bottom: 0.35rem; }
.demo-ia .ia-out .ia-tag svg { width: 13px; height: 13px; }

/* Muestra: sincronización */
.demo-sync { width: min(100%, 380px); display: grid; gap: 0.6rem; }
.demo-sync .sync-row {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 0.8rem; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0.7rem 0.9rem; box-shadow: var(--sh-sm);
}
.demo-sync .sync-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.demo-sync .sync-ico svg { width: 19px; height: 19px; }
.demo-sync .sync-row b { display: block; font-size: 0.95rem; }
.demo-sync .sync-row span { font-size: 0.82rem; color: var(--text-3); }
.demo-sync .sync-ok { color: var(--ok); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; }

.tambien { display: grid; gap: var(--sp-md); margin-top: var(--sp-lg); padding-top: var(--sp-lg); border-top: 1px solid var(--border); }
.tambien-item { display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; align-items: start; }
.tambien-item .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.tambien-item .ico svg { width: 20px; height: 20px; }
.tambien-item h4 { margin-bottom: 0.2rem; font-size: 1.02rem; }
.tambien-item p { font-size: 0.95rem; }

/* ─────────────────────────────────────
   11. PLANES
───────────────────────────────────── */
.incluye {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-md) var(--sp-lg); margin-bottom: var(--sp-lg); box-shadow: var(--sh-sm);
}
.incluye h3 { margin-bottom: 0.9rem; }
.incluye ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem 1.5rem; }
.incluye li { display: flex; gap: 0.55rem; align-items: start; margin: 0; font-size: 0.97rem; color: var(--text); }
.check { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 3px; }

.planes { display: grid; gap: var(--sp-md); }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-md); display: flex; flex-direction: column; box-shadow: var(--sh-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.plan:hover { border-color: var(--border-2); box-shadow: var(--sh-md); }
.plan h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.plan-precio { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.15rem; }
.plan-precio .monto { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); line-height: 1; }
.plan-precio .moneda { font-size: 0.95rem; font-weight: 700; color: var(--text-3); }
.plan-periodo { font-size: 0.88rem; color: var(--text-3); margin-bottom: 1.25rem; }
.plan-capacidad {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.1rem;
  padding: 0.85rem; background: var(--bg-alt); border-radius: var(--r-md);
}
.plan-capacidad div { font-size: 0.8rem; color: var(--text-3); }
.plan-capacidad b { display: block; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.plan-capacidad .na b { color: var(--text-3); font-weight: 600; }
.plan ul { list-style: none; margin: 0 0 1.25rem; padding: 0; flex: 1; }
.plan li { display: flex; gap: 0.55rem; align-items: start; margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--text); }
.plan li.no { color: var(--text-3); }
.plan li.no .check { color: var(--text-3); opacity: 0.55; }
.plan .btn { width: 100%; }
.plan-nota { margin-top: var(--sp-md); font-size: 0.9rem; color: var(--text-3); }

/* ─────────────────────────────────────
   12. CÓMO EMPEZAR (secuencia real: numerada)
───────────────────────────────────── */
.pasos { display: grid; gap: var(--sp-md); counter-reset: paso; }
.paso {
  position: relative; padding: var(--sp-md); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--border);
}
.paso::before {
  counter-increment: paso; content: counter(paso);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 0.9rem;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 0.95rem;
}
[data-theme="dark"] .paso::before { background: var(--azul); }
.paso h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.paso p { font-size: 0.97rem; }
.paso .tag { margin-top: 0.6rem; display: inline-block; }

/* ─────────────────────────────────────
   13. FAQ
───────────────────────────────────── */
.faq-list { display: grid; gap: 0.6rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; position: relative;
  font-weight: 700; color: var(--text); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item[open] summary { color: var(--accent); }
.faq-body { padding: 0 1.25rem 1.1rem; }
.faq-body p { font-size: 0.98rem; }

/* ─────────────────────────────────────
   14. CONTACTO / FORMULARIO
───────────────────────────────────── */
.contact-grid { display: grid; gap: var(--sp-xl); align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 1.25rem 0; }
.contact-points li { display: flex; gap: 0.6rem; align-items: start; color: var(--text); margin-bottom: 0.55rem; }
.contact-meta { color: var(--text-2); font-size: 0.97rem; display: grid; gap: 0.3rem; margin-top: 1.5rem; }
.contact-meta a { font-weight: 600; }

.form {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-md); box-shadow: var(--sh-md);
}
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field-row { display: grid; gap: 1rem; }
.field label { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.field .req { color: var(--bad); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--font); color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border-2); border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem; width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7590' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px; }
.form-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.cf-turnstile { margin: 0.25rem 0 1rem; }
.form-legal { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1rem; }
.form-notice { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--r-sm); font-size: 0.95rem; font-weight: 600; }
.form-notice.ok { background: var(--ok-bg); color: var(--ok); }
.form-notice.bad { background: var(--bad-bg); color: var(--bad); }

/* ─────────────────────────────────────
   15. PIE
───────────────────────────────────── */
.footer { background: var(--navy-deep); color: var(--on-dark-2); padding: var(--sp-xl) 0 var(--sp-md); }
.footer-inner { display: grid; gap: var(--sp-lg); padding-bottom: var(--sp-lg); border-bottom: 1px solid rgba(238, 242, 250, 0.1); }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--on-dark-2); font-size: 0.95rem; max-width: 40ch; }
.footer-brand .footer-by { color: var(--on-dark-3); font-size: 0.88rem; }
.footer-links { display: grid; gap: var(--sp-md); grid-template-columns: repeat(2, 1fr); }
.footer-links h4 { color: #fff; margin-bottom: 0.7rem; font-size: 0.95rem; }
.footer-links a { display: block; color: var(--on-dark-2); font-size: 0.93rem; padding: 0.22rem 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; padding-top: var(--sp-md); font-size: 0.86rem; }
.footer-bottom p { color: var(--on-dark-3); margin: 0; }
.footer-legal-links { display: flex; gap: 1.2rem; }
.footer-legal-links a { color: var(--on-dark-2); }
.footer-legal-links a:hover { color: #fff; }

/* ─────────────────────────────────────
   16. CHAT ASESOR-IA (botón flotante + panel)
───────────────────────────────────── */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--azul); color: #fff; box-shadow: 0 10px 28px rgba(3, 100, 255, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--ease), background var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); background: var(--azul-bright); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .i-cerrar { display: none; }
.chat-fab[aria-expanded="true"] .i-abrir { display: none; }
.chat-fab[aria-expanded="true"] .i-cerrar { display: block; }
.chat-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 899;
  width: min(400px, calc(100vw - 40px)); height: min(650px, calc(100vh - 120px));
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
  transform-origin: 100% 100%; transform: scale(0.96) translateY(8px); opacity: 0; pointer-events: none;
  transition: transform var(--ease), opacity var(--ease);
}
.chat-panel[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
.chat-panel iframe { width: 100%; height: 100%; border: 0; display: block; }
.chat-panel .chat-cargando {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 0.95rem; background: var(--card);
}

/* ─────────────────────────────────────
   17. PÁGINAS INTERIORES (seguridad, terminología, legal)
───────────────────────────────────── */
.page-hero { padding: calc(var(--nav-h) + 4rem) 0 3rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.page-hero .lead { font-size: 1.2rem; max-width: 62ch; }
.page-hero.dark { background: linear-gradient(165deg, #0A1533 0%, var(--navy-deep) 100%); color: var(--on-dark); }
.page-hero.dark h1 { color: #fff; }
.page-hero.dark .lead { color: var(--on-dark-2); }
.breadcrumb { font-size: 0.88rem; color: var(--text-3); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero.dark .breadcrumb, .page-hero.dark .breadcrumb a { color: var(--on-dark-3); }

.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: var(--sp-lg); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-md); }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul { padding-left: 1.2rem; }
.prose .actualizado { font-size: 0.9rem; color: var(--text-3); }

/* Seguridad: capas */
.capas { display: grid; gap: var(--sp-md); }
.capa {
  display: grid; gap: 1rem; padding: var(--sp-md); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--border);
}
.capa-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.capa-ico svg { width: 24px; height: 24px; }
.capa h3 { margin-bottom: 0.4rem; }
.capa p { font-size: 1rem; }
.capa .estacion-tags { margin-top: 0.6rem; }

/* Terminología: glosario con índice */
.glosario { display: grid; gap: var(--sp-xl); align-items: start; }
.glosario-indice { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: none; }
.glosario-indice a {
  display: block; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  color: var(--text-2); padding: 0.35rem 0.6rem; border-left: 2px solid var(--border); margin-left: 0;
}
.glosario-indice a:hover { color: var(--accent); border-left-color: var(--accent); }
.termino { padding: var(--sp-md) 0; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.termino:first-child { border-top: 0; padding-top: 0; }
.termino h2 { font-size: 1.35rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; }
.termino h2 code { font-size: 1.1rem; color: var(--accent); background: var(--accent-soft); padding: 0.15rem 0.5rem; border-radius: 6px; }
.termino h2 small { font-weight: 600; color: var(--text-3); font-size: 0.95rem; letter-spacing: 0; }
.termino .uso { font-size: 0.9rem; color: var(--text-3); margin-top: 0.5rem; }

/* CTA final de páginas interiores */
.cta-final { text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { margin-left: auto; margin-right: auto; }
.cta-final .btn-row { justify-content: center; margin-top: 1.5rem; }

/* Redirección (stubs de las URL viejas) */
.redir { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--sp-md); }

/* ─────────────────────────────────────
   17b. REVELADO AL HACER SCROLL
   El JS marca los bloques con .reveal y les da --i para escalonarlos.
───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.desde-izq { transform: translateX(-28px); }
.reveal.desde-der { transform: translateX(28px); }
.reveal.visible.desde-izq, .reveal.visible.desde-der { transform: none; }

/* La línea de la ruta se dibuja cuando la lista entra en pantalla */
.estaciones::before { transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; }
.estaciones.visible::before { transform: scaleY(1); }
.estacion-num { transform: scale(0.6); opacity: 0; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s; transition-delay: calc(0.25s + var(--i, 0) * 0.28s); }
.estaciones.visible .estacion-num { transform: none; opacity: 1; }

/* Demos que cobran vida al verse */
.demo-sync .sync-ok { opacity: 0; transform: translateX(6px); transition: opacity 0.4s, transform 0.4s; transition-delay: calc(0.5s + var(--i, 0) * 0.35s); }
.reveal.visible .demo-sync .sync-ok, .demo-sync.visible .sync-ok { opacity: 1; transform: none; }
.ia-texto.escribiendo::after { content: "▍"; color: var(--accent); animation: parpadea 0.8s steps(1) infinite; }
@keyframes parpadea { 50% { opacity: 0; } }
.demo-wa .wa-msg { transform-origin: 0 100%; }
.reveal.visible .demo-wa .wa-msg { animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both; }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* Interacciones */
.plan:hover, .capa:hover, .paso:hover { transform: translateY(-3px); }
.plan, .capa, .paso { transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.capa:hover, .paso:hover { box-shadow: var(--sh-md); border-color: var(--border-2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px var(--accent-glow); }
.btn-primary:active { transform: translateY(1px); }
.faq-item[open] .faq-body { animation: aparece 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.faq-item:hover { border-color: var(--border-2); }

/* Formulario: estados */
.form.validado :invalid { border-color: var(--bad); }
.form.validado :invalid:focus { box-shadow: 0 0 0 4px var(--bad-bg); }
.field .ayuda { font-size: 0.82rem; color: var(--bad); display: none; }
.form.validado :invalid ~ .ayuda { display: block; }
.btn.enviado { background: var(--ok); color: #fff; }
.form-notice { animation: aparece 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Volver arriba */
.to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 890;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-2);
  background: var(--card); color: var(--text-2); cursor: pointer; box-shadow: var(--sh-md);
  display: inline-flex; align-items: center; justify-content: center;
  animation: aparece 0.3s both; transition: color var(--ease), border-color var(--ease), transform var(--ease);
}
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.to-top svg { width: 18px; height: 18px; }

/* ─────────────────────────────────────
   18. RESPONSIVO
───────────────────────────────────── */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .incluye ul { grid-template-columns: 1fr 1fr; }
  .planes { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .tambien { grid-template-columns: repeat(2, 1fr); }
  .capas { grid-template-columns: repeat(2, 1fr); }
  .capa { grid-template-columns: 46px 1fr; }
  .footer-links { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .split { grid-template-columns: 1.15fr 0.85fr; }
  .ruta { grid-template-columns: 0.8fr 1.2fr; }
  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-of-type(even) .feature-demo { order: -1; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
  .footer-inner { grid-template-columns: 1.1fr 2fr; }
  .glosario { grid-template-columns: 220px 1fr; }
  .glosario-indice { display: block; }
  .incluye ul { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .planes { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: var(--bg); padding: var(--sp-md);
    transform: translateX(100%); transition: transform var(--ease);
    overflow-y: auto; border-top: 1px solid var(--border);
  }
  .nav-links.open { transform: none; }
  .hero-oscuro .nav:not(.scrolled) .nav-links.open > a { color: var(--text-2); }
  .nav-links > a { font-size: 1.15rem; padding: 0.9rem 0.75rem; }
  .nav-only-mobile { display: block; }
  .nav-login, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .ruta-intro { position: static; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hero-inner { gap: var(--sp-lg); }
}

/* ─────────────────────────────────────
   19. ACCESIBILIDAD E IMPRESIÓN
───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .estacion-num, .demo-sync .sync-ok, .hero-sub, .hero .btn-row, .hero-facts, .sobre-wrap { opacity: 1; transform: none; }
  .estaciones::before { transform: none; }
  .hero-title .w > span { transform: none; }
  .hero-campo { display: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
}

@media print {
  .nav, .chat-fab, .chat-panel, .theme-toggle, .cf-turnstile, .sobre-wrap { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section-dark, .footer { background: #fff !important; color: #000 !important; }
  .hero h1, .section-dark h2, .cta-final h2 { color: #000 !important; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}
