/* Animaciones personalizadas */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeLeft 0.8s ease forwards;
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeRight 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efecto de aparición al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de carga */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(1, 0, 251, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

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

/* Animación de pulso para elementos importantes */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(1, 0, 251, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(1, 0, 251, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(1, 0, 251, 0);
    }
}

/* Animación para el botón de voz activo */
.voice-active .voice-btn {
    animation: voiceActive 1.5s infinite;
}

@keyframes voiceActive {
    0%, 100% {
        background-color: var(--primary-yellow);
    }
    50% {
        background-color: #ff9900;
    }
}