/* nota.css - VERSIÓN CORREGIDA */

/* Contenedor principal de la nota */
.nota {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--blanco);
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
}

.nota h1 {
    font-size: 2.2rem;
    margin: 0 0 12px;
    line-height: 1.3;
    color: var(--azul_oscuro);
}

.meta {
    opacity: .7;
    margin: 0 0 24px;
    color: var(--azul_oscuro);
    font-weight: 500;
    font-size: 0.95rem;
}

.excerpt {
    font-size: 1.1rem;
    margin: 0 0 24px;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1.6;
    color: var(--azul_oscuro);
}

.cover {
    margin: 0 0 24px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cover img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

.content {
    line-height: 1.7;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--azul_oscuro);
    width: 100%;
    overflow-wrap: break-word;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.content strong {
    font-weight: 700;
    background-color: var(--azul_extra_claro);
    padding: 2px 4px;
}

/* Redes sociales */
.social_media_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 20px;
    padding: 15px 0;
    border-top: 1px solid var(--gris_claro);
    border-bottom: 1px solid var(--gris_claro);
    width: 100%;
}

.social_media_logo {
    height: 32px;
    width: 32px;
    transition: transform 0.3s ease;
}

.social_media_logo:hover {
    transform: scale(1.1);
}

/* BANNER EN NOTAS */
.banner-nota-container {
    width: 100%;
    max-width: 900px;
    margin: 25px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: var(--blanco);
    border: 1px solid rgba(0,0,0,0.1);
}



.banner-nota-imagen {
    width: 100%;
    height: auto;
    display: block;
    max-height: 150px;
    object-fit: cover;
    object-position: center;
}

.banner-nota-placeholder {
    width: 100%;
    max-width: 900px;
    height: 120px;
    margin: 25px auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul_oscuro);
    font-size: 1rem;
    border: 2px dashed var(--azul_oficial);
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Artículos relacionados */
.grid_aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 auto;
    padding: 20px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.interes_container h1 {
    margin: 20px 0;
    font-size: 1.8rem;
    color: var(--azul_oscuro);
    text-align: center;
    padding: 0 20px;
}

.note {
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.note:hover {
    transform: translateY(-5px);
}

.note__thumb__aside {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.note__thumb__aside img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.note:hover .note__thumb__aside img {
    transform: scale(1.05);
}

.note__content {
    padding: 20px;
}

.note__content h2 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.note__content h2 a {
    color: var(--azul_oscuro);
    text-decoration: none;
}

.note__content h2 a:hover {
    color: var(--azul_oficial);
}

.note__content .meta {
    font-size: 0.85rem;
    margin: 0 0 8px;
    opacity: 0.7;
}

.note__content .category {
    font-size: 0.9rem;
    color: var(--azul_oficial);
    font-weight: 500;
    margin: 8px 0;
}

.note__content .excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
    margin: 10px 0 0;
}

/* Placeholder para imágenes */
.ph {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul_oscuro);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .nota {
        padding: 25px 15px;
    }
    
    .nota h1 {
        font-size: 2rem;
    }
    
    .cover img {
        max-height: 400px;
    }
    
    .banner-nota-imagen {
        max-height: 130px;
    }
    
    .banner-nota-placeholder {
        height: 100px;
    }
    
    .grid_aside {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
    }
}

/* Móvil Grande (576px - 768px) */
@media (max-width: 768px) {
    .nota {
        padding: 20px 15px;
        margin: 0;
        border-radius: 0;
    }
    
    .nota h1 {
        font-size: 1.8rem;
    }
    
    .excerpt {
        font-size: 1rem;
    }
    
    .content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .cover {
        margin: 0 0 20px;
        border-radius: 8px;
    }
    
    .cover img {
        max-height: 300px;
    }
    
    .banner-nota-container {
        margin: 20px auto;
        border-radius: 6px;
    }
    
    .banner-nota-imagen {
        max-height: 100px;
    }
    
    .banner-nota-placeholder {
        height: 80px;
        font-size: 0.9rem;
        padding: 15px;
        margin: 20px auto;
    }
    
    .social_media_container {
        margin: 30px 0 15px;
        gap: 12px;
    }
    
    .social_media_logo {
        height: 28px;
        width: 28px;
    }
    
    .grid_aside {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 10px;
    }
    
    .interes_container h1 {
        font-size: 1.6rem;
        margin: 15px 0;
        padding: 0 10px;
    }
    
    .note__thumb__aside {
        height: 180px;
    }
}

