/* ==========================================================================
   Decium · Motion (v2)
   · El móvil del hero: 3D, sigue al ratón y, al bajar, gira a horizontal,
     vuelve a la pantalla de inicio, se toca la app de Decium y se abre a
     pantalla completa (splash con el logo) hasta la sección lima.
   · Todo aparece "de la nada": palabras que suben, bloques que se enfocan,
     iconos que se dibujan, cifras que cuentan.
   · Botones magnéticos, chispas al hacer clic, cursor con anillo.
   Progresivo: en móvil, sin ratón o con "reducir movimiento" la web funciona
   igual, sin efectos.
   ========================================================================== */

/* ---------- Lenis (scroll suave) ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- El móvil del hero ---------- */
.hero__visual { perspective: 2200px; }
.rig {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-7deg) rotateX(3deg);
  will-change: transform;
}
.phone__screen { position: relative; }
.app { transition: none; transform-origin: 50% 60%; }
.hero.is-seq .phone,
.hero.is-seq .float-card,
.hero.is-seq .appchip { animation-play-state: paused; }
.hero__copy { will-change: opacity, transform; }
.float-card, .appchip { will-change: transform, opacity; }

/* Pantalla de inicio (diseñada en horizontal y girada dentro del móvil) */
.phome {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(187,232,5,.42), transparent 52%),
    radial-gradient(90% 120% at 0% 100%, rgba(91,108,255,.30), transparent 58%),
    linear-gradient(160deg, #141a0c, #07080a);
}
.phome__in {
  position: absolute; left: 50%; top: 50%;
  width: 586px; height: 276px;
  transform: translate(-50%, -50%) rotate(90deg);
  padding: 10px 34px 12px;
  display: flex; flex-direction: column;
  color: #fff;
}
.phome__bar { display: flex; justify-content: space-between; align-items: center; font-size: 10px; padding: 2px 4px 8px; }
.phome__bar b { font-family: var(--display); font-weight: 600; }
.phome__st { display: flex; gap: 2px; align-items: flex-end; }
.phome__st i { width: 3px; background: #fff; border-radius: 1px; }
.phome__st i:nth-child(1) { height: 4px; } .phome__st i:nth-child(2) { height: 6px; } .phome__st i:nth-child(3) { height: 8px; }
.phome__st em { width: 18px; height: 8px; border: 1px solid rgba(255,255,255,.8); border-radius: 2px; margin-left: 5px; position: relative; }
.phome__st em::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: #fff; border-radius: 1px; }
.phome__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px 4px; flex: 1; align-content: center; }
.pic { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pic small { font-size: 8.5px; color: rgba(255,255,255,.88); line-height: 1; }
.pic__i {
  width: 46px; height: 46px; border-radius: 12px; flex: none; position: relative;
  display: grid; place-items: center; overflow: hidden; background: #000;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.75), inset 0 0 0 .5px rgba(255,255,255,.12);
}
.pic__i svg { width: 100%; height: 100%; display: block; }
.pic__cal { font-family: var(--display); font-size: 19px; font-weight: 700; }
.pic__i--img { background: #C1F002; overflow: visible; }
.pic__i--img img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; display: block; }
.pic--decium small { color: #fff; font-weight: 600; }
.phome__dock {
  display: flex; justify-content: center; gap: 22px; margin: 6px auto 0;
  padding: 8px 18px; border-radius: 22px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
}
.phome__dock .pic__i { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }

/* ---------- Capa del zoom (la app se abre) ---------- */
.zlayer {
  position: fixed; left: 0; top: 0; z-index: 45;
  display: none; pointer-events: none;
  transform-origin: 0 0; will-change: transform;
  background: #C1F002; /* mismo lima que el icono: la transición no se nota */
}
/* El logo sale del icono y vuela al centro SIN deformarse (escala uniforme) */
.zmorph {
  position: fixed; left: 0; top: 0; z-index: 46; pointer-events: none;
  width: var(--ms, 240px); height: var(--ms, 240px);
  transform-origin: 0 0; will-change: transform, opacity; display: none;
}
.zmorph__icon, .zmorph__logo {
  position: absolute; inset: 0;
  background: url("assets/logo-mark.webp") center / 100% 100% no-repeat;
}
.zmorph__icon { border-radius: 26%; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.zmorph__logo {
  opacity: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
}

/* ---------- Escenario: el hero se queda fijo durante la secuencia ---------- */
.zstage { position: relative; }
/* Móvil: el hero se queda pegado con el teléfono abajo; el teléfono sube, gira y abre la app */
.zstage.is-on.is-mob .hero { position: sticky; top: var(--htop, 0px); }
.zstage.is-on.is-mob .hero .rig { transform-origin: 50% 50%; }
.zstage.is-mob ~ .statement { min-height: 100svh; display: flex; align-items: center; }
.zstage.is-mob ~ .statement > .container { width: 100%; }
.zstage.is-on:not(.is-mob) .hero {
  position: sticky; top: var(--navh, 70px);
  height: var(--zh, calc(100vh - 70px));
  display: flex; align-items: center;
  padding: 20px 0;
}
.zstage.is-on:not(.is-mob) .hero > .container { width: 100%; }

/* ---------- Sección "impacto" (pantalla lima) ---------- */
.statement {
  position: relative; z-index: 3;
  background: var(--lime); color: #0A0C08;
  overflow: hidden;
}
.statement::after {
  content: "decium"; position: absolute; right: -1.5vw; bottom: -5.5vw; z-index: 0;
  font-family: var(--display); font-weight: 700; font-size: 26vw; line-height: 1;
  letter-spacing: -.05em; color: rgba(10,12,8,.055); pointer-events: none;
}
.statement__inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 110px; }
.statement__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(10,12,8,.7);
}
.statement__kicker::before { content: ""; width: 26px; height: 2px; background: #0A0C08; }
.statement__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(42px, 7vw, 104px); line-height: .98; letter-spacing: -.045em;
  margin-top: 22px; max-width: 15ch;
}
.statement__text {
  max-width: 640px; margin-top: 30px;
  font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: rgba(10,12,8,.78);
}
.statement__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(10,12,8,.18);
}
.statement__stats b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.035em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.statement__stats span { display: block; margin-top: 6px; font-size: 14px; color: rgba(10,12,8,.7); }
@media (min-width: 1024px) {
  .statement { min-height: 100vh; display: flex; align-items: center; }
  .statement > .container { width: 100%; }
}
@media (max-width: 760px) {
  .statement__inner { padding-top: 84px; padding-bottom: 80px; }
  .statement__stats { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; margin-top: 44px; }
}

