/* --- Estilos para el Carrusel de Portadas --- */
.carousel-section {
    width: 100%;
    background-color: var(--light-bg);
    padding: 20px 0;
}

.carousel-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
    border-radius:8px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 250px; /* o el alto que necesites */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute; /* superpone todas las slides */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* ocultas por defecto */
    transition: opacity 0.8s ease-in-out; /* efecto fade */
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1; /* visible */
    z-index: 1;
}


/* --- Estilos para las Flechas (Corregido) --- */
.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
    display: flex; /* Añadido para centrar el icono de flecha */
    align-items: center;
    justify-content: center;
}

.slide-prev:hover,
.slide-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-prev { left: 1rem; }
.slide-next { right: 1rem; }


/* --- Estilos para los Puntos de Navegación --- */
.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index:50;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none; /* Añadido para resetear estilos de botón */
    padding: 0;   /* Añadido para resetear estilos de botón */
    transition: background-color 0.2s;
}
.carousel-dot.active {
    background-color: white;
}

/* --- Responsividad del Carrusel --- */
@media (max-width: 800px) {
    .carousel-section {
        padding: 0;
    }
}
@media (max-width: 768px) {
    .carousel-section {
        padding: 0;
    }
    .carousel-slide { height: 120px; }
    
    .slide-prev,
    .slide-next { 
        width: 40px; 
        height: 40px; 
        font-size: 1.5rem; 
    }
}