@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Letra de reserva calibrada: mientras llega Archivo (o si no llega), la letra del sistema ocupa lo mismo.
   size-adjust = ancho de Archivo / ancho de Arial en cada peso y anchura (medido en Chromium con una frase
   de la página); ascent/descent = métricas de Archivo (878/210 por 1000) divididas entre size-adjust. */
@font-face { font-family: 'Archivo Reserva'; font-weight: 100 549; font-stretch: 50% 125%; src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Roboto'), local('Liberation Sans'); size-adjust: 100%; ascent-override: 87.8%; descent-override: 21%; line-gap-override: 0%; }
@font-face { font-family: 'Archivo Reserva'; font-weight: 550 749; font-stretch: 50% 102%; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Roboto Bold'), local('Liberation Sans Bold'); size-adjust: 97%; ascent-override: 90.5%; descent-override: 21.6%; line-gap-override: 0%; }
@font-face { font-family: 'Archivo Reserva'; font-weight: 750 900; font-stretch: 50% 108%; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Roboto Bold'), local('Liberation Sans Bold'); size-adjust: 107%; ascent-override: 82.1%; descent-override: 19.6%; line-gap-override: 0%; }
@font-face { font-family: 'Archivo Reserva'; font-weight: 550 900; font-stretch: 103% 113%; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Roboto Bold'), local('Liberation Sans Bold'); size-adjust: 119%; ascent-override: 73.8%; descent-override: 17.6%; line-gap-override: 0%; }
/* anchura 115 % (H1 y titular del cierre): Archivo es un 2,5 % más ancha que a 112 %; sin esta cara el H1 de
   reserva cabía en una línea menos (2 en vez de 3 en tableta) y todo saltaba al llegar la letra */
@font-face { font-family: 'Archivo Reserva'; font-weight: 550 900; font-stretch: 113.5% 125%; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Roboto Bold'), local('Liberation Sans Bold'); size-adjust: 122%; ascent-override: 72%; descent-override: 17.2%; line-gap-override: 0%; }
@font-face { font-family: 'Source Serif Reserva'; font-weight: 100 900; src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), local('Tinos Bold'), local('Liberation Serif Bold'), local('Noto Serif Bold'); size-adjust: 96.6%; ascent-override: 107.2%; descent-override: 34.7%; line-gap-override: 0%; }
/* Ordenatec · portada «Del anuncio a la oferta presentada» (v2)
   Prototipo local. Base = versión estática (sin JS o con movimiento reducido).
   html.anima = escenario fijo ligado al scroll. html.con-polvo = partículas en canvas.
   Solo se animan transform, opacity y trazos SVG. */

:root {
  --noche-profunda: #030B1A;
  --noche: #061429;
  --noche-alzada: #0C2347;
  --filete: #1B355E;
  --blanco: #FFFFFF;
  --suave: #B4C3D9;
  --tenue: #9CB0CC;
  --aguamarina: #17B8F6;
  --aguamarina-media: #0E7C90;
  --aguamarina-tinta: #0B64F0;
  --azul-globo: #0D8EF2;
  --azul-globo-prof: #0A3A8A;
  --ambar: #F2C14E;
  --ambar-texto: #7A5A00;
  --tinta: #0B1B33;
  --gris-tinta: #4A5D75;
  --papel: #FAF7F0;
  --papel-a: #FDFBF6;
  --papel-b: #F4EFE4;
  --sobre: #EFE6D3;
  --forro: #E3D6BC;
  --solapa: #EDE3CE;
  --borde-ui: #DCE3EC;

  --f-sans: "Archivo", "Archivo Reserva", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Source Serif 4", "Source Serif Reserva", Georgia, "Times New Roman", serif;
  --margen: clamp(16px, 4.4vw, 64px);
  --grano-png: url("textura/grano.png");
  --grano-papel: url("textura/grano-papel.png");
  /* máscara en línea: mask-image no carga archivos locales (file://) por CORS */
  --tinta-mascara: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAFwJJREFUeF61XVuS5LgR672N92j+8WH8YR/Nx7GDtZMVEAqPZE24f2a6ShLJTCQAUpT6j5+fn//+/PXz58/Pz3/g318fv/7598/Pz9/hgzl2PsLvz///Cdf6B/w+15rvVRt8bTzGfac+x35M/9Rx57Pzc8aOY8VjefzYp4ndGeeJ0TkP/4/XnvPwmDQ+7IPrO+fskcc/fiV4BnD+PT+YTEz+/F91mpN1kjg/M2C+lgLOHIt94WCrPnKgsI8JNCp5ChAIBA58awvBhkkeUHFcFGjcsWlsPyfB/xLIY4S2xKYBJ4SqgbnB4gBVkFwVDxgwka0yFFjOZwhU7KdiNAfCxAaqj8wwqpBObOT4poJVQlViUmPbCtrSaQvgMMQkvlE7s0lEvggIUt/IzlRukiwX2zmHE97k4CZX/+EEf9PR1qCrUmQFpjj8fVut3Hf2FPx767c6Xuny5rqqbwocKv7oZ5jFasFhglknGsLd9+dzp7mO+tAobAKLg55r4uA3msfA4+ShEXRV1QKsEsuxmUQnI5t8AgP1wQwnwX8DB8kHu0ZddbSqSNWsBoEBnKQh8tGhuwrGNse4oQF0MwdkDsUojXoVgJiplK9IYGKtdcl9x40TrMwHBpbRNhdyAWjTq+kgT63O5w7pie6YISYgU41c2S6Y7KKHlfA6PG08/T0/5xieMjHNJincGC3Fnuqzf0+CFc0pOmW0qwQqbTmfNfOg9M0hdFM90yabMccUXE2NUVqQG31v2C4xnjr/Q962LtpVBs+XJyitMlznbqhwBu8qHSkWnTa34RLR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Mxst5nOqOkN9vtGmz/GwfeD019NQQQlY4HJmP8nrdgOYCouJQ2rdOO+U1UpU6PaTuYHwaRApIpD0bXrC7PGx/j5FQ7bhNxu8cEO4tx2+8iHqmAlIUxXCTxotJyxaQlVlcx7lW9YBQsHc8FAwd8Vw76vs3m60CEvJecbyptgTuBToDbGA49J07Ltfe9mbpqvcNKAIHJxu5W8d1uT4JaQ9L0yK42aFDVuKJjPGzpTO/xVQNNnWNHIDmnueo5Lpsq1x4bPHRcNFJ3Esvlqo73KEJO3DRg21G4J8ny3ba/ZVCJXknvUxVU4Bj/pvYqH8yY3iZqY8/bgbfwfRaAqWFWkQjfqotILrkiVHE6weuJuG/ANvXHl4FjdzMGxkfIV7rNGw63vGH/uM7/55yE546Kb45wODCWeDrf7l4q+tijcUBhq9fYmhDInG+1sEub0ta008bZjBZBtHGUfOcHOTW6MiApUCh5XNLfdgqq+58/a78hC2208zEzK8J3PWtEoP4HryYoV8ZwB+PlMVfFr7P8DSxgmQnl96MQAAAAASUVORK5CYII=");

  --sombra-papel: 0 1px 1px rgba(3, 10, 25, .25), 0 6px 12px -4px rgba(3, 10, 25, .35), 0 28px 60px -18px rgba(2, 8, 20, .65);
  --sombra-ui: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px -16px rgba(2, 8, 20, .7), 0 4px 10px -4px rgba(2, 8, 20, .4);
  --sombra-flotante: 0 40px 80px -30px rgba(2, 8, 20, .8), 0 12px 24px -10px rgba(2, 8, 20, .45);
  --brillo-aguamarina: 0 0 0 1.5px #17B8F6, 0 0 32px -4px rgba(23, 184, 246, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--blanco);
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 850; }

:focus-visible { outline: 3px solid var(--aguamarina); outline-offset: 3px; border-radius: 6px; }

.solo-lector {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar-contenido {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--blanco); color: var(--tinta); font-weight: 700;
  padding: 12px 16px; border-radius: 12px; text-decoration: none;
}
.saltar-contenido:focus { top: 12px; }
.saltar-contenido:focus-visible { outline-color: var(--aguamarina-tinta); }

/* ---------- Fondo: luces por escena, viñeta, grano ---------- */
.fondo { position: fixed; inset: 0; height: 100lvh; z-index: 0; pointer-events: none; }
.luz, .vineta { position: absolute; inset: 0; }
.luz { opacity: 0; }
.luz-0 {
  opacity: 1;
  background:
    radial-gradient(60% 65% at 66% 46%, rgba(16, 62, 120, .55), transparent 70%),
    radial-gradient(45% 40% at 12% 92%, rgba(11, 42, 82, .5), transparent 70%);
}
/* Tres atmósferas de plan (DIRECCION-ARTE-PLANES.md §1): misma noche, distinta luz.
   Radar (Encontrar): luminosa y fresca, aguamarina con contraluz hielo. */
.luz-1 {
  background:
    radial-gradient(55% 60% at 64% 50%, rgba(14, 110, 140, .6), transparent 70%),
    radial-gradient(40% 44% at 84% 12%, rgba(159, 232, 255, .10), transparent 70%),
    radial-gradient(35% 50% at 6% 40%, rgba(11, 70, 96, .3), transparent 70%);
}
/* IA (Comprender): tecnológica y fría, azul eléctrico con contraluz violeta. */
.luz-2 {
  background:
    radial-gradient(50% 60% at 58% 46%, rgba(28, 63, 168, .6), transparent 70%),
    radial-gradient(40% 44% at 90% 76%, rgba(58, 46, 140, .25), transparent 70%);
}
/* Presentación (Preparar, Ensobrar y Enviar): cálida y solemne, oro sobre azul noche. */
.luz-3 {
  background:
    radial-gradient(48% 56% at 58% 42%, rgba(58, 42, 14, .35), transparent 72%),
    radial-gradient(34% 40% at 78% 30%, rgba(107, 78, 18, .22), transparent 70%),
    radial-gradient(70% 80% at 60% 46%, rgba(10, 27, 56, .95), transparent 78%);
}
.luz-4 {
  background:
    radial-gradient(52% 34% at 62% 72%, rgba(58, 42, 14, .35), transparent 72%),
    radial-gradient(40% 30% at 70% 52%, rgba(107, 78, 18, .22), transparent 70%),
    radial-gradient(70% 80% at 62% 50%, rgba(10, 27, 56, .95), transparent 78%);
}
.luz-5 {
  background:
    radial-gradient(48% 46% at 62% 28%, rgba(58, 42, 14, .35), transparent 72%),
    radial-gradient(40% 30% at 70% 12%, rgba(107, 78, 18, .22), transparent 70%),
    radial-gradient(70% 80% at 62% 40%, rgba(10, 27, 56, .95), transparent 78%);
}
.luz-6 {
  background:
    radial-gradient(45% 50% at 50% 40%, rgba(10, 58, 138, .6), transparent 70%),
    radial-gradient(circle at 50% 40%, transparent 16%, rgba(13, 142, 242, .12) 22%, transparent 34%);
}
.luz-7 { background: radial-gradient(70% 40% at 50% 0%, rgba(12, 35, 71, .6), transparent 75%); }
.vineta { background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(2, 7, 18, .55) 100%); }

.polvo { position: fixed; left: 0; top: 0; width: 100vw; height: 100lvh; pointer-events: none; display: none; }
.con-polvo .polvo { display: block; }
.polvo-fondo { z-index: 1; }
.polvo-frente { z-index: 40; }
.grano {
  /* grano de película bajo el contenido: el blanco de las tarjetas queda limpio */
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: var(--grano-png) 0 0 / 200px 200px; opacity: .04;
}

main, .pie { position: relative; z-index: 2; }

/* ---------- Tipografía ---------- */
.titular {
  font-weight: 850; font-stretch: 112%;
  letter-spacing: -0.024em; line-height: 1.04;
  text-wrap: balance;
}
.paso .titular:not(.titular-h1) { text-wrap: pretty; }
/* sin palabras sueltas al final de un párrafo (entradilla y línea de cada escena) */
.entradilla, .linea { text-wrap: pretty; }
.titular-h1 { font-stretch: 115%; letter-spacing: -0.028em; line-height: 1.02; }
/* Líneas partidas para la entrada línea a línea (las crea historia.js). Sin máscara: cada línea sube
   unos píxeles y aparece por opacidad, así ninguna queda cortada a media transición. */
.ln { display: block; }
.ln-in { display: block; }

/* ---------- Botones y enlaces ---------- */
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.acciones-centro { justify-content: center; }
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.boton-ambar { background: var(--ambar); color: var(--tinta); box-shadow: 0 10px 30px -12px rgba(242, 193, 78, .55); }
.boton-ambar:hover { background: #F6CF6E; }
.boton-ambar:focus-visible { outline-color: var(--blanco); }
.boton-linea { color: var(--blanco); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); }
.boton-linea:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .72); }
.boton-compacto { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; box-shadow: none; }
.enlace-texto {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 650; font-size: 17px; color: var(--blanco);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, .45);
}
.enlace-texto:hover { text-decoration-color: var(--aguamarina); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: absolute; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 var(--margen);
}
.marca {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: var(--blanco); text-decoration: none;
  font-weight: 800; font-stretch: 112%; font-size: 20px; letter-spacing: -0.02em;
  border-radius: 999px;
}
.marca-simbolo { position: relative; width: 40px; height: 40px; flex: none; }
.marca-simbolo::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(13, 142, 242, .22), rgba(13, 142, 242, .08) 70%, transparent);
}
.marca-simbolo img { position: relative; width: 100%; height: 100%; }
.cabecera-nav { display: flex; align-items: center; gap: 4px; }
.cabecera-nav > a:not(.boton) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: #D5E0EE; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 10px;
}
.cabecera-nav > a:not(.boton):hover { color: var(--blanco); background: rgba(255, 255, 255, .06); }
.cabecera-cta { display: none; margin-left: 12px; }
@media (min-width: 1024px) {
  .cabecera {
    position: fixed; height: 72px;
    background: linear-gradient(to bottom, rgba(6, 20, 41, .96) 0, rgba(6, 20, 41, .93) 72%, rgba(6, 20, 41, .6) 100%);
  }
  .cabecera::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(6, 20, 41, .6), rgba(6, 20, 41, 0));
  }
  .marca { font-size: 22px; }
  .marca-simbolo { width: 44px; height: 44px; }
  .cabecera-cta { display: inline-flex; }
  .anima .cabecera-cta { opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .35s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s .35s; }
  .anima .cabecera-cta.es-visible { opacity: 1; transform: none; visibility: visible; transition: opacity .35s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
}
@media (max-width: 1023px) { .cabecera-nav > a.solo-ancho { display: none; } }