/* ---------- Nav en modo claro (sobre la pantalla lima) ---------- */
.nav, .nav .brand__word, .nav__links a, .nav__assistant, .nav .btn--lime, .nav__burger span {
  transition: background .35s ease, color .35s ease, border-color .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, transform .3s ease;
}
html[data-nav="light"] .nav {
  background: rgba(187,232,5,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(10,12,8,.10);
}
html[data-nav="light"] .nav .brand__word { color: #0A0C08; }
html[data-nav="light"] .nav__links a { color: rgba(10,12,8,.68); }
html[data-nav="light"] .nav__links a:hover { color: #0A0C08; }
html[data-nav="light"] .nav__links a::after { background: #0A0C08; }
html[data-nav="light"] .nav__assistant { color: rgba(10,12,8,.75); }
html[data-nav="light"] .nav__assistant:hover { color: #0A0C08; }
html[data-nav="light"] .nav .btn--lime { background: #0A0C08; color: var(--lime); box-shadow: none; }
html[data-nav="light"] .nav__burger span { background: #0A0C08; }

/* ---------- Todo aparece "de la nada" ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Base: sube y aparece (sin desenfoque) */
  .reveal {
    opacity: 0; transform: translateY(30px); filter: none;
    transition: opacity .8s var(--ease), transform 1s cubic-bezier(.16,1,.3,1);
  }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-anim] { transition-delay: var(--d, 0ms) !important; }

  /* soft: solo las cabeceras de sección se enfocan, y muy poco */
  .reveal[data-anim="soft"] { transform: translateY(20px); filter: blur(4px);
    transition: opacity .9s var(--ease), transform 1s cubic-bezier(.16,1,.3,1), filter .8s var(--ease); }
  .reveal[data-anim="soft"].in { filter: none; }

  /* pop: aparece "de golpe" con un pequeño rebote */
  .reveal[data-anim="pop"] { transform: scale(.82) translateY(12px);
    transition: opacity .3s ease, transform .7s cubic-bezier(.34,1.56,.64,1); }

  /* flip: se levanta en 3D desde abajo */
  .reveal[data-anim="flip"] { transform: perspective(1100px) rotateX(22deg) translateY(56px); transform-origin: 50% 100%;
    transition: opacity .6s ease, transform 1.05s cubic-bezier(.16,1,.3,1); }

  /* wipe: se descubre como una persiana */
  .reveal[data-anim="wipe"] { opacity: 1; transform: none; clip-path: inset(100% -80px -80px -80px);
    transition: clip-path 1.15s cubic-bezier(.76,0,.24,1); }
  .reveal[data-anim="wipe"].in { clip-path: inset(-80px -80px -80px -80px); }

  /* zoom: llega desde un poco más pequeño */
  .reveal[data-anim="zoom"] { transform: scale(.92);
    transition: opacity .7s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }

  /* Al entrar, cualquier variante queda en su tamaño y sitio reales */
  .reveal[data-anim].in { opacity: 1; transform: none; }

  /* rows: la comparativa entra fila a fila y los ✓ saltan */
  .reveal[data-anim="rows"], .reveal[data-anim="cascade"], .reveal[data-anim="split"] { opacity: 1; transform: none; }
  .reveal[data-anim="rows"] .compare__row { opacity: 0; transform: translateX(-30px);
    transition: opacity .45s ease calc(var(--i, 0) * 85ms), transform .7s cubic-bezier(.16,1,.3,1) calc(var(--i, 0) * 85ms); }
  .reveal[data-anim="rows"].in .compare__row { opacity: 1; transform: none; }
  .reveal[data-anim="rows"] .compare__us .v { opacity: 0; transform: scale(.5); transform-origin: 0 50%;
    transition: opacity .25s ease calc(var(--i, 0) * 85ms + 260ms), transform .55s cubic-bezier(.34,1.7,.64,1) calc(var(--i, 0) * 85ms + 260ms); }
  .reveal[data-anim="rows"].in .compare__us .v { opacity: 1; transform: none; }

  /* cascade: los hijos caen uno detrás de otro con rebote */
  .reveal[data-anim="cascade"] > * { opacity: 0; transform: translateY(26px) scale(.96);
    transition: opacity .45s ease calc(var(--i, 0) * 95ms), transform .75s cubic-bezier(.34,1.35,.64,1) calc(var(--i, 0) * 95ms); }
  .reveal[data-anim="cascade"].in > * { opacity: 1; transform: none; }

  /* split: "antes" entra por la izquierda, "ahora" por la derecha y el VS salta */
  .reveal[data-anim="split"] .renew__card--old { opacity: 0; transform: translateX(-60px) rotate(-2.5deg);
    transition: opacity .6s ease, transform 1s cubic-bezier(.16,1,.3,1); }
  .reveal[data-anim="split"] .renew__card:not(.renew__card--old) { opacity: 0; transform: translateX(60px) rotate(2.5deg);
    transition: opacity .6s ease .12s, transform 1s cubic-bezier(.16,1,.3,1) .12s; }
  .reveal[data-anim="split"] .renew__vs { opacity: 0; transform: scale(.3);
    transition: opacity .3s ease .45s, transform .7s cubic-bezier(.34,1.7,.64,1) .45s; }
  .reveal[data-anim="split"].in .renew__card, .reveal[data-anim="split"].in .renew__vs { opacity: 1; transform: none; }

  /* Titulares: cada palabra sube desde una ranura */
  .sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .14em; margin: -.1em 0 -.14em; }
  .sw__i { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%;
           transition: transform 1.05s cubic-bezier(.16,1,.3,1) calc(var(--i, 0) * 55ms + 80ms); }
  .split-in .sw__i { transform: none; }

  /* Entrada del hero cuando se abre la pantalla de carga */
  .hero__copy > *, .rig, .float-card, .appchip {
    transition: opacity .9s var(--ease), translate 1.25s cubic-bezier(.16,1,.3,1);
  }
  .hero.is-pre .hero__copy > *:not(.hero__title),
  .hero.is-pre .float-card, .hero.is-pre .appchip { opacity: 0; translate: 0 26px; }
  .hero.is-pre .rig { opacity: 0; translate: 70px 110px; }
  .hero.is-seq .hero__copy, .hero.is-seq .hero__copy > *,
  .hero.is-seq .float-card, .hero.is-seq .appchip, .hero.is-seq .rig { transition: none !important; }

  /* Iconos que se dibujan solos */
  .feat__ico svg .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) .3s; }
  .feat.in .feat__ico svg .draw { stroke-dashoffset: 0; }
}

/* ---------- Tarjetas con inclinación 3D + foco de luz ---------- */
.feat { position: relative; }
.tilt {
  transform-style: preserve-3d;
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .55s var(--ease), border-color .35s, background .35s, box-shadow .45s var(--ease);
}
/* Mientras el ratón la mueve, la inercia la pone motion.js: sin transición de transform */
.tilt.is-tilting { transition: opacity .9s var(--ease), filter .9s var(--ease), border-color .35s, background .35s, box-shadow .45s var(--ease); }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(187,232,5,.14), transparent 46%);
}
.tilt.is-hover::after { opacity: 1; }
.tilt > *:not(.plan__badge) { position: relative; z-index: 1; }
.tilt > .plan__badge { z-index: 2; }
.tilt { position: relative; }
.tilt.is-hover { z-index: 3; }
.steps.is-timeline .step.tilt.is-tilting { transition: border-color .4s, background .4s, opacity .45s ease; }
.feat.tilt.is-hover, .plan.tilt.is-hover, .renew__card.tilt.is-hover, .step.tilt.is-hover {
  border-color: rgba(187,232,5,.42);
  box-shadow: 0 34px 70px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(187,232,5,.08), 0 18px 50px -28px rgba(187,232,5,.35);
}
.plan--featured.tilt.is-hover { box-shadow: 0 40px 90px -30px rgba(187,232,5,.45); }
.renew__card--old.tilt.is-hover { border-color: rgba(255,255,255,.16); }
.renew__card--old.tilt::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.06), transparent 46%); }
.qrcard.tilt::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 55%); z-index: 2; }
.qrcard.tilt.is-hover { box-shadow: 0 50px 100px -30px rgba(187,232,5,.65); }
.faq__item.tilt.is-hover { border-color: rgba(187,232,5,.28); }
.step.tilt .step__n { transition: background .35s, color .35s, scale .5s cubic-bezier(.34,1.7,.64,1), rotate .5s cubic-bezier(.34,1.7,.64,1); }
.step.tilt.is-hover .step__n { scale: 1.12; rotate: -6deg; background: var(--lime); color: #0A0C08; }
.renew__card.tilt li { transition: translate .4s cubic-bezier(.34,1.5,.64,1); }
.renew__card.tilt.is-hover li { translate: 4px 0; }
.renew__card.tilt.is-hover li:nth-child(2) { transition-delay: .04s; }
.renew__card.tilt.is-hover li:nth-child(3) { transition-delay: .08s; }
.renew__card.tilt.is-hover li:nth-child(4) { transition-delay: .12s; }
.renew__card.tilt.is-hover li:nth-child(5) { transition-delay: .16s; }
/* Cifras sobre el lima: tarjeta oscura sutil al pasar */
.statement__stats > div { position: relative; border-radius: 18px; padding: 14px 16px; margin: -14px -16px; }
.statement__stats > .tilt::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(10,12,8,.10), transparent 60%); }
.statement__stats > .tilt.is-hover { background: rgba(10,12,8,.05); box-shadow: 0 24px 50px -30px rgba(10,12,8,.45); }
/* Móvil: la tarjeta del centro de la pantalla se enciende; al tocarla se hunde */
.touchcard:not(#_) { transition: opacity .9s var(--ease), filter .9s var(--ease), transform 1s cubic-bezier(.16,1,.3,1), scale .5s cubic-bezier(.34,1.4,.64,1), border-color .45s, background .45s, box-shadow .6s var(--ease); }
.touchcard.is-focus { scale: 1.025; }
.feat.touchcard.is-focus, .plan.touchcard.is-focus, .renew__card--new.touchcard.is-focus, .step.touchcard.is-focus {
  border-color: rgba(187,232,5,.42);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 18px 46px -26px rgba(187,232,5,.4);
}
.feat.touchcard.is-focus { background: linear-gradient(180deg, rgba(187,232,5,.07), rgba(255,255,255,.01)); }
.feat.touchcard.is-focus .feat__ico { scale: 1.1; rotate: -5deg; }
.step.touchcard.is-focus .step__n { background: var(--lime); color: #0A0C08; scale: 1.1; }
.touchcard.is-press:not(#_) { scale: .975; transition-duration: .9s, .9s, 1s, .15s, .45s, .45s, .6s; }
/* Icono de la tarjeta: se vuelve a dibujar al entrar */
.feat__ico { transition: scale .5s cubic-bezier(.34,1.7,.64,1), rotate .5s cubic-bezier(.34,1.7,.64,1); }
.feat.is-hover .feat__ico { scale: 1.1; rotate: -5deg; }
.feat.redraw .feat__ico svg .draw { animation: redraw 1s var(--ease) both; }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Botones magnéticos ---------- */
.is-magnet { transition: transform .5s cubic-bezier(.16,1,.3,1), background .2s, box-shadow .2s, color .2s, border-color .2s !important; }
.is-magnet.is-pulled { transition: transform .15s linear, background .2s, box-shadow .2s, color .2s, border-color .2s !important; }

/* ---------- Chispas al hacer clic ---------- */
.spark {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--sc, #BBE805);
  animation: spark .75s cubic-bezier(.2,.7,.3,1) forwards;
}
.spark--ring {
  width: 16px; height: 16px; margin: -8px 0 0 -8px; background: none;
  border: 2px solid var(--sc, #BBE805); animation: sparkRing .6s ease-out forwards;
}
@keyframes spark {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
}
@keyframes sparkRing { from { transform: scale(.3); opacity: .9; } to { transform: scale(4); opacity: 0; } }

/* ---------- Cursor con anillo (solo ratón) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 9997; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid rgba(187,232,5,.7);
  transition: width .3s cubic-bezier(.16,1,.3,1), height .3s cubic-bezier(.16,1,.3,1), margin .3s cubic-bezier(.16,1,.3,1), background .3s, border-color .3s, opacity .3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(187,232,5,.12); border-color: rgba(187,232,5,.9); }
.cursor.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
html[data-nav="light"] .cursor { border-color: rgba(10,12,8,.6); }
.cursor.is-hidden { opacity: 0 !important; }

/* ---------- Juguete del móvil: número de la suerte ---------- */
.app__hero-btn { cursor: pointer; transition: transform .2s ease, background .2s; }
.app__hero-btn:hover { transform: scale(1.04); }
.slot { display: inline-flex; gap: 2px; font-variant-numeric: tabular-nums; }
.app__hero-big .slot { display: inline-flex; font-size: inherit; opacity: 1; margin-top: 0; letter-spacing: .02em; }
.slot b { display: inline-block; min-width: .62em; text-align: center; }
.slot b.is-set { animation: slotSet .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes slotSet { from { transform: translateY(-30%) scale(1.25); } to { transform: none; } }

/* ---------- Mini-interfaces vivas en las tarjetas ---------- */
.feat { display: flex; flex-direction: column; }
.feat p { margin-bottom: 18px; }
.feat .mini { margin-top: auto; }
.mini {
  position: relative; list-style: none; overflow: hidden;
  border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06);
  padding: 12px; min-height: 76px;
}
.mini *, .mini *::after { animation-play-state: paused; }
.feat.in .mini *, .feat.in .mini *::after { animation-play-state: running; }

/* App: llegan notificaciones */
.mini__toast {
  position: absolute; left: 10px; right: 10px; top: 13px;
  display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 12px;
  background: rgba(255,255,255,.09); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-130%);
  animation: mToast 6s cubic-bezier(.16,1,.3,1) infinite;
}
.mini__toast:nth-child(2) { animation-delay: 3s; }
.mini__ico { width: 24px; height: 24px; border-radius: 7px; background: var(--lime); color: #0A0C08; display: grid; place-items: center; font-size: 12px; flex: none; }
.mini__toast > span:last-child { min-width: 0; }
.mini__toast b { display: block; font-size: 11px; font-family: var(--display); }
.mini__toast small { display: block; font-size: 10.5px; color: var(--t-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes mToast {
  0% { opacity: 0; transform: translateY(-130%); }
  7%, 50% { opacity: 1; transform: none; }
  57% { opacity: 0; transform: translateY(40%) scale(.96); }
  100% { opacity: 0; transform: translateY(-130%); }
}

/* IA: las bolas se barajan y se colocan */
.mini--ia small { display: block; font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--t-low); }
.mini__balls { display: flex; gap: 5px; margin-top: 10px; }
.mini__balls b {
  width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: #0A0C08; font-family: var(--display); font-size: 10.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; transition: transform .5s cubic-bezier(.34,1.7,.64,1), background .3s;
}
.mini__balls b.gira { transform: scale(.82); background: #e4ff7a; }

/* Boleto: se valida con un sello */
.mini__tk { display: flex; justify-content: space-between; align-items: center; background: #f4f1e6; color: #1a1a1a; border-radius: 9px; padding: 8px 10px; }
.mini__tk small { display: block; font-size: 9.5px; color: #7a6a3a; font-weight: 600; }
.mini__tk b { font-family: var(--display); font-size: 20px; letter-spacing: .08em; }
.mini__qr { width: 34px; height: 34px; border-radius: 4px; flex: none; border: 3px solid #1a1a1a;
  background: repeating-conic-gradient(#1a1a1a 0 25%, #fff 0 50%) 0 0 / 7px 7px; }
.mini__stamp {
  position: absolute; right: 12px; top: 50%; margin-top: -12px;
  font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .04em;
  color: #0A0C08; background: var(--lime); padding: 5px 9px; border-radius: 7px;
  rotate: -8deg; opacity: 0; scale: 1.9; box-shadow: 0 6px 16px -6px rgba(187,232,5,.7);
  animation: mStamp 4.5s cubic-bezier(.34,1.56,.64,1) infinite;
}
@keyframes mStamp { 0%, 30% { opacity: 0; scale: 1.9; } 40%, 85% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: 1; } }

/* Cuota: todo marcado y los sobrecostes tachados */
.mini--list { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; }
.mini--list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--t-mid); }
.mini--list li i {
  font-style: normal; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; font-size: 9px; font-weight: 800;
  scale: 0; animation: mTick 5s cubic-bezier(.34,1.7,.64,1) infinite;
}
.mini--list li:nth-child(2) i { animation-delay: .25s; }
.mini--list li:nth-child(3) i { animation-delay: .5s; }
@keyframes mTick { 0%, 6% { scale: 0; } 14%, 88% { scale: 1; } 96%, 100% { scale: 0; } }
.mini__no span { position: relative; padding-left: 24px; color: var(--t-low); }
.mini__no span::after {
  content: ""; position: absolute; left: 20px; right: -4px; top: 54%; height: 1.5px; background: #ff6b6b;
  transform-origin: left; scale: 0 1; animation: mStrike 5s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes mStrike { 0%, 24% { scale: 0 1; } 38%, 88% { scale: 1 1; } 96%, 100% { scale: 0 1; } }

/* ---------- "Cambiar a Decium": línea de tiempo que avanza con el scroll ---------- */
.steps.is-timeline { position: relative; padding-left: 32px; }
.steps__rail { position: absolute; left: 9px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.08); pointer-events: none; }
.steps__fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--prog, 0) * 100%); border-radius: 2px;
  background: linear-gradient(var(--lime), #9fd100); box-shadow: 0 0 12px rgba(187,232,5,.5); }
.steps__dot { position: absolute; left: 50%; top: calc(var(--prog, 0) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 5px rgba(187,232,5,.18), 0 0 18px rgba(187,232,5,.7); }
.steps.is-timeline .step { transition: border-color .4s, background .4s, opacity .45s ease, transform .75s cubic-bezier(.34,1.35,.64,1); }
.steps.is-timeline .step__n { background: rgba(255,255,255,.07); color: var(--t-mid); transition: background .35s, color .35s, scale .5s cubic-bezier(.34,1.7,.64,1); }
.steps.is-timeline .step.is-on { border-color: rgba(187,232,5,.35); background: rgba(187,232,5,.05); }
.steps.is-timeline .step.is-on .step__n { background: var(--lime); color: #0A0C08; scale: 1.08; }

/* ---------- Pie: "decium" gigante que sube al llegar ---------- */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: "decium"; position: absolute; left: 50%; bottom: -.2em; z-index: 0; pointer-events: none;
  translate: -50% var(--fy, 0%); white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: clamp(120px, 24vw, 380px); line-height: 1; letter-spacing: -.05em;
  color: rgba(187,232,5,.05);
}
.footer > .container { position: relative; z-index: 1; }

/* ---------- Comparativa como línea de tiempo ---------- */
.vs {
  margin-top: 6px; border-radius: var(--radius-lg); padding: 30px 30px 20px;
  background: linear-gradient(180deg, #161a10, #0e110a);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 50px 100px -60px rgba(0,0,0,.95);
}
.vs__title { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.vs__sub { color: var(--t-mid); font-size: 14px; margin-top: 5px; }
.vs__sub span { color: var(--t-low); font-size: 12.5px; }
.vs__scroll { margin-top: 30px; overflow-x: auto; scrollbar-width: none; }
.vs__scroll::-webkit-scrollbar { display: none; }
.vs__grid { position: relative; min-width: 760px; }
.vs__row { display: grid; grid-template-columns: 172px 1fr 210px; }
.vs__row--axis { height: 42px; align-items: end; }
.vs__months { display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 11px;
  font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-low); }
.vs__months span { padding-left: 10px; }
.vs__resh { padding: 0 0 11px 22px; font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--t-low); }
.vs__row--old, .vs__row--new { border-top: 1px solid var(--line-2); min-height: 168px; }
.vs__who { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.vs__ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--t-mid); }
.vs__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.vs__ico--lime { background: var(--lime); color: #0A0C08; font-family: var(--display); font-weight: 700; font-size: 17px; }
.vs__track { position: relative; background: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 25% 100%, rgba(255,255,255,.015); }
.vs__bar {
  position: absolute; top: 34px; height: 38px;
  left: calc(var(--a, 0) * 100% + 5px); width: calc((var(--b, 1) - var(--a, 0)) * 100% - 10px);
  display: flex; align-items: center; padding: 0 14px; overflow: hidden; white-space: nowrap;
  border-radius: 10px; background: rgba(255,255,255,.07); color: var(--t-mid); font-size: 13px;
  clip-path: inset(0 calc((1 - var(--k, 1)) * 100%) 0 0 round 10px);
}
.vs__bar em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.vs__bar--warn { background: rgba(255,107,107,.1); color: #ff9b9b; }
.vs__bar--new { background: rgba(187,232,5,.12); color: var(--lime); font-weight: 600; box-shadow: inset 3px 0 0 var(--lime); }
.vs__bar--b { top: 94px; }
.vs__row--new .vs__bar--a { top: 50px; }
.vs__row--new .vs__bar--b { top: 104px; }
.vs__tag {
  position: absolute; top: 14px; margin-left: 5px; white-space: nowrap;
  font-size: 11px; font-weight: 600; color: var(--lime); background: rgba(187,232,5,.1); padding: 4px 9px; border-radius: 999px;
  transition: opacity .35s ease, transform .5s cubic-bezier(.34,1.7,.64,1);
}
.vs__res { padding: 16px 0 16px 22px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; }
.vs__num { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.vs__num--old { color: rgba(255,255,255,.45); }
.vs__res > span { font-size: 13px; color: var(--t-mid); margin-top: 5px; }
.vs__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.vs__chips i {
  font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: rgba(187,232,5,.16); color: var(--lime);
  transition: background .3s, color .3s, transform .45s cubic-bezier(.34,1.7,.64,1);
}
.vs__marker { display: none; }
/* Con JS: el marcador avanza y lo demás se va encendiendo a su paso */
.vs.is-live .vs__marker {
  display: block; position: absolute; top: 34px; bottom: 0; left: var(--mx, 172px); width: 2px; margin-left: -1px;
  background: var(--lime); box-shadow: 0 0 14px rgba(187,232,5,.6); pointer-events: none;
}
.vs__pill {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums;
  background: var(--lime); color: #0A0C08; padding: 5px 11px; border-radius: 999px; box-shadow: 0 6px 18px -6px rgba(187,232,5,.6);
}
.vs.is-live .vs__tag:not(.on) { opacity: 0; transform: translateY(6px) scale(.9); }
.vs.is-live .vs__chips i:not(.on) { background: rgba(255,255,255,.05); color: var(--t-low); }
.vs.is-live .vs__chips i.on { transform: scale(1.05); }
@media (max-width: 760px) {
  .vs { padding: 22px 16px 14px; }
  .vs__title { font-size: 17px; }
  .vs__grid { min-width: 700px; }
  .vs__row { grid-template-columns: 100px 1fr 160px; }
  /* Los nombres de los carriles se quedan fijos mientras la línea se desplaza */
  .vs__who, .vs__row--axis > span:first-child { position: sticky; left: 0; z-index: 3; background: #13170e; }
  .vs__who { font-size: 12.5px; gap: 8px; padding-right: 8px; }
  .vs__ico { width: 28px; height: 28px; }
  .vs__num { font-size: 36px; }
}
.vs.is-live .vs__marker { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .rig { transform: none; }
  .cursor, .spark { display: none; }
  .mini__toast:first-child { opacity: 1; transform: none; }
  .mini__stamp { opacity: 1; scale: 1; }
  .mini--list li i { scale: 1; }
  .mini__no span::after { scale: 1 1; }
}

/* Comparativa v2: cabecera con leyenda, chips "de siempre", tramo ya recorrido y tarjeta fija */
.vs__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.vs__legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--t-mid); }
.vs__legend span { display: inline-flex; align-items: center; gap: 7px; }
.vs__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(187,232,5,.6); }
.vs__dot--old { background: rgba(255,255,255,.35); box-shadow: none; }
.vs__chips--old i { background: rgba(255,107,107,.1); color: #ff9b9b; }
.vs.is-live .vs__chips--old i:not(.on) { background: rgba(255,255,255,.04); color: var(--t-low); }
.vs__track::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--p, 1) * 100%); pointer-events: none;
  background: linear-gradient(90deg, transparent 40%, rgba(187,232,5,.045)); }
.vs__row--old .vs__track::after { background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,.03)); }
.vs__num { transition: color .3s; }
.vs-stage.is-pinned .vs { position: sticky; top: calc(var(--navh, 70px) + 22px); }

/* Comparativa en el móvil: más compacta para que quepa entera y se quede fija mientras avanza */
@media (max-width: 760px) {
  .vs__head { gap: 6px; }
  .vs__legend { display: none; }
  .vs__sub { margin-top: 4px; font-size: 13px; }
  .vs__grid { min-width: 680px; }
  .vs__row { grid-template-columns: 92px 1fr 178px; }
  .vs__row--old, .vs__row--new { min-height: 156px; }
  .vs__res { padding: 10px 0 10px 14px; }
  .vs__num { font-size: 32px; }
  .vs__res > span { font-size: 11.5px; margin-top: 3px; line-height: 1.3; }
  .vs__chips { gap: 4px; margin-top: 7px; }
  .vs__chips i { font-size: 9.5px; padding: 2px 7px; }
  .vs-stage.is-pinned .vs { top: calc(var(--navh, 64px) + 10px); }
}
