/* Reto Forever · capa de animaciones de la portada.
   html.fx     = esta pagina trae la capa.
   html.fx-on  = animaciones activas (no se pone si el sistema pide menos movimiento).
   html.fx-js  = fx.js alcanzo a correr: solo con esta clase algo empieza oculto esperando su entrada.
   Sin fx-on la pagina se ve igual que la portada actual. Todo lo que se mueve usa transform y opacity (lo resuelve la
   tarjeta grafica, sin recalcular la pagina) y lo que queda fuera de la pantalla se pausa (.fx-vis). */
.fx { --fx-gold: #f2a93b; --fx-gold2: #ffd76a; --fx-e: cubic-bezier(.2, .8, .2, 1); --fx-back: cubic-bezier(.34, 1.56, .64, 1); }
.fx:not(.fx-on) :is(.fx-prog, .fx-mq, .fx-glint, .fx-orn, .fx-sheen, .fx-ghost, .fx-brasas) { display: none !important; }
/* Lo que queda fuera de pantalla, o detras de una ventana abierta, se pausa. Va la lista exacta de lo que se mueve: con un
   selector general (*) cada cambio de clase obligaria al navegador a recalcular los estilos de toda la seccion. */
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .fx-glint,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .fx-mq-t,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .hero-logo,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .fx-sheen::before,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .rk-fila.top1::after,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .rk-emb,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .tz-art img,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .teaser::after,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .tz-lock svg,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .cc-date::after,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .pool-img,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .pool::before,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .pool::after,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .pz-ficha,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .dc-on::after,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .final-logo,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .niebla i,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .mist,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .btn-xl::after,
.fx-io.fx-on :is(.hero, .sec, .final, .foot):not(.fx-vis) .tz-k i,
.fx-io.fx-on .fx-mq:not(.fx-vis) .fx-mq-t,
.fx-on.fx-dlg .fx-glint,
.fx-on.fx-dlg .fx-mq-t,
.fx-on.fx-dlg .hero-logo,
.fx-on.fx-dlg .fx-sheen::before,
.fx-on.fx-dlg .rk-fila.top1::after,
.fx-on.fx-dlg .rk-emb,
.fx-on.fx-dlg .tz-art img,
.fx-on.fx-dlg .teaser::after,
.fx-on.fx-dlg .tz-lock svg,
.fx-on.fx-dlg .cc-date::after,
.fx-on.fx-dlg .pool-img,
.fx-on.fx-dlg .pool::before,
.fx-on.fx-dlg .pool::after,
.fx-on.fx-dlg .pz-ficha,
.fx-on.fx-dlg .dc-on::after,
.fx-on.fx-dlg .final-logo,
.fx-on.fx-dlg .niebla i,
.fx-on.fx-dlg .mist,
.fx-on.fx-dlg .btn-xl::after,
.fx-on.fx-dlg .tz-k i { animation-play-state: paused !important; }
.fx .sec, .fx .final { overflow-x: clip; }

/* ---------- niveles (los decide fx.js segun el equipo y como va rindiendo) ----------
   fx-n1 (medio): sin brasas ni brillo recortado del logo; fx.js deja de inclinar tarjetas.
   fx-n2 (minimo): ademas se apagan los movimientos que se repiten. Quedan las entradas, la cinta y la barra de avance. */
.fx-n1 .fx-brasas, .fx-n1 .fx-sheen { display: none !important; }
.fx-n1 .tz-art img, .fx-n1 .pz-ficha { animation: none !important; }   /* imagen grande que escala y muchas fichas flotando: cada una es una capa mas para la tarjeta grafica */
.fx-n2 .fx-glint, .fx-n2 .fx-ghost, .fx-n2 .fx-sheen, .fx-n2 .teaser::after, .fx-n2 .rk-fila.top1::after, .fx-n2 .pool::before, .fx-n2 .pool::after,
.fx-n2 .cc.is-next .cc-date::after, .fx-n2 .dc-on::after { display: none !important; }
.fx-n2 .hero-logo, .fx-n2 .final-logo, .fx-n2 .pool-img, .fx-n2 .pz-ficha, .fx-n2 .rk-emb, .fx-n2 .tz-art img, .fx-n2 .tz-lock svg { animation: none !important; }
.fx-n2 .fx-mq-t { animation-duration: 70s; }
/* celulares y equipos modestos: fuera los desenfoques de fondo (backdrop-filter) de la web. Sobre contenido que se mueve
   obligan a recalcular el desenfoque en cada cuadro y son la causa mas comun de tirones en telefonos. */
.fx-n1 *, .fx-n1 .dlg::backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.fx-n1 .facts > div { background: rgba(28, 18, 40, .86); }

/* ---------- piezas fijas: barra de avance y chispas ---------- */
.fx-prog { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, #b9741a, var(--fx-gold) 60%, #fff1b8); box-shadow: 0 0 14px rgba(255, 200, 90, .75); }
.fx-st.fx-on .fx-prog { animation: fxProg linear both; animation-timeline: scroll(root); }
.fx-sp { position: fixed; z-index: 70; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; background: #fff3c4; box-shadow: 0 0 8px 2px rgba(255, 190, 80, .9); }

/* ---------- barra de navegacion ---------- */
.fx-on .nav { animation: fxNav .8s var(--fx-e) backwards; }
.fx .nav .brand-logo { transition: transform .35s var(--fx-e); }
.fx .nav.fx-sc .brand-logo { transform: scale(.86); }
.fx-on .brand:hover .brand-logo { transform: scale(1.08) rotate(-4deg); }
.fx .links a { position: relative; }
.fx-on .links a::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 5px; height: 2px; border-radius: 2px; background: var(--fx-gold2);
  transform: scaleX(0); transition: transform .3s var(--fx-e); }
.fx-on .links a:hover::after { transform: scaleX(1); }

/* ---------- portada ---------- */
.fx .hero-logo { position: relative; z-index: 0; }
.fx-logo { position: relative; display: inline-block; line-height: 0; }
/* la entrada corre sola al terminar la pantalla de carga (mientras esta, queda en pausa en su primer cuadro) */
.fx-on .hero-in > :is(.hero-brand, .kicker, .lead, .hero-ctas, .estado-insc) { animation: fxRise .9s var(--fx-e) backwards; }
.fx-on .hero-in > .hero-brand { animation-delay: .5s; }
.fx-on .hero-in > .kicker { animation-delay: .62s; }
.fx-on .hero-in > .lead { animation-delay: .74s; }
.fx-on .hero-in > .hero-ctas, .fx-on .hero-in > .estado-insc { animation-delay: .88s; }
.fx-on .facts > div { animation: fxRise .8s var(--fx-e) backwards; animation-delay: 1.05s; }
.fx-on .facts > div:nth-child(2) { animation-delay: 1.15s; }
.fx-on .facts > div:nth-child(3) { animation-delay: 1.25s; }
.fx-on .hero-logo img { animation: fxLogoIn 1.15s var(--fx-back) backwards; }
.fx-on .hero-logo { animation: fxFloat 6.5s ease-in-out 1.3s infinite; }
.fx-on.cargando :is(.nav, .hero-logo, .hero-logo img, .hero-in > *, .facts > div) { animation-play-state: paused; }
/* brillo que cruza el logo siguiendo su silueta */
.fx-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask: url(img/reto-logo-mask.webp) center / 100% 100% no-repeat; mask: url(img/reto-logo-mask.webp) center / 100% 100% no-repeat; }
.fx-sheen::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; transform: translateX(-160%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: fxSheen 7s ease-in-out 2.2s infinite; }
.fx-on .facts b, .fx-on .pool-stat b { font-variant-numeric: tabular-nums; }
.fx-on .facts > div { transition: transform .3s var(--fx-e), border-color .3s; }
.fx-on .facts > div:hover { transform: translateY(-4px); border-color: rgba(255, 215, 106, .6); }

/* profundidad al bajar: el fondo se queda atras y el contenido sube y se desvanece. Lo mueve el navegador con el scroll
   (sin JavaScript, fuera del hilo principal). Donde el navegador no lo soporta, la portada queda quieta. */
@supports (animation-timeline: scroll()) {
  .fx-on:not(.fx-n2) .hero-bg { animation: fxParBg linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .fx-on:not(.fx-n2) .hero-in { animation: fxParIn linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
}
.fx-logo { transition: transform .5s var(--fx-e); }

/* ---------- cinta que corre bajo la portada ---------- */
.fx-mq { position: relative; z-index: 4; overflow: hidden; background: linear-gradient(90deg, #a96a16, var(--fx-gold) 22%, #ffd76a 50%, var(--fx-gold) 78%, #a96a16);
  border-block: 1px solid rgba(0, 0, 0, .5); box-shadow: 0 8px 30px rgba(242, 169, 59, .22); }
.fx-mq-t { display: flex; width: max-content; animation: fxMq 46s linear infinite; }
.fx-mq:hover .fx-mq-t { animation-play-state: paused; }
.fx-mq span { display: inline-flex; align-items: center; gap: 26px; padding: 9px 13px; white-space: nowrap; color: #24150a;
  font: italic 800 15px/1 var(--head, "Saira", sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.fx-mq span::after { content: ""; width: 7px; height: 7px; background: #24150a; transform: rotate(45deg); opacity: .7; }

/* ---------- titulos de seccion: las palabras suben una por una y se dibuja el adorno ---------- */
.fx-js.fx-on .fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .14em .14em .04em; margin: -.2em -.14em -.14em -.04em; }
.fx-js.fx-on .fx-w > span { display: inline-block; transform: translateY(115%) rotate(5deg); transform-origin: 0 100%; transition: transform .85s var(--fx-e); transition-delay: calc(var(--i) * 75ms); }
.fx-js.fx-on .fx-in .fx-w > span { transform: none; }
.fx-js.fx-on .fx-eb { opacity: 0; transform: translateY(-10px); transition: opacity .6s ease, transform .6s var(--fx-e); }
.fx-js.fx-on .fx-eb.fx-in { opacity: 1; transform: none; }
.fx-orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px auto 0; height: 10px; }
.fx-orn i { width: min(120px, 22vw); height: 1px; background: linear-gradient(90deg, transparent, var(--fx-gold)); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .9s var(--fx-e) .35s; }
.fx-orn i:last-child { background: linear-gradient(270deg, transparent, var(--fx-gold)); transform-origin: 0 50%; }
.fx-orn b { width: 8px; height: 8px; background: var(--fx-gold2); box-shadow: 0 0 12px rgba(255, 200, 90, .9); transform: rotate(45deg) scale(0); transition: transform .7s var(--fx-back) .25s; }
.fx-orn.fx-in i { transform: none; }
.fx-orn.fx-in b { transform: rotate(225deg) scale(1); }
.fx-js:not(.fx-on) .fx-orn { display: none; }

/* palabra gigante en contorno detras de cada titulo: se desliza con el scroll (lo mueve el navegador, sin JavaScript) */
.fx-ghost { position: absolute; top: 34px; left: 0; right: 0; z-index: -1; text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font: italic 900 clamp(96px, 17vw, 250px)/1 var(--head, "Saira", sans-serif); text-transform: uppercase; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 220, 160, .075); }
@supports (animation-timeline: view()) {
  .fx-on .fx-ghost { animation: fxGhost linear both; animation-timeline: view(); }
}
.fx-brasas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 39; pointer-events: none; }

/* destello que recorre la barra de remaches de cada seccion */
.fx-glint { position: absolute; top: 0; left: 0; width: 26%; height: 18px; z-index: 2; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 226, 160, .5), transparent); animation: fxGlint 9s ease-in-out infinite; }
.sec:nth-of-type(even) > .fx-glint { animation-delay: 3s; }

/* ---------- entradas: cada tipo de tarjeta llega a su manera (la clase .reveal/.in la pone la web actual) ---------- */
.fx-on .reveal { transition: opacity .8s var(--fx-e) var(--d, 0ms), transform .95s var(--fx-e) var(--d, 0ms); }
.fx-on .step.reveal:not(.in) { transform: perspective(900px) rotateX(-32deg) translateY(54px); transform-origin: 50% 0; }
.fx-on .steps > :nth-child(2) { --d: 130ms; }
.fx-on .steps > :nth-child(3) { --d: 260ms; }
.fx-on .step.in .step-n { animation: fxPop .7s var(--fx-back) backwards; animation-delay: calc(var(--d, 0ms) + 320ms); }
.fx-on .pz.reveal:not(.in), .fx-on .pz-soon.reveal:not(.in) { transform: translateY(56px) scale(.955); }
.fx-on .pz-side > :nth-child(2) { --d: 110ms; }
.fx-on .pz-side > :nth-child(3) { --d: 220ms; }
.fx-on .pool.reveal:not(.in) { transform: scale(.93); }
.fx-on .tk.reveal:not(.in) { transform: translateX(-70px) rotate(-2.5deg); }
.fx-on .tk:nth-child(even).reveal:not(.in) { transform: translateX(70px) rotate(2.5deg); }
.fx-on .dc-card.reveal:not(.in) { transform: translateX(-60px); }
.fx-on .dc-card:nth-child(even).reveal:not(.in) { transform: translateX(60px); }
.fx-on .final-in.reveal:not(.in) { transform: translateY(40px) scale(.96); }

/* contenedores que la web vuelve a dibujar (calendario, tabla, hitos): la entrada va por hijo, con escalera de tiempos */
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > * { --k: 12; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(1) { --k: 0; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(2) { --k: 1; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(3) { --k: 2; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(4) { --k: 3; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(5) { --k: 4; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(6) { --k: 5; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(7) { --k: 6; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(8) { --k: 7; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(9) { --k: 8; }
.fx :is(#cal, #rkTop .rk-lista, #rkHitos, .pz-clases, .pz-hitos, .pz-locked, #strCom) > :nth-child(10) { --k: 9; }
.fx-js.fx-on :is(#cal, #rkTop, #rkHitos, #teaser, #hostCard, #strComBox):not(.fx-in) { opacity: 0; }
.fx-js.fx-on :is(#teaser, #hostCard, #strComBox) { transition: opacity .8s ease, transform .95s var(--fx-e); }
.fx-js.fx-on :is(#teaser, #hostCard):not(.fx-in) { transform: translateY(46px) scale(.97); }
.fx-on #cal.fx-in > .cc { animation: fxInR .75s var(--fx-e) backwards; animation-delay: calc(var(--k) * 85ms); }
.fx-on #cal.fx-in .cc-date { animation: fxFlip .7s var(--fx-e) backwards; animation-delay: calc(var(--k) * 85ms + 380ms); }
.fx-on #rkTop.fx-in .rk-fila { animation: fxInL .55s var(--fx-e) backwards; animation-delay: calc(var(--k) * 50ms); }
.fx-on #rkHitos.fx-in > .rk-hito { animation: fxPop .65s var(--fx-back) backwards; animation-delay: calc(var(--k) * 110ms); }
.fx-on .pz.in .pz-clases > span { animation: fxPop .5s var(--fx-back) backwards; animation-delay: calc(var(--k) * 55ms + 450ms); }
.fx-on .pz.in .pz-hitos > :is(.pz-hito, .pz-line) { animation: fxPop .6s var(--fx-back) backwards; animation-delay: calc(var(--k) * 90ms + 300ms); }
.fx-on .pz-soon.in .pz-locked > li { animation: fxInR .5s var(--fx-e) backwards; animation-delay: calc(var(--k) * 70ms + 300ms); }

/* ---------- vida propia de cada bloque ---------- */
/* tabla de niveles: brillo que pasa por el primer lugar */
.fx .rk-fila.top1 { position: relative; overflow: hidden; }
.fx-on .rk-fila.top1::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; pointer-events: none; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 224, 150, .16), transparent); animation: fxSweep 5.5s ease-in-out 1s infinite; }
.fx-on .rk-fila { transition: transform .25s var(--fx-e); }
.fx-on .rk-fila:hover { transform: translateX(6px); }
.fx-on .rk-emb { animation: fxWobble 5s ease-in-out infinite; }
/* aviso del gran evento: la imagen respira y cruza un destello */
.fx-on .tz-art img { animation: fxKen 18s ease-in-out infinite alternate; }
.fx-on .teaser::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; z-index: 3; pointer-events: none; transform: translateX(-140%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent); animation: fxSweepW 8s ease-in-out 1.5s infinite; }
.fx-on .tz-lock svg { animation: fxWobble 3.2s ease-in-out infinite; transform-origin: 50% 20%; }
/* calendario: la fecha del proximo evento late */
.fx .cc-date { transform-origin: 50% 0; }
.fx-on .cc.is-next .cc-date::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--fx-gold2); animation: fxPing 2.4s ease-out infinite; pointer-events: none; }
.fx-on .cc .cc-art img { transition: transform .9s var(--fx-e); }
.fx-on .cc:hover .cc-art img { transform: scale(1.09); }
/* pozo de premios: el cofre flota, la barra se llena, destellos sobre el oro */
.fx-on .pool-img { animation: fxFloat 5.5s ease-in-out infinite; }
.fx-on .pool.in .pool-bar i { transform-origin: 0 50%; animation: fxGrow 1.5s var(--fx-e) .35s backwards; }
.fx-on .pool.in .pool-bar i.off { animation-delay: .9s; }
.fx-on .pool::before, .fx-on .pool::after { content: ""; position: absolute; top: 0; right: 0; width: 300px; height: 100%; z-index: 2; pointer-events: none;
  background: radial-gradient(circle 2px at 22% 30%, #fff 60%, transparent), radial-gradient(circle 1.5px at 64% 18%, #ffe9a8 60%, transparent), radial-gradient(circle 2px at 78% 52%, #fff 60%, transparent), radial-gradient(circle 1.5px at 38% 66%, #ffe9a8 60%, transparent);
  animation: fxTwinkle 2.6s ease-in-out infinite; }
.fx-on .pool::after { transform: translate(-34px, 22px) scale(.8); animation-delay: 1.3s; }
/* premios: las fichas flotan a destiempo */
.fx-on .pz-ficha { animation: fxFloat 4.6s ease-in-out infinite; animation-delay: calc(var(--k) * -900ms); }
.fx-on .pz-hero { overflow: hidden; }
.fx-on .tk .tk-n { display: inline-block; }
.fx-on .tk.in .tk-n { animation: fxPop .8s var(--fx-back) .5s backwards; }
/* comunidad: punto en linea que late y portada que se acerca */
.fx-on .dc-on { position: relative; }
.fx-on .dc-on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: fxPing 2s ease-out infinite; }
.fx-on .dc-banner { transition: transform 1s var(--fx-e); }
.fx-on .dc-card:hover .dc-banner { transform: scale(1.07); }
/* cierre: el logo flota */
.fx-on .final-logo { animation: fxFloat 6s ease-in-out infinite; }

/* ---------- botones: brillo al pasar y respuesta al apretar ---------- */
.fx .btn-discord, .fx .btn-kick { position: relative; overflow: hidden; }
.fx-on :is(.btn-discord, .btn-kick, .btn-gold)::before { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); }
.fx-on :is(.btn-discord, .btn-kick, .btn-gold):hover::before { transform: translateX(130%) skewX(-18deg); transition: transform .7s var(--fx-e); }
.fx-on .btn { transition: transform .18s var(--fx-e), box-shadow .25s, filter .25s; }
.fx-on .btn:hover { transform: translateY(-2px); }
.fx-on .btn:active { transform: translateY(0) scale(.97); }
.fx-on .cal-arrow { transition: transform .2s var(--fx-e); }
.fx-on .cal-arrow:hover { transform: scale(1.15); }
.fx-on .cal-arrow:active { transform: scale(.92); }

/* ---------- tarjetas que se inclinan hacia el cursor (solo con mouse, nivel completo) ----------
   fx.js escribe el transform directo en la tarjeta: nada de
   variables CSS (se heredan y obligan a recalcular todos los hijos en cada cuadro) ni propiedades que repintan. */
.fx-on .fx-t.fx-t { position: relative; transition: transform .6s var(--fx-e); }
.fx-on .fx-t.fx-th { transition: transform .12s linear; z-index: 2; overflow: hidden; }
.fx-on .fx-t::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: linear-gradient(135deg, var(--fx-gold2), rgba(255, 215, 106, .15) 38%, rgba(255, 215, 106, .15) 62%, var(--fx-gold2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.fx-on .fx-t.fx-th::before { opacity: 1; }
@media (hover: none) {
  .fx-on :is(.step, .cc, .dc-card, .pz-simple, .rk-hito):active { transform: scale(.985); transition: transform .15s; }
}

/* ---------- cuadros ---------- */
@keyframes fxParBg { to { transform: translate3d(0, 20vh, 0); } }
@keyframes fxParIn { 30% { opacity: 1; } to { transform: translate3d(0, -9vh, 0); opacity: 0; } }
@keyframes fxProg { to { transform: scaleX(1); } }
@keyframes fxNav { from { transform: translateY(-120%); opacity: 0; } }
@keyframes fxRise { from { opacity: 0; transform: translateY(26px); } }
@keyframes fxLogoIn { from { opacity: 0; transform: scale(.5) rotate(-8deg); } }
@keyframes fxFloat { 50% { transform: translateY(-9px); } }
@keyframes fxSheen { 0%, 72% { transform: translateX(-160%) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes fxGhost { from { transform: translateX(16%); } to { transform: translateX(-16%); } }
@keyframes fxMq { to { transform: translateX(-50%); } }
@keyframes fxGlint { 0%, 68% { transform: translateX(-110%); } 100% { transform: translateX(500%); } }
@keyframes fxPop { from { opacity: 0; transform: scale(.4); } }
@keyframes fxInR { from { opacity: 0; transform: translateX(70px); } }
@keyframes fxInL { from { opacity: 0; transform: translateX(-46px); } }
@keyframes fxFlip { from { opacity: 0; transform: perspective(300px) rotateX(-90deg); } }
@keyframes fxGrow { from { transform: scaleX(0); } }
@keyframes fxSweep { 0%, 60% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(460%) skewX(-20deg); } }
@keyframes fxSweepW { 0%, 70% { transform: translateX(-140%) skewX(-20deg); } 100% { transform: translateX(620%) skewX(-20deg); } }
@keyframes fxKen { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes fxWobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes fxPing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes fxTwinkle { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }

/* celular: menos recorrido y sin las piezas que solo sirven con mouse */
@media (max-width: 760px) {
  .fx-mq span { font-size: 13px; padding: 8px 10px; gap: 18px; }
  .fx-on .tk.reveal:not(.in), .fx-on .dc-card.reveal:not(.in) { transform: translateX(-34px); }
  .fx-on .tk:nth-child(even).reveal:not(.in), .fx-on .dc-card:nth-child(even).reveal:not(.in) { transform: translateX(34px); }
  .fx-orn { margin-top: 12px; }
}
