/**
 * VELRUS - Animaciones y Microinteracciones
 * Transiciones sutiles, revelación al desplazarse y soporte para prefers-reduced-motion.
 */

/* ==========================================================================
   Efectos de Revelación al Desplazarse (Scroll Reveal)
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Retardos escalonados para listas y cuadrículas */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==========================================================================
   Microinteracciones y Efectos Hover
   ========================================================================== */
/* Efecto de Zoom Suave en Imágenes */
.zoom-effect-container {
    overflow: hidden;
}

.zoom-effect-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-effect-container:hover .zoom-effect-img {
    transform: scale(1.05);
}

/* Pulso sutil para elementos de llamada a la acción */
@keyframes subtlePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(32, 134, 254, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(32, 134, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(32, 134, 254, 0);
    }
}

.pulse-glow {
    animation: subtlePulse 2.5s infinite;
}

/* Efecto suave para el botón de play de video */
.play-circle {
    position: relative;
}

.play-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(32, 134, 254, 0.5);
    animation: subtlePulse 2s infinite;
}

/* ==========================================================================
   Accesibilidad: Reducción de Movimiento
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .pulse-glow,
    .play-circle::before {
        animation: none !important;
    }
}
