/* =========================================
   ESTILOS PARA LA PÁGINA DE NOTICIAS
   ========================================= */

.noticias-page {
    padding: 4rem 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.titulo-seccion {
    font-size: 2.5rem;
    color: #060b19;
    margin-bottom: 2rem;
    border-bottom: 3px solid #ff0055; /* Línea decorativa debajo del título */
    padding-bottom: 10px;
    display: inline-block;
}

/* El Layout principal: Divide la pantalla en 2 columnas */
.noticias-layout {
    display: grid;
    /* La columna principal toma el espacio sobrante (1fr) y la lateral ocupa 350px fijos */
    grid-template-columns: 1fr 350px;
    gap: 3rem; /* Espacio entre las dos columnas */
    align-items: start; /* Evita que la barra lateral se estire si hay muchas noticias */
}

/* --- ESTILOS DE LA COLUMNA PRINCIPAL (NOTICIAS GRANDES) --- */
.columna-principal {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Espacio vertical entre cada noticia principal */
}

.noticia-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden; /* Asegura que la imagen respete los bordes redondeados */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.noticia-img {
    width: 100%;
    height: auto;
    display: block;
}

.noticia-contenido {
    padding: 1.5rem 2rem;
}

.noticia-fecha {
    font-size: 0.85rem;
    color: #ff0055;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.noticia-contenido h2 {
    font-size: 1.6rem;
    color: #060b19;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.noticia-contenido p {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-leer-mas {
    color: #060b19;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.btn-leer-mas:hover {
    color: #ff0055;
}

/* --- ESTILOS DE LA COLUMNA LATERAL (ASIDE) --- */
.columna-lateral {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #eaeaea;
}

.columna-lateral h3 {
    font-size: 1.3rem;
    color: #060b19;
    margin-bottom: 1.5rem;
}

.articulo-pequeno {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dddddd; /* Línea separadora entre artículos pequeños */
}

/* Quita la línea al último elemento para que se vea más limpio */
.articulo-pequeno:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.articulo-pequeno h4 {
    font-size: 1rem;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.articulo-pequeno a {
    color: #ff0055;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.articulo-pequeno a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVIDAD PARA CELULARES --- */
@media (max-width: 900px) {
    /* En pantallas pequeñas, pasamos de 2 columnas a 1 sola columna apilada */
    .noticias-layout {
        grid-template-columns: 1fr; 
    }
}

/* =========================================
   ESTILOS PARA LA LECTURA DE ARTÍCULOS
   ========================================= */

/* Centramos el contenido y limitamos el ancho para que la lectura no canse la vista */
.lectura-articulo {
    max-width: 800px;
    margin: 0 auto; /* Centra el contenedor en la pantalla */
    padding: 4rem 5%;
}

.articulo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.etiqueta-categoria {
    background-color: #ff0055;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.articulo-titulo {
    font-size: 2.2rem;
    color: #060b19;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.articulo-meta {
    font-size: 0.9rem;
    color: #666666;
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre el autor y la fecha */
}

.articulo-imagen-principal {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- ESTILOS DEL TEXTO (TIPOGRAFÍA) --- */
.articulo-cuerpo {
    font-size: 1.1rem; /* Letra un poco más grande para leer mejor */
    color: #333333;
    line-height: 1.8; /* Mayor espacio entre líneas */
}

.articulo-cuerpo p {
    margin-bottom: 1.5rem;
}

.articulo-cuerpo .introduccion {
    font-size: 1.25rem;
    font-weight: 600;
    color: #060b19;
}

.articulo-cuerpo h2 {
    font-size: 1.6rem;
    color: #060b19;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Estilo para destacar texto importante */
.cita-destacada {
    font-size: 1.3rem;
    font-style: italic;
    color: #ff0055;
    border-left: 4px solid #ff0055;
    padding-left: 20px;
    margin: 2.5rem 0;
    font-weight: 600;
}

.lista-consejos {
    margin-bottom: 2rem;
    padding-left: 20px; /* Sangría para las viñetas */
}

.lista-consejos li {
    margin-bottom: 1rem;
}

/* --- BOTÓN DE VOLVER --- */
.articulo-footer {
    margin-top: 4rem;
    border-top: 1px solid #eaeaea;
    padding-top: 2rem;
    text-align: center;
}

.btn-volver {
    display: inline-block;
    color: #060b19;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.btn-volver:hover {
    color: #ff0055;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 768px) {
    .articulo-titulo {
        font-size: 1.8rem;
    }
    .articulo-meta {
        flex-direction: column;
        gap: 5px;
    }
    .cita-destacada {
        font-size: 1.1rem;
    }
}