/* ================================================
   Ecuapork - Animaciones de Scroll Reveal
   ================================================ */

/* Estado base - oculto */
.will-animate {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Fade In Up */
.fade-in-up.will-animate {
    transform: translateY(40px);
}

/* Fade In Left */
.fade-in-left.will-animate {
    transform: translateX(-50px);
}

/* Fade In Right */
.fade-in-right.will-animate {
    transform: translateX(50px);
}

/* Fade In */
.fade-in.will-animate {
    transform: none;
}

/* Scale In */
.scale-in.will-animate {
    transform: scale(0.85);
}

/* Estado visible (cuando entra al viewport) */
.will-animate.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Cards, counters, etc. */
.news-card.will-animate,
.cert-item.will-animate,
.info-card.will-animate,
.produccion-card.will-animate,
.timeline-item.will-animate,
.counter-box.will-animate {
    transform: translateY(30px);
}

.news-card.will-animate.is-visible,
.cert-item.will-animate.is-visible,
.info-card.will-animate.is-visible,
.produccion-card.will-animate.is-visible,
.timeline-item.will-animate.is-visible,
.counter-box.will-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero content stagger */
.hero-content h1.will-animate {
    transform: translateY(30px);
    transition-delay: 0.1s;
}
.hero-content p.will-animate {
    transform: translateY(30px);
    transition-delay: 0.25s;
}
.hero-content .btn.will-animate {
    transform: translateY(30px);
    transition-delay: 0.4s;
}

/* WhatsApp pulse */
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .will-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .whatsapp-float {
        animation: none !important;
    }
}
