/* Animaciones avanzadas para scroll */

/* Animación de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases base para animaciones */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos específicos para diferentes elementos */
.brands-row .brand-box {
    transition: all 0.6s ease;
    transform: translateY(20px);
    opacity: 0;
}

.brands-row .brand-box.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Efecto cascada para elementos de marca */
.brands-row .brand-box:nth-child(1).visible { transition-delay: 0.1s; }
.brands-row .brand-box:nth-child(2).visible { transition-delay: 0.2s; }
.brands-row .brand-box:nth-child(3).visible { transition-delay: 0.3s; }
.brands-row .brand-box:nth-child(4).visible { transition-delay: 0.4s; }
.brands-row .brand-box:nth-child(5).visible { transition-delay: 0.5s; }

/* Animación especial para el título principal */
.main-title {
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-title.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Animación para la sección "quienes somos" */
.section-about-image {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.section-about-image.visible {
    transform: translateX(0);
    opacity: 1;
}

.section-about-content {
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.section-about-content.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Animación para elementos dentro de la sección about */
.section-about-item {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.section-about-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.section-about-item:nth-child(2).visible { transition-delay: 0.2s; }
.section-about-item:nth-child(3).visible { transition-delay: 0.4s; }

/* Animación para carrusel de clientes */
.clients-carousel {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.8s ease;
}

.clients-carousel.visible {
    transform: scale(1);
    opacity: 1;
}

/* Animación para el título de clientes */
.clients-title {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.clients-title.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Animación para widgets del footer */
footer .widget {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

footer .widget.visible {
    transform: translateY(0);
    opacity: 1;
}

footer .widget:nth-child(1).visible { transition-delay: 0.1s; }
footer .widget:nth-child(2).visible { transition-delay: 0.2s; }
footer .widget:nth-child(3).visible { transition-delay: 0.3s; }
footer .widget:nth-child(4).visible { transition-delay: 0.4s; }

/* Efecto hover mejorado para elementos animados */
.scroll-animate.visible:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.brands-row .brand-box.visible:hover {
    transform: translateY(-10px) scale(1.05);
    transition: all 0.3s ease;
}

/* Animación para móviles - más sutil */
@media (max-width: 768px) {
    .scroll-animate {
        transition-duration: 0.6s;
    }
    
    .main-title {
        transition-duration: 0.8s;
    }
    
    .section-about-image,
    .section-about-content {
        transform: translateY(20px);
        transition-duration: 0.6s;
    }
    
    .section-about-image.visible,
    .section-about-content.visible {
        transform: translateY(0);
    }
}
