/* Estilos del sitio de presentación. Colores solo desde tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.oscuro :focus-visible { outline-offset: 0; box-shadow: 0 0 0 6px var(--on-carbon); }
main:focus { outline: none; }

.solo-lector {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.saltar {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand-deep);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-weight: 600;
}
.saltar:focus { top: var(--space-3); }

.contenedor { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px)  { .contenedor { padding: 0 var(--space-6); } }
@media (min-width: 1440px) { .contenedor { max-width: 1280px; } }

/* Las rejillas de una columna no deben crecer por palabras largas en 320 px */
.portada__rejilla, .duo, .doc, .rejilla, .pie__rejilla { grid-template-columns: minmax(0, 1fr); }
body { overflow-wrap: break-word; }


.icono { width: 24px; height: 24px; flex: none; }
.icono--sm { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }

.mono, code, data { font-family: var(--font-mono); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.boton--primario { background: var(--brand); color: var(--on-brand); border-color: var(--brand-deep); }
.boton--primario:hover, .boton--primario:active { background: var(--brand-hover); }
.boton--secundario { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.boton--secundario:hover { background: var(--surface-200); }
.boton--contorno-claro { background: transparent; color: var(--on-carbon); border-color: var(--on-carbon); }
.boton--contorno-claro:hover { background: var(--ink); }
.boton--grande { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.boton .icono { width: 20px; height: 20px; }

/* ---------- Cabecera y navegación ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-100);
  border-bottom: 1px solid var(--line);
}
.cabecera__barra { display: flex; align-items: center; gap: var(--space-4); min-height: 72px; }

.marca { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.marca img { width: 40px; height: 42px; }
.marca:hover { text-decoration: none; }

.boton-menu {
  margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; min-width: 44px; padding: 0 var(--space-3);
  background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  font: inherit; font-weight: 500; cursor: pointer;
}
.boton-menu__cerrar { display: none; }
.boton-menu[aria-expanded="true"] .boton-menu__abrir { display: none; }
.boton-menu[aria-expanded="true"] .boton-menu__cerrar { display: inline; }
.sin-js .boton-menu { display: none; }

.menu__lista { list-style: none; }
.menu__enlace {
  display: flex; align-items: center; gap: var(--space-1);
  min-height: 44px; padding: 0 var(--space-3);
  color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--radius-md);
}
.menu__enlace:hover { background: var(--surface-200); }
.menu__enlace[aria-current="page"] { background: var(--brand-tint); color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand-deep); }
.menu__acciones { display: flex; gap: var(--space-3); }

@media (max-width: 899.98px) {
  .menu {
    position: fixed; inset: 72px 0 auto 0; z-index: 49;
    max-height: calc(100dvh - 72px); overflow-y: auto;
    background: var(--surface-200); border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow-md);
    padding: var(--space-4);
    display: none;
  }
  .menu.abierto { display: block; }
  .sin-js .menu { position: static; display: block; box-shadow: none; }
  .sin-js .cabecera__barra { flex-wrap: wrap; }
  .menu__lista { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); }
  .menu__enlace { min-height: 48px; font-size: 17px; }
  .menu__acciones { flex-direction: column; }
  .menu__acciones .boton { width: 100%; min-height: 48px; }
  body.menu-abierto { overflow: hidden; }
}
@media (min-width: 900px) {
  .boton-menu { display: none; }
  .menu { display: flex; align-items: center; gap: var(--space-4); flex: 1; }
  .menu__lista { display: flex; gap: var(--space-1); margin-left: var(--space-4); }
  .menu__acciones { margin-left: auto; }
}
@media (min-width: 900px) and (max-width: 1023.98px) {
  .menu__lista li:last-child { display: none; }
}

/* ---------- Tipografía de secciones ---------- */
.seccion { padding: var(--space-8) 0; }
@media (min-width: 1024px) { .seccion { padding: 96px 0; } }
.seccion--hundida { background: var(--surface-200); }
.oscuro { background: var(--carbon); color: var(--on-carbon); }
.oscuro h1, .oscuro h2, .oscuro h3 { color: var(--on-carbon); }
.oscuro a:not(.boton) { color: var(--on-carbon); }

.antetitulo {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-deep);
  margin-bottom: var(--space-3);
}
.antetitulo::before { content: ""; width: 20px; height: 4px; border-radius: var(--radius-pill); background: var(--brand); }
.oscuro .antetitulo { color: var(--on-carbon); }

.titulo-seccion { font-size: 28px; line-height: 34px; letter-spacing: -0.01em; max-width: 24ch; }
@media (min-width: 768px) { .titulo-seccion { font-size: 34px; line-height: 40px; } }
.entradilla { margin-top: var(--space-4); font-size: 17px; line-height: 28px; color: var(--ink-muted); max-width: 62ch; }
.oscuro .entradilla { color: var(--on-carbon); }
.cabeza-seccion { margin-bottom: var(--space-7); }
.cabeza-seccion--centro { text-align: center; }
.cabeza-seccion--centro .titulo-seccion, .cabeza-seccion--centro .entradilla { margin-left: auto; margin-right: auto; }

/* ---------- Portada ---------- */
.portada { padding: var(--space-7) 0 var(--space-8); overflow: hidden; }
@media (min-width: 1024px) { .portada { padding: 88px 0 104px; } }
.portada__rejilla { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .portada__rejilla { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-8); } }
.portada h1 { font-size: 34px; line-height: 40px; letter-spacing: -0.015em; max-width: 18ch; }
@media (min-width: 480px)  { .portada h1 { font-size: 40px; line-height: 46px; } }
@media (min-width: 1024px) { .portada h1 { font-size: 52px; line-height: 58px; } }
.portada h1 .resalte { color: var(--brand); }
.portada__sub { margin-top: var(--space-5); font-size: 18px; line-height: 30px; max-width: 52ch; color: var(--on-carbon); }
.portada__acciones { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 479.98px) { .portada__acciones .boton { width: 100%; } }
.portada__nota { margin-top: var(--space-4); font-size: 14px; color: var(--on-carbon); display: flex; align-items: center; gap: var(--space-2); }
.portada__nota .icono { color: var(--brand); }

.zonas-banda { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); list-style: none; }
.zonas-banda li {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--on-carbon);
}
.zonas-banda .icono { width: 18px; height: 18px; color: var(--brand); }

/* Vista previa de producto (maqueta HTML de la app, no captura) */
.vista { position: relative; }
.vista__ventana {
  background: var(--surface-100); color: var(--ink);
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.vista__barra { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface-200); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.vista__puntos { display: flex; gap: 6px; }
.vista__puntos span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 1px solid var(--line-strong); }
.vista__cuerpo { padding: var(--space-5); display: grid; gap: var(--space-4); }
@media (max-width: 479.98px) { .vista__cuerpo { padding: var(--space-4); } }
.vista__etiqueta { position: absolute; top: -12px; right: var(--space-4); background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand-deep); border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; padding: 2px 10px; }

