/* =====================================================================
   iMoon ERP · portada
   Colores, letra y superficies del programa (OddsCRM.UI): los azules
   (#48E2F6 → #1478EE, y el azul hondo #005BFF), blanco frío en claro y el
   azul noche en oscuro, Montserrat y el
   relieve suave del acceso, en tono oscuro y claro. La luz de fondo de la
   portada y del cierre usa la misma paleta.

   Esquinas: tarjetas 24 px, marcos 16 px, casillas 14 px, botones en
   píldora. Movimiento: sólo transform y opacity; todo lo que se mueve
   vive al final, y con «reducir movimiento» la página queda quieta.
   ===================================================================== */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
  --c1: #48E2F6; --c2: #1478EE; --a1: #005BFF;
  --g-azul: linear-gradient(135deg, #48E2F6 0%, #1478EE 55%, #005BFF 100%);
  --degradado: linear-gradient(90deg, #21B5F0 0%, #1478EE 55%, #005BFF 100%);
  --degradado-diag: linear-gradient(135deg, #21B5F0 0%, #1478EE 50%, #005BFF 100%);
  --texto-grad: linear-gradient(90deg, #A6F3FF 0%, #48E2F6 40%, #1E8BFF 100%);
  --rosa: #FF5A6E;
  --sombra-marca: 20, 120, 238;

  /* Oscuro: el azul noche del programa */
  --fondo: #192033;
  --sup: #1B2236;
  --sup-2: #222A42;
  --hundido: #151B2B;
  --texto: #FFFFFF;
  --texto-2: #C2CADC;
  --texto-3: #97A3B8;
  --linea: #2A3248;
  --sombra-o: #0F1422;
  --sombra-c: #242D46;
  --verde: #3FDCA0;
  --cian: #48E2F6;
  --cian-texto: #5FD8F8;
  --nav-fondo: rgba(21, 27, 43, .72);
  --brillo: .55;
  --marco-borde: #0E1220;

  /* La portada y el cierre: fondo azul noche con luz de marca */
  --hero-fondo-0: #0F1424; --hero-fondo-1: #1D2540;
  --luz-fuerza: .55;
  --hero-texto: #FFFFFF; --hero-texto-2: #C9D2E3;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --resorte: cubic-bezier(.34, 1.36, .64, 1);

  --nav-alto: 68px;
  --radio: 24px;
  --tipo: "Montserrat", "Segoe UI", system-ui, sans-serif;
}
:root[data-tema="claro"] {
  --fondo: #E6E8EE;
  --sup: #EDEFF3;
  --sup-2: #FFFFFF;
  --hundido: #DDE0E7;
  --texto: #1E2433;
  --texto-2: #4A5160;
  --texto-3: #5C6474;
  --linea: rgba(30, 36, 51, .1);
  --sombra-o: rgba(146, 154, 174, .5);
  --sombra-c: rgba(255, 255, 255, .95);
  --verde: #0E9F6E;
  --rosa: #D12E46;
  --cian: #1478EE;
  --cian-texto: #0A5FC7;
  --nav-fondo: rgba(237, 239, 243, .78);
  --brillo: .35;
  --marco-borde: #232838;

  --hero-fondo-0: #E3E7EF; --hero-fondo-1: #FFFFFF;
  --luz-fuerza: .34;
  --hero-texto: #1B1E25; --hero-texto-2: #3F4656;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--nav-alto) + 8px); overflow-x: clip; color-scheme: dark; }
:root[data-tema="claro"] { color-scheme: light; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 1rem/1.6 var(--tipo); overflow-x: clip; transition: background-color 400ms ease, color 400ms ease; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--tipo); }
h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; max-width: 20ch; text-wrap: balance; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0; }
::selection { background: rgba(72, 226, 246, .3); }
:focus-visible { outline: 2px solid var(--cian); outline-offset: 3px; border-radius: 8px; }
.grad { background: var(--texto-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-tema="claro"] .grad { background: linear-gradient(90deg, #1478EE 0%, #005BFF 100%); -webkit-background-clip: text; background-clip: text; }

:root[data-tema="claro"] .solo-oscuro, :root[data-tema="oscuro"] .solo-claro { display: none; }
.captura img { width: 100%; height: auto; }

.envoltura { width: min(1240px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .envoltura { width: min(1240px, 100% - 64px); } }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--sup); }
.saltar:focus { top: 12px; }
.centinela { position: absolute; top: 0; height: 24px; width: 1px; }

/* Íconos: trazo de 1.9, del color del texto (Icono.razor del programa) */
.ico { width: 22px; height: 22px; flex: none; }

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 700 .98rem/1 var(--tipo); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease;
}
.boton .ico { width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
.boton:active { transform: scale(.97); }
.boton-grande { min-height: 58px; padding: 0 30px; font-size: 1.04rem; }
.boton-primario { color: #fff; background: var(--degradado); box-shadow: 0 10px 28px rgba(var(--sombra-marca), var(--brillo)); }
.boton-suave { color: var(--texto); background: var(--sup); box-shadow: -5px -5px 12px var(--sombra-c), 6px 6px 14px var(--sombra-o); }
.boton-vidrio { color: var(--hero-texto); background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
:root[data-tema="claro"] .boton-vidrio { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(35, 38, 45, .12), 0 8px 20px -12px rgba(60, 70, 100, .35); }
.boton-chico { min-height: 40px; padding: 0 20px; font-size: .92rem; }
.boton-ancho { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .boton-primario:hover { box-shadow: 0 14px 34px rgba(var(--sombra-marca), calc(var(--brillo) + .15)); }
  .boton-suave:hover { box-shadow: -3px -3px 8px var(--sombra-c), 4px 4px 10px var(--sombra-o); }
  .boton-vidrio:hover { background: rgba(255, 255, 255, .14); }
  .boton:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
}
.boton-icono { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px; color: var(--texto); background: transparent; cursor: pointer; touch-action: manipulation; transition: transform 140ms var(--ease-out); }
.boton-icono:active { transform: scale(.94); }
.boton-icono .ico { grid-area: 1 / 1; transition: opacity 200ms ease, transform 250ms var(--ease-out); }

/* El interruptor de tema */
.tema { padding: 4px; border: 0; background: none; cursor: pointer; touch-action: manipulation; border-radius: 999px; }
.tema-pista { position: relative; display: block; width: 66px; height: 34px; border-radius: 999px; background: var(--hundido); box-shadow: inset 3px 3px 7px var(--sombra-o), inset -3px -3px 7px var(--sombra-c); }
.tema-pista > .ico { position: absolute; top: 9px; width: 16px; height: 16px; color: var(--texto-3); opacity: .75; }
.tema-fondo-sol { left: 9px; }
.tema-fondo-luna { right: 9px; }
.tema-perilla { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: #0E1220; color: #48E2F6; box-shadow: 0 4px 12px rgba(0, 0, 0, .5), inset 0 0 0 1px #2A3248; transform: translateX(32px); transition: transform 420ms var(--resorte); }
:root[data-tema="claro"] .tema-perilla { transform: translateX(0); color: #fff; background: var(--g-azul); box-shadow: 0 4px 12px rgba(20, 120, 238, .45); }
.tema-perilla .ico { grid-area: 1 / 1; width: 16px; height: 16px; transition: opacity 250ms ease, transform 420ms var(--ease-out); }
:root[data-tema="oscuro"] .tema-perilla .ico-sol, :root[data-tema="claro"] .tema-perilla .ico-luna { opacity: 0; transform: rotate(-90deg) scale(.5); }

/* ---------------------------------------------------------------------
   Navegación: sobre la portada, transparente; al bajar, material translúcido
   --------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background-color 250ms ease, box-shadow 250ms ease; color: var(--hero-texto); }
.nav.con-fondo { background: var(--nav-fondo); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--linea); color: var(--texto); }
@media (prefers-reduced-transparency: reduce) { .nav.con-fondo { background: var(--fondo); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.nav-in { display: flex; align-items: center; gap: 22px; height: var(--nav-alto); width: min(1240px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .nav-in { width: min(1240px, 100% - 64px); } }
.nav-marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem/1 var(--tipo); letter-spacing: -.035em; }
.nav-marca small { font: 700 .66rem/1 var(--tipo); letter-spacing: .2em; opacity: .7; margin-left: 2px; }
.logo-nav { width: 38px; height: 38px; }
.nav-enlaces { display: flex; gap: 2px; margin-left: auto; }
.nav-enlaces a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; opacity: .82; transition: opacity 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-enlaces a:hover { opacity: 1; background: rgba(127, 135, 160, .16); } }
.nav-acciones { display: flex; align-items: center; gap: 8px; }
.nav-abrir { display: none; color: inherit; }
.ico-x { opacity: 0; transform: rotate(-45deg); }
.nav-abrir[aria-expanded="true"] .ico-x { opacity: 1; transform: none; }
.nav-abrir[aria-expanded="true"] .ico-lista { opacity: 0; transform: rotate(45deg); }
@media (max-width: 899px) {
  .nav-acciones { margin-left: auto; }
  .nav-abrir { display: grid; }
  .nav-enlaces {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; color: var(--texto);
    flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--radio); background: var(--sup);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45), 0 0 0 1px var(--linea);
    transform-origin: top right; opacity: 0; transform: scale(.96) translateY(-6px); visibility: hidden;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav-enlaces.abierto { opacity: 1; transform: none; visibility: visible; transition: opacity 180ms ease, transform 220ms var(--ease-out); }
  .nav-enlaces a { padding: 14px 16px; font-size: 1.05rem; opacity: 1; }
}
@media (max-width: 420px) { .nav-marca span { display: none; } }

/* ---------------------------------------------------------------------
   El fondo de la portada y del cierre: sólo CSS. Un azul noche, tres luces
   grandes con el degradado de la marca que se desplazan muy despacio
   (transform y opacity) y una rejilla tenue que se desvanece hacia los bordes.
   --------------------------------------------------------------------- */
.fondo-luz { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 90% at 70% 30%, var(--hero-fondo-1) 0%, var(--hero-fondo-0) 70%); }
.fondo-luz::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120, 150, 210, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 210, .09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.luz { position: absolute; display: block; border-radius: 50%; opacity: var(--luz-fuerza); }
.luz-1 { width: 62vmax; height: 62vmax; left: 38%; top: -24%; background: radial-gradient(closest-side, rgba(20, 120, 238, .62), transparent); }
.luz-2 { width: 54vmax; height: 54vmax; left: 58%; top: 14%; background: radial-gradient(closest-side, rgba(0, 91, 255, .5), transparent); }
.luz-3 { width: 40vmax; height: 40vmax; left: -12%; top: 30%; background: radial-gradient(closest-side, rgba(72, 226, 246, .32), transparent); }
.fondo-luz-suave .luz { opacity: calc(var(--luz-fuerza) * .7); }
.fondo-luz-suave .luz-1 { left: -18%; top: -10%; }
.fondo-luz-suave .luz-2 { left: 55%; top: 20%; }

/* ---------------------------------------------------------------------
   Portada: a sangre, detrás de la barra; la luz de la marca de fondo, el titular
   grande a la izquierda y los tres dispositivos, quietos, a la derecha.
   --------------------------------------------------------------------- */
.hero { position: relative; margin-top: calc(-1 * var(--nav-alto)); padding: calc(var(--nav-alto) + clamp(20px, 4vw, 48px)) 0 clamp(48px, 6vw, 88px); color: var(--hero-texto); isolation: isolate; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 0; background: linear-gradient(transparent, var(--fondo)); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-in { grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); min-height: min(calc(100svh - var(--nav-alto) - 90px), 760px); } }
.hero-marca { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; font: 800 1.5rem/1 var(--tipo); letter-spacing: -.04em; cursor: pointer; }
.hero-marca b { font-weight: 700; font-size: .62em; letter-spacing: .22em; opacity: .7; vertical-align: .35em; }
.logo-grande { width: 84px; height: 84px; filter: drop-shadow(0 12px 28px rgba(var(--sombra-marca), .45)); }
.hero h1 { font-size: clamp(2.7rem, 1.1rem + 4.7vw, 5.5rem); font-weight: 800; line-height: .98; letter-spacing: -.058em; max-width: 13ch; text-wrap: balance; }
.hero-lema { margin-top: 24px; max-width: 36ch; font-size: clamp(1.08rem, .95rem + .5vw, 1.32rem); font-weight: 500; line-height: 1.5; color: var(--hero-texto-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-escena::before { content: ""; position: absolute; z-index: 0; left: 30%; top: -18%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(72, 226, 246, .32), rgba(20, 120, 238, .14) 55%, transparent); pointer-events: none; }
:root[data-tema="claro"] .hero-escena::before { background: radial-gradient(closest-side, rgba(72, 226, 246, .34), rgba(20, 120, 238, .1) 55%, transparent); }
.hero-escena { position: relative; perspective: 1700px; perspective-origin: 50% 40%; aspect-ratio: 760 / 600; width: 100%; }
.escenario { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(6deg) rotateY(-17deg); }
.disp { position: absolute; margin: 0; transform-style: preserve-3d; }
.disp-pantalla { position: relative; overflow: hidden; background: #111; }
.disp-pantalla img { height: 100%; object-fit: cover; object-position: top left; }
.disp-laptop { left: 6%; top: 14%; width: 78%; }
.disp-tapa { padding: 2% 2% 2.6%; border-radius: 18px 18px 6px 6px; background: var(--marco-borde); box-shadow: 0 0 0 1px #3d414a inset, 0 60px 90px -40px rgba(0, 0, 0, .75); }
.disp-tapa .disp-pantalla { aspect-ratio: 16 / 10.2; border-radius: 6px; }
.disp-base { height: 3.2%; min-height: 12px; margin: 0 -8%; border-radius: 0 0 18px 18px; background: linear-gradient(#5a5f69, #2f3238); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6); transform-origin: top; transform: rotateX(-70deg); }
.disp-tablet { left: -3%; top: 50%; width: 46%; padding: 1.3%; border-radius: 20px; background: var(--marco-borde); box-shadow: 0 0 0 1px #3d414a inset, 0 40px 70px -30px rgba(0, 0, 0, .75); transform: translateZ(90px) rotateY(10deg); }
.disp-tablet .disp-pantalla { aspect-ratio: 16 / 10; border-radius: 12px; }
.disp-tel { right: 0; top: 34%; width: 22%; padding: .9%; border-radius: 26px; background: var(--marco-borde); box-shadow: 0 0 0 1px #3d414a inset, 0 50px 80px -30px rgba(0, 0, 0, .8); transform: translateZ(170px) rotateY(-8deg); }
.disp-tel .disp-pantalla { aspect-ratio: 9 / 19.5; border-radius: 20px; }
@media (max-width: 1023px) { .hero-escena { max-width: 680px; margin-inline: auto; } }
@media (max-width: 639px) {
  .hero-escena { perspective: 1100px; aspect-ratio: 760 / 620; }
  .disp-tapa { border-radius: 10px 10px 4px 4px; }
  .disp-tablet { left: 0; border-radius: 10px; transform: translateZ(60px) rotateY(10deg); }
  .disp-tablet .disp-pantalla { border-radius: 6px; }
  .disp-tel { border-radius: 14px; transform: translateZ(110px) rotateY(-8deg); }
  .disp-tel .disp-pantalla { border-radius: 11px; }
  .logo-grande { width: 64px; height: 64px; }
  .hero-marca { margin-bottom: 18px; font-size: 1.25rem; }
}

/* El logo: las piezas que anima logo.js */
.logo-svg { overflow: visible; }
.logo-linea { stroke-dasharray: 1; stroke-dashoffset: 0; }
.logo-flecha, .logo-sombra { transform-box: view-box; }
.logo-punto, .logo-anillo { transform-box: fill-box; transform-origin: center; }

/* ---------------------------------------------------------------------
   La banda de cifras
   --------------------------------------------------------------------- */
.banda { position: relative; padding: clamp(8px, 2vw, 24px) 0 clamp(36px, 5vw, 64px); }
.banda-in { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1024px) { .banda-in { grid-template-columns: repeat(4, 1fr); } }
.dato { position: relative; display: grid; gap: 6px; padding: 22px 22px 20px; border-radius: var(--radio); background: var(--sup); box-shadow: -6px -6px 16px var(--sombra-c), 8px 8px 20px var(--sombra-o); overflow: hidden; }
.dato::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--degradado); }
.dato-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--degradado-diag); box-shadow: 0 8px 18px rgba(var(--sombra-marca), var(--brillo)); margin-bottom: 6px; }
.dato b { font: 800 clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--tipo); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.dato b span { background: var(--texto-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-tema="claro"] .dato b span { background: linear-gradient(90deg, #1478EE 0%, #005BFF 100%); -webkit-background-clip: text; background-clip: text; }
.dato b small { font-size: .4em; letter-spacing: -.01em; color: var(--texto-2); }
.dato > span:last-child { font-size: .92rem; font-weight: 500; color: var(--texto-2); line-height: 1.35; }

/* ---------------------------------------------------------------------
   Recorrido 3D: una pantalla + 4 tramos; adentro, una capa fija con el
   texto y la pila. Las pantallas quedan quietas en su marco; lo que gira
   es el paso de una a otra.
   --------------------------------------------------------------------- */
.recorrido { --tramo: 38svh; height: calc(100svh + 4 * var(--tramo)); view-timeline-name: --tour; view-timeline-axis: block; }
.recorrido-fijo { position: sticky; top: 0; height: 100svh; padding-top: var(--nav-alto); display: flex; align-items: center; overflow: clip; }
.recorrido-in { display: grid; gap: 28px; align-items: center; width: min(1240px, 100% - 32px); }
@media (min-width: 1024px) { .recorrido-in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.recorrido-nota { margin-top: 10px; font-size: .92rem; color: var(--texto-3); }
.leyendas { display: grid; margin-top: 28px; }
.leyenda { grid-area: 1 / 1; }
.leyenda h3 { font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.12; }
.leyenda p { margin-top: 10px; max-width: 42ch; font-size: 1.02rem; color: var(--texto-2); }
.progreso { margin-top: 30px; }
.progreso-pista { height: 4px; border-radius: 999px; background: var(--hundido); overflow: hidden; }
.progreso-barra { display: block; height: 100%; background: var(--degradado); transform-origin: left; }
.etiquetas { list-style: none; margin: 10px 0 0; padding: 0; display: flex; justify-content: space-between; gap: 4px; }
.etiquetas button { padding: 6px 2px; border: 0; background: none; cursor: pointer; font: 700 .8rem/1 var(--tipo); color: var(--texto); touch-action: manipulation; }
.pila { position: relative; perspective: 2000px; perspective-origin: 50% 30%; }
/* La palabra gigante que cruza detrás de cada pantalla, sólo el contorno. */
.palabras { position: absolute; inset: -10% -30% -10% -20%; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.palabras b { grid-area: 1 / 1; font: 800 clamp(5rem, 13vw, 13rem)/.8 var(--tipo); letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px var(--linea); opacity: 0; }
:root[data-tema="claro"] .palabras b { -webkit-text-stroke-color: #CDD3DF; }
.pila-3d { position: relative; aspect-ratio: 1600 / 1100; transform-style: preserve-3d; margin-top: 8%; }
.carta { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: 18px; background: var(--sup); box-shadow: 0 0 0 1px var(--linea), 0 50px 90px -34px rgba(0, 0, 0, .6); backface-visibility: hidden; }
.carta-foto { position: absolute; inset: 34px 0 0; }
.carta-foto img { height: 100%; object-fit: cover; object-position: top left; }
.marco-barra { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--sup-2); border-bottom: 1px solid var(--linea); }
.marco-barra i { width: 10px; height: 10px; border-radius: 50%; background: var(--hundido); box-shadow: inset 0 0 0 1px var(--linea); }
.marco-barra span { margin-left: 8px; padding: 3px 12px; border-radius: 999px; background: var(--hundido); color: var(--texto-3); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1023px) {
  .recorrido { --tramo: 36svh; }
  .recorrido-texto { display: contents; }
  .recorrido-texto h2 { order: 0; font-size: 1.6rem; }
  .recorrido-nota { display: none; }
  .progreso { order: 1; margin-top: 0; }
  .pila { order: 2; }
  .leyendas { order: 3; margin-top: 0; min-height: 7.5em; }
  .leyenda h3 { font-size: 1.25rem; }
  .leyenda p { font-size: .95rem; }
  .recorrido-in { gap: 16px; }
  .marco-barra { height: 26px; }
  .carta-foto { inset: 26px 0 0; }
}

/* ---------------------------------------------------------------------
   Secciones
   --------------------------------------------------------------------- */
.seccion { padding: clamp(36px, 5vw, 64px) 0; }
.ceja { margin-bottom: 12px; font: 800 .76rem/1 var(--tipo); letter-spacing: .18em; text-transform: uppercase; color: var(--cian-texto); }
.seccion-intro { margin-top: 14px; max-width: 58ch; font-size: 1.06rem; color: var(--texto-2); }

/* Módulos */
.bento { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: 1fr; perspective: 1400px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.modulo { transform-style: preserve-3d; }
@media (min-width: 640px) { .modulo-ancho { grid-column: span 2; } }
.modulo-in { position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radio); background: var(--sup); box-shadow: -6px -6px 16px var(--sombra-c), 8px 8px 20px var(--sombra-o); }
.modulo p { color: var(--texto-2); font-size: .94rem; }
.modulo-ico, .razon-ico, .cifra-ico, .descarga-ico, .via-ico, .dato-ico { display: grid; place-items: center; flex: none; }
.modulo-ico { width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; color: #fff; background: var(--degradado-diag); box-shadow: 0 8px 18px rgba(var(--sombra-marca), var(--brillo)); }
.modulo-ico .ico { width: 25px; height: 25px; }
.modulo-ancho .modulo-in { padding: 0; gap: 0; }
.modulo-ancho .modulo-texto { padding: 24px 24px 16px; display: flex; flex-direction: column; gap: 8px; }
.modulo-foto { position: relative; margin: 0 0 -1px 24px; height: 190px; overflow: hidden; border-top-left-radius: 14px; box-shadow: 0 0 0 1px var(--linea); }
.modulo-foto img { object-fit: cover; object-position: top left; }
.modulo-tinte .modulo-in { background: radial-gradient(120% 90% at 100% 0%, rgba(72, 226, 246, .24), transparent 60%), linear-gradient(160deg, #1F2A4A 0%, #141B2E 100%); color: #fff; }
.modulo-tinte p { color: #C2CADC; }
.modulo-tinte .modulo-ico { background: #fff; color: #1478EE; box-shadow: 0 8px 18px rgba(var(--sombra-marca), var(--brillo)); }
@media (min-width: 1024px) { .modulo-chat .modulo-in { flex-direction: row; align-items: center; } .modulo-chat .modulo-texto { flex: 1; padding-bottom: 24px; } }
.modulo-luz { position: absolute; left: -150px; top: -150px; width: 300px; height: 300px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(closest-side, rgba(120, 220, 255, .16), transparent); opacity: 0; transition: opacity 300ms ease; }
:root[data-tema="claro"] .modulo-luz { background: radial-gradient(closest-side, rgba(255, 255, 255, .95), transparent); }
.modulo-in.encima .modulo-luz { opacity: 1; }
:root[data-tema="claro"] .modulo-in.encima .modulo-luz { opacity: .55; }
.burbujas { list-style: none; margin: 0; padding: 0 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; font-size: .86rem; }
@media (min-width: 1024px) { .burbujas { padding: 24px 24px 24px 0; } }
.burbujas li { max-width: 92%; padding: 9px 14px; border-radius: 16px; line-height: 1.35; }
.burbujas b { display: block; font-size: .72rem; color: var(--cian-texto); margin-bottom: 2px; }
.b-otro { background: var(--hundido); border-bottom-left-radius: 4px; }
.b-mio { align-self: flex-end; color: #fff; background: var(--degradado); border-bottom-right-radius: 4px; }

/* Los números del sportbook */
.numeros { display: grid; gap: 32px; align-items: center; padding: clamp(36px, 5vw, 64px) 0; }
@media (min-width: 1024px) { .numeros { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.cifras { display: grid; gap: 12px; margin: 26px 0 0; }
.cifra { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--hundido); box-shadow: inset 3px 3px 8px var(--sombra-o), inset -3px -3px 8px var(--sombra-c); }
.cifra-ico { width: 40px; height: 40px; border-radius: 12px; color: var(--cian-texto); background: var(--sup); box-shadow: -3px -3px 8px var(--sombra-c), 4px 4px 10px var(--sombra-o); }
.cifra dt { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--texto-2); font-weight: 600; }
.cifra dd { margin: 0; font: 800 clamp(1.4rem, 1rem + 1.3vw, 2rem)/1.1 var(--tipo); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--verde); }
.cifra dd small { font-size: .55em; font-weight: 600; color: var(--texto-3); letter-spacing: 0; }
.cifra-roja { color: var(--rosa); }
.numeros-nota { margin-top: 14px; font-size: .85rem; color: var(--texto-3); }
.grafico { margin: 0; padding: 20px; border-radius: var(--radio); background: var(--sup); box-shadow: -6px -6px 16px var(--sombra-c), 8px 8px 20px var(--sombra-o); }
.grafico svg { width: 100%; height: auto; overflow: visible; }
.grafico-ejes line { stroke: var(--texto-3); stroke-width: 1; opacity: .5; }
.grafico-ejes line.tenue { opacity: .14; }
.grafico-ejes text { fill: var(--texto-3); font: 500 11px var(--tipo); text-anchor: end; }
.grafico-ejes text.der { text-anchor: start; }
.grafico-ejes text.pie-eje { text-anchor: middle; }
.barras rect { transform-box: fill-box; }
.barras .gana { fill: var(--verde); transform-origin: 50% 100%; }
.barras .pierde { fill: var(--rosa); transform-origin: 50% 0%; }
.acumulado { fill: none; stroke: var(--texto-2); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.acumulado-punto { fill: var(--texto); stroke: var(--sup); stroke-width: 3; }

/* Por qué */
.razones { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .razones { grid-template-columns: repeat(2, 1fr); } .razon-ancha:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .razones { grid-template-columns: repeat(3, 1fr); } .razon-ancha, .razon-ancha:last-child { grid-column: span 2; } }
.razon { display: flex; gap: 16px; padding: 22px; border-radius: var(--radio); background: var(--sup); box-shadow: -5px -5px 14px var(--sombra-c), 6px 6px 16px var(--sombra-o); }
.razon-ancha { background: radial-gradient(120% 120% at 0% 0%, rgba(72, 226, 246, .16), transparent 60%), var(--sup); }
.razon-ancha h3 { font-size: 1.25rem; }
.razon-ico { width: 46px; height: 46px; border-radius: 14px; color: var(--cian-texto); background: var(--hundido); box-shadow: inset 2px 2px 6px var(--sombra-o), inset -2px -2px 6px var(--sombra-c); }
.razon-ico .ico { width: 24px; height: 24px; }
.razon h3 { margin-bottom: 4px; }
.razon p { color: var(--texto-2); font-size: .94rem; }

/* Descargas: Windows con su logo, las tablets con el de Android */
.descargas { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 768px) { .descargas { grid-template-columns: 1fr 1fr; } .descarga-pc { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .descargas { grid-template-columns: 2fr 1fr 1fr; } .descarga-pc { grid-column: auto; } }
.descarga { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border-radius: var(--radio); background: var(--sup); box-shadow: -6px -6px 16px var(--sombra-c), 8px 8px 20px var(--sombra-o); }
.descarga p { color: var(--texto-2); flex: 1; font-size: .94rem; }
.descarga .boton { margin-top: 6px; }
.descarga .boton .ico { width: 18px; height: 18px; }
.descarga-ico { width: 52px; height: 52px; border-radius: 15px; }
.descarga-ico .ico { width: 28px; height: 28px; }
.descarga-windows { color: #fff; background: linear-gradient(135deg, #1A8CFF, #0058B8); box-shadow: 0 8px 18px rgba(0, 120, 212, .4); }
.descarga-android { color: #0B2A1C; background: linear-gradient(135deg, #5BE59E, #2FBF71); box-shadow: 0 8px 18px rgba(61, 220, 132, .32); }
.descarga-pc { padding: 0; overflow: hidden; display: grid; gap: 0; }
@media (min-width: 640px) { .descarga-pc { grid-template-columns: 1fr 1fr; } }
.descarga-foto { position: relative; min-height: 200px; overflow: hidden; background: var(--hundido); }
.descarga-foto img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 22% 50%; }
.descarga-texto { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
.descargas-nota { margin-top: 18px; max-width: 72ch; font-size: .9rem; color: var(--texto-3); }

/* ---------------------------------------------------------------------
   Cierre: la luz de la marca otra vez, más suave; el titular y el formulario.
   --------------------------------------------------------------------- */
.cierre { position: relative; isolation: isolate; padding: clamp(56px, 8vw, 110px) 0; color: var(--hero-texto); overflow: hidden; }
.cierre::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100px; z-index: 1; background: linear-gradient(var(--fondo), transparent); pointer-events: none; }
.cierre-in { position: relative; z-index: 2; display: grid; gap: 36px; }
@media (min-width: 1024px) { .cierre-in { grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; } }
.cierre-titulo { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.6rem); line-height: .98; letter-spacing: -.055em; max-width: 12ch; }
.cierre .seccion-intro { color: var(--hero-texto-2); }
.vias { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.via { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px; width: fit-content; max-width: 100%; border-radius: 999px; text-decoration: none; color: var(--texto); background: var(--sup); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--linea); transition: transform 140ms var(--ease-out); }
.via:active { transform: scale(.98); }
.via small { display: block; font-size: .78rem; color: var(--texto-3); }
.via b { font: 800 1.2rem/1.2 var(--tipo); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.via-ico { width: 48px; height: 48px; border-radius: 999px; color: #fff; background: var(--g-azul); }
.via-wa { background: linear-gradient(135deg, #3FDCA0, #0E9F6E); }
.via-ico .ico { width: 26px; height: 26px; }
.formulario { display: grid; gap: 16px; padding: clamp(22px, 3.4vw, 32px); border-radius: var(--radio); color: var(--texto); background: color-mix(in srgb, var(--sup) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--linea); }
.formulario h3 { font-size: 1.35rem; font-weight: 800; }
.formulario-ayuda { margin-top: -8px; color: var(--texto-2); font-size: .92rem; }
.formulario .boton .ico { width: 20px; height: 20px; }
.campos { display: grid; gap: 14px; }
@media (min-width: 640px) { .campos { grid-template-columns: 1fr 1fr; } .campo-ancho { grid-column: 1 / -1; } }
.campo { display: grid; gap: 7px; align-content: start; }
.campo label { font-weight: 600; font-size: .92rem; }
.opcional { font-weight: 400; color: var(--texto-3); }
.campo input, .campo textarea { width: 100%; padding: 13px 16px; border: 1px solid transparent; border-radius: 14px; font: 400 16px/1.4 var(--tipo); color: var(--texto); background: var(--hundido); box-shadow: inset 3px 3px 8px var(--sombra-o), inset -3px -3px 8px var(--sombra-c); transition: border-color 200ms ease, box-shadow 200ms ease; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--cian); box-shadow: inset 3px 3px 8px var(--sombra-o), inset -3px -3px 8px var(--sombra-c), 0 0 0 3px rgba(33, 181, 240, .28); }
.campo [aria-invalid="true"] { border-color: var(--rosa); }
.campo-error { color: var(--rosa); font-size: .88rem; font-weight: 600; }
:root[data-tema="claro"] .campo-error { color: #C8255A; }

/* Pie */
.pie { padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linea); }
.pie-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.pie-marca { display: grid; gap: 8px; }
.pie-marca p { font-size: .88rem; color: var(--texto-3); }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pie-enlaces a { color: var(--texto-2); text-decoration: none; font-weight: 600; font-size: .94rem; }
@media (hover: hover) and (pointer: fine) { .pie-enlaces a:hover { color: var(--texto); } }
.pie-legal { margin-left: auto; color: var(--texto-3); font-size: .9rem; }
@media (max-width: 639px) { .pie-legal { margin-left: 0; width: 100%; } }

/* =====================================================================
   MOVIMIENTO · todo dentro de «no-preference»
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Portada: el texto llega escalonado; los dispositivos entran UNA vez y quedan quietos. */
  .js .entra { animation: entra 1000ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
  .js .hero h1.entra { animation-name: entra-titulo; }
  .js .disp-laptop { animation: llega-laptop 1400ms var(--ease-out) 250ms both; }
  .js .disp-tablet { animation: llega-tablet 1400ms var(--ease-out) 420ms both; }
  .js .disp-tel { animation: llega-tel 1400ms var(--ease-out) 560ms both; }

  /* Títulos: se levantan en profundidad. Tarjetas y cifras: revelado escalonado en profundidad. */
  .js .titulo { opacity: 0; transform: perspective(700px) translate3d(0, 28px, 0) rotateX(-32deg); transform-origin: 50% 100%; }
  .js .modulo, .js .razon, .js .descarga, .js .grafico, .js .cifra, .js .dato { opacity: 0; transform: perspective(1000px) translate3d(0, 34px, -140px) rotateX(14deg); }
  .js .visible { opacity: 1 !important; transform: none !important; transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .modulo-chat .burbujas li { opacity: 0; transform: translateY(10px) scale(.97); }
  .js .modulo-chat.visible .burbujas li { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .modulo-chat.visible .burbujas li:nth-child(1) { transition-delay: 700ms; }
  .js .modulo-chat.visible .burbujas li:nth-child(2) { transition-delay: 1300ms; }

  /* El gráfico del sportbook */
  .js .barras rect { transform: scaleY(.02); opacity: 0; }
  .js .grafico.dibujado .barras rect { transform: none; opacity: 1; transition: transform 900ms var(--ease-out), opacity 300ms ease; transition-delay: calc(var(--b) * 45ms + 200ms); }
  .js .acumulado { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .grafico.dibujado .acumulado { stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms var(--ease-in-out) 500ms; }
  .js .acumulado-punto { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
  .js .grafico.dibujado .acumulado-punto { opacity: 1; transform: none; transition: opacity 300ms ease 2200ms, transform 500ms var(--ease-out) 2200ms; }

  /* Recorrido 3D ligado al desplazamiento */
  .con-linea .carta, .con-linea .palabras b { animation: carta linear both; animation-timeline: --tour; animation-range: contain calc(var(--k) * 25% - 18.75%) contain calc(var(--k) * 25% + 18.75%); }
  .con-linea .palabras b { animation-name: palabra-cruza; }
  .con-linea .leyenda { animation: leyenda linear both; animation-timeline: --tour; }
  .con-linea .etiquetas button { animation: etiqueta linear both; animation-timeline: --tour; }
  .con-linea .leyenda:nth-child(1), .con-linea .etiquetas li:nth-child(1) button { animation-range: contain -12.5% contain 12.5%; }
  .con-linea .leyenda:nth-child(2), .con-linea .etiquetas li:nth-child(2) button { animation-range: contain 12.5% contain 37.5%; }
  .con-linea .leyenda:nth-child(3), .con-linea .etiquetas li:nth-child(3) button { animation-range: contain 37.5% contain 62.5%; }
  .con-linea .leyenda:nth-child(4), .con-linea .etiquetas li:nth-child(4) button { animation-range: contain 62.5% contain 87.5%; }
  .con-linea .leyenda:nth-child(5), .con-linea .etiquetas li:nth-child(5) button { animation-range: contain 87.5% contain 112.5%; }
  .con-linea .progreso-barra { animation: progreso linear both; animation-timeline: --tour; animation-range: contain 0% contain 100%; }
  .js:not(.con-linea) .carta { animation: carta 1000ms linear both paused; }
  .js:not(.con-linea) .leyenda { animation: leyenda 1000ms linear both paused; }
  .js:not(.con-linea) .etiquetas button { animation: etiqueta 1000ms linear both paused; }
  .js:not(.con-linea) .progreso-barra { animation: progreso 1000ms linear both paused; }
  .js:not(.con-linea) .palabras b { animation: palabra-cruza 1000ms linear both paused; }

  /* Las luces del fondo derivan muy despacio (una vuelta en 26-34 s). */
  .luz-1 { animation: deriva-1 28s ease-in-out infinite alternate; }
  .luz-2 { animation: deriva-2 34s ease-in-out infinite alternate; }
  .luz-3 { animation: deriva-3 26s ease-in-out infinite alternate; }

  @media (hover: hover) and (pointer: fine) {
    .modulo-ico, .razon-ico { transition: transform 400ms var(--resorte); }
    .modulo-in:hover .modulo-ico { transform: translateY(-3px) rotate(-6deg); }
    .razon:hover .razon-ico { transform: translateY(-3px) rotate(-6deg); }
  }
}

@keyframes deriva-1 { to { transform: translate3d(-8%, 6%, 0) scale(1.08); } }
@keyframes deriva-2 { to { transform: translate3d(-10%, -8%, 0) scale(.94); } }
@keyframes deriva-3 { to { transform: translate3d(12%, -6%, 0) scale(1.1); opacity: calc(var(--luz-fuerza) * .7); } }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }
@keyframes entra-titulo { from { opacity: .2; transform: perspective(800px) translateY(40px) rotateX(-24deg); } }
@keyframes llega-laptop { from { opacity: 0; transform: translate3d(0, 40px, -420px) rotateX(18deg) rotateY(22deg); } }
@keyframes llega-tablet { from { opacity: 0; transform: translate3d(-120px, 60px, -260px) rotateY(40deg); } }
@keyframes llega-tel { from { opacity: 0; transform: translate3d(120px, 80px, 420px) rotateY(-36deg) rotateZ(6deg); } }
/* Llega desde abajo y el fondo girando, se queda de frente, sale hacia arriba y atrás. */
@keyframes carta {
  0%     { opacity: 0; transform: translate3d(10%, 78%, -1100px) rotateX(-52deg) rotateY(30deg) rotateZ(8deg) scale(.66); animation-timing-function: cubic-bezier(.3, .25, .35, 1); }
  5%     { opacity: 1; }
  33.33%, 66.67% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.65, 0, .7, .75); }
  95%    { opacity: 1; }
  100%   { opacity: 0; transform: translate3d(-8%, -62%, -1000px) rotateX(46deg) rotateY(-22deg) rotateZ(-7deg) scale(.62); }
}
/* La palabra cruza de derecha a izquierda, más despacio que la pantalla. */
@keyframes palabra-cruza {
  0%   { opacity: 0; transform: translateX(34%); }
  33.33%, 66.67% { opacity: .9; }
  100% { opacity: 0; transform: translateX(-34%); }
}
@keyframes leyenda { 0% { opacity: 0; transform: translateY(26px); } 30%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes etiqueta { 0%, 100% { opacity: .64; } 30%, 70% { opacity: 1; } }
@keyframes progreso { from { transform: scaleX(.02); } to { transform: scaleX(1); } }
@keyframes carta-quieta { 0%, 22% { opacity: 0; } 33.33%, 66.67% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes leyenda-quieta { 0%, 25% { opacity: 0; } 35%, 65% { opacity: 1; } 75%, 100% { opacity: 0; } }

/* Con «reducir movimiento»: nada se traslada ni gira; el recorrido cambia de pantalla con un fundido. */
@media (prefers-reduced-motion: reduce) {
  .con-linea .carta { animation: carta-quieta linear both; animation-timeline: --tour; animation-range: contain calc(var(--k) * 25% - 18.75%) contain calc(var(--k) * 25% + 18.75%); }
  .palabras { display: none; }
  .con-linea .leyenda { animation: leyenda-quieta linear both; animation-timeline: --tour; }
  .con-linea .leyenda:nth-child(1) { animation-range: contain -12.5% contain 12.5%; }
  .con-linea .leyenda:nth-child(2) { animation-range: contain 12.5% contain 37.5%; }
  .con-linea .leyenda:nth-child(3) { animation-range: contain 37.5% contain 62.5%; }
  .con-linea .leyenda:nth-child(4) { animation-range: contain 62.5% contain 87.5%; }
  .con-linea .leyenda:nth-child(5) { animation-range: contain 87.5% contain 112.5%; }
  .js:not(.con-linea) .carta { animation: carta-quieta 1000ms linear both paused; }
  .js:not(.con-linea) .leyenda { animation: leyenda-quieta 1000ms linear both paused; }
}

.carta:nth-child(1), .palabras b:nth-child(1) { --k: 0; }
.carta:nth-child(2), .palabras b:nth-child(2) { --k: 1; }
.carta:nth-child(3), .palabras b:nth-child(3) { --k: 2; }
.carta:nth-child(4), .palabras b:nth-child(4) { --k: 3; }
.carta:nth-child(5), .palabras b:nth-child(5) { --k: 4; }

/* Capas del fondo, cada una con su paralaje. */
.par-1, .par-2, .par-3 { position: absolute; inset: 0; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .par-1, .par-2, .par-3 { animation: linear both; animation-timeline: scroll(root); animation-range: 0px 1100px; }
    .par-1 { animation-name: par-1; }
    .par-2 { animation-name: par-2; }
    .par-3 { animation-name: par-3; }
  }
}
@keyframes par-1 { to { transform: translateY(-70px); } }
@keyframes par-2 { to { transform: translateY(-170px); } }
@keyframes par-3 { to { transform: translateY(-260px); } }

/* Con seis razones, la última ocupa la fila entera en pantallas anchas: sin hueco. */
@media (min-width: 1024px) { .razones > .razon:last-child:not(.razon-ancha) { grid-column: 1 / -1; } }