/* Menú móvil (0.4.0): ENTREGA-CODEX-INTERIORES/parche-portada-menu/menu.css, el mismo de los interiores */
.menu { display: none; }
@media (max-width: 1023px) { .menu { display: block; margin-left: 4px; } }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-boton {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  color: #D5E0EE;
}
.menu-boton:hover, .menu[open] > .menu-boton { color: var(--blanco); background: rgba(255, 255, 255, .06); }
.menu-icono { position: relative; width: 20px; height: 14px; }
.menu-icono i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.menu-icono i:nth-child(1) { top: 2px; }
.menu-icono i:nth-child(2) { bottom: 2px; }
.menu[open] .menu-icono i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu[open] .menu-icono i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu-velo { position: fixed; inset: 0; background: rgba(3, 11, 26, .62); }
/* con el menú abierto, la cabecera queda nítida por encima del velo */
.cabecera .marca, .cabecera-nav > a, .menu-boton { position: relative; z-index: 2; }
.menu-panel {
  position: absolute; z-index: 1; top: 60px; left: var(--margen); right: var(--margen);
  padding: 10px 10px 14px; border-radius: 20px;
  background: radial-gradient(70% 30% at 50% 0%, rgba(23, 184, 246, .08), transparent 72%), linear-gradient(165deg, #0C2347 0%, #0A1B38 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--sombra-flotante);
}
.menu-lista { display: grid; margin: 0; padding: 0; list-style: none; }
.menu-lista a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 14px;
  border-radius: 12px; color: var(--blanco); text-decoration: none;
  font-weight: 800; font-stretch: 112%; font-size: 22px; letter-spacing: -0.02em;
}
.menu-lista a:hover { background: rgba(255, 255, 255, .06); }
.menu-lista a[aria-current]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aguamarina); box-shadow: 0 0 10px rgba(23, 184, 246, .8); }
.menu-lista li + li { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.menu-panel .boton { width: 100%; margin-top: 10px; }
.anima .menu[open] .menu-panel { animation: menu-entra .32s cubic-bezier(.16, 1, .3, 1) both; }
.anima .menu[open] .menu-velo { animation: menu-velo .25s ease both; }
@keyframes menu-entra { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes menu-velo { from { opacity: 0; } to { opacity: 1; } }
/* por debajo de 360 px, como en los interiores: solo el logotipo y el menú */
@media (max-width: 359px) { .cabecera-nav > a:not(.boton) { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu-icono i { transition: none; } }
@media print { .menu { display: none !important; } }

/* =========================================================
   HISTORIA · versión base (estática: sin JS o movimiento reducido)
   ========================================================= */
.historia { position: relative; }
.escenario { position: relative; }
.paso {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  max-width: 1320px; margin: 0 auto;
  padding: 80px var(--margen);
}
.paso-0 { padding-top: 136px; }
.titular-h1 { font-size: clamp(44px, 5.2vw, 84px); }
.paso .titular:not(.titular-h1) { font-size: clamp(32px, 3.6vw, 54px); }
.entradilla { margin-top: 24px; font-size: 19px; line-height: 1.5; color: var(--suave); max-width: 32ch; }
.fase { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 20px; }
.fase-nombre { font-weight: 700; font-size: 16px; color: var(--aguamarina); }
.fase-ventana { display: inline-flex; }
.fase-plan { font-size: 15px; font-weight: 500; color: var(--suave); }
/* Color firma de cada plan (píldora, indicador, carriles y chips) */
[data-plan="radar"] { --plan: #17B8F6; --plan-texto: #17B8F6; --plan-halo: rgba(23, 184, 246, .24); }
[data-plan="ia"] { --plan: #6F97FF; --plan-texto: #8FB0FF; --plan-halo: rgba(111, 151, 255, .26); }
[data-plan="presentacion"] { --plan: #E9B949; --plan-texto: #F2C14E; --plan-halo: rgba(233, 185, 73, .24); }
.linea { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--suave); max-width: 30ch; }

.paso-figura { position: relative; display: none; overflow: hidden; border-radius: 20px; }
.js .paso-figura { display: block; }
.paso-figura .caja { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

.indicador, .pista, .lienzo, .saltar { display: none; }
.js .saltar {
  display: flex; width: max-content; margin: 0 auto; padding: 0 var(--margen);
}

/* Luz de cada escena en la versión estática (sin movimiento) */
html:not(.anima) .luz:not(.luz-0) { display: none; }
html:not(.anima) .paso { border-radius: 0; }
html:not(.anima) .paso[data-paso="1"] { background: radial-gradient(55% 60% at 64% 50%, rgba(14, 110, 140, .5), transparent 70%), radial-gradient(40% 44% at 86% 12%, rgba(159, 232, 255, .08), transparent 70%); }
html:not(.anima) .paso[data-paso="2"] { background: radial-gradient(50% 60% at 60% 46%, rgba(28, 63, 168, .5), transparent 70%), radial-gradient(40% 44% at 90% 76%, rgba(58, 46, 140, .22), transparent 70%); }
html:not(.anima) .paso[data-paso="3"] { background: radial-gradient(48% 56% at 60% 42%, rgba(58, 42, 14, .35), transparent 72%), radial-gradient(34% 40% at 78% 30%, rgba(107, 78, 18, .2), transparent 70%), radial-gradient(70% 80% at 60% 46%, rgba(10, 27, 56, .9), transparent 78%); }
html:not(.anima) .paso[data-paso="4"] { background: radial-gradient(52% 34% at 62% 72%, rgba(58, 42, 14, .35), transparent 72%), radial-gradient(40% 30% at 70% 52%, rgba(107, 78, 18, .2), transparent 70%), radial-gradient(70% 80% at 62% 50%, rgba(10, 27, 56, .9), transparent 78%); }
html:not(.anima) .paso[data-paso="5"] { background: radial-gradient(48% 46% at 62% 30%, rgba(58, 42, 14, .35), transparent 72%), radial-gradient(40% 30% at 70% 12%, rgba(107, 78, 18, .2), transparent 70%), radial-gradient(70% 80% at 62% 40%, rgba(10, 27, 56, .9), transparent 78%); }
html:not(.anima) .pasos .fase-nombre { display: block; width: 100%; }
html:not(.anima) .paso[data-paso="2"] .fase-nombre { color: #8FB0FF; }
html:not(.anima) .paso[data-paso="3"] .fase-nombre, html:not(.anima) .paso[data-paso="4"] .fase-nombre, html:not(.anima) .paso[data-paso="5"] .fase-nombre { color: #F2C14E; }
@media (min-width: 1024px) { html:not(.anima) .paso-0 { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }

@media (max-width: 1023px) {
  .paso { grid-template-columns: minmax(0, 1fr); padding: 56px var(--margen); gap: 28px; }
  .paso-0 { padding-top: 104px; }
}

/* =========================================================
   HISTORIA · escenario fijo ligado al scroll (html.anima)
   ========================================================= */
.anima .historia { height: 600vh; height: 600svh; }
.anima .escenario {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid;
  --col: clamp(360px, 35.5vw, 520px);
  grid-template-columns: var(--col) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "texto lienzo" "indicador lienzo";
  column-gap: clamp(32px, 4vw, 64px);
  padding: 88px var(--margen) 32px;
}
.anima .paso { display: block; max-width: none; margin: 0; padding: 0; }
.anima .pasos .paso { opacity: 0; }
.anima .paso-figura { display: none; }
.anima .pasos .fase-nombre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.anima .fase { margin-bottom: 24px; }
.anima .pasos .paso .fase-plan { opacity: 0; }
.anima .paso-0 {
  position: absolute; z-index: 3;
  left: var(--margen); top: 0; bottom: 0; width: min(46vw, 580px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 88px 0 72px;
}
.anima .pasos { grid-area: texto; display: grid; align-content: center; min-height: 0; }
.anima .pasos .paso { grid-area: 1 / 1; align-self: start; }

/* Una sola barra discreta, con tres hitos de servicio. */
.anima .indicador { grid-area: indicador; display: block; position: relative; z-index: 3; opacity: 0; }
.recorrido { position: relative; height: 46px; width: 100%; max-width: 440px; }
.recorrido-riel { position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--filete); }
.recorrido-relleno { display: block; width: 100%; height: 100%; background: var(--plan, #17B8F6); transform: scaleX(0); transform-origin: left center; transition: background-color .35s ease; }
.recorrido-hito { position: absolute; top: 0; left: 0; color: var(--tenue); font-size: 14px; line-height: 20px; font-weight: 500; transition: color .25s ease; }
.recorrido-hito[data-plan="ia"] { left: 33.3333%; }
.recorrido-hito[data-plan="presentacion"] { left: 66.6667%; }
.recorrido-hito > i { display: block; width: 6px; height: 6px; margin: 3px 0 12px; border-radius: 50%; background: var(--noche); box-shadow: 0 0 0 1px var(--tenue); }
.recorrido-hito.es-activo { color: var(--plan-texto); }
.recorrido-hito.es-activo > i, .recorrido-hito.es-hecho > i { background: var(--plan); box-shadow: 0 0 0 1px var(--plan); }
.anima .pasos .fase { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pista {
  grid-area: indicador; align-self: end; justify-self: start;
  display: inline-flex; align-items: center; gap: 12px; height: 44px;
  font-size: 15px; color: var(--tenue); position: relative; z-index: 3;
}
/* «Desliza» en la entrada del móvil: en línea con «Ver planes», nunca encima de la pieza */
.anima .pista.pista-hero { display: none; grid-area: auto; align-self: center; height: 44px; gap: 10px; }
.pista-linea { position: relative; width: 1px; height: 32px; background: rgba(156, 176, 204, .35); overflow: hidden; }
.pista-punto { position: absolute; left: -1.5px; top: 0; width: 4px; height: 8px; border-radius: 2px; background: var(--aguamarina); }
.anima .saltar {
  position: absolute; right: var(--margen); bottom: 28px; z-index: 5; margin: 0; padding: 0 4px;
}
.saltar {
  align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: #D5E0EE;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: rgba(213, 224, 238, .45);
}
.saltar:hover { color: var(--blanco); text-decoration-color: var(--aguamarina); }

/* Lienzo */
.anima .lienzo { grid-area: lienzo; display: block; position: relative; min-height: 0; min-width: 0; }
.inclinacion { position: absolute; inset: 0; }
.anima .lienzo .caja { position: absolute; left: 0; top: 0; transform-origin: 0 0; visibility: hidden; }
.anima .lienzo .caja.es-lista { visibility: visible; }

/* =========================================================
   CAJA · la pieza (coordenadas lógicas; historia.js fija tamaños y transformaciones)
   ========================================================= */
.caja {
  --kc: 1; /* compensación: ningún texto baja de 14 px efectivos */
  font-family: var(--f-sans); color: var(--tinta);
  font-size: calc(16px * var(--kc)); line-height: 1.3;
}
.caja * { box-sizing: border-box; }
.caja-sonda { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: hidden; visibility: hidden; font-size: calc(100px * var(--kc)); }
.carga, .respiro { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.respiro { transform-origin: 50% 0; }
.pz { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; }
.pz.activo, .filas.activo, .tarjeta.activo, .titulo-viaje.activo { will-change: transform, opacity; }

.papel-material {
  background-color: var(--papel);
  background-image: var(--grano-papel), linear-gradient(to bottom, var(--papel-a), var(--papel-b));
  background-size: 200px 200px, 100% 100%;
}

/* Sombra proyectada (elipse aparte; nunca se anima box-shadow) */
.sombra {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(1, 5, 14, .7), rgba(1, 5, 14, .32) 55%, transparent);
}

/* Hoja: panel → tarjeta → pliego → (volteo) DEUC */
.hoja { transform-style: preserve-3d; }
/* la cara visible la decide historia.js según el ángulo (más fiable que backface-visibility con capas hijas) */
.cara { position: absolute; inset: 0; }
.cara-dorso { transform: rotateY(180deg); border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(120, 100, 70, .12), 0 1px 1px rgba(3, 10, 25, .25); }
.carcasa {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: #fff; border-radius: 4px; transform-origin: 50% 50%;
  box-shadow: 0 1px 1px rgba(3, 10, 25, .2), 0 0 0 .6px rgba(255, 255, 255, .5);
}
.carcasa-papel { position: absolute; inset: 0; border-radius: inherit; opacity: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(120, 100, 70, .12); }
.capa { position: absolute; left: 0; top: 0; }

/* Interfaz del portal (genérica, no imita a ninguna plataforma oficial) */
.barra {
  position: absolute; left: 0; right: 0; top: 0; min-height: 44px;
  display: flex; align-items: center; gap: 10px; padding: 4px 16px;
  background: #F3F6FA; border-bottom: 1px solid var(--borde-ui); border-radius: 6px 6px 0 0;
}
.barra-ico { width: 20px; height: 20px; color: var(--gris-tinta); flex: none; }
.barra-nombre { font-weight: 700; font-size: calc(15px * var(--kc)); color: var(--tinta); line-height: 1.2; min-width: 0; }
.barra.sin-icono .barra-ico { display: none; }
.etq-ejemplo {
  margin-left: auto; font-size: calc(14px * var(--kc)); font-weight: 600; color: var(--gris-tinta); line-height: 1.3;
  box-shadow: inset 0 0 0 1px #C5D0DE; border-radius: 999px; padding: 1px 10px; white-space: nowrap;
}
.buscador {
  position: absolute; left: 16px; right: 16px; top: 54px; height: 34px;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #F2F5F9; border-radius: 8px; color: #7F90A6;
}
.buscador svg { width: 17px; height: 17px; flex: none; }
.buscador i { width: 34%; height: 7px; border-radius: 4px; background: #DCE3EC; }
.filas-clip { position: absolute; left: 16px; right: 16px; overflow: hidden; }
.filas { position: absolute; left: 0; right: 0; top: 0; }
.fila {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--borde-ui);
  font-size: calc(15px * var(--kc)); font-weight: 600; color: var(--tinta); white-space: nowrap;
}
.fila-ico { width: 24px; height: 24px; border-radius: 6px; background: #EAF0F6; flex: none; }
.fila-txt i { display: block; height: 7px; border-radius: 4px; background: #DCE3EC; }
.fila-cifra { margin-left: auto; width: 56px; height: 7px; border-radius: 4px; background: #E3E9F0; flex: none; }
.fila-velo { position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0; }
.fila.sin-cifra .fila-cifra { display: none; }
/* Radar · haz de búsqueda: una línea de luz que recorre la lista una sola vez (ligada a s) */
.haz {
  position: absolute; left: 0; right: 0; top: 0; height: 84px; opacity: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(23, 184, 246, 0), rgba(23, 184, 246, .10) 62%, rgba(23, 184, 246, .30) 96%, rgba(23, 184, 246, 0) 100%);
}
.haz::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(23, 184, 246, 0), #17B8F6 12%, #9FE8FF 50%, #17B8F6 88%, rgba(23, 184, 246, 0));
  box-shadow: 0 0 12px 1px rgba(23, 184, 246, .65);
}

/* Tarjeta del anuncio */
.tarjeta-fondo {
  position: absolute; inset: 0; border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 27, 51, .07), 0 1px 2px rgba(11, 27, 51, .08), 0 10px 26px -10px rgba(11, 27, 51, .28);
}
.tarjeta-brillo { position: absolute; inset: 0; border-radius: 6px; box-shadow: var(--brillo-aguamarina); opacity: 0; }
.tarjeta-elevada { position: absolute; inset: 0; border-radius: 6px; box-shadow: var(--sombra-flotante); opacity: 0; }
.tarjeta-cab { position: absolute; left: 22px; right: 22px; top: 18px; display: flex; align-items: center; justify-content: space-between; }
.tarjeta-tipo { width: 104px; height: 8px; border-radius: 4px; background: #E3E9F0; }
.tarjeta-cab .chip-ambar { margin-left: auto; }
.tarjeta-cab.sin-tipo .tarjeta-tipo { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: calc(14px * var(--kc)); font-weight: 700; border-radius: 999px; padding: 4px 11px 4px 9px; line-height: 1.3;
}
.chip svg { width: 16px; height: 16px; flex: none; }
.chip-ambar { background: var(--ambar); color: var(--tinta); }
.tarjeta-datos {
  position: absolute; left: 22px; right: 22px; bottom: 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px;
  font-size: calc(15px * var(--kc)); color: var(--gris-tinta);
}
.tarjeta-datos span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tarjeta-datos svg { width: 17px; height: 17px; }
.tarjeta-datos .dato-fuerte { color: var(--tinta); font-weight: 700; }
.tarjeta-aro, .tarjeta-pulso { position: absolute; overflow: visible; pointer-events: none; }
.tarjeta-aro rect { fill: none; stroke: var(--aguamarina); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tarjeta-pulso rect { fill: none; stroke: var(--aguamarina); stroke-width: 2; }
.tarjeta-pulso { opacity: 0; transform-origin: 50% 50%; }
.encaja {
  position: absolute; right: 18px; bottom: -15px;
  background: var(--aguamarina); color: var(--noche); padding: 5px 12px 5px 9px;
  box-shadow: 0 8px 18px -8px rgba(6, 20, 41, .55);
}
.encaja path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.titulo-viaje {
  position: absolute; left: 0; top: 0; margin: 0;
  font-size: calc(26px * var(--kc)); font-weight: 800; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.18;
  color: var(--tinta); transform-origin: 0 0; text-wrap: balance;
}

/* Pliego y papeles */
.pliego-tit, .doc-tit {
  position: absolute; margin: 0;
  font-family: var(--f-serif); font-weight: 600; line-height: 1.22; color: var(--tinta);
}
.pliego-tit { font-size: calc(17px * var(--kc)); }
.papel-ejemplo {
  position: absolute; margin: 0; font-size: calc(14px * var(--kc)); font-weight: 600; color: var(--gris-tinta); line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(74, 93, 117, .5); border-radius: 4px; padding: 1px 8px;
}
.regla-papel { position: absolute; height: 1px; background: rgba(11, 27, 51, .2); transform-origin: 0 50%; }
.renglon { position: absolute; left: 0; top: 0; transform-origin: 0 50%; }
.seg { position: absolute; top: 0; border-radius: 1.5px; background: #24344F; opacity: .78; transform-origin: 0 50%; }
.seg.cab { background: #0B1B33; opacity: .9; }
.renglones-atenuables { position: absolute; inset: 0; }
.resaltes { position: absolute; left: 0; top: 0; overflow: visible; }
.resaltes path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.resaltes .r-a { stroke: rgba(76, 125, 255, .35); }
.resaltes .r-b { stroke: rgba(76, 125, 255, .3); }
.resaltes .ambar .r-a { stroke: rgba(242, 193, 78, .62); }
.resaltes .ambar .r-b { stroke: rgba(242, 193, 78, .5); }
.resaltes .punta { opacity: 0; }
.resaltes polygon { opacity: 0; }
.marca-n {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: calc(14px * var(--kc)); font-weight: 800; line-height: 1; color: #fff; background: #2F5BE0;
  box-shadow: 0 0 0 3px rgba(76, 125, 255, .22), 0 0 12px rgba(76, 125, 255, .45);
  transform-origin: 50% 50%;
}
.marca-n.es-ambar { background: var(--ambar); color: var(--tinta); box-shadow: 0 0 0 3px rgba(242, 193, 78, .22); }
.brillo-clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.brillo { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .38) 50%, transparent 60%); opacity: 0; }

/* Documentos (tríptico) */
.doc-base { position: absolute; inset: 0; border-radius: 4px; box-shadow: var(--sombra-papel), inset 0 1px 0 rgba(255, 255, 255, .8); }
.doc-panel { position: absolute; left: 0; width: 100%; transform-style: preserve-3d; }
.doc-cara { position: absolute; inset: 0; overflow: hidden; }
.doc-cara.frente { background-color: var(--papel); background-image: var(--grano-papel), linear-gradient(to bottom, var(--papel-a), var(--papel-b)); background-size: 200px 200px, 100% var(--alto-hoja, 440px); background-position: 0 0, 0 var(--desde, 0px); }
.doc-cara.dorso { transform: rotateX(180deg); background: #EFE9DC; box-shadow: inset 0 0 0 1px rgba(120, 100, 70, .12); }
.doc-panel.p1 .doc-cara { border-radius: 4px 4px 0 0; }
.doc-panel.p3 .doc-cara { border-radius: 0 0 4px 4px; }
.doc-sombreado { position: absolute; inset: 0; background: #1B2436; opacity: 0; pointer-events: none; }
.doc-tit { font-size: calc(19px * var(--kc)); }
.doc-org { position: absolute; margin: 0; font-size: calc(14px * var(--kc)); font-weight: 800; color: var(--ambar-texto); letter-spacing: .02em; }
.doc-tit .l { opacity: 0; }
.cursor { width: 2px; border-radius: 1px; background: #9A7412; box-shadow: 0 0 0 3px rgba(154, 116, 18, .12), 0 0 7px rgba(233, 185, 73, .75); }
.cursor.parpadea { animation: parpadeo 1s steps(1, end) 4 forwards; }
@keyframes parpadeo { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }

/* Lista de documentación */
.checklist {
  background: #fff; border-radius: 12px; padding: 18px 20px;
  box-shadow: var(--sombra-ui);
}
.checklist-tit { font-size: calc(16px * var(--kc) * var(--fs-lista, 1)); font-weight: 800; margin: 0 0 6px; }
.checklist ul { display: grid; }
.checklist li {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: calc(16px * var(--kc) * var(--fs-lista, 1)); font-weight: 600; color: var(--gris-tinta); line-height: 1.2;
  border-top: 1px solid #EDF1F6;
}
.checklist li b { font-weight: 600; text-wrap: balance; min-width: 0; }
.checklist li.hecha { color: var(--tinta); }
.casilla { position: relative; width: 22px; height: 22px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 2px #B9C4D2; }
.casilla i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(#8C6A0C, var(--ambar-texto)); box-shadow: 0 0 0 1px rgba(233, 185, 73, .5); transform: scale(.6); opacity: 0; }
.casilla svg { position: absolute; inset: 2px; width: 18px; height: 18px; overflow: visible; }
.casilla path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* Notas del pliego */
.conectores { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.conectores path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.conectores .c-ag { stroke: #6F97FF; }
.conectores .c-am { stroke: var(--ambar); }
/* trazo de luz: una pasada ancha y tenue bajo el trazo fino (sin filtros) */
.conectores .c-luz { stroke-width: 6; opacity: .22; }
.conectores .c-luz.c-ag { stroke: #4C7DFF; }
.conectores circle { opacity: 0; }
.nota {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 14px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(11, 27, 51, .08), 0 18px 36px -18px rgba(2, 8, 20, .75);
}
.nota-n {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: calc(14px * var(--kc)); font-weight: 800; line-height: 1; color: #fff; background: #2F5BE0;
  box-shadow: 0 0 0 3px rgba(76, 125, 255, .2), 0 0 12px rgba(76, 125, 255, .5);
}
.nota.es-ambar .nota-n { background: var(--ambar); color: var(--tinta); }
.nota-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nota small { font-size: calc(14px * var(--kc) * var(--f, 1)); font-weight: 600; color: #2346B8; }
.nota.es-ambar small { color: var(--ambar-texto); }
/* solo si una palabra no cabe ni con la letra en su mínimo de 14 px (texto del sistema muy ampliado en 320 px) */
.nota.partir .nota-txt, .checklist.partir, .caja .partir { overflow-wrap: anywhere; hyphens: auto; }
.checklist.sin-titulo .checklist-tit { display: none; }
/* modo mínimo (texto del sistema muy ampliado en pantallas muy bajas): los sobres, solo con su letra (A, B, C);
   «Oferta presentada» puede ir en dos líneas */
.caja.es-minima .sobre-nombre { display: none; }
.caja.es-minima .recibo-txt strong { white-space: normal; text-wrap: balance; }
.nota strong { font-size: calc(16px * var(--kc) * var(--f, 1)); font-weight: 800; color: var(--tinta); line-height: 1.2; text-wrap: balance; }

/* Aviso de correo */
.aviso {
  display: flex; align-items: center; gap: 14px; padding: 8px 18px 8px 16px;
  background: #fff; border-radius: 12px; box-shadow: var(--sombra-ui);
}
.aviso-ico {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: #E6F7FC; color: var(--aguamarina-tinta);
  perspective: 200px;
}
.aviso-ico svg { width: 22px; height: 22px; }
.aviso-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.aviso-txt small { font-size: calc(14px * var(--kc)); color: var(--gris-tinta); font-weight: 600; }
.aviso-txt strong { font-size: calc(16px * var(--kc)); font-weight: 800; color: var(--tinta); line-height: 1.2; text-wrap: balance; }

/* Sobres (apaisados 2:1) */
.sobre-atras { border-radius: 6px; background: #E6DCC6; overflow: hidden; }
.sobre-atras::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(18, 48, 92, .22) 0 1px, transparent 1px 4px), var(--forro);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
}
.sobre-frente { overflow: visible; }
.sobre-frente svg.bolsillo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bolsillo .b-fondo { fill: url(#grad-sobre); stroke: rgba(222, 176, 64, .95); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.bolsillo .b-filo { fill: none; stroke: rgba(201, 156, 48, .7); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bolsillo .b-costura { fill: none; stroke: rgba(90, 70, 40, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sobre-rotulo { position: absolute; display: flex; align-items: center; gap: 10px; }
.sobre-letra {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--tinta); color: #fff; font-weight: 800; font-size: calc(17px * var(--kc)); font-stretch: 110%; line-height: 1;
}
.sobre-nombre { font-size: calc(16px * var(--kc) * var(--f, 1)); font-weight: 700; color: var(--tinta); white-space: nowrap; line-height: 1.2; }
.sobre-solapa { overflow: visible; }
.solapa { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 50% 0; transform-style: preserve-3d; }
.solapa svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.solapa .s-dentro { transform: rotateX(180deg); }
.solapa .s-ext { fill: var(--solapa); stroke: rgba(222, 176, 64, .9); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.solapa .s-int { fill: url(#forro-sobre); }
.solapa .s-sombra { fill: #1B2436; }
.sello { display: grid; place-items: center; transform-origin: 50% 50%; }
.sello svg { width: 100%; height: 100%; overflow: visible; }
/* sello «Listo» en oro oscuro #7A5A00 con doble aro */
.sello .anillo-a, .mp-sello .anillo-a { fill: none; stroke: rgba(122, 90, 0, .92); stroke-width: 2; }
.sello .anillo-b, .mp-sello .anillo-b { fill: none; stroke: rgba(122, 90, 0, .92); stroke-width: 1; }
.sello .marca, .mp-sello .marca { fill: none; stroke: rgba(122, 90, 0, .95); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.sello svg, .mp-sello svg { -webkit-mask-image: var(--tinta-mascara); mask-image: var(--tinta-mascara); -webkit-mask-size: 60px 60px; mask-size: 60px 60px; }

/* Plataforma que recibe */
.plataforma { background: #fff; border-radius: 6px; box-shadow: var(--sombra-ui); }
.plataforma .barra { min-height: 40px; }
.pozo {
  position: absolute; border-radius: 6px; background: #EEF2F7;
  box-shadow: inset 0 2px 5px rgba(11, 27, 51, .14), inset 0 0 0 1px rgba(11, 27, 51, .06);
}
.pozo i { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(222, 176, 64, .9), 0 0 18px rgba(233, 185, 73, .55); opacity: 0; }
.recibo { position: absolute; display: flex; align-items: center; gap: 18px; }
.recibo svg { flex: none; overflow: visible; }
.recibo circle, .recibo path { fill: none; stroke: var(--ambar-texto); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.recibo-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recibo-txt strong { display: block; font-size: calc(26px * var(--kc) * var(--f, 1)); font-weight: 850; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.12; white-space: nowrap; }
.recibo-txt .recibo-fecha { font-size: calc(16px * var(--kc)); color: var(--gris-tinta); line-height: 1.3; }
.recibo-fecha > span { white-space: nowrap; }
.pulso-final { overflow: visible; pointer-events: none; }
.pulso-final rect { fill: none; stroke: #E9B949; stroke-width: 2; }
.trayectorias { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.trayectorias path { fill: none; stroke: rgba(23, 184, 246, .5); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 7; }

/* ---------- Caja compacta (móvil y tableta vertical) ---------- */
.caja.es-apilada .barra { padding: 3px 12px; gap: 8px; }
.caja.es-apilada .barra-ico { width: 18px; height: 18px; }
.caja.es-apilada .barra-nombre { font-size: calc(14px * var(--kc)); }
.caja.es-apilada .etq-ejemplo { padding: 0 8px; }
.caja.es-apilada .buscador { left: 12px; right: 12px; top: 46px; height: 28px; }
.caja.es-apilada .filas-clip { left: 12px; right: 12px; }
.caja.es-apilada .fila { font-size: calc(14px * var(--kc)); padding: 0 12px; gap: 10px; }
.caja.es-apilada .fila-ico { width: 20px; height: 20px; }
.caja.es-apilada .fila-cifra { width: 36px; }
.caja.es-apilada .tarjeta-cab { left: 16px; right: 16px; top: 14px; }
.caja.es-apilada .tarjeta-tipo { width: 64px; }
.caja.es-apilada .tarjeta-datos { left: 16px; right: 16px; bottom: 14px; gap: 2px 14px; font-size: calc(14px * var(--kc)); }
.caja.es-apilada .titulo-viaje { font-size: calc(18px * var(--kc)); }
.caja.es-apilada .encaja { right: 12px; bottom: -14px; }
.caja.es-apilada .pliego-tit { font-size: calc(15px * var(--kc)); }
.caja.es-apilada .doc-tit { font-size: calc(15px * var(--kc)); }
.caja.es-apilada .nota { padding: 7px 14px 7px 12px; gap: 10px; }
.caja.es-apilada .nota-txt { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.caja.es-apilada .nota strong { font-size: calc(15px * var(--kc) * var(--f, 1)); }
.caja.es-apilada .aviso { gap: 12px; padding: 7px 14px; }
.caja.es-apilada .aviso-ico { width: 36px; height: 36px; }
.caja.es-apilada .aviso-txt strong { font-size: calc(15px * var(--kc)); }
.caja.es-apilada .checklist { padding: 12px 14px; }
.caja.es-apilada .checklist-tit { font-size: calc(15px * var(--kc) * var(--fs-lista, 1)); margin-bottom: 2px; }
.caja.es-apilada .checklist ul { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.caja.es-compacta .checklist ul { grid-template-columns: minmax(0, 1fr); }
.caja.es-compacta .nota-txt { flex-direction: column; align-items: flex-start; }
.caja.es-apilada .checklist li { min-height: 44px; font-size: calc(14px * var(--kc) * var(--fs-lista, 1)); gap: 8px; }
.caja.es-apilada .sobre-letra { width: 30px; height: 30px; font-size: calc(16px * var(--kc)); }
.caja.es-apilada .sobre-nombre { font-size: calc(15px * var(--kc) * var(--f, 1)); }
.caja.es-apilada .plataforma .barra { min-height: 36px; }
.caja.es-apilada .recibo { gap: 12px; }
.caja.es-apilada .recibo-txt strong { font-size: calc(21px * var(--kc) * var(--f, 1)); }
.caja.es-apilada .recibo-txt .recibo-fecha { font-size: calc(14px * var(--kc)); }

/* Animación de carga (única, por tiempo) */
@media (prefers-reduced-motion: no-preference) {
  .anima .lienzo .caja.es-lista .carga { animation: carga-pieza .7s cubic-bezier(.16, 1, .3, 1) both; }
  .anima .lienzo .caja.es-lista .fila { animation: carga-fila .42s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.25s + var(--i, 0) * 60ms); }
  .anima .lienzo .caja.es-lista .tarjeta-pulso { animation: pulso-tarjeta .9s cubic-bezier(.16, 1, .3, 1) 1.1s both; }
  .anima .pista-punto { animation: pista 2.4s cubic-bezier(.37, 0, .63, 1) 1.4s 3 both; }
}
/* si la pieza se rehace (llega la letra, gira el móvil), la animación de carga no se repite */
.anima .lienzo .caja.ya-cargada .carga, .anima .lienzo .caja.ya-cargada .fila, .anima .lienzo .caja.ya-cargada .tarjeta-pulso { animation: none; }
@keyframes carga-pieza { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes carga-fila { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulso-tarjeta { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04); } }
@keyframes pista { 0% { transform: translateY(-8px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(32px); opacity: 0; } }

/* =========================================================
   Escenario apilado (móvil y tableta vertical)
   Arriba, una fila propia de 44 px para la píldora del plan y «Saltar»; debajo, titular y línea;
   el resto es de la pieza. Nada flota sobre el titular ni sobre la pieza.
   ========================================================= */
@media (max-width: 1023px) {
  .anima .escenario {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "texto" "lienzo" "indicador";
    row-gap: 12px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) var(--margen) calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .anima .paso-0 {
    left: var(--margen); right: var(--margen); width: auto; bottom: auto;
    display: block; padding: 84px 0 0;
  }
  .titular-h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .anima .entradilla { font-size: 17px; line-height: 26px; margin-top: 16px; max-width: 36ch; }
  .anima .paso-0 .acciones { margin-top: 22px; gap: 4px 28px; }
  /* texto de escena: fila de la píldora (44 px) y, debajo, las cinco escenas en la misma celda */
  .anima .pasos { align-content: start; grid-template-rows: 44px auto; }
  .anima .pasos .paso { grid-area: 2 / 1; }
  .anima .pastilla { grid-area: 1 / 1; align-self: center; height: auto; }
  .anima .pasos .fase { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .paso .titular:not(.titular-h1) { font-size: clamp(30px, 8.4vw, 44px); }
  .fase-plan { font-size: 14px; height: 30px; padding: 0 11px 0 9px; }
  .anima .linea { font-size: 17px; line-height: 26px; margin-top: 8px; max-width: 40ch; }
  .anima .indicador { align-self: end; }
  .ind-visual { max-width: none; }
  .ind-fases { gap: 2px; }
  .ind-fase { font-stretch: 88%; }
  .ind-riel { margin: 8px 0 5px; }
  .ind-carriles { margin-bottom: 10px; }
  /* «Desliza» vive en la entrada, junto a «Ver planes» (en su propio hueco); la del pie de escritorio no se usa */
  .anima .escenario > .pista { display: none; }
  .anima .pista.pista-hero { display: inline-flex; }
  /* «Saltar» ocupa el extremo derecho de la fila de la píldora (mismo alto, sin fondo) */
  .anima .saltar { top: calc(8px + env(safe-area-inset-top, 0px)); bottom: auto; right: calc(var(--margen) - 8px); padding: 0 8px; font-size: 15px; }
  .anima .saltar .saltar-resto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .anima .saltar.es-icono { width: 44px; justify-content: center; padding: 0; }
  .anima .saltar.es-icono > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  @media (max-height: 760px) {
    /* móviles bajos: el hero se compacta */
    .anima .paso-0 { padding-top: 72px; }
    .anima .titular-h1 { font-size: clamp(34px, min(10.4vw, 7.6svh), 50px); }
    .anima .entradilla { margin-top: 10px; }
    .anima .paso-0 .acciones { margin-top: 14px; }
    .anima .paso-0 .acciones .boton { min-height: 48px; }
    /* el titular de escena y su línea ceden alto a la pieza */
    .anima .paso .titular:not(.titular-h1) { font-size: clamp(24px, min(8.4vw, 5.4svh), 44px); }
    .anima .linea { font-size: 16px; line-height: 22px; margin-top: 6px; }
    .anima .escenario { row-gap: 10px; }
  }
  @media (max-height: 740px) {
    .anima .escenario { row-gap: 8px; }
    .ind-riel { margin: 6px 0 4px; }
    .ind-carriles { margin-bottom: 8px; gap: 2px; }
    .ind-chip { height: 26px; }
  }
  @media (max-height: 600px) {
    .anima .paso-0 { padding-top: 68px; }
    .anima .entradilla { font-size: 16px; line-height: 23px; }
  }
}
@media (max-width: 1023px) and (min-width: 600px) {
  .anima .pasos, .anima .indicador { width: 100%; max-width: 560px; justify-self: center; }
  .anima .paso-0 { left: 0; right: 0; margin: 0 auto; width: min(560px, calc(100% - 2 * var(--margen))); }
}

@media (max-width: 767px), (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .anima .escenario { grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "texto" "lienzo" "indicador"; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .anima .indicador { position: relative; grid-area: indicador; height: 40px; }
  .recorrido { height: 40px; max-width: none; }
  .recorrido-hito { font-size: 13px; }
  .recorrido-hito > i { margin-bottom: 9px; }
}

/* ---------- Móvil apaisado (alto ≤ 500 px): texto a la izquierda y pieza a la derecha ---------- */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .cabecera { height: 56px; }
  .anima .escenario {
    --col-txt: clamp(248px, 40vw, 380px);
    grid-template-columns: var(--col-txt) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "texto lienzo";
    column-gap: 20px; row-gap: 0;
    padding-left: max(var(--margen), env(safe-area-inset-left, 0px));
    padding-right: max(var(--margen), env(safe-area-inset-right, 0px));
  }
  .anima .pasos, .anima .indicador { max-width: none; justify-self: stretch; }
  .anima .pasos { grid-area: texto; }
  .anima .paso-0 {
    left: max(var(--margen), env(safe-area-inset-left, 0px)); right: auto; margin: 0;
    width: calc(var(--col-txt) + 8px); padding-top: 60px;
  }
  .anima .titular-h1 { font-size: clamp(26px, min(4.2vw, 8.4svh), 40px); }
  .anima .entradilla { font-size: 15px; line-height: 21px; margin-top: 8px; }
  .anima .paso-0 .acciones { margin-top: 10px; }
  .anima .paso-0 .acciones .boton { min-height: 44px; font-size: 16px; }
  .anima .paso .titular:not(.titular-h1) { font-size: clamp(22px, min(3.6vw, 7.4svh), 36px); }
  .anima .linea { font-size: 15px; line-height: 21px; margin-top: 6px; }
  /* «Saltar», al pie de la columna de texto (historia.js no lo muestra si el texto no le deja sitio) */
  .anima .saltar { top: auto; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); left: max(calc(var(--margen) - 8px), env(safe-area-inset-left, 0px)); right: auto; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .anima .escenario { --col: 320px; column-gap: 28px; }
  .ind-fase { font-stretch: 92%; }
  /* el hero no invade la pieza */
  .anima .paso-0 { width: calc(var(--col) + 12px); }
  .anima .titular-h1 { font-size: 46px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .anima .escenario { padding-top: 80px; padding-bottom: 20px; }
  .anima .saltar { bottom: 16px; }
}

/* =========================================================
   CIERRE, PLANES, CONFIANZA, GUÍAS, PIE (mismo lenguaje; sin costuras)
   ========================================================= */
.cierre {
  position: relative; text-align: center;
  padding: clamp(96px, 12vw, 160px) var(--margen) clamp(88px, 10vw, 128px);
}
.cierre:focus { outline: none; }
.cierre-marca { position: relative; width: 176px; height: 176px; margin: 0 auto 40px; }
.cierre-brillo {
  position: absolute; left: 50%; top: 50%; width: 387px; height: 387px; margin: -193.5px 0 0 -193.5px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 58, 138, .6), rgba(10, 58, 138, .22) 55%, transparent);
  pointer-events: none;
}
.cierre-logo { position: relative; width: 176px; height: 176px; transform-origin: 50% 50%; }
.cierre .titular { font-size: clamp(36px, 5.2vw, 80px); font-stretch: 115%; letter-spacing: -0.026em; max-width: 20ch; margin: 0 auto; }
.cierre-linea { margin: 24px auto 0; max-width: 40ch; font-size: 19px; color: var(--suave); }
.cierre .acciones { margin-top: 36px; }

.planes { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--margen); }
.planes:focus, .guias:focus { outline: none; }
.planes .titular, .guias .titular, .confianza .titular { font-size: clamp(32px, 3.6vw, 56px); }
/* Solo con la letra de reserva (Archivo no ha llegado o no llega): su «¿» baja más que el de Archivo y tocaba
   la «d» de la línea siguiente («¿Cuánto quieres / delegar?»). Son titulares que nunca están a la vista al
   cargar, así que el cambio de interlineado al llegar Archivo no se ve. Con Archivo no cambia nada. */
.letra-reserva .cierre .titular, .letra-reserva .planes .titular, .letra-reserva .confianza .titular, .letra-reserva .guias .titular { line-height: 1.2; }

/* ---------- Planes: una familia, tres atmósferas (DIRECCION-ARTE-PLANES.md §3) ----------
   Misma estructura para comparar de un vistazo; cada tarjeta con su luz, su color firma y su motivo.
   Radar: hielo y aguamarina, haz de búsqueda. IA: azul eléctrico y violeta, constelación.
   Presentación: azul noche con filo de oro, sobre y sello; es la más alta porque es el nivel completo. */
.planes-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; align-items: stretch; }
.plan {
  --texto: var(--tinta); --suave-plan: #3F5670; --acento: #0B64F0; --pista: rgba(11, 27, 51, .12); --filete-plan: rgba(11, 27, 51, .1); --caja-tu: rgba(255, 255, 255, .6);
  --f1: #0E8FB0; --f2: #3F6BE0; --f3: #B8871A;
  position: relative; display: flex; flex-direction: column;
  color: var(--texto); border-radius: 20px; padding: 18px 26px 26px; overflow: hidden;
  box-shadow: var(--sombra-ui);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}
.plan > * { order: 3; }
.plan-motivo { order: 0; position: relative; height: 96px; margin: 0 -8px 22px; }
.plan-verbo { order: 1; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--acento); }
.plan-nombre { order: 2; margin-top: 2px; font-size: clamp(30px, 2.9vw, 34px); font-stretch: 112%; letter-spacing: -0.022em; line-height: 1.05; overflow-wrap: break-word; hyphens: auto; }
.plan::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: var(--sombra-flotante); opacity: 0; transition: opacity .2s cubic-bezier(.16, 1, .3, 1);
}
.plan:hover { transform: translateY(-3px); }
.plan:hover::after { opacity: 1; }
.plan-linea { margin-top: 12px; font-size: 17px; line-height: 1.45; color: var(--suave-plan); }
.plan-etq { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--suave-plan); letter-spacing: .01em; }
.plan-cubre { margin-top: 22px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--filete-plan); }
.plan-dato { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 16px; line-height: 1.35; }
.plan-dato .plan-etq { display: inline; }
.plan-dato b { font-weight: 700; }
.cubre { display: flex; gap: 4px; margin-top: 10px; }
.cubre i { flex: 1; height: 6px; border-radius: 3px; background: var(--pista); }
.cubre i.si:nth-child(1) { background: var(--f1); }
.cubre i.si:nth-child(2) { background: var(--f2); }
.cubre i.si:nth-child(n+3) { background: var(--f3); }
.plan-incluye { margin-top: 20px; margin-bottom: 20px; }
.plan-incluye ul { display: grid; gap: 7px; margin-top: 8px; }
.plan-incluye li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.4; }
.plan-incluye li::before {
  content: ""; position: absolute; left: 3px; top: .38em; width: 11px; height: 6px;
  border-left: 2px solid var(--acento); border-bottom: 2px solid var(--acento); transform: rotate(-45deg);
}
.plan-tu { display: grid; gap: 2px; margin-top: auto; padding: 12px 14px; border-radius: 12px; background: var(--caja-tu); font-size: 16px; line-height: 1.4; }
.precio { padding-top: 22px; display: flex; align-items: baseline; gap: 6px; }
.precio strong { font-size: 48px; font-weight: 850; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.precio span { font-size: 17px; font-weight: 600; color: var(--suave-plan); }
.boton-plan { margin-top: 18px; min-height: 52px; padding: 0 16px; font-size: 16px; box-shadow: none; }
.planes-condiciones { margin: 36px auto 0; text-wrap: balance; text-align: center; font-size: 16px; line-height: 1.5; color: var(--suave); }

/* Radar: la más luminosa y fresca */
.plan-radar { background: linear-gradient(165deg, #E9FAFF 0%, #CFF3FC 100%); }
.plan-radar .boton-plan { background: var(--aguamarina-tinta); color: #fff; }
.plan-radar .boton-plan:hover { background: #0A48D8; }
.plan-radar :focus-visible { outline-color: var(--aguamarina-tinta); }

/* IA: tecnológica y fría */
.plan-ia {
  --texto: #FFFFFF; --suave-plan: #C9D5F2; --acento: #A9C1FF; --pista: rgba(255, 255, 255, .16); --filete-plan: rgba(169, 193, 255, .2); --caja-tu: rgba(255, 255, 255, .08);
  --f1: #17B8F6; --f2: #A9C1FF;
  background:
    radial-gradient(60% 24% at 50% 0%, rgba(138, 124, 255, .3), transparent 72%),
    linear-gradient(165deg, #1B3C9E 0%, #2C1F7A 100%);
  box-shadow: inset 0 0 0 1px rgba(143, 176, 255, .18), var(--sombra-ui);
}
.plan-ia .boton-plan { background: #fff; color: #1B3C9E; }
.plan-ia .boton-plan:hover { background: #E6ECFF; }
.plan-ia :focus-visible { outline-color: #fff; }

/* Presentación: cálida y solemne; la más destacada (más alta, filo de oro y sello) */
.plan-presentacion {
  --texto: #FFFFFF; --suave-plan: #B4C3D9; --acento: #F2C14E; --pista: rgba(255, 255, 255, .1); --filete-plan: rgba(233, 185, 73, .24); --caja-tu: rgba(233, 185, 73, .08);
  --f1: #17B8F6; --f2: #6F97FF; --f3: #E9B949;
  margin-top: -28px; padding-top: 22px;
  background:
    radial-gradient(70% 26% at 50% 0%, rgba(233, 185, 73, .16), transparent 72%),
    linear-gradient(165deg, #0A1B38 0%, #101E3A 100%);
  box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .4), 0 36px 80px -40px rgba(233, 185, 73, .38), var(--sombra-ui);
}
.plan-presentacion .plan-motivo { height: 124px; }
.plan-presentacion .plan-tu { background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .3); }
.plan-presentacion .cubre i.si:nth-child(n+3) { box-shadow: 0 0 10px -2px rgba(233, 185, 73, .85); }
.plan-presentacion .boton-plan { background: #E9B949; color: var(--tinta); box-shadow: 0 14px 30px -16px rgba(233, 185, 73, .7); }
.plan-presentacion .boton-plan:hover { background: #F2C766; }
.plan-presentacion :focus-visible { outline-color: #F2C14E; }
.guia:focus-visible { outline-color: var(--aguamarina-tinta); }

/* Motivo Radar: mini lista y un haz de búsqueda que la recorre una vez */
.mr-panel {
  position: absolute; inset: 0 8px; display: grid; align-content: center; gap: 9px; padding: 0 16px; overflow: hidden;
  border-radius: 14px; background: rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 1px rgba(11, 27, 51, .06), 0 12px 26px -16px rgba(11, 27, 51, .4);
}
.mr-fila { position: relative; display: flex; align-items: center; gap: 10px; height: 18px; }
.mr-fila > i:nth-child(1) { width: 18px; height: 18px; flex: none; border-radius: 5px; background: #E1EDF3; }
.mr-fila > i:nth-child(2) { width: 58%; height: 7px; border-radius: 4px; background: #D5E2EA; }
.mr-elegida > i:nth-child(1) { background: #BFEAF6; }
.mr-elegida > i:nth-child(2) { width: 70%; background: #3F5670; }
.mr-aro { position: absolute; inset: -5px -9px; border-radius: 8px; background: rgba(23, 184, 246, .08); box-shadow: 0 0 0 2px #17B8F6, 0 0 18px -2px rgba(23, 184, 246, .7); }
.mr-haz {
  position: absolute; left: 0; right: 0; top: 0; height: 60px; opacity: 0; transform: translateY(-64px);
  background: linear-gradient(to bottom, rgba(23, 184, 246, 0), rgba(23, 184, 246, .14) 70%, rgba(23, 184, 246, .4) 96%, rgba(23, 184, 246, 0));
}
.mr-haz::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, rgba(23, 184, 246, 0), #17B8F6 14%, #9FE8FF 50%, #17B8F6 86%, rgba(23, 184, 246, 0));
  box-shadow: 0 0 12px 1px rgba(23, 184, 246, .7);
}

/* Motivo IA: el pliego en miniatura y una red de nodos que se conecta */
.mi-red { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mi-hoja rect { fill: #FAF7F0; }
.mi-lin { fill: none; stroke: rgba(36, 52, 79, .55); stroke-width: 2.4; stroke-linecap: round; }
.mi-res { fill: none; stroke-width: 6; }
.mi-azul { stroke: rgba(76, 125, 255, .5); }
.mi-ambar { stroke: rgba(242, 193, 78, .75); }
.mi-enlaces path { fill: none; stroke: #8FB0FF; stroke-opacity: .6; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mi-nodos circle { fill: #DCE5FF; stroke: rgba(143, 176, 255, .25); stroke-width: 6; transform-box: fill-box; transform-origin: 50% 50%; }
.mi-nodos .mi-violeta { fill: #B9AFFF; stroke: rgba(138, 124, 255, .32); }

/* Motivo Presentación: el sobre con filo de oro y el sello que se estampa */
.mp-luz { position: absolute; left: 50%; bottom: 0; width: 260px; height: 44px; margin-left: -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 185, 73, .34), rgba(233, 185, 73, .1) 60%, transparent); }
.mp-sobre { position: absolute; left: 50%; top: 12px; width: 180px; height: 90px; margin-left: -90px; }
.mp-sobre::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: -12px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 5, 14, .6), transparent); }
.mp-cuerpo { position: relative; width: 100%; height: 100%; overflow: visible; }
.mp-fondo { fill: #EFE6D3; fill: url(#grad-sobre) #EFE6D3; }
.mp-costura { fill: none; stroke: rgba(90, 70, 40, .16); stroke-width: 1; }
.mp-solapa { fill: #EDE3CE; stroke: rgba(222, 176, 64, .9); stroke-width: 1.2; stroke-linejoin: round; }
.mp-filo { fill: none; stroke: #E9B949; stroke-width: 1.5; }
.mp-sello { position: absolute; right: 12px; bottom: 8px; width: 50px; height: 50px; transform: rotate(-9deg); }
.mp-sello svg { width: 100%; height: 100%; overflow: visible; }
.mp-polvo { position: absolute; right: 37px; bottom: 33px; width: 0; height: 0; }
.mp-polvo i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #F2C14E; box-shadow: 0 0 6px rgba(233, 185, 73, .9); opacity: 0; }
.mp-polvo i:nth-child(1) { --a: 0deg; } .mp-polvo i:nth-child(2) { --a: 45deg; } .mp-polvo i:nth-child(3) { --a: 90deg; } .mp-polvo i:nth-child(4) { --a: 135deg; }
.mp-polvo i:nth-child(5) { --a: 180deg; } .mp-polvo i:nth-child(6) { --a: 225deg; } .mp-polvo i:nth-child(7) { --a: 270deg; } .mp-polvo i:nth-child(8) { --a: 315deg; }

/* Una sola vez al entrar en pantalla (historia.js añade .es-vista). Sin .anima (movimiento reducido
   o sin JS) se ve directamente el estado final. Solo transform, opacity y trazos SVG. */
.anima .plan-radar:not(.es-vista) .mr-aro { opacity: 0; }
.anima .plan-radar.es-vista .mr-haz { animation: mr-haz 1.7s cubic-bezier(.37, 0, .63, 1) .2s both; }
.anima .plan-radar.es-vista .mr-aro { animation: mr-aro .55s cubic-bezier(.16, 1, .3, 1) 1.02s both; }
@keyframes mr-haz { 0% { opacity: 0; transform: translateY(-64px); } 12% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(112px); } }
@keyframes mr-aro { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }

.anima .plan-ia:not(.es-vista) .mi-enlaces path { stroke-dashoffset: 1; }
.anima .plan-ia:not(.es-vista) .mi-nodos circle, .anima .plan-ia:not(.es-vista) .mi-hoja { opacity: 0; }
.anima .plan-ia.es-vista .mi-hoja { animation: aparece .5s cubic-bezier(.16, 1, .3, 1) .1s both; }
.anima .plan-ia.es-vista .mi-enlaces path { animation: mi-traza .6s cubic-bezier(.25, .1, .25, 1) both; }
.anima .plan-ia.es-vista .mi-nodos circle { animation: mi-nodo .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.anima .plan-ia.es-vista .mi-enlaces path:nth-child(1), .anima .plan-ia.es-vista .mi-enlaces path:nth-child(6) { animation-delay: .3s; }
.anima .plan-ia.es-vista .mi-enlaces path:nth-child(3), .anima .plan-ia.es-vista .mi-enlaces path:nth-child(8) { animation-delay: .42s; }
.anima .plan-ia.es-vista .mi-enlaces path:nth-child(2), .anima .plan-ia.es-vista .mi-enlaces path:nth-child(7) { animation-delay: .72s; }
.anima .plan-ia.es-vista .mi-enlaces path:nth-child(4), .anima .plan-ia.es-vista .mi-enlaces path:nth-child(9) { animation-delay: .84s; }
.anima .plan-ia.es-vista .mi-enlaces path:nth-child(5), .anima .plan-ia.es-vista .mi-enlaces path:nth-child(10) { animation-delay: .9s; }
.anima .plan-ia.es-vista .mi-nodos circle:nth-child(1), .anima .plan-ia.es-vista .mi-nodos circle:nth-child(5) { animation-delay: .7s; }
.anima .plan-ia.es-vista .mi-nodos circle:nth-child(3), .anima .plan-ia.es-vista .mi-nodos circle:nth-child(7) { animation-delay: .82s; }
.anima .plan-ia.es-vista .mi-nodos circle:nth-child(2), .anima .plan-ia.es-vista .mi-nodos circle:nth-child(6) { animation-delay: 1.1s; }
.anima .plan-ia.es-vista .mi-nodos circle:nth-child(4), .anima .plan-ia.es-vista .mi-nodos circle:nth-child(8) { animation-delay: 1.22s; }
@keyframes mi-traza { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mi-nodo { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.anima .plan-presentacion:not(.es-vista) .mp-sobre { opacity: 0; }
.anima .plan-presentacion:not(.es-vista) .mp-sello { opacity: 0; }
.anima .plan-presentacion.es-vista .mp-sobre { animation: aparece .6s cubic-bezier(.16, 1, .3, 1) .1s both; }
.anima .plan-presentacion.es-vista .mp-sello { animation: mp-sello .55s cubic-bezier(.34, 1.56, .64, 1) .75s both; }
.anima .plan-presentacion.es-vista .mp-polvo i { animation: mp-polvo .7s cubic-bezier(.16, 1, .3, 1) .98s both; }
@keyframes mp-sello { 0% { opacity: 0; transform: rotate(-16deg) scale(1.45); } 45% { opacity: 1; } 100% { opacity: 1; transform: rotate(-9deg) scale(1); } }
@keyframes mp-polvo { 0% { opacity: 0; transform: rotate(var(--a)) translateX(10px) scale(1); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(40px) scale(.4); } }

.confianza {
  position: relative; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: center;
  padding: clamp(48px, 7vw, 96px) var(--margen);
}
.confianza-luz { position: absolute; inset: 0; background: radial-gradient(60% 70% at 30% 50%, rgba(12, 35, 71, .9), transparent 72%); pointer-events: none; }
.confianza .titular, .confianza-lado { position: relative; }
.confianza .titular { max-width: 12ch; }
.confianza-linea { font-size: 19px; color: var(--suave); }
.confianza-datos { display: grid; gap: 14px; margin: 24px 0 28px; }
.confianza-datos li { display: flex; align-items: center; gap: 12px; font-size: 18px; color: #E1E9F4; }
.confianza-datos svg { width: 24px; height: 24px; color: var(--aguamarina); flex: none; }

.guias { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--margen) clamp(80px, 9vw, 128px); }
.guias-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.guia {
  position: relative; display: flex; flex-direction: column; gap: 24px; height: 100%; min-height: 188px;
  padding: 28px 28px 26px; border-radius: 4px; color: var(--tinta); text-decoration: none;
  background-color: var(--papel); background-image: var(--grano-papel), linear-gradient(to bottom, var(--papel-a), var(--papel-b)); background-size: 200px 200px, 100% 100%;
  box-shadow: var(--sombra-papel), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}
.guia::before {
  content: ""; position: absolute; right: 0; top: 0; width: 14px; height: 14px;
  background: linear-gradient(225deg, var(--noche) 50%, #E9E2D3 50%); border-radius: 0 0 0 3px;
}
.guia:hover { transform: translateY(-4px); }
.guia-titulo { font-family: var(--f-serif); font-weight: 600; font-size: 21px; line-height: 1.25; }
.guia:hover .guia-titulo { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.guia-lineas { display: grid; gap: 8px; margin-top: auto; }
.guia-lineas i { display: block; height: 5px; border-radius: 2px; background: #24344F; opacity: .22; }
.guia-lineas i:nth-child(1) { width: 92%; }
.guia-lineas i:nth-child(2) { width: 100%; }
.guia-lineas i:nth-child(3) { width: 58%; }

.pie { background: var(--noche-profunda); padding: 48px var(--margen) 56px; }
.pie::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--filete), transparent); }
.pie-in { max-width: 1192px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; color: var(--tenue); font-size: 15px; }
.pie-marca { display: flex; align-items: center; gap: 14px; font-weight: 800; font-stretch: 112%; font-size: 22px; color: var(--blanco); letter-spacing: -0.02em; }
.pie-marca img { width: 56px; height: 56px; }
.pie-textos { display: grid; gap: 2px; }
.pie nav { display: flex; gap: 4px; flex-wrap: wrap; }
.pie nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: #D5E0EE; text-decoration: none; border-radius: 8px; }
.pie nav a:hover { text-decoration: underline; }

.aviso-proto {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: #fff; color: var(--tinta); font-weight: 700; font-size: 16px;
  padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100vw - 32px); text-align: center;
}
.aviso-proto.es-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .planes-lista, .guias-lista { grid-template-columns: minmax(0, 1fr); }
  .planes-lista { gap: 20px; margin-top: 40px; max-width: 560px; }
  .plan-presentacion { margin-top: 0; }
  .confianza { grid-template-columns: minmax(0, 1fr); }
  .pie-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .cierre-marca { width: 120px; height: 120px; margin-bottom: 32px; }
  .cierre-logo { width: 120px; height: 120px; }
  .cierre-brillo { width: 264px; height: 264px; margin: -132px 0 0 -132px; }
  .cierre-linea, .entradilla, .linea, .confianza-linea { font-size: 17px; }
  .plan { padding: 16px 20px 22px; }
  .plan-presentacion { padding-top: 20px; }
  .plan-motivo { margin-left: -4px; margin-right: -4px; }
  .precio strong { font-size: 44px; }
}
@media (max-width: 480px) {
  .paso-0 .acciones .boton-ambar, .cierre .boton-ambar { width: 100%; }
  .anima .paso-0 .acciones { justify-content: center; }
}

/* Movimiento reducido: sin partículas, sin escenario fijo, sin transiciones */
@media (prefers-reduced-motion: reduce) {
  .polvo { display: none !important; }
  .aviso-proto, .plan, .plan::after, .guia, .boton, .ind-carril, .ind-chip i, .ind-chip b { transition: none; }
  .plan:hover, .guia:hover { transform: none; }
}
@media (prefers-contrast: more) {
  .grano, .polvo, .vineta, .luz { display: none !important; }
  .fase-plan, .fase-plan[data-plan] { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
}

/* Actualización de identidad: únicamente dimensiones del archivo de marca. */
.cabecera .marca .marca-logo { display:block; width:174px; height:40px; object-fit:contain; }
.pie-marca .marca-logo { width:200px; height:56px; object-fit:contain; }
@media(min-width:1024px){ .cabecera .marca .marca-logo { width:184px; height:44px; } }

/* El indicador permanece bajo el texto también en móvil apaisado. */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .anima .escenario { grid-template-rows: minmax(0, 1fr) 40px; grid-template-areas: "texto lienzo" "indicador lienzo"; }
  .anima .saltar { bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .recorrido-relleno, .recorrido-hito { transition: none; }
}