.examen-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.examen-cab__titulo { font-size: 15px; font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  border-radius: var(--radius-pill); padding: 3px 10px; font-size: 13px; font-weight: 500;
  background: var(--surface-200); color: var(--ink); border: 1px solid var(--line);
}
.chip .icono { width: 16px; height: 16px; }
.chip--marca { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand-deep); }
.chip--ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok); }
.chip--aviso { background: var(--warn-tint); color: var(--warn); border-color: var(--warn); }
.codigo-ata { font-family: var(--font-mono); font-size: 12px; font-weight: 500; background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1px 6px; color: var(--ink); }

.barra-progreso { height: 8px; border-radius: var(--radius-pill); background: var(--surface-200); border: 1px solid var(--line-strong); overflow: hidden; }
.barra-progreso span { display: block; height: 100%; background: var(--brand); border-right: 1px solid var(--brand-deep); }
.ancho-12 { width: 12%; } .ancho-35 { width: 35%; } .ancho-42 { width: 42%; } .ancho-64 { width: 64%; } .ancho-88 { width: 88%; } .ancho-100 { width: 100%; }

.pregunta { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.pregunta__texto { font-size: 15px; line-height: 23px; font-weight: 500; margin: var(--space-2) 0 var(--space-3); }
.opciones { list-style: none; display: grid; gap: var(--space-2); }
.opcion {
  display: flex; align-items: center; gap: var(--space-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 9px var(--space-3); font-size: 14px; line-height: 20px; background: var(--surface-raised);
}
.opcion__letra { font-family: var(--font-mono); font-size: 12px; font-weight: 500; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); flex: none; }
.opcion__estado { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-1); font-size: 13px; font-weight: 600; }
.opcion--ok { border-color: var(--ok); background: var(--ok-tint); }
.opcion--ok .opcion__letra { border-color: var(--ok); color: var(--ok); }
.opcion--ok .opcion__estado { color: var(--ok); }
.opcion--bad { border-color: var(--bad); background: var(--bad-tint); }
.opcion--bad .opcion__letra { border-color: var(--bad); color: var(--bad); }
.opcion--bad .opcion__estado { color: var(--bad); }
.opcion .icono { width: 18px; height: 18px; }
.explicacion { font-size: 13px; line-height: 20px; color: var(--ink-muted); border-left: 3px solid var(--brand-deep); padding-left: var(--space-3); }

/* ---------- Rejillas y tarjetas ---------- */
.rejilla { display: grid; gap: var(--space-5); list-style: none; padding: 0; }
@media (min-width: 768px)  { .rejilla--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px)  { .rejilla--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rejilla--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tarjeta { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.tarjeta h3 { font-size: 20px; line-height: 28px; }
.tarjeta p { color: var(--ink-muted); margin-top: var(--space-2); }

.zona { display: flex; flex-direction: column; gap: var(--space-3); }
.zona__cab { display: flex; align-items: center; gap: var(--space-4); }
.zona__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-200); border: 1px solid var(--line); padding: 4px; flex: none; }
.zona__codigo { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em; }
.lista-visto { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.lista-visto li { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--ink); font-size: 15px; line-height: 22px; }
.lista-visto .icono { width: 20px; height: 20px; color: var(--brand-deep); margin-top: 1px; }

.paso { position: relative; }
.paso__icono { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--brand); border: 1px solid var(--brand-deep); color: var(--on-brand); display: grid; place-items: center; margin-bottom: var(--space-4); }
.paso__num { position: absolute; top: var(--space-5); right: var(--space-5); font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.paso .lista-visto { margin-top: var(--space-4); }

/* Bloque producto: texto + maqueta */
.duo { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); } .duo--invertido > :first-child { order: 2; } }
.puntos { list-style: none; display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.puntos li { display: flex; gap: var(--space-4); }
.puntos__icono { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand-deep); border: 1px solid var(--brand-deep); display: grid; place-items: center; flex: none; }
.puntos h3 { font-size: 17px; line-height: 24px; }
.puntos p { color: var(--ink-muted); margin-top: 2px; font-size: 15px; }

.panel-avance { display: grid; gap: var(--space-4); }
.tema { display: grid; gap: var(--space-2); }
.tema__fila { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-size: 14px; }
.tema__nombre { display: flex; gap: var(--space-2); align-items: center; min-width: 0; }
.mini-tarjetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.mini { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
.mini__etq { font-size: 13px; color: var(--ink-muted); display: flex; align-items: center; gap: var(--space-1); }
.mini__etq .icono { width: 18px; height: 18px; }
.mini__valor { font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: var(--space-1); }
.mini__nota { font-size: 13px; color: var(--ink-muted); }

/* Banda de simuladores con foto de cabina */
.banda-foto { display: grid; }
@media (min-width: 1024px) { .banda-foto { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.banda-foto__img { aspect-ratio: 4 / 3; background: var(--ink); }
.banda-foto__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .banda-foto__img { aspect-ratio: auto; min-height: 520px; } }
.banda-foto__texto { padding: var(--space-8) var(--space-4); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px)  { .banda-foto__texto { padding: var(--space-8) var(--space-7); } }
@media (min-width: 1440px) { .banda-foto__texto { padding: var(--space-8) 96px; } }
.cifras { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); border-top: 1px solid var(--ink-muted); padding-top: var(--space-5); }
.cifras strong { display: block; font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--brand); }
.cifras span { font-size: 14px; color: var(--on-carbon); }

/* Planes sin precios: la fuente única es la app */
.planes { display: grid; gap: var(--space-6); align-items: center; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-sm); }
@media (min-width: 1024px) { .planes { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: var(--space-7); } }
.emblemas { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.emblemas li { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; font-size: 13px; font-weight: 500; }
.emblemas img { width: 56px; height: 56px; object-fit: contain; }
@media (max-width: 479.98px) { .emblemas { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-4); } .emblemas img { width: 48px; height: 48px; } }
.emblemas__gratis { background: var(--brand-tint); border: 1px solid var(--brand-deep); color: var(--brand-deep); border-radius: var(--radius-pill); padding: 0 8px; font-size: 11px; font-weight: 600; }
.planes__acciones { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: var(--space-3); }
.faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 56px; padding: var(--space-4) var(--space-5); font-weight: 600; font-size: 17px; line-height: 24px; border-radius: var(--radius-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--brand-deep); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.faq .respuesta { padding: var(--space-4) var(--space-5) var(--space-5); color: var(--ink-muted); max-width: 70ch; }
.faq .respuesta p + p { margin-top: var(--space-3); }

