/* ==========================================
   CARRUSEL DE PUBLICIDADES
   ========================================== */

.negocios-carousel {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #fff;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    position: relative;
    margin-top: -10px;
    margin-bottom: 10px;
}

.negocios-track {
    display: flex;
    width: fit-content;
    animation: scroll-negocios 30s linear infinite;
}

.negocio-item {
    flex-shrink: 0;
    height: 140px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.negocio-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e0e0e0;
}

.negocio-item img {
    max-height: 125px;
    max-width: 145px;
    object-fit: contain;
    display: block;
}

/* Animación de desplazamiento continuo */
@keyframes scroll-negocios {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausa la animación al pasar el mouse (opcional) */
.negocios-carousel:hover .negocios-track {
    animation-play-state: paused;
}

/* ==========================================
   RESPONSIVE - CARRUSEL DE PUBLICIDADES
   ========================================== */

/* Tablets */
@media (max-width: 768px) {
    .negocios-carousel {
        height: 110px;
    }
    
    .negocio-item {
        height: 110px;
        width: 130px;
    }
    
    .negocio-item img {
        max-height: 95px;
        max-width: 115px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .negocio-carousel {
        height: 100px;
    }
    
    .negocio-item {
        height: 100px;
        width: 110px;
    }
    
    .negocio-item img {
        max-height: 85px;
        max-width: 95px;
    }
    
    /* Velocidad más rápida en móvil */
    .negocios-track {
        animation: scroll-negocios 20s linear infinite;
    }
}

/* Estilos para los enlaces de publicidad */
.negocio-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.negocio-item a:hover img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}