/* motion.css · efectos de entrada.
   - Las tarjetas entran una sola vez con un leve desenfoque (no se repite al volver a subir).
   - Títulos y textos no se desenfocan.
   - Todo se desactiva con prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Progreso de lectura ligado al scroll (con respaldo en JS) */
  @supports (animation-timeline: scroll()) {
    .progress { animation: gx-bar linear both; animation-timeline: scroll(root block); }
  }

  /* Entrada del hero y de los encabezados internos (sin desenfoque) */
  .hero-badge, .hero-video .hero-sub, .hero-video .hero-actions { animation: gx-up .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-video .hero-sub { animation-delay: .12s; }
  .hero-video .hero-actions { animation-delay: .24s; }
  .phero__photo { animation: gx-phero-in 1.6s cubic-bezier(.2, .7, .2, 1) both; }

  /* Tarjetas: entrada única (el JS agrega .rv solo a lo que está fuera de pantalla y .is-in al aparecer) */
  html.rv-on .rv {
    opacity: 0; transform: translateY(32px); filter: blur(6px);
    transition-property: opacity, transform, filter, translate, border-color, box-shadow, background-color;
    transition-duration: .75s, .75s, .6s, .4s, .3s, .4s, .3s;
    transition-timing-function: cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s, 0s, 0s;
  }
  html.rv-on .rv.sr { transform: translateX(56px); }
  html.rv-on .rv.is-in { opacity: 1; transform: none; filter: none; }
}

@keyframes gx-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gx-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes gx-phero-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
