/**
 * Estilos específicos para el carrusel de categorías
 */

/* Contenedor del swiper de categorías */
.categorias-swiper {
    width: 100%;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

/* Ajuste para reducir el espacio entre slides */
.categorias-swiper .swiper-slide {
    padding: 5px;
    box-sizing: border-box;
    height: auto;
}

/* Tarjetas de categorías */
.categoria-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.categoria-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.categoria-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.categoria-img-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.categoria-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.categoria-card:hover img {
    transform: scale(1.05);
}

.categoria-card span {
    display: block;
    padding: 10px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #333;
    background-color: #fff;
}

/* Controles de navegación */
.categorias-swiper .swiper-button-next,
.categorias-swiper .swiper-button-prev {
    color: #555;
    background-color: rgba(255, 255, 255, 0.7);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.categorias-swiper .swiper-button-next:hover,
.categorias-swiper .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.categorias-swiper .swiper-button-next:after,
.categorias-swiper .swiper-button-prev:after {
    font-size: 18px;
}

/* Paginación */
.categorias-swiper .swiper-pagination-bullet {
    background-color: #555;
    opacity: 0.5;
}

.categorias-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .categoria-card img {
        height: 150px;
    }
    
    .categoria-card span {
        font-size: 1rem;
        padding: 10px;
    }
}
