/* Ruta: /assets/css/category-carousel.css (CORREGIDO) */

/* --- Contenedor Principal --- */
.category-carousel-container {
    position: relative;
    width: 100%;
    margin: 2rem auto 4rem auto;
    display: flex;
    align-items: center;
}

/* --- Wrapper (Máscara de overflow) --- */
.category-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* --- Carrusel (Contenedor de Items) --- */
.category-carousel {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* --- Item Individual del Carrusel --- */
.carousel-item {
    position: relative; /* Clave para el posicionamiento absoluto del overlay */
    flex: 0 0 100%;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
    background-color: #e0e0e0;
}

/* Estilo específico para el botón "Ver Todos" */
.carousel-item[data-category="Todos"] {
    background-color: #000000; /* Un color de fondo neutro */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.9); /* Ligeramente oscuro para que el botón resalte */
}

.carousel-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

/* --- Botón de Filtro/Acción --- */
.filter-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    text-transform: uppercase;
    /* Posicionamiento del botón en el centro del item */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
}

.carousel-item[data-category="Todos"] .filter-button {
    position: static; /* No necesita ser absoluto */
    transform: none;
    color: #ffffff; /* Texto oscuro para fondo claro */
    background: rgba(255, 255, 255, 0.414);
    border-color: rgba(0, 0, 0, 0.1);
}


.filter-button:hover,
.filter-button.active {
    background: #fff;
    color: #111;
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.carousel-item[data-category="Todos"] .filter-button:hover,
.carousel-item[data-category="Todos"] .filter-button.active {
    transform: scale(1.05);
}


/* --- Botones de Navegación (Flechas) --- */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

.category-carousel-container:hover .carousel-nav {
    opacity: 1;
}


/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .carousel-item {
        height: 220px;
    }

    .filter-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .carousel-nav.prev { left: 10px; }
    .carousel-nav.next { right: 10px; }
}

/* --- INICIO: NUEVOS ESTILOS PARA LA DESCRIPCIÓN --- */

.category-description-display {
    text-align: center;
    margin: -2rem auto 0 auto; /* Ajusta el espacio superior e inferior */
    max-width: 950px; /* Limita el ancho para mejor legibilidad */
    padding: 0 1rem;
}

#active-category-description {
    margin: 10;
    font-size: 2rem;
    color: #000000;
    line-height: 1.6;
    opacity: 1;
    transition: opacity 0.4s ease-in-out; /* Transición suave de opacidad */
}