/* animations.css - Animaciones para Krayon Rock Band */

/* Animaciones básicas */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animaciones especiales */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(225, 60, 60, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(225, 60, 60, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(225, 60, 60, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes rockGuitar {
    0% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes spotlight {
    from {
        background-position: -100% 0;
    }
    to {
        background-position: 200% 0;
    }
}

/* Clases de animación */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 1s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

.rock {
    animation: rockGuitar 1s infinite ease-in-out;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.spotlight-text {
    background: linear-gradient(90deg, #fff, #e63946, #fff);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spotlight 3s linear infinite;
}

/* Retrasos de animación */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }

/* Efectos al cargar la página */
.loaded .hero-title {
    animation: fadeInUp 0.8s ease forwards, rockGuitar 2s 1s ease-in-out infinite;
}

.loaded .hero-subtitle {
    animation: fadeInUp 0.8s 0.3s ease forwards;
}

.loaded .hero-buttons {
    animation: fadeInUp 0.8s 0.6s ease forwards;
}

/* Animaciones de scroll */
.reveal {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
}

.active.fade-left {
    animation: fadeInLeft 1s ease forwards;
}

.active.fade-right {
    animation: fadeInRight 1s ease forwards;
}

.active.fade-up {
    animation: fadeInUp 1s ease forwards;
}

.active.fade-down {
    animation: fadeInDown 1s ease forwards;
}

/* Animación especial para la banda */
.band-member-animation {
    transition: all 0.5s ease;
}

.band-member-animation:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 15px 30px rgba(225, 60, 60, 0.3);
}

/* Animación para botones de redes sociales */
.social-animation {
    transition: all 0.3s ease;
}

.social-animation:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Animación para tarjetas de servicios */
.service-card-animation {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-animation:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}