/* Móvil Pequeño (menos de 576px) */
@media (max-width: 576px) {
    .nota h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .meta {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .excerpt {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .nota {
        padding: 15px;
    }
    
    .cover {
        margin: 0 0 15px;
        border-radius: 6px;
    }
    
    .cover img {
        max-height: 250px;
    }
    
    .content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .banner-nota-container {
        margin: 15px auto;
    }
    
    .banner-nota-imagen {
        max-height: 80px;
    }
    
    .banner-nota-placeholder {
        height: 70px;
        font-size: 0.85rem;
        padding: 10px;
        margin: 15px auto;
    }
    
    .social_media_container {
        margin: 25px 0 10px;
        gap: 10px;
        padding: 12px 0;
    }
    
    .social_media_logo {
        height: 24px;
        width: 24px;
    }
    
    .grid_aside {
        padding: 10px;
        gap: 12px;
    }
    
    .interes_container h1 {
        font-size: 1.4rem;
        margin: 10px 0;
    }
    
    .note__thumb__aside {
        height: 160px;
    }
    
    .note__content {
        padding: 15px;
    }
    
    .note__content h2 {
        font-size: 1.1rem;
    }
    
    .note__content .meta {
        font-size: 0.8rem;
    }
    
    .note__content .category {
        font-size: 0.85rem;
    }
}

/* Muy pequeño (menos de 360px) */
@media (max-width: 360px) {
    .nota h1 {
        font-size: 1.4rem;
    }
    
    .nota {
        padding: 12px;
    }
    
    .cover img {
        max-height: 200px;
    }
    
    .banner-nota-imagen {
        max-height: 70px;
    }
    
    .banner-nota-placeholder {
        height: 60px;
        font-size: 0.8rem;
    }
    
    .social_media_container {
        gap: 8px;
    }
    
    .social_media_logo {
        height: 20px;
        width: 20px;
    }
    
    .grid_aside {
        padding: 8px;
        gap: 10px;
    }
    
    .note__thumb__aside {
        height: 140px;
    }
    
    .note__content h2 {
        font-size: 1rem;
    }
}

/* Ajustes para dispositivos muy altos */
@media (min-height: 800px) and (max-width: 768px) {
    .cover img {
        max-height: 350px;
    }
    
    .banner-nota-imagen {
        max-height: 120px;
    }
    
    .banner-nota-placeholder {
        height: 100px;
    }
}

/* Impresión */
@media print {
    .nota {
        padding: 0;
        background: white;
    }
    
    .social_media_container,
    .banner-nota-container,
    .banner-nota-placeholder {
        display: none;
    }
    
    .content {
        font-size: 12pt;
        line-height: 1.5;
    }
}




/* nota.css - VERSIÓN CORREGIDA CON NOTICIAS OCULTAS EN MÓVIL */

/* ... (todo tu CSS anterior permanece igual hasta el final) ... */

/* ===== RESPONSIVE ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    /* ... (código anterior) ... */
}

/* Móvil Grande (576px - 768px) */
@media (max-width: 768px) {
    /* ... (código anterior) ... */
    
    /* OCULTAR NOTICIAS "PODRÍA INTERESARTE" EN MÓVIL */
    .interes_container {
        display: none !important;
    }
}

/* Móvil Pequeño (menos de 576px) */
@media (max-width: 576px) {
    /* ... (código anterior) ... */
    
    /* Confirmar que está oculto también en móviles pequeños */
    .interes_container {
        display: none !important;
    }
}








 /* Estilos para banners rotativos */
        .banner-rotativo {
            position: relative;
            height: 150px; /* Altura fija para todos los banners */
            overflow: hidden;
            border-radius: 8px;
        }
        
        .banner-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }
        
        .banner-slide.active {
            opacity: 1;
        }
        
        .banner-slide a {
            display: block;
            width: 100%;
            height: 100%;
        }
        
        .banner-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
        
        /* Indicadores de banners */
        .banner-indicators {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
        }
        
        .banner-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #ccc;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        
        .banner-indicator.active {
            background-color: var(--azul_oficial);
        }
        
        
        
        





/* ===== BANNERS ROTATIVOS ===== */
.banner-nota-container {
    width: 100%;
    max-width: 900px;
    margin: 25px auto;
    position: relative;
}

.banner-rotativo {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: var(--blanco);
    border: 1px solid rgba(0,0,0,0.1);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Indicadores */
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.banner-indicator.active {
    background-color: var(--azul_oficial);
    transform: scale(1.2);
}

.banner-indicator:hover {
    background-color: var(--azul_oficial);
    transform: scale(1.1);
}

/* Botones de navegación (opcionales) */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease;
}

.banner-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-prev {
    left: 10px;
}

.banner-next {
    right: 10px;
}

/* Responsive para banners */
@media (max-width: 768px) {
    .banner-rotativo {
        height: 120px;
    }
    
    .banner-indicators {
        bottom: 10px;
    }
    
    .banner-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .banner-rotativo {
        height: 100px;
    }
    
    .banner-indicators {
        bottom: 8px;
    }
    
    .banner-indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 360px) {
    .banner-rotativo {
        height: 80px;
    }
    
    .banner-indicators {
        display: none; /* Ocultar en móviles muy pequeños si ocupan mucho espacio */
    }
}

/* Placeholder cuando no hay banners */
.banner-nota-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul_oscuro);
    font-size: 1rem;
    border: 2px dashed var(--azul_oficial);
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .banner-nota-placeholder {
        height: 120px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .banner-nota-placeholder {
        height: 100px;
        padding: 15px;
    }
}




/* En nota.css, agrega esto: */
.nota > .banner-nota-container {
    margin: 40px 0 !important;
    padding: 30px 0 !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    clear: both; /* Asegurar que no flote alrededor del contenido */
    display: block;
    width: 100%;
}

/* Eliminar cualquier padding/margin conflictivo */
.nota .content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.cover {
    margin-bottom: 30px !important;
}


