:root {
    --azul-ladevi: #021F70;
    --naranja-ladevi: #F9A11B;
    --fondo-gris: #f4f6f9;
}

/* --- VIEWPORT / STICKY FOOTER --- */
html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--fondo-gris);
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* --- HEADER --- */
.navbar-main {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
}

/* --- REGIONES --- */
.region-section {
    background-color: var(--azul-ladevi);
    padding: 20px 0;
    border-bottom: 4px solid var(--naranja-ladevi);
}

.country-pill {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 5px;
}

.country-pill:hover, .country-pill.active {
    background: white;
    color: var(--azul-ladevi);
    border-color: white;
}

.flag-icon {
    width: 20px;
    margin-right: 8px;
    border-radius: 2px;
}

/* --- TITULOS --- */
.section-title {
    font-weight: 700;
    color: var(--azul-ladevi);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--naranja-ladevi);
}

/* --- PRODUCTOS Y REVISTAS --- */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    padding: 40px 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(2, 31, 112, 0.08);
    border-color: var(--naranja-ladevi);
}

.product-logo {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) opacity(70%);
}

.product-card:hover .product-logo {
    filter: grayscale(0%) opacity(100%);
}

.magazine-item {
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-align: center;
}

.magazine-cover-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #fff;
    padding: 5px;
    display: inline-block;
    text-decoration: none;
}

.magazine-item:hover .magazine-cover-wrapper {
    transform: translateY(-10px);
}

.magazine-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.magazine-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    color: var(--azul-ladevi);
    display: block;
    text-decoration: none;
}

.magazine-date {
    font-size: 0.8rem;
    color: #888;
}

/* --- FILTRO DE AÑOS (SIDEBAR) --- */
.year-filter {
    display: block;
    padding: 10px 15px;
    background: #ffffff;
    color: var(--azul-ladevi);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    text-align: center;
}

.year-filter:hover {
    border-color: var(--naranja-ladevi);
    color: var(--naranja-ladevi);
    transform: translateX(3px); /* Pequeño empuje a la derecha en escritorio */
}

.year-filter.active {
    background: var(--naranja-ladevi);
    color: white;
    border-color: var(--naranja-ladevi);
}

.year-select-custom {
    background-color: white; 
    color: var(--azul-ladevi); 
    font-weight: 600; 
    border-radius: 8px; 
    padding: 10px 15px;
    border: 1px solid #eaeaea;
    cursor: pointer;
}

.year-select-custom:focus {
    border-color: var(--naranja-ladevi);
    box-shadow: 0 0 0 0.25rem rgba(249, 161, 27, 0.25);
}

/* --- FOOTER --- */
.footer-ladevi {
    background-color: var(--azul-ladevi);
    color: #ffffff;
    padding: 50px 0 20px;
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-ladevi h6 {
    color: var(--naranja-ladevi);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-ladevi ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-ladevi ul li {
    margin-bottom: 8px;
}

.footer-ladevi ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-ladevi ul li a:hover {
    color: var(--naranja-ladevi) !important;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--naranja-ladevi) !important;
}

/* =========================================
   MEDIA QUERIES (OPTIMIZACIÓN PARA MÓVILES) 
   ========================================= */
@media (max-width: 768px) {
    .country-pill {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .product-card {
        padding: 20px 10px;
    }

    .footer-ladevi {
        text-align: center;
    }
    .footer-ladevi h6 {
        margin-top: 25px;
    }
    .footer-ladevi .col-md-4:first-child h6 {
        margin-top: 0;
    }

    /* Comportamiento botones de año en móvil (filas horizontales) */
    .year-filter {
        flex: 1 1 auto;
        padding: 8px 10px;
    }
    .year-filter:hover {
        transform: translateY(-2px); /* En celular salta hacia arriba, no al costado */
    }
}
/* Si el select tiene un año real elegido (no el "disabled") */
.year-select-custom:not(:first-child):active, 
.year-select-custom:focus {
    background-color: #fff;
    color: var(--naranja-ladevi);
    border-color: var(--naranja-ladevi);
}