/* Contenedor principal de Swiper */
.brands-carousel-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden; /* Importante para el carrusel */
    position: relative; /* Para el posicionamiento de flechas/paginación */
    padding-bottom: 50px; /* Espacio para la paginación inferior */
}

/* Diapositivas */
.swiper-slide.brand-item {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.swiper-slide.brand-item .brand-link-wrapper {
    display: block;
    width: 100%;
    padding: 10px;
}

.swiper-slide.brand-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Fallback para marcas sin imagen */
.brand-fallback {
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px; /* Altura simulada de un logo */
    transition: background-color 0.3s;
}

.brand-fallback span {
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.swiper-slide.brand-item a:hover .brand-fallback {
    background-color: #f1f1f1;
}

/* Paginación */
.brands-carousel-wrapper .swiper-pagination {
    bottom: 0px !important; 
}

.brands-carousel-wrapper .swiper-pagination-bullet {
    background-color: #333; 
    opacity: 0.5;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.brands-carousel-wrapper .swiper-pagination-bullet-active {
    background-color: #0073aa; 
    opacity: 1;
}

/* Flechas de navegación */
.brands-carousel-wrapper .swiper-button-prev,
.brands-carousel-wrapper .swiper-button-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: -20px; /* Centrado vertical mejorado */
}

.brands-carousel-wrapper .swiper-button-prev:after,
.brands-carousel-wrapper .swiper-button-next:after {
    font-size: inherit; 
    color: inherit; 
}

.brands-carousel-wrapper .swiper-button-prev {
    left: 10px;
}

.brands-carousel-wrapper .swiper-button-next {
    right: 10px;
}