/* Carrusel de Industrias Interactivo */

.industries-carousel-auto {
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.industries-carousel-auto:active {
    cursor: grabbing;
}

#industries-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.industries-card {
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover effect en las tarjetas */
.industries-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.industries-card:active {
    transform: translateY(-2px) scale(1.02);
}

/* Efecto de brillo al hacer hover */
.industries-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.industries-card:hover::before {
    left: 100%;
}

/* Indicador visual de que se puede hacer clic */
.industries-card .xb-title {
    transition: color 0.3s ease;
}

.industries-card:hover .xb-title {
    color: #00d4ff;
}

/* Animación del icono */
.industries-card .xb-icon {
    transition: transform 0.3s ease;
}

.industries-card:hover .xb-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive: ajustar tamaño de tarjetas */
@media (max-width: 768px) {
    #industries-track {
        gap: 15px;
    }
    
    .industries-card {
        min-width: 200px;
    }
    
    .industries-card:hover {
        transform: translateY(-3px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .industries-card {
        min-width: 160px;
    }
    
    #industries-track {
        gap: 10px;
    }
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.industries-card {
    animation: slideIn 0.5s ease-out backwards;
}

.industries-card:nth-child(1) { animation-delay: 0.1s; }
.industries-card:nth-child(2) { animation-delay: 0.2s; }
.industries-card:nth-child(3) { animation-delay: 0.3s; }
.industries-card:nth-child(4) { animation-delay: 0.4s; }
.industries-card:nth-child(5) { animation-delay: 0.5s; }
.industries-card:nth-child(6) { animation-delay: 0.6s; }
