/* Light Car Rental — capa de movimiento (sin dependencias).
   Firma: letras de tablero que giran (split-flap), talón que se «arranca», línea de ruta que se dibuja.
   Todo lento y suave; con «reducir movimiento» del sistema, nada se mueve y todo se ve. */

/* entradas al hacer scroll (solo si hay JS) */
.js [data-rise] { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(5px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.25s cubic-bezier(.2,.7,.2,1), filter 1.1s ease; transition-delay: var(--d, 0s); }
.js [data-rise].is-in { opacity: 1; transform: none; filter: none; }

/* filtros de la flota */
.pass.is-out { opacity: 0 !important; transform: translate3d(0, 14px, 0) scale(.985) !important; transition-duration: .4s; }

/* hero: titular por palabras */
.hero__t .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.hero__t .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.25s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.hero__t.is-in .w > span { transform: none; }
.js .hero__t[data-rise] { filter: none; transform: none; }

/* logo del hero: entra lento, con escala */
.js .hero__logo[data-rise] { transform: scale(.94); transition-duration: 1.4s, 1.6s, 1.2s; }
.js .hero__logo[data-rise].is-in { transform: none; }

/* tablero: cada letra gira sobre su eje */
.flap.is-turn { animation: flapTurn .16s linear; }
@keyframes flapTurn {
  0% { transform: perspective(160px) rotateX(0); }
  50% { transform: perspective(160px) rotateX(-90deg); filter: brightness(.6); }
  100% { transform: perspective(160px) rotateX(0); }
}
.board__row .st { transition: background .6s, color .6s; }

/* cinta de códigos de aeropuerto */
.codes__track { animation: codes 46s linear infinite; }
@keyframes codes { to { transform: translate3d(-33.333%, 0, 0); } }
.codes:hover .codes__track { animation-play-state: paused; }

/* línea de ruta: se dibuja con el scroll (clip) */
.js .route__line { clip-path: inset(0 calc(100% - var(--route, 0) * 100%) 0 0); }
.js .route__stops li::before { transform: scale(0); transition: transform .8s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.js .route.is-in .route__stops li::before { transform: scale(1); }

/* itinerario: la línea punteada crece con el scroll */
.js .trip__legs { --legs: 0; }

/* sello del pase: se «estampa» al entrar */
.js .pass[data-rise] .pass__st { opacity: 0; transform: rotate(-12deg) scale(1.5); transition: opacity .5s ease .5s, transform .7s cubic-bezier(.16,1,.3,1) .5s; }
.js .pass[data-rise].is-in .pass__st { opacity: 1; transform: rotate(-2deg) scale(1); }

/* contador */
[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise], .js .pass[data-rise] .pass__st, .hero__t .w > span, .js .route__stops li::before { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .js .route__line { clip-path: none; }
  .js .trip__legs { --legs: 1; }
  .codes__track { animation: none; }
  .flap.is-turn { animation: none; }
  .pass, .pass__stub, .pass__media img, .shot img, .btn, .btn .ic { transition: none !important; }
  html { scroll-behavior: auto; }
}