/* Llamada final */
.llamada { text-align: center; }
.llamada .titulo-seccion { margin: 0 auto; }
.llamada .entradilla { margin-left: auto; margin-right: auto; }
.llamada .portada__acciones { justify-content: center; }

.aviso {
  display: flex; gap: var(--space-3); align-items: flex-start;
  border: 1px solid var(--warn); background: var(--warn-tint); color: var(--ink);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 15px; line-height: 22px;
}
.aviso .icono { color: var(--warn); width: 20px; height: 20px; margin-top: 1px; }
.aviso--info { border-color: var(--link); background: var(--aerocoin-tint); }
.aviso--info .icono { color: var(--link); }
.aviso strong { font-weight: 600; }

/* ---------- Páginas interiores ---------- */
.cab-pagina { background: var(--surface-200); border-bottom: 1px solid var(--line); padding: var(--space-7) 0; }
@media (min-width: 1024px) { .cab-pagina { padding: var(--space-8) 0; } }
.cab-pagina h1 { font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
@media (min-width: 768px) { .cab-pagina h1 { font-size: 40px; line-height: 46px; } }
.cab-pagina .entradilla { color: var(--ink-muted); }
.fecha { margin-top: var(--space-3); font-size: 14px; color: var(--ink-muted); }

.lectura { font-size: 17px; line-height: 28px; max-width: 70ch; }
.lectura h2 { font-size: 22px; line-height: 30px; margin: var(--space-7) 0 var(--space-3); scroll-margin-top: 96px; }
.lectura h2:first-child { margin-top: 0; }
.lectura h3 { font-size: 18px; line-height: 26px; margin: var(--space-5) 0 var(--space-2); }
.lectura p + p, .lectura p + ul, .lectura ul + p, .lectura p + ol, .lectura ol + p { margin-top: var(--space-3); }
.lectura ul, .lectura ol { padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.lectura .aviso { margin: var(--space-4) 0; }

.doc { display: grid; gap: var(--space-7); padding-top: var(--space-7); padding-bottom: var(--space-8); }
@media (min-width: 1024px) { .doc { grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-8); align-items: start; } }
.indice { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
@media (min-width: 1024px) { .indice { position: sticky; top: 96px; } }
.indice h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: var(--space-2); font-family: var(--font-mono); font-weight: 500; }
.indice ol { list-style: none; display: grid; }
.indice a { display: block; padding: 6px var(--space-2); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 22px; }
.indice a:hover { background: var(--surface-200); text-decoration: underline; }

.tabla { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; margin: var(--space-3) 0; }
.tabla th, .tabla td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla th { background: var(--surface-200); font-weight: 600; }
.tabla-envoltura { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.tabla-envoltura .tabla { margin: 0; }

/* Desarrolladores */
.persona { display: flex; flex-direction: column; gap: var(--space-3); }
.persona__cab { display: flex; gap: var(--space-4); align-items: center; }
.persona__foto { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--surface-200); flex: none; }
.persona__iniciales { width: 80px; height: 80px; border-radius: 50%; background: var(--brand); border: 1px solid var(--brand-deep); color: var(--on-brand); display: grid; place-items: center; font-weight: 600; font-size: 24px; flex: none; }
.persona__rol { font-size: 14px; color: var(--brand-deep); font-weight: 600; }
.persona__enlaces { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.persona__enlaces a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; background: var(--surface-raised); }
.persona__enlaces a:hover { background: var(--surface-200); }
.persona__enlaces .icono { width: 18px; height: 18px; }

.vacio { text-align: center; padding: var(--space-7) var(--space-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-raised); }
.vacio .icono { margin: 0 auto var(--space-3); width: 32px; height: 32px; color: var(--ink-muted); }
.vacio p { color: var(--ink-muted); max-width: 52ch; margin: var(--space-2) auto 0; }

.pila { list-style: none; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pila li { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
.pila strong { display: block; font-size: 16px; }
.pila span { font-size: 14px; color: var(--ink-muted); }

/* Error 404 */
.error { padding: var(--space-8) 0; text-align: center; }
.error__codigo { font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); letter-spacing: 0.06em; }
.error h1 { font-size: 32px; line-height: 38px; margin-top: var(--space-2); }
.error p { color: var(--ink-muted); max-width: 52ch; margin: var(--space-4) auto 0; }
.error .portada__acciones { justify-content: center; }

/* ---------- Pie ---------- */
.pie { background: var(--carbon); color: var(--on-carbon); padding: var(--space-8) 0 var(--space-5); }
.pie a { color: var(--on-carbon); }
.pie :focus-visible { outline-offset: 0; box-shadow: 0 0 0 6px var(--on-carbon); }
.pie__rejilla { display: grid; gap: var(--space-6); }
@media (min-width: 768px)  { .pie__rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pie__marca { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .pie__rejilla { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .pie__marca { grid-column: auto; } }
.pie__marca { display: grid; gap: var(--space-3); align-content: start; }
.marca--pie { color: var(--on-carbon); }
.pie__marca p { font-size: 15px; max-width: 36ch; }
.pie__correo { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.pie__titulo { font-family: var(--font-mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-carbon); margin-bottom: var(--space-2); }
.pie__nav ul { list-style: none; display: grid; }
.pie__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.pie__legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--ink-muted); display: grid; gap: var(--space-2); font-size: 14px; }
@media (min-width: 1024px) { .pie__legal { grid-template-columns: 1fr auto; gap: var(--space-6); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .boton, .menu__enlace, .persona__enlaces a { transition: background-color .15s ease; }
}

/* ---------- Ventas: confianza, prueba, comparativa, escuelas, CTA fija ---------- */
.confianza { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); font-size: 15px; }
.confianza li { display: inline-flex; align-items: center; gap: var(--space-2); }
.confianza .icono { width: 20px; height: 20px; color: var(--brand); }
.confianza--claro .icono { color: var(--brand-deep); }
.portada__nota--centro { justify-content: center; }

.zonas-selector { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.zonas-selector__boton {
  min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.zonas-selector__boton:hover { background: var(--surface-200); }
.zonas-selector__boton[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand-deep); }
.sin-js .zonas-selector { display: none; }

.prueba { display: grid; gap: var(--space-4); }
.prueba[hidden] { display: none; }
fieldset.pregunta { margin: 0; min-width: 0; }
.pregunta__leyenda { padding: 0; display: grid; gap: var(--space-2); justify-items: start; margin-bottom: var(--space-3); }
.pregunta__leyenda .pregunta__texto { margin: 0; }
button.opcion {
  width: 100%; min-height: 44px; text-align: left; cursor: pointer;
  font: inherit; font-size: 14px; line-height: 20px; color: var(--ink);
}
button.opcion:hover:not(:disabled) { background: var(--brand-tint); border-color: var(--brand-deep); }
button.opcion:hover:not(:disabled) .opcion__letra { background: var(--brand); border-color: var(--brand-deep); color: var(--on-brand); }
button.opcion:disabled { cursor: default; color: var(--ink); opacity: 1; }
.opcion__estado { display: none; }
.opcion--ok .opcion__estado--ok, .opcion--bad .opcion__estado--bad { display: inline-flex; }
button.opcion.opcion--ok { border-color: var(--ok); background: var(--ok-tint); box-shadow: inset 0 0 0 1px var(--ok); }
button.opcion.opcion--bad { border-color: var(--bad); background: var(--bad-tint); box-shadow: inset 0 0 0 1px var(--bad); }
button.opcion.opcion--ok .opcion__letra { border-color: var(--ok); color: var(--ok); }
button.opcion.opcion--bad .opcion__letra { border-color: var(--bad); color: var(--bad); }
.prueba__indicacion { font-size: 14px; color: var(--ink-muted); }
.prueba--acierto .prueba__indicacion, .prueba--fallo .prueba__indicacion { display: none; }
.prueba__resultado { display: none; gap: var(--space-3); justify-items: start; }
.prueba--acierto .prueba__resultado, .prueba--fallo .prueba__resultado { display: grid; }
.prueba__veredicto { display: none; align-items: center; gap: var(--space-2); font-weight: 600; }
.prueba__veredicto .icono { width: 20px; height: 20px; }
.prueba--acierto .prueba__veredicto--ok { display: flex; color: var(--ok); }
.prueba--fallo .prueba__veredicto--bad { display: flex; color: var(--bad); }
.prueba__cta-texto { font-size: 14px; color: var(--ink-muted); }

.comparativa { display: grid; gap: var(--space-5); max-width: 980px; margin: 0 auto; }
@media (min-width: 768px) { .comparativa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.comparativa__col { border-radius: var(--radius-lg); padding: var(--space-5); border: 1px solid var(--line); background: var(--surface-200); display: grid; gap: var(--space-4); align-content: start; }
.comparativa__col--marca { background: var(--surface-raised); border: 2px solid var(--brand-deep); box-shadow: var(--shadow-md); }
.comparativa__titulo { font-size: 20px; line-height: 28px; display: flex; align-items: center; gap: var(--space-2); }
.comparativa__titulo img { width: 28px; height: 29px; }
.comparativa__lista { list-style: none; display: grid; gap: var(--space-3); }
.comparativa__lista li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 16px; line-height: 24px; }
.comparativa__lista .icono { width: 20px; height: 20px; margin-top: 2px; }
.comparativa__col:not(.comparativa__col--marca) li { color: var(--ink-muted); }
.comparativa__col:not(.comparativa__col--marca) .icono { color: var(--ink-soft); }
.comparativa__col--marca .icono { color: var(--brand-deep); }
.comparativa__col--marca .boton { justify-self: start; margin-top: var(--space-2); }

.zona__cta { margin-top: auto; align-self: flex-start; }
.zona { height: 100%; }

.puntos--tarjeta { margin-top: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }

.testimonio blockquote { margin: 0; font-size: 17px; line-height: 28px; color: var(--ink); }
.testimonio__autor { margin-top: var(--space-4); font-size: 14px; }

.pasos-inicio { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6); margin: var(--space-6) 0 0; }
.pasos-inicio li { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: 500; }
.pasos-inicio__num { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; }

.cta-fija {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--carbon); color: var(--on-carbon); border-top: 1px solid var(--ink-muted);
}
.cta-fija[hidden] { display: none; }
.cta-fija p { display: grid; line-height: 1.3; font-size: 14px; }
.cta-fija strong { font-size: 16px; }
.cta-fija :focus-visible { outline-offset: 0; box-shadow: 0 0 0 6px var(--on-carbon); }
@media (min-width: 900px) { .cta-fija, .cta-fija[hidden] { display: none; } }

@media (max-width: 379.98px) {
  .portada h1 { font-size: 30px; line-height: 36px; }
  .titulo-seccion, .cab-pagina h1 { font-size: 26px; line-height: 32px; }
  .tarjeta { padding: var(--space-4); }
}

.codigo-ata, .chip { white-space: nowrap; }
.tema__fila { flex-wrap: wrap; row-gap: var(--space-1); }
@media (max-width: 479.98px) {
  .opcion { flex-wrap: wrap; }
  .opcion__estado { flex-basis: 100%; margin-left: 36px; }
  .vista__cuerpo { padding: var(--space-3); }
  .pregunta { padding: var(--space-3); }
}

/* La leyenda va dentro de la tarjeta, no sobre su borde */
.pregunta__leyenda { float: left; width: 100%; }
.pregunta__leyenda + * { clear: both; }
.opcion__texto { flex: 1 1 0; min-width: 0; }

/* =====================================================================
   Movimiento. Todo usa transform y opacity (sin saltos de maquetación) y
   desaparece con prefers-reduced-motion: reduce.
   ===================================================================== */
:root {
  --curva-salida: cubic-bezier(0.16, 1, 0.3, 1);
  --curva-suave: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Barra de lectura: vuelo.js fija su escala según el desplazamiento */
.progreso-lectura {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px;
  background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* Cabecera que se compacta al bajar */
.cabecera { transition: box-shadow .3s ease, background-color .3s ease; }
.cabecera__barra { transition: min-height .3s var(--curva-salida); }
.cabecera--compacta { box-shadow: var(--shadow-md); }
@media (min-width: 900px) { .cabecera--compacta .cabecera__barra { min-height: 60px; } }

/* Ruta de vuelo en la portada */
.portada { position: relative; isolation: isolate; }
.portada > .contenedor { position: relative; z-index: 1; }
.ruta-vuelo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ruta-vuelo path { fill: none; stroke: var(--brand); stroke-linecap: round; }
.ruta-vuelo__guia { stroke-width: 1.5; stroke-dasharray: 2 12; opacity: .28; }
.ruta-vuelo__trazo { stroke-width: 2.5; opacity: 0; stroke-dasharray: .06 .94; stroke-dashoffset: 1.06; }
.ruta-vuelo__avion { fill: var(--on-carbon); opacity: 0; transition: opacity 1.2s ease; }
.ruta-vuelo__punto { fill: var(--brand); opacity: .9; }
@media (max-width: 1023.98px) { .ruta-vuelo { opacity: .6; } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .cabecera { view-transition-name: cabecera; }
  ::view-transition-old(root) { animation: .22s ease both salir-vista; }
  ::view-transition-new(root) { animation: .38s var(--curva-salida) both entrar-vista; }

  @supports (animation-timeline: scroll()) {
    .banda-foto__img { overflow: hidden; }
    .banda-foto__img img { animation: acercar linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }

  /* Entrada de la portada */
  .animar .portada .contenedor > div:first-child > * { animation: subir .9s var(--curva-salida) both; }
  .animar .portada .contenedor > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .animar .portada .contenedor > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .animar .portada .contenedor > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .animar .portada .contenedor > div:first-child > :nth-child(5) { animation-delay: .32s; }
  .animar .portada .vista { animation: entrar-vista-producto 1.1s var(--curva-salida) .25s both; }
  .animar .portada h1 .resalte {
    background-image: linear-gradient(var(--brand), var(--brand));
    background-repeat: no-repeat; background-position: 0 100%; background-size: 0 3px;
    animation: subrayar 1s var(--curva-salida) .9s forwards;
  }
  .animar .ruta-vuelo__guia { animation: aparecer 1.6s ease .3s both; }
  .animar .ruta-vuelo__punto { transform-box: fill-box; transform-origin: center; animation: latido 2.4s ease-in-out 1.4s infinite; }

  /* Aparición al desplazarse */
  /* La aparición usa translate y no transform, para no pisar el transform de los efectos al pasar el cursor */
  .animar .revelar {
    opacity: 0; translate: 0 24px;
    transition: opacity .8s var(--curva-salida), translate .8s var(--curva-salida),
                transform .35s var(--curva-salida), box-shadow .35s var(--curva-salida), border-color .35s ease;
    transition-delay: var(--retraso, 0ms), var(--retraso, 0ms), 0s, 0s, 0s;
  }
  .animar .revelar.visible { opacity: 1; translate: none; }
  .animar .revelar.desde-arriba:not(.visible) { translate: 0 -24px; }

  /* Hijos que entran en cascada cuando su contenedor aparece */
  .animar .revelar .comparativa__lista li,
  .animar .revelar .emblemas li,
  .animar .revelar .puntos li,
  .animar .revelar .lista-visto li {
    opacity: 0; translate: -10px 0;
    transition: opacity .6s var(--curva-salida), translate .6s var(--curva-salida), scale .6s var(--curva-salida);
  }
  .animar .revelar .emblemas li { translate: 0 14px; scale: .9; }
  .animar .revelar.visible .comparativa__lista li,
  .animar .revelar.visible .emblemas li,
  .animar .revelar.visible .puntos li,
  .animar .revelar.visible .lista-visto li { opacity: 1; translate: none; scale: none; }
  .animar .revelar.visible :is(.comparativa__lista, .emblemas, .puntos, .lista-visto) li:nth-child(1) { transition-delay: calc(var(--retraso, 0ms) + .15s); }
  .animar .revelar.visible :is(.comparativa__lista, .emblemas, .puntos, .lista-visto) li:nth-child(2) { transition-delay: calc(var(--retraso, 0ms) + .23s); }
  .animar .revelar.visible :is(.comparativa__lista, .emblemas, .puntos, .lista-visto) li:nth-child(3) { transition-delay: calc(var(--retraso, 0ms) + .31s); }
  .animar .revelar.visible :is(.comparativa__lista, .emblemas, .puntos, .lista-visto) li:nth-child(4) { transition-delay: calc(var(--retraso, 0ms) + .39s); }
  .animar .revelar.visible :is(.comparativa__lista, .emblemas, .puntos, .lista-visto) li:nth-child(5) { transition-delay: calc(var(--retraso, 0ms) + .47s); }
  .animar .revelar.visible :is(.comparativa__lista, .emblemas, .puntos, .lista-visto) li:nth-child(6) { transition-delay: calc(var(--retraso, 0ms) + .55s); }

  /* Barras de progreso que se llenan al verse */
  .barra-progreso span { transform-origin: 0 50%; transition: transform 1.4s var(--curva-salida) .3s; }
  .animar .vista:not(.visible) .barra-progreso span { transform: scaleX(0); }
  .animar .vista.visible .tema:nth-child(2) .barra-progreso span { transition-delay: .45s; }
  .animar .vista.visible .tema:nth-child(3) .barra-progreso span { transition-delay: .6s; }
  .animar .vista.visible .tema:nth-child(4) .barra-progreso span { transition-delay: .75s; }

  /* Vistas de producto con perspectiva */
  .vista { perspective: 1200px; }
  .vista__ventana {
    transform: rotateX(var(--giro-x, 0deg)) rotateY(var(--giro-y, 0deg));
    transition: transform .6s var(--curva-salida), box-shadow .6s var(--curva-salida);
    will-change: transform;
  }
  .vista__etiqueta { z-index: 2; }

  /* Microinteracciones */
  .boton { transition: background-color .2s ease, transform .2s var(--curva-salida), box-shadow .2s var(--curva-salida), border-color .2s ease; }
  .boton .icono { transition: transform .25s var(--curva-salida); }
  .boton:active { transform: translateY(0) scale(.98); }
  @media (hover: hover) {
    .boton--primario:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(70, 96, 4, .28); }
    .boton--secundario:hover, .boton--contorno-claro:hover { transform: translateY(-2px); }
    .boton:hover .icono { transform: translateX(3px); }
    .zona, .paso, .persona, .pila li, .mini {
      transition: transform .35s var(--curva-salida), box-shadow .35s var(--curva-salida), border-color .35s ease;
    }
    .zona:hover, .paso:hover, .persona:hover, .pila li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
    .zona__avatar { transition: transform .5s var(--curva-salida); }
    .zona:hover .zona__avatar { transform: scale(1.08) rotate(-4deg); }
    .paso__icono { transition: transform .5s var(--curva-salida); }
    .paso:hover .paso__icono { transform: translateY(-3px) rotate(-6deg); }
    .emblemas img { transition: transform .4s var(--curva-salida); }
    .emblemas li:hover img { transform: translateY(-6px) scale(1.08); }
    .menu__enlace { transition: background-color .2s ease, box-shadow .2s ease; }
    .comparativa__col--marca { transition: transform .4s var(--curva-salida), box-shadow .4s var(--curva-salida); }
    .comparativa__col--marca:hover { transform: translateY(-4px); }
    button.opcion:not(:disabled) { transition: background-color .15s ease, border-color .15s ease, transform .2s var(--curva-salida); }
    button.opcion:hover:not(:disabled) { transform: translateX(4px); }
  }

  /* Respuesta de la pregunta de muestra */
  .prueba:not([hidden]) { animation: aparecer-suave .35s var(--curva-salida); }
  .opcion--ok { animation: acierto .7s var(--curva-salida); }
  .opcion--bad { animation: sacudir .45s var(--curva-suave); }
  .opcion--ok .opcion__estado--ok, .opcion--bad .opcion__estado--bad { animation: entrar-estado .4s var(--curva-salida) .1s both; }
  .prueba--acierto .prueba__resultado, .prueba--fallo .prueba__resultado { animation: subir .6s var(--curva-salida) .15s both; }
  .zonas-selector__boton { transition: background-color .2s ease, border-color .2s ease, transform .2s var(--curva-salida); }
  .zonas-selector__boton:active { transform: scale(.96); }

  /* Preguntas frecuentes que se abren con suavidad */
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--curva-salida), content-visibility .4s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
  .faq summary::after { transition: transform .3s var(--curva-salida); }
  .faq details[open] summary::after { transform: rotate(180deg); }

  /* Barra fija de móvil y menú */
  .cta-fija:not([hidden]) { animation: subir-barra .4s var(--curva-salida); }
  .menu.abierto { animation: bajar-menu .3s var(--curva-salida); }
}

@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes aparecer-suave { from { opacity: 0; transform: translateY(8px); } }
@keyframes entrar-vista-producto { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes subrayar { to { background-size: 100% 3px; } }
@keyframes estela { from { stroke-dashoffset: 1.06; } to { stroke-dashoffset: .06; } }
@keyframes latido { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.8); opacity: .35; } }
@keyframes acercar { from { transform: scale(1.14) translateY(-3%); } to { transform: scale(1) translateY(3%); } }
@keyframes acierto {
  0% { box-shadow: inset 0 0 0 1px var(--ok), 0 0 0 0 var(--ok-tint); transform: scale(1); }
  35% { transform: scale(1.025); }
  100% { box-shadow: inset 0 0 0 1px var(--ok), 0 0 0 10px transparent; transform: scale(1); }
}
@keyframes sacudir { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes entrar-estado { from { opacity: 0; transform: translateX(8px); } }
@keyframes subir-barra { from { transform: translateY(100%); } }
@keyframes bajar-menu { from { opacity: 0; transform: translateY(-8px); } }
@keyframes salir-vista { to { opacity: 0; } }
@keyframes entrar-vista { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Portada a pantalla completa, cabecera inteligente y avión ---------- */
.portada { min-height: calc(100svh - 72px); display: flex; align-items: center; }
.portada > .contenedor { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .animar .cabecera { transition: transform .5s var(--curva-salida), box-shadow .3s ease, background-color .3s ease; }
  .animar .cabecera--oculta { transform: translateY(-100%); box-shadow: none; }

  .ruta-vuelo--volando .ruta-vuelo__avion { opacity: .9; }
  .ruta-vuelo--volando .ruta-vuelo__trazo { opacity: .7; animation: estela 16s linear infinite; }
  .ruta-vuelo--pausa .ruta-vuelo__trazo, .ruta-vuelo--pausa .ruta-vuelo__punto { animation-play-state: paused; }

}

/* ---------- Avión que acompaña el desplazamiento (vuelo.js) ---------- */
.vuelo {
  position: fixed; top: 112px; bottom: 40px; right: 16px; width: 60px; z-index: 30;
  pointer-events: none; display: none; opacity: 0; translate: 16px 0;
  transition: opacity .7s ease, translate .9s var(--curva-salida);
}
@media (min-width: 1280px) { .animar .vuelo { display: block; } }
.vuelo--visible { opacity: 1; translate: 0 0; }
.vuelo__ruta { display: block; width: 100%; height: 100%; overflow: visible; }
.vuelo__guia { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 7; opacity: .75; }
.vuelo__halo { fill: none; stroke: var(--surface-raised); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; }
.vuelo__hecho { fill: none; stroke: var(--brand-deep); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.vuelo__escala {
  fill: var(--surface-raised); stroke: var(--line-strong); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center; transition: fill .4s ease, stroke .4s ease;
}
.vuelo__escala--pasada { fill: var(--brand); stroke: var(--brand-deep); animation: escala .6s var(--curva-salida); }
.vuelo__avion {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; will-change: transform;
  background: var(--brand); border: 1px solid var(--brand-deep);
  box-shadow: 0 0 0 4px rgba(244, 243, 236, .55), 0 8px 20px rgba(33, 33, 33, .3);
}
.vuelo__icono { width: 20px; height: 20px; fill: var(--on-brand); will-change: transform; }
.vuelo__etiqueta {
  position: absolute; right: 48px; top: 50%; translate: 0 -50%; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  background: var(--carbon); color: var(--on-carbon); padding: 7px 12px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md); display: none;
}
@media (min-width: 1600px) { .vuelo__etiqueta:not(:empty) { display: block; } }
.vuelo__etiqueta--cambio { animation: etiqueta .45s var(--curva-salida); }

.progreso-avion {
  position: fixed; top: 0; left: 0; z-index: 61; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; opacity: 0; will-change: transform;
  background: var(--brand); border: 1px solid var(--brand-deep); box-shadow: var(--shadow-md);
  transition: opacity .4s ease;
}
.progreso-avion--visible { opacity: 1; }
.progreso-avion__icono { width: 13px; height: 13px; fill: var(--on-brand); transition: transform .45s var(--curva-salida); }
.progreso-avion--atras .progreso-avion__icono { transform: rotate(180deg); }
.sin-js .progreso-avion, .sin-js .vuelo { display: none; }
@media (min-width: 1280px) { .progreso-avion { display: none; } }

@keyframes escala { 0% { transform: scale(1); } 40% { transform: scale(2); } 100% { transform: scale(1); } }
@keyframes etiqueta { from { opacity: 0; translate: 8px -50%; } to { opacity: 1; translate: 0 -50%; } }

/* =====================================================================
   Refinamiento visual: profundidad, ritmo y jerarquía. Los colores salen de
   tokens.css (las mezclas con color-mix parten de ellos) y no hay recursos externos.
   ===================================================================== */
::selection { background: var(--brand); color: var(--on-brand); }
.boton--primario { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface-raised) 45%, transparent); }
.boton--fantasma { background: transparent; color: var(--ink); border-color: transparent; }
.boton--fantasma:hover { background: var(--surface-200); }
.tarjeta { border-radius: var(--radius-xl); }

/* Cabecera de cristal: el desenfoque va en un pseudoelemento para no alterar el menú fijo de móvil */
@supports (backdrop-filter: blur(1px)) and (background: color-mix(in srgb, red, blue)) {
  .cabecera { background: transparent; }
  .cabecera::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: color-mix(in srgb, var(--surface-100) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  }
}

/* Títulos de sección más rotundos */
.titulo-seccion { text-wrap: balance; }
@media (min-width: 480px) { .titulo-seccion { font-size: clamp(28px, 2.2vw + 14px, 42px); line-height: 1.16; letter-spacing: -0.02em; } }
.tarjeta .titulo-seccion { font-size: 26px; line-height: 32px; letter-spacing: -0.01em; }
.entradilla { text-wrap: pretty; }

/* ---------- Portada: fondo con profundidad ---------- */
.portada.oscuro, .llamada.oscuro {
  background:
    radial-gradient(60% 75% at 82% 18%, color-mix(in srgb, var(--brand) 17%, transparent), transparent 62%),
    radial-gradient(45% 55% at 0% 100%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 65%),
    var(--carbon);
}
.portada::before, .llamada::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--on-carbon) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--on-carbon) 7%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 38%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 72% 38%, #000 8%, transparent 72%);
}

