/* ========================================
   ANIMATIONS — Nativos América
   ======================================== */

/* ── Keyframes ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--green-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--green-glow), 0 0 60px rgba(46, 204, 113, 0.15);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes scroll-hint {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes leaf-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) translateX(0);
    }

    25% {
        transform: translateY(25vh) rotate(90deg) translateX(20px);
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-15px);
    }

    75% {
        transform: translateY(75vh) rotate(270deg) translateX(10px);
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg) translateX(-5px);
    }
}

@keyframes counter-glow {

    0%,
    100% {
        text-shadow: 0 0 20px var(--green-glow);
    }

    50% {
        text-shadow: 0 0 40px var(--green-glow), 0 0 80px rgba(46, 204, 113, 0.2);
    }
}

/* ── Utility classes ── */
.animate-fade-up {
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.animate-fade {
    animation: fadeIn 0.6s var(--ease-out) both;
}

.animate-slide-left {
    animation: slideInLeft 0.8s var(--ease-out) both;
}

.animate-slide-right {
    animation: slideInRight 0.8s var(--ease-out) both;
}

.animate-scale {
    animation: scaleIn 0.6s var(--ease-out) both;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-breathe {
    animation: breathe 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ── Stagger delays ── */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* ── Leaf particles (for CTA section) ── */
.leaf-particle {
    position: absolute;
    top: -20px;
    font-size: 1.2rem;
    opacity: 0;
    animation: leaf-fall linear infinite;
    pointer-events: none;
    z-index: 1;
}