/* ==========================================================================
   LAURICELLA ÁRIDOS · motion.css  (Agente 09 · Motion)
   Regla: este archivo NUNCA oculta contenido por sí solo. Los estados iniciales
   los pone motion.js con gsap.set, o dependen de clases que agrega JS:
     html.js-motion       -> motion.js arrancó bien (GSAP + ScrollTrigger ok)
     html.js-motion-boot  -> OPCIONAL, snippet inline en <head> (ver RESUMEN.md)
                              para que el hero no "parpadee" antes de animar.
                              Tiene failsafe: a los 2,5 s se muestra igual.
   ========================================================================== */

/* Números que cuentan: dígitos de ancho fijo, sin saltos. */
[data-counter] { font-variant-numeric: tabular-nums; }

/* Mientras GSAP anima un elemento, sus transitions CSS se apagan (motion.js pone
   y saca .lr-anim) para que hover/press de tarjetas y botones no estiren la animación. */
.lr-anim { transition: none !important; }

/* Camión: nunca genera scroll horizontal aunque cambie el ancho del track. */
.truck-track { overflow: clip; }
.js-motion .truck-run { will-change: transform; }

/* Titular del hero partido en palabras durante la entrada (spans que crea motion.js
   y que se quitan al terminar). inline-block para poder transformar. */
.hero__title .mw { display: inline-block; }
.hero__title .mw__i { display: inline-block; will-change: transform; }

/* --- Boot opcional anti-parpadeo del hero --------------------------------- */
html.js-motion-boot .hero__mark,
html.js-motion-boot .hero__title,
html.js-motion-boot .hero__lead,
html.js-motion-boot .hero__ctas {
  opacity: 0;
  animation: lr-boot-failsafe 0s linear 2.5s forwards;
}
@keyframes lr-boot-failsafe { to { opacity: 1; } }

/* Movimiento reducido: nada oculto, nada en movimiento. */
@media (prefers-reduced-motion: reduce) {
  html.js-motion-boot .hero__mark,
  html.js-motion-boot .hero__title,
  html.js-motion-boot .hero__lead,
  html.js-motion-boot .hero__ctas { opacity: 1; animation: none; }
  .js-motion .truck-run, .hero__title .mw__i { will-change: auto; }
}
