/*
Theme Name: Minimal News Theme
Description: Tema minimalista de alto contraste para portal de noticias.
Author: Damián
Version: 1.0
*/

/* --- RESET Y VARIABLES --- */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --header-bg: #000000;
    --header-text: #ffffff;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 14px; /* Tamaño del cuerpo de las notas */
}

/* --- HEADER --- */
.site-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header.shrink {
    padding: 5px 0; /* Se hace más finito al scrollear */
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    transition: all 0.3s ease;
}

.site-header.shrink .site-logo img {
    max-height: 35px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* --- ESTRUCTURA GENERAL --- */
.site-content {
    margin-top: 100px; /* Espacio para el header fijo */
    padding: 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- SLIDER PRINCIPAL (Destacados) --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    background-color: #000;
    margin-bottom: 40px;
    overflow: hidden;
}
.slide-item {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; /* Transparencia negra sobre la imagen */
}
.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.slide-content h2 { font-size: 36px; margin: 0 0 10px 0; }
.slide-content p { font-size: 18px; margin: 0; }

/* --- GRILLA DE NOTAS (Cajas) --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.post-box {
    border: 1px solid #ddd;
    padding-bottom: 15px;
}
.post-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-box h3 {
    margin: 15px;
    font-size: 20px;
}
.post-box p {
    margin: 0 15px;
    color: #333;
}

/* --- ENTRADA INDIVIDUAL --- */
.single-post h1 { font-size: 32px; margin-bottom: 10px; }
.bajada { font-size: 20px; font-weight: bold; margin-bottom: 20px; color: #333; }
.featured-image-container { margin-bottom: 30px; text-align: center; }
.featured-image-container img { max-width: 100%; height: auto; }
.epigrafe { font-size: 12px; color: #666; margin-top: 5px; }
.post-meta { font-size: 12px; color: #888; margin-bottom: 30px; border-bottom: 1px solid #000; padding-bottom: 10px; }
.post-content { line-height: 1.6; }

/* Botones Sociales */
.social-share { display: flex; gap: 10px; margin: 30px 0; }
.social-share a { padding: 10px 15px; background: #000; color: #fff; text-decoration: none; font-weight: bold; border-radius: 3px; font-size: 12px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .main-navigation ul { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background: #000; padding: 20px; }
    .main-navigation ul.active { display: flex; }
    .menu-toggle { display: block; }
    .slide-content h2 { font-size: 24px; }
}