/* =====================================================
   ANIMATIONS.CSS
   Keyframes y clases de animación - Versión Mejorada
   ===================================================== */

/* FONDO LIMPIO AL ESTILO BULL MARKETING */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, var(--bull-white) 0%, var(--bull-beige) 100%);
    z-index: -1;
}

/* Animated Background para Fluid Effect */
body {
    background: transparent !important;
    background-color: var(--bull-white) !important;
}

/* ========================================
   ANIMACIONES DE ENTRADA
   ======================================== */

/* Fade In Up - Animación principal */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Fade In desde la izquierda */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Fade In desde la derecha */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Scale Up - Para elementos importantes */
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   ANIMACIONES CONTINUAS
   ======================================== */

/* Pulso sutil para elementos destacados */
.pulse-subtle {
    animation: pulseSubtle 3s ease-in-out infinite;
}

@keyframes pulseSubtle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Flotación suave */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Rotación del número de sección */
.rotate-in {
    animation: rotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Gradiente animado de fondo para títulos */
.gradient-text {
    background: linear-gradient(90deg, var(--bull-dark), var(--bull-orange), var(--bull-dark));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Brillo que recorre el texto */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(238, 90, 33, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ========================================
   RETRASOS PARA ANIMACIONES
   ======================================== */

.delay-100 {
    animation-delay: 0.1s;
}

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

.delay-300 {
    animation-delay: 0.3s;
}

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

.delay-500 {
    animation-delay: 0.5s;
}

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

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* ========================================
   ANIMACIONES DE HOVER MEJORADAS
   ======================================== */

/* Efecto de elevación con sombra */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Rotación suave en hover */
.hover-rotate {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Efecto de partículas (simulado con pseudo-elementos) */
@keyframes particle {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0);
    }
}

/* Bounce suave */
.bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Typing effect para texto */
.typing {
    overflow: hidden;
    border-right: 2px solid var(--bull-orange);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Glitch effect sutil */
.glitch {
    position: relative;
    animation: glitch 5s infinite;
}

@keyframes glitch {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-2px, 2px);
    }

    94% {
        transform: translate(2px, -2px);
    }

    96% {
        transform: translate(-2px, 2px);
    }
}