/* Apariciones suaves, sin cambios de layout. */
@media (prefers-reduced-motion: no-preference) {
  html.fr-motion-ready :is(.fr-hero, .fr-seccion, .fr-interior, .fr-footer) {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .65s var(--fr-ease), transform .65s var(--fr-ease);
  }
  html.fr-motion-ready :is(.fr-hero, .fr-seccion, .fr-interior, .fr-footer).fr-is-visible {
    opacity: 1;
    transform: none;
  }

  /* Onda con pulso claramente perceptible, suave y asincrónico.
     Solo se transforman las barras: no cambia el layout ni requiere JS. */
  .fr-wave rect {
    transform-box: fill-box;
    transform-origin: center center;
    animation: fr-wave-pulse 4s ease-in-out infinite;
    animation-delay: -1s;
    will-change: transform, opacity;
  }
  .fr-wave rect:nth-child(6n + 1) { animation-duration: 3.6s; animation-delay: -1.8s; }
  .fr-wave rect:nth-child(6n + 2) { animation-duration: 4.4s; animation-delay: -3.1s; }
  .fr-wave rect:nth-child(6n + 3) { animation-duration: 3.9s; animation-delay: -0.7s; }
  .fr-wave rect:nth-child(6n + 4) { animation-duration: 4.8s; animation-delay: -2.6s; }
  .fr-wave rect:nth-child(6n + 5) { animation-duration: 3.4s; animation-delay: -2s; }
  .fr-wave rect:nth-child(6n) { animation-duration: 4.2s; animation-delay: -3.8s; }
  @keyframes fr-wave-pulse {
    0%, 100% { transform: scaleY(.56); opacity: .62; }
    35% { transform: scaleY(1.36); opacity: 1; }
    65% { transform: scaleY(.83); opacity: .82; }
    85% { transform: scaleY(1.12); opacity: .95; }
  }
}

/* Respeta la preferencia de accesibilidad: onda estática. */
@media (prefers-reduced-motion: reduce) {
  .fr-wave rect { animation: none !important; transform: none !important; }
}

/* Entrada breve, sin pantalla bloqueante, demoras artificiales ni JavaScript.
   No cambia el flujo del documento ni retrasa la navegación. */
@media (prefers-reduced-motion: no-preference) {
  body > main, body > .fr-main {
    animation: fr-page-enter .18s ease-out both;
  }
  @keyframes fr-page-enter {
    from { opacity: .78; }
    to { opacity: 1; }
  }
}