.insignia {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-5);
  padding: 7px 16px 7px 12px; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-carbon);
}
.insignia__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }

.portada h1 { letter-spacing: -0.025em; text-wrap: balance; }
@media (min-width: 1024px) { .portada h1 { font-size: clamp(46px, 3.7vw, 56px); line-height: 1.07; max-width: none; } }
.portada__sub { color: color-mix(in srgb, var(--on-carbon) 84%, transparent); }
.portada .boton--primario { box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 28%, transparent), inset 0 1px 0 color-mix(in srgb, var(--surface-raised) 45%, transparent); }
.portada .confianza { color: color-mix(in srgb, var(--on-carbon) 84%, transparent); }

/* Maqueta de producto: más volumen, brillo y tarjetas que flotan */
.vista__ventana {
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent);
}
.vista::before {
  content: ""; position: absolute; inset: 6% -4%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 20%, transparent), transparent);
  filter: blur(28px);
}
.vista { isolation: isolate; }
.seccion--hundida .vista::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent); }

.flota {
  display: none; position: absolute; z-index: 3; align-items: center; gap: var(--space-3);
  padding: 10px 18px 10px 10px; background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) { .flota { display: flex; } }
.flota__icono { width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-deep); border: 1px solid var(--brand-deep); }
.flota strong { display: block; font-size: 17px; line-height: 1.15; }
.flota small { display: block; font-size: 12px; line-height: 1.3; color: var(--ink-muted); }
.flota--racha { left: -40px; top: -26px; }
.flota--simulacro { right: -20px; bottom: -56px; }
@media (prefers-reduced-motion: no-preference) {
  .flota { animation: flotar 6s ease-in-out infinite; }
  .flota--simulacro { animation-delay: -3s; }
  .insignia__punto { animation: pulso 2.4s ease-in-out infinite; }
}
@keyframes flotar { 50% { transform: translateY(-8px); } }
@keyframes pulso { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 6%, transparent); } }

