/*
Theme Name: El Digital Clásico
Author: Danilo
Description: Tema funcional, clásico y responsive basado en El País.
Version: 1.1
*/

body {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: 'Georgia', serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px; /* Padding lateral para que no pegue en bordes */
}

/* Encabezado */
.site-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.site-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(32px, 5vw, 48px); /* Tamaño de fuente flexible */
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #000;
}

/* Menú de Navegación */
.main-navigation ul {
    list-style: none;
    padding: 15px 0 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que el menú baje si no cabe */
    gap: 15px;
    border-top: 1px solid #eee;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
}

.main-navigation a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* Grilla de Noticias Responsive */
.main-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.main-news { flex: 2; }
.side-news { flex: 1; border-left: 1px solid #eee; padding-left: 30px; }

/* Estilos de Artículos */
article { margin-bottom: 30px; }

h2.entry-title {
    font-size: clamp(20px, 4vw, 28px);
    margin: 10px 0;
}

h2.entry-title a {
    text-decoration: none;
    color: #000;
}

h2.entry-title a:hover { color: #333; }

.news-meta {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

/* --- REGLAS RESPONSIVE (MEDIA QUERIES) --- */

/* Para tablets y celulares (pantallas menores a 960px) */
@media screen and (max-width: 960px) {
    .main-grid {
        flex-direction: column; /* Apila las columnas verticalmente */
    }

    .side-news {
        border-left: none; /* Quita el borde lateral */
        padding-left: 0;
        border-top: 1px solid #eee; /* Añade borde superior */
        padding-top: 20px;
    }

    .main-navigation ul {
        justify-content: flex-start; /* Alinea menú a la izquierda */
        padding-left: 10px;
    }
}

/* --- Estilos para la Nota Completa (single.php) --- */
.single-post-container {
    max-width: 960px; /* Ancho más estrecho para una mejor lectura */
    margin-top: 40px;
}

.single-title {
    font-size: clamp(32px, 6vw, 48px);
    margin: 10px 0 30px;
    font-weight: bold;
    line-height: 1.1;
}

.single-meta {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.single-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.single-thumbnail img {
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.entry-content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.entry-content p {
    margin-bottom: 25px;
}