/*
Theme Name: Minimalist News
Theme URI: http://sitio-noticias.local
Author: Editorial Latam
Description: Tema de WordPress ultra ligero, moderno y minimalista para portales de noticias por país. Optimizado 100% para SEO, GEO (IA) y velocidad extrema.
Version: 1.0.0
Text Domain: minimalist-news
*/

:root {
    --bg-paper: #FAF9F6;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --accent-blue: #1E40AF;
    --accent-hover: #1D4ED8;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Newsreader', Georgia, Times, serif;
    --container-max: 1140px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Containers */
.site-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Top Nav */
.site-header {
    background: #0F172A;
    color: #FFFFFF;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-brand span {
    color: #60A5FA;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.country-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-nav-label {
    font-size: 0.8rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-right: 4px;
}

.country-pill {
    color: #CBD5E1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.2s ease;
}

.country-pill:hover {
    color: #FFFFFF;
    background: rgba(255,255,255,0.15);
}

.country-pill.active {
    color: #FFFFFF;
    background: var(--accent-blue);
    border-color: #3B82F6;
}

/* Category & Country Archive */
.country-hero {
    margin: 32px 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.country-hero h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.country-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* Featured Lead Story (Big Hero Post) */
.lead-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.lead-story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-story-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.country-tag {
    display: inline-block;
    background: #E0E7FF;
    color: #3730A3;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    width: fit-content;
}

.lead-story-title {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    line-height: 1.25;
    margin: 0 0 16px 0;
}

.lead-story-excerpt {
    color: #334155;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.lead-story-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Secondary News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.news-card-excerpt {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.news-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Single Article Layout */
.single-article {
    max-width: 800px;
    margin: 40px auto 60px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}

.single-header {
    margin-bottom: 24px;
}

.single-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 12px 0 16px 0;
}

.single-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
}

.single-featured-img {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
}

.single-featured-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* Key Takeaways Box (GEO / High Info Density) */
.key-takeaways {
    background: #F0F9FF;
    border-left: 4px solid #0284C7;
    padding: 20px 24px;
    margin: 24px 0 32px 0;
    border-radius: 0 10px 10px 0;
}

.key-takeaways h3 {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    color: #0369A1;
    font-weight: 700;
}

.key-takeaways ul {
    margin: 0;
    padding-left: 20px;
}

.key-takeaways li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.single-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1E293B;
    margin-bottom: 1.6rem;
}

.single-content h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin: 32px 0 16px 0;
    color: #0F172A;
}

/* Footer */
.site-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 32px 0;
    margin-top: 60px;
    font-size: 0.9rem;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: #CBD5E1;
    margin-left: 16px;
    font-weight: 500;
}

.footer-links a:hover {
    color: #60A5FA;
}

@media (max-width: 768px) {
    .lead-story {
        grid-template-columns: 1fr;
    }
    .site-header-inner {
        flex-direction: column;
        gap: 12px;
    }
    .single-article {
        padding: 20px;
        margin: 20px auto;
    }
    .single-title {
        font-size: 1.8rem;
    }
}
