/*
Theme Name: El Termómetro Noticias
Author: Erick
Description: Tema de noticias con detalles en rojo.
Version: 1.0
*/

:root {
    --primary-red: #cc0000;
    --dark-blue: #1a252f;
    --light-bg: #f8f9fa;
    --text-main: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; background: var(--light-bg); color: var(--text-main); }
a { text-decoration: none; color: var(--text-main); transition: color 0.3s; }
a:hover { color: var(--primary-red); }

/* Header */
.site-header { background: #fff; border-bottom: 4px solid var(--primary-red); }
.top-bar { background: var(--dark-blue); color: #fff; padding: 8px 20px; font-size: 0.85rem; display: flex; justify-content: space-between; }
.main-header { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; padding: 20px; }
.logo a { font-size: 2.2rem; font-weight: 900; color: var(--dark-blue); text-transform: uppercase; letter-spacing: -1px; }
.logo span { color: var(--primary-red); }
.main-nav ul { list-style: none; display: flex; gap: 25px; }
.main-nav a { font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }

/* Layout Base */
.container { max-width: 1200px; margin: 30px auto; display: grid; grid-template-columns: 2.5fr 1fr; gap: 30px; padding: 0 20px; }

/* Grid de Noticias (index) */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.news-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 3px solid var(--primary-red); }
.news-content { padding: 15px; }
.tag { background: var(--primary-red); color: #fff; font-size: 0.7rem; padding: 3px 8px; text-transform: uppercase; font-weight: bold; display: inline-block; margin-bottom: 10px; }
.news-title { font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; font-weight: 800; }
.news-meta { font-size: 0.8rem; color: #777; }

/* Post Individual (single) */
.single-post { background: #fff; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.single-post h1 { font-size: 2.5rem; margin: 15px 0; line-height: 1.2; color: var(--dark-blue); }
.single-post img { max-width: 100%; height: auto; margin: 20px 0; }
.post-content { font-size: 1.1rem; line-height: 1.6; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.widget h3 { border-left: 4px solid var(--primary-red); padding-left: 10px; margin-bottom: 15px; font-size: 1.1rem; text-transform: uppercase; }
.ad-space { background: #eee; height: 250px; display: flex; align-items: center; justify-content: center; color: #999; border: 1px dashed #ccc; }