/* ---------- Franja de capacidades, solapada con la portada ---------- */
.franja { position: relative; z-index: 2; margin-top: -36px; }
.franja__lista {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}
.franja__lista li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); background: var(--surface-raised); }
.franja__lista li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.franja__lista strong { display: block; font-size: 15px; line-height: 22px; }
.franja__lista li > span:last-child > span { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.franja .puntos__icono { width: 40px; height: 40px; }
@media (max-width: 479.98px) { .franja__lista li { flex-direction: column; gap: var(--space-2); } }
@media (min-width: 768px) {
  .franja { margin-top: -48px; }
  .franja__lista { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .franja__lista li { flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
  .franja__lista li:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1024px) {
  .franja { margin-top: -56px; }
  .franja__lista li { padding: var(--space-5); }
}

/* ---------- Secciones ---------- */
.comparativa__col { border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5); }
.comparativa__col--marca { background: linear-gradient(180deg, var(--surface-raised), color-mix(in srgb, var(--brand-tint) 55%, var(--surface-raised))); box-shadow: var(--shadow-lg); }

.zona { position: relative; overflow: hidden; }
.zona::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--curva-salida);
}
.zona:hover::before, .zona:focus-within::before { transform: scaleX(1); }
.zona__avatar { width: 72px; height: 72px; box-shadow: 0 0 0 3px var(--brand-tint); }
.zona__codigo {
  display: inline-block; margin-bottom: var(--space-1); padding: 1px 10px; border-radius: var(--radius-pill);
  background: var(--brand-tint); color: var(--brand-deep); border: 1px solid var(--brand-deep); font-weight: 500;
}

