/*
Theme Name: PressGrid Pro
Theme URI: https://solucionesgcm.com/pressgrid
Author: Soluciones GCM
Author URI: https://solucionesgcm.com
Description: Tema editorial de alto rendimiento para medios de comunicación y periódicos digitales (v10.38.0 — Full Stable Release).
Version: 10.38.0
License: GNU General Public License v2 or later
Text Domain: pressgrid
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #ffffff;
    --nbc-dark-bg: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --brand-red: #dc2626;
    --border-color: #e2e8f0;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif-content: 'Merriweather', Georgia, serif;
    --font-serif-excerpt: Georgia, 'Times New Roman', serif;
    --font-mono: 'DM Mono', monospace, SFMono-Regular, Menlo, Monaco, Consolas;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & TICKER
   ========================================================================== */
.gcm-ticker-bar {
    background: #020617;
    color: #94a3b8;
    font-size: 0.775rem;
    border-bottom: 1px solid #1e293b;
    padding: 0.4rem 0;
}
.gcm-ticker-container { display: flex; align-items: center; gap: 1.25rem; }
.ticker-badge {
    background: var(--brand-red);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    text-transform: uppercase;
}
.ticker-content { display: flex; gap: 1.5rem; overflow: hidden; white-space: nowrap; }
.ticker-item strong { color: #f8fafc; }
.ticker-item.highlight { color: #f8fafc; font-weight: 600; }

header.site-header {
    background: var(--nbc-dark-bg);
    color: #ffffff;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { margin: 0; font-size: 1.85rem; font-weight: 900; letter-spacing: -0.5px; }
.logo a { color: #ffffff; text-decoration: none; }
.logo .highlight { color: var(--brand-red); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; }
.main-nav a { color: #ffffff; text-decoration: none; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ==========================================================================
   PORTADA: HERO & RETÍCULAS
   ========================================================================== */
.gcm-home-wrapper { padding-top: 1.75rem; padding-bottom: 3rem; }
.nbc-hero-section {
    display: grid;
    grid-template-columns: 1.35fr 1fr 290px;
    gap: 2rem;
    align-items: start;
    padding-bottom: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
@media (max-width: 992px) { .nbc-hero-section { grid-template-columns: 1fr; } }
.nbc-hero-main-card { display: block; text-decoration: none; color: inherit; }
.nbc-hero-main-card .thumb-wrap { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111827; margin-bottom: 1rem; border-radius: 4px; }
.nbc-hero-main-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.nbc-hero-kicker { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--brand-red); text-transform: uppercase; margin-bottom: 0.35rem; }
.nbc-hero-title { font-size: 2.1rem; line-height: 1.15; font-weight: 900; margin: 0 0 0.6rem 0; color: var(--text-primary); }
.nbc-hero-excerpt { font-family: var(--font-serif-excerpt); font-size: 1.05rem; color: #475569; margin: 0; }

.nbc-hero-stack { display: flex; flex-direction: column; gap: 1.5rem; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); padding: 0 1.5rem; }
@media (max-width: 992px) { .nbc-hero-stack { border-left: none; border-right: none; padding: 0; } }
.nbc-hero-stack-item { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-bottom: 1px solid #f1f5f9; padding-bottom: 1.25rem; }
.nbc-hero-stack-item:last-child { border-bottom: none; padding-bottom: 0; }
.nbc-hero-stack-item .thumb { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; margin-bottom: 0.75rem; background: #e2e8f0; }
.nbc-hero-stack-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.nbc-hero-stack-item .meta-kicker { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--brand-red); margin-bottom: 0.25rem; display: block; }
.nbc-hero-stack-item h4 { font-size: 1rem; line-height: 1.3; font-weight: 800; margin: 0; color: #0f172a; }

.nbc-al-momento-header { border-bottom: 2px solid var(--text-primary); padding-bottom: 0.4rem; margin-bottom: 1rem; }
.nbc-al-momento-title { font-size: 0.85rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.8px; margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.al-momento-item { display: block; text-decoration: none; padding: 0.85rem 0; border-bottom: 1px solid #f1f5f9; }
.al-momento-meta-row { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; margin-bottom: 0.35rem; }
.al-momento-time { color: #64748b; }
.al-momento-tag { color: var(--brand-red); font-weight: 700; text-transform: uppercase; }
.al-momento-item h4 { font-size: 0.875rem; line-height: 1.35; font-weight: 700; color: #1e293b; margin: 0; }

/* FRANJA MULTIMEDIA */
.gcm-multimedia-dark-strip { background: var(--nbc-dark-bg); color: #ffffff; padding: 2.25rem 0; margin: 2rem 0; }
.multimedia-label { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; color: #94a3b8; display: block; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.multimedia-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .multimedia-grid { grid-template-columns: repeat(2, 1fr); } }
.multimedia-card { text-decoration: none; color: #ffffff; display: block; }
.multimedia-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #1e293b; margin-bottom: 0.75rem; }
.multimedia-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play-icon { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.75); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.multimedia-card h4 { font-size: 0.875rem; line-height: 1.3; font-weight: 700; margin: 0; color: #f1f5f9; }

/* LAYOUT PRINCIPAL Y SIDEBAR */
.foxiz-main-layout { display: grid; grid-template-columns: 1fr 310px; gap: 2.5rem; align-items: start; }
@media (max-width: 992px) { .foxiz-main-layout { grid-template-columns: 1fr; } }
.foxiz-block-section { margin-bottom: 3.5rem; }
.foxiz-block-header { border-bottom: 2px solid var(--text-primary); padding-bottom: 0.4rem; margin-bottom: 1.5rem; }
.foxiz-block-title { font-size: 1.15rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.3px; margin: 0; color: var(--text-primary); }

.asymmetric-layout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.75rem; }
@media (max-width: 768px) { .asymmetric-layout-grid { grid-template-columns: 1fr; } }
.asym-main-card { text-decoration: none; color: inherit; display: block; }
.asym-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; margin-bottom: 0.75rem; background: #e2e8f0; }
.asym-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asym-title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin: 0.4rem 0; }
.asym-title a { color: var(--text-primary); text-decoration: none; }
.asym-excerpt { font-family: var(--font-serif-excerpt); font-size: 0.925rem; color: var(--text-secondary); margin: 0; }

.asym-side-list { display: flex; flex-direction: column; gap: 1rem; }
.asym-list-item { display: grid; grid-template-columns: 90px 1fr; gap: 0.85rem; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.85rem; }
.asym-list-item:last-child { border-bottom: none; }
.asym-list-thumb { aspect-ratio: 1 / 1; border-radius: 3px; overflow: hidden; background: #e2e8f0; display: block; }
.asym-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asym-list-info h4 { font-size: 0.9rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.25rem 0; }
.asym-list-info h4 a { color: var(--text-primary); text-decoration: none; }
.asym-date { font-family: var(--font-mono); font-size: 0.685rem; color: var(--text-muted); }

.gcm-newsletter-banner { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; padding: 1.75rem; margin-bottom: 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
@media (max-width: 768px) { .gcm-newsletter-banner { flex-direction: column; text-align: center; } }
.news-banner-content h3 { font-size: 1.1rem; font-weight: 900; margin: 0 0 0.25rem 0; color: #0f172a; }
.news-banner-content p { font-size: 0.875rem; color: #475569; margin: 0; }
.news-banner-form { display: flex; gap: 0.5rem; }
.news-banner-form input { padding: 0.55rem 0.85rem; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 0.85rem; min-width: 220px; }
.news-banner-form button { background: var(--brand-red); color: #ffffff; border: none; padding: 0.55rem 1.15rem; border-radius: 4px; font-weight: 700; font-size: 0.85rem; cursor: pointer; }

.foxiz-grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
@media (max-width: 600px) { .foxiz-grid-2x2 { grid-template-columns: 1fr; } }
.foxiz-card-item { display: flex; flex-direction: column; }
.foxiz-card-item .card-thumb { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #e2e8f0; margin-bottom: 0.75rem; display: block; }
.foxiz-card-item .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.foxiz-card-item .card-title { font-size: 1.05rem; line-height: 1.25; font-weight: 800; margin: 0 0 0.4rem 0; }
.foxiz-card-item .card-title a { color: var(--text-primary); text-decoration: none; }
.foxiz-card-item .card-excerpt { font-family: var(--font-serif-excerpt); font-size: 0.875rem; color: var(--text-secondary); line-height: 1.45; margin: 0; }

.opinion-grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 600px) { .opinion-grid-3col { grid-template-columns: 1fr; } }
.opinion-card { background: #f8fafc; border: 1px solid #e2e8f0; padding: 1.25rem; border-radius: 4px; }
.opinion-card .author-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.opinion-card .author-avatar-ph { width: 28px; height: 28px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.opinion-card .author-name { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.opinion-title { font-size: 0.95rem; line-height: 1.3; font-weight: 800; margin: 0; }
.opinion-title a { color: var(--text-primary); text-decoration: none; }

.sidebar-header-title { font-size: 0.9rem; font-weight: 900; text-transform: uppercase; border-bottom: 2px solid var(--text-primary); padding-bottom: 0.4rem; margin-top: 0; margin-bottom: 1.5rem; }
.top-ranked-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.top-rank-item { display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: inherit; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.85rem; }
.top-rank-item:last-child { border-bottom: none; }
.rank-number { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 900; color: var(--brand-red); line-height: 1; }
.rank-info h4 { font-size: 0.875rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.25rem 0; color: var(--text-primary); }
.rank-meta { font-family: var(--font-mono); font-size: 0.685rem; color: var(--text-muted); }

.sidebar-podcast-widget { background: var(--nbc-dark-bg); color: #ffffff; padding: 1.5rem; border-radius: 6px; }
.podcast-badge { background: rgba(255,255,255,0.15); color: #ffffff; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 800; padding: 0.2rem 0.5rem; border-radius: 3px; display: inline-block; margin-bottom: 0.75rem; }
.sidebar-podcast-widget h4 { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.4rem 0; }
.sidebar-podcast-widget p { font-size: 0.825rem; color: #cbd5e1; margin: 0 0 1rem 0; }
.podcast-play-btn { background: var(--brand-red); color: #ffffff; border: none; padding: 0.6rem 1rem; border-radius: 4px; font-weight: 700; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; width: 100%; justify-content: center; }

/* ==========================================================================
   SINGLE LAYOUT (ESTRUCTURA DE LECTURA LIMPIA)
   ========================================================================== */
.gcm-single-hero-dark {
    background: var(--nbc-dark-bg);
    color: #ffffff;
    padding: 3.5rem 0 9rem 0;
    position: relative;
    z-index: 1;
}

.gcm-single-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.gcm-hero-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-red);
    display: block;
    margin-bottom: 0.5rem;
}

.gcm-hero-kicker-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.gcm-hero-headline {
    font-size: 2.65rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
}
@media (max-width: 768px) { .gcm-hero-headline { font-size: 1.9rem; } }

.gcm-hero-subtitle {
    font-family: var(--font-serif-excerpt);
    font-size: 1.2rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 1.75rem;
}

.byline-date-block-dark {
    font-size: 0.85rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1.5rem;
}
.byline-date-block-dark .pub-date { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
.byline-date-block-dark .byline-author strong { color: #ffffff; }

.gcm-audio-player-bar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 0.45rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.audio-play-btn {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.audio-info { font-size: 0.8rem; font-weight: 600; color: #ffffff; }

.gcm-single-body-area {
    padding: 0 0 5rem 0;
    background: #ffffff;
    position: relative;
    z-index: 10;
}

.gcm-feat-hero-media-wrapper {
    position: relative;
    z-index: 30;
    top: -6rem;
    margin-bottom: -4.5rem;
    max-width: 1020px;
    margin-left: auto;
    margin-right: auto;
}
.gcm-feat-hero-media {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    border-radius: 6px;
    background: var(--nbc-dark-bg);
}
.gcm-feat-hero-media img { width: 100%; height: auto; display: block; }

.gcm-nbc-sub-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
    max-width: 1020px;
    margin: 0 auto;
}
@media (max-width: 992px) { .gcm-nbc-sub-grid { grid-template-columns: 1fr; } }

.post-content {
    font-family: var(--font-serif-content);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1e293b;
}
.post-content p { margin-bottom: 1.75rem; }
.post-content h2, .post-content h3 { font-family: var(--font-sans); font-weight: 900; color: #0f172a; margin-top: 2rem; margin-bottom: 1rem; }

.gcm-post-nav-strip {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    margin-top: 3rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
}
.gcm-post-nav-strip a { color: var(--text-primary); text-decoration: none; }

.gcm-sidebar { border-left: 1px solid var(--border-color); padding-left: 2rem; }
@media (max-width: 992px) { .gcm-sidebar { border-left: none; padding-left: 0; border-top: 2px solid var(--text-primary); padding-top: 2rem; } }
.gcm-sidebar-widget h3.widget-title { font-size: 0.85rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.8px; color: #0f172a; border-bottom: 2px solid #0f172a; padding-bottom: 0.4rem; margin-top: 0; margin-bottom: 1.4rem; }

.sidebar-news-card-nbc { display: block; margin-bottom: 1.6rem; text-decoration: none; color: inherit; }
.sidebar-thumb-top-32 { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #e2e8f0; margin-bottom: 0.55rem; }
.sidebar-thumb-top-32 img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-card-info-nbc h4 { font-size: 0.9rem; line-height: 1.35; font-weight: 800; margin: 0 0 0.3rem 0; color: #0f172a; }
.sidebar-card-info-nbc .meta-time { font-family: var(--font-mono); font-size: 0.685rem; color: #94a3b8; text-transform: uppercase; }

/* FOOTER */
footer.site-footer {
    background: var(--nbc-dark-bg);
    color: #94a3b8;
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
