/*
 * ----------------------------------------------------
 * ESTILOS CSS FINALES (Línea Azul Encima del Texto)
 * ----------------------------------------------------
 */

/* --- Estructura de la Cuadrícula 3x2 --- */
.ne-noticias-externas-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc; 
    margin: 0 auto;
    max-width: 1200px; 
    background-color: #fff;
    font-family: Arial, sans-serif;
}

/* Manejo del Item (Celda individual) */
.ne-noticia-item {
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
    
    border-right: 1px solid #ccc; 
    border-bottom: 1px solid #ccc; 
    padding: 0;
    transition: background-color 0.2s;
    overflow: hidden;
}

.ne-noticia-item:hover {
    background-color: #d3eaeb;
}

/* 1. Contenedor de Imagen y Texto (Envuelto en el enlace) */
.ne-noticia-link-wrapper {
    display: flex; 
    text-decoration: none;
    color: #000;
    padding: 12px 15px 5px 15px; 
    flex-grow: 1; 
    align-items: flex-start;
}

/* Imagen Miniatura */
.ne-noticia-imagen {
    flex: 0 0 90px; 
    max-width: 90px;
    height: 90px; 
    overflow: hidden;
    margin-right: 15px;
}

.ne-noticia-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
}

/* Contenido de Texto (Título) */
.ne-noticia-contenido {
    flex: 1;
}

.ne-noticia-titulo {
    margin: 0;
    /* AJUSTE: Titulares 16px */
    font-size: 16px; 
    line-height: 1.3;
    font-weight: 600;
    color: #333;
}

/* 2. Footer (Línea y Medio) */
.ne-noticia-footer {
    display: flex;
    /* CLAVE: Invertir el orden vertical (La línea sube) */
    flex-direction: column-reverse; 
    
    /* Pega todo el contenido a la derecha */
    align-items: flex-end; 
    
    padding: 0 15px 12px 15px; 
    margin-top: 5px; 
}

/* Medio (H5) */
.ne-noticia-medio {
    /* CRÍTICO: Eliminar márgenes por defecto del H5 */
    margin: 0; 
    
    /* AJUSTE: Color, tamaño y negrita */
    color: #02385b; 
    font-size: 12px;
    font-weight: bold;
    
    text-align: right;
    max-width: 100%; /* Permitimos que ocupe el ancho si es necesario */
}

/* Separador Azul */
.ne-separador-azul {
    /* AJUSTE: Tamaño y color */
    width: 35px;
    height: 4px;
    background-color: #0170b9; 
    flex-shrink: 0; 
    
    /* Pequeño margen para separar la línea del borde del texto H5 de abajo */
    margin-bottom: 2px; 
}

/* --- Responsive (Móvil) --- */
@media (max-width: 900px) {
    .ne-noticias-externas-grid {
        grid-template-columns: 1fr; 
        border-right: 1px solid #ccc;
        border-left: none;
    }
    
    .ne-noticia-item {
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc; 
    }

    .ne-noticia-imagen {
        flex: 0 0 80px;
        max-width: 80px;
        height: 80px;
    }
}