/* ==========================================================================
   Animaciones globales
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Reduced motion — red de seguridad global
   ==========================================================================
   Si el usuario tiene "Reducir movimiento" activado en su sistema:
   - Cualquier animación CSS termina en 1 frame (no se elimina del todo
     porque algunas reglas — auto-collapse de Bootstrap accordion, NProgress
     — necesitan que el animation END dispare).
   - Las transitions también se cortan.
   - scroll-behavior queda en auto (sin smooth scroll por anchors).
   - Scroll-driven animations en navegadores que las soporten: igual.
   Componentes individuales pueden seguir afinando su comportamiento con
   sus propios @media (prefers-reduced-motion), esto es solo el fallback.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
}
