@keyframes aparecer {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes aparecer-escala {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes desvanecer {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ocultar {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes girar {
    to { transform: rotate(360deg); }
}

@keyframes pulso {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes resaltar {
    0% { box-shadow: 0 0 0 0 rgb(0 0 0 / 0%); }
    30% { box-shadow: 0 0 0 4px rgb(0 0 0 / 22%); }
    100% { box-shadow: 0 0 0 0 rgb(0 0 0 / 0%); }
}

@keyframes notificacion-entrar {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@keyframes notificacion-salir {
    to { opacity: 0; transform: translateX(16px); }
}

@keyframes barra-progreso {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes rebote-icono {
    0%, 100% { transform: none; }
    40% { transform: translateY(-2px) rotate(-6deg); }
    70% { transform: translateY(0) rotate(3deg); }
}

.entrada {
    animation: aparecer var(--duracion-lenta) var(--curva) both;
}

.entrada-escalonada > * {
    animation: aparecer-escala var(--duracion-lenta) var(--curva) both;
}

.entrada-escalonada > *:nth-child(2) { animation-delay: 40ms; }
.entrada-escalonada > *:nth-child(3) { animation-delay: 80ms; }
.entrada-escalonada > *:nth-child(4) { animation-delay: 120ms; }
.entrada-escalonada > *:nth-child(5) { animation-delay: 160ms; }
.entrada-escalonada > *:nth-child(6) { animation-delay: 200ms; }
.entrada-escalonada > *:nth-child(n + 7) { animation-delay: 240ms; }

.actualizado {
    animation: resaltar 900ms var(--curva);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
