/* Paleta de colores basada en tus imágenes: Azules profundos y neones suaves */
:root {
    --primary-blue: #0056b3;
    --futuristic-cyan: #00d4ff;
    --dark-bg: #0a0b10;
    --glass-white: rgba(255, 255, 255, 0.1);
}

#menuSections {
    background: radial-gradient(
        circle at top right,
        rgba(105, 93, 255, 0.4),
        rgba(21, 88, 241, 0.4)
    );
    padding-bottom: 80px;
    max-width: inherit;
}

/* Título de sección "LO NUEVO" */
#headerSections h1 {
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    border-left: 5px solid var(--futuristic-cyan);
    padding-left: 15px;
}

/* Tarjeta de Revista */
.magazine-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magazine-card:hover {
    transform: translateY(-15px) scale(1.02);
}

/* Badge de Volumen */
.vol-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--futuristic-cyan);
    color: #000;
    padding: 5px 15px;
    font-weight: bold;
    z-index: 10;
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
    font-family: 'Montserrat', sans-serif;
}

/* Contenedor de la Portada */
.magazine-cover-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.magazine-img {
    transition: filter 0.5s ease;
    width: 100%;
    height: auto; /* Dejamos que la imagen dicte su altura natural */
    aspect-ratio: 3 / 4; /* Proporción estándar de revista, ajusta si es necesario */
    object-fit: contain; /* ¡Clave! Muestra la imagen completa sin recortar */
    background: #f8f9fa; /* Fondo neutro por si la imagen es de otro ratio */
}

.magazine-cover-wrapper {
    position: relative;
    border-radius: 8px; /* Un poco más sutil para que parezca papel */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff; /* Fondo blanco para las portadas */
}

/* Efecto Glassmorphism al hacer Hover */
.overlay-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    color: white;
}

.magazine-card:hover .overlay-glass {
    opacity: 1;
}

.description-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Botón Estilo Futurista */
.btn-magazine {
    background: transparent;
    border: 2px solid var(--futuristic-cyan);
    color: var(--futuristic-cyan);
    padding: 10px 25px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-magazine:hover {
    background: var(--futuristic-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--futuristic-cyan);
}

/* Carrusel Modernizado */
.custom-carousel {
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--glass-white);
}
/* Asegura que los controles del slider siempre estén al frente y clickeables */
.carousel-control-prev,
.carousel-control-next {
    z-index: 20; /* Por encima de las tarjetas de revista */
    width: 5%;   /* Área de clic más definida */
}

.custom-carousel {
    position: relative;
    z-index: 5;
}