.paso__num {
  top: var(--space-4); right: var(--space-5); font-size: 52px; line-height: 1; font-weight: 500; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong);
}
.paso__num + h3 { margin-top: var(--space-6); }
@media (min-width: 1024px) {
  ol.rejilla--3 > .paso:not(:last-child)::after {
    content: ""; position: absolute; top: calc(var(--space-5) + 24px); left: 100%; width: var(--space-5);
    border-top: 2px dashed var(--brand-deep); opacity: .5;
  }
  ol.rejilla--3 > .paso:has(.paso__num + h3)::after { display: none; }
}

.banda-foto__img { position: relative; }
.banda-foto__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--carbon), transparent 45%); }
@media (min-width: 1024px) { .banda-foto__img::after { background: linear-gradient(90deg, transparent 55%, var(--carbon)); } }
.cifras strong { font-size: 34px; line-height: 1.1; }

/* Planes: encabezado en dos columnas y escalera de emblemas */
.planes { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  background: radial-gradient(50% 70% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), var(--surface-raised); }
@media (min-width: 1024px) { .planes { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-7) var(--space-8); } }
.planes__lado { display: grid; gap: var(--space-5); align-content: center; }
.planes__lado .confianza { display: grid; margin-top: 0; gap: var(--space-3); padding: var(--space-5); background: color-mix(in srgb, var(--surface-200) 70%, transparent); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.planes__lado .planes__acciones { margin-top: 0; }
.emblemas { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: var(--space-3); }
@media (min-width: 640px) { .emblemas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.emblemas li { padding: var(--space-4) var(--space-3); background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 14px; }
.emblemas li:first-child { background: var(--brand-tint); border-color: var(--brand-deep); }
.emblemas img { width: 104px; height: 81px; object-fit: contain; }
.emblemas li:first-child img { width: 64px; height: 64px; }
@media (max-width: 479.98px) { .emblemas img { width: 64px; height: 52px; } .emblemas li:first-child img { width: 52px; height: 52px; } }
.emblemas__gratis { font-size: 12px; }
@media (min-width: 768px) {
  .emblemas li:nth-child(2) { padding-top: calc(var(--space-4) + 20px); }
  .emblemas li:nth-child(3) { padding-top: calc(var(--space-4) + 40px); }
  .emblemas li:nth-child(4) { padding-top: calc(var(--space-4) + 60px); }
  .emblemas li:nth-child(5) { padding-top: calc(var(--space-4) + 80px); }
}

/* Preguntas frecuentes: título fijo a un lado y respuestas al otro */
.faq-bloque { display: grid; gap: var(--space-6); }
.faq-bloque .faq { max-width: none; margin: 0; }
.faq-bloque__cab .planes__acciones { margin-top: var(--space-5); }
@media (min-width: 1024px) {
  .faq-bloque { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: var(--space-8); align-items: start; }
  .faq-bloque__cab { position: sticky; top: 112px; }
}
.faq details { border-radius: var(--radius-xl); transition: border-color .3s ease, box-shadow .3s ease; }
.faq details[open] { border-color: var(--brand-deep); box-shadow: var(--shadow-md); }
.faq summary { border-radius: var(--radius-xl); }
.faq details[open] summary { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.faq summary:hover { background: var(--surface-200); }

/* Llamada final */
.llamada { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0; }
.llamada > .contenedor { position: relative; z-index: 1; }
.llamada::before { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 5%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 5%, transparent 70%); }
.llamada.oscuro { background: radial-gradient(60% 90% at 50% 115%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 70%), var(--carbon); }
.llamada .titulo-seccion { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.1; max-width: 20ch; }
.pasos-inicio li { padding: 8px 20px 8px 8px; border: 1px solid color-mix(in srgb, var(--on-carbon) 24%, transparent); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--on-carbon) 5%, transparent); }

