/* ============================================
   ANIMACIONES - GSAP CLASSES + CSS ANIMATIONS
   ============================================ */

/* --- Reveal Animations (controlled by GSAP) --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

/* --- Hero Animations --- */
.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
}

.hero-tagline {
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Counter Animation --- */
.counter {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* --- Smooth Image Parallax --- */
.parallax-img {
    will-change: transform;
}

/* --- Hover Glow Effect --- */
.glow-hover {
    position: relative;
}

.glow-hover::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.glow-hover:hover::after {
    opacity: 0.15;
}

/* --- Stagger Delay Helper --- */
[data-delay="0.1"] { transition-delay: 0.1s; }
[data-delay="0.2"] { transition-delay: 0.2s; }
[data-delay="0.3"] { transition-delay: 0.3s; }
[data-delay="0.4"] { transition-delay: 0.4s; }
[data-delay="0.5"] { transition-delay: 0.5s; }
[data-delay="0.6"] { transition-delay: 0.6s; }
[data-delay="0.7"] { transition-delay: 0.7s; }

/* --- Image Zoom on Load --- */
@keyframes imageZoom {
    from {
        transform: scale(1.1);
        opacity: 0.7;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-img {
    animation: imageZoom 1.5s ease-out forwards;
}

/* --- Shimmer Loading Placeholder --- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* --- Floating Animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* --- Gradient Text --- */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    .hero-subtitle,
    .hero-tagline,
    .hero-cta {
        opacity: 1;
        transform: none;
    }

    .whatsapp-float {
        animation: none;
    }
}