/* ---------- Páginas interiores ---------- */
.cab-pagina { position: relative; overflow: hidden; isolation: isolate; }
.cab-pagina::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 120% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 120% at 100% 0%, #000, transparent 70%);
}
.cab-pagina::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 560px; height: 560px; right: -140px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 32%, transparent), transparent);
}
.cab-pagina h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
.cab-pagina .entradilla { font-size: 19px; line-height: 30px; }

.error { position: relative; overflow: hidden; isolation: isolate; }
.error::before {
  content: "404"; content: "404" / ""; display: block; font-family: var(--font-mono); font-weight: 500; line-height: 1;
  font-size: clamp(96px, 18vw, 200px); color: transparent; -webkit-text-stroke: 2px var(--line-strong);
}
.error::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: -120px; width: 640px; height: 640px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 28%, transparent), transparent);
}

/* ---------- Pie ---------- */
.pie { border-top: 1px solid color-mix(in srgb, var(--on-carbon) 14%, transparent); }
.pie__nav a { text-decoration-color: color-mix(in srgb, var(--on-carbon) 40%, transparent); }
.pie__nav a:hover { text-decoration-color: var(--brand); }

@media (max-width: 479.98px) {
  .mini { padding: var(--space-3); }
  .mini__valor { font-size: 22px; white-space: nowrap; }
}

@media (max-width: 899.98px) {
  .menu__acciones .boton--fantasma { border-color: var(--line-strong); }
}

/* =====================================================================
   Adaptación a dispositivos: móviles pequeños, tablets, horizontal, pantallas grandes e impresión.
   ===================================================================== */
:root { color-scheme: light; }
a, button, summary, .boton { touch-action: manipulation; -webkit-tap-highlight-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.portada { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); }
.indice a { display: flex; align-items: center; min-height: 44px; }

/* Portada con tipografía fluida en una columna */
@media (max-width: 1023.98px) {
  .portada h1 { font-size: clamp(32px, 7vw, 56px); line-height: 1.1; }
}

/* Tablet: maquetas centradas y sin tarjeta huérfana en rejillas de dos columnas */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .portada .vista, .duo .vista { width: 100%; max-width: 640px; margin-inline: auto; }
  .rejilla--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Móviles muy estrechos (plegables cerrados, 280-320 px) */
@media (max-width: 359.98px) {
  .contenedor { padding: 0 var(--space-3); }
  .insignia { letter-spacing: .04em; font-size: 11px; padding-right: 12px; }
  .boton { padding-inline: 14px; }
  .faq summary { padding: var(--space-3) var(--space-4); font-size: 16px; }
  .faq .respuesta { padding: var(--space-3) var(--space-4) var(--space-4); }
  .pasos-inicio { gap: var(--space-2); }
  .pasos-inicio li { font-size: 14px; }
}

/* Móvil en horizontal: poca altura, así que cabecera y secciones más bajas */
@media (max-height: 500px) and (orientation: landscape) {
  html { scroll-padding-top: 64px; }
  .cabecera__barra { min-height: 56px; }
  .menu { inset: 56px 0 auto 0; max-height: calc(100dvh - 56px); }
  .portada { min-height: 0; padding: var(--space-6) 0 var(--space-8); }
  .seccion { padding: 48px 0; }
  .llamada { padding: 64px 0; }
  .franja { margin-top: -32px; }
}

/* Pantallas grandes: el contenido crece en vez de quedar pequeño en el centro */
@media (min-width: 1920px) {
  .contenedor { max-width: 1400px; }
  .portada h1 { font-size: clamp(56px, 3.3vw, 72px); }
  .portada__sub { font-size: 20px; line-height: 32px; max-width: 54ch; }
  .entradilla { font-size: 19px; line-height: 30px; }
  .titulo-seccion { font-size: 46px; }
  .tarjeta .titulo-seccion { font-size: 28px; }
}
@media (min-width: 2400px) {
  .contenedor { max-width: 1560px; }
  .portada h1 { font-size: 80px; }
  .seccion { padding: 128px 0; }
}

/* Impresión: sin cabecera, avión ni adornos, en blanco y negro legible */
@media print {
  .cabecera, .vuelo, .progreso-avion, .progreso-lectura, .cta-fija, .ruta-vuelo, .flota, .franja, .pie__rejilla, .saltar { display: none !important; }
  body, .oscuro, .seccion--hundida, .cab-pagina, .pie { background: #fff !important; color: #000 !important; }
  .oscuro h1, .oscuro h2, .oscuro h3, .oscuro a:not(.boton), .pie a { color: #000 !important; }
  .portada::before, .llamada::before, .cab-pagina::before, .cab-pagina::after { display: none; }
  .revelar, .revelar * { opacity: 1 !important; translate: none !important; }
  .tarjeta, .faq details, .planes { box-shadow: none; break-inside: avoid; }
  .faq details::details-content { content-visibility: visible; block-size: auto; }
  a[href^="http"]:not(.boton)::after { content: " (" attr(href) ")"; font-size: 12px; word-break: break-all; }
}
