/* ============================================
   REPORTE CENTRAL MX - Estilo Personalizado
   Paleta: Carbon Black, Graphite, Burnt Rose, Alabaster Grey
   Layout: Newspaper style — texto denso, columnas, mínimas imágenes
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Noto+Sans:wght@400;600;700&display=swap');

/* ===== HEADER TOP BAR ===== */
.header-top-bar {
    background: var(--rcm-alabaster);
    border-bottom: 1px solid #C8CCCA;
    padding: 6px 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-date {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--rcm-text-muted);
    font-style: italic;
}

.header-top-links {
    display: flex;
    gap: 16px;
}

.header-top-links a {
    font-size: 0.75rem;
    color: var(--rcm-text-muted);
    transition: color 0.2s;
}

.header-top-links a:hover { color: var(--rcm-rose); }

/* ===== HEADER MAIN ===== */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid #C8CCCA;
}

.logo-section { display: flex; align-items: center; flex-shrink: 0; }
.site-logo { height: 58px; width: auto; object-fit: contain; display: block; }

.header-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--rcm-granite);
    letter-spacing: 1px;
}

/* ===== NAVEGACIÓN ===== */
.header-nav {
    background: var(--rcm-carbon);
    border-bottom: 3px solid var(--rcm-rose);
}

.nav-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-link {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.73rem;
    padding: 12px 18px;
    color: rgba(224,228,227,0.7);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rcm-white);
    border-bottom-color: var(--rcm-rose);
}

/* ===== FEATURED SECTION ===== */
.featured-section { padding: var(--space-2xl) 0 var(--space-md); }

/* ===== NEWSPAPER LAYOUT ===== */
/* Fila superior: artículo principal grande + 2 secundarios */
.newspaper-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border: 1px solid #C8CCCA;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--rcm-white);
}

/* Artículo principal ocupa 2 columnas */
.np-main {
    grid-column: 1 / 3;
    border-right: 1px solid #C8CCCA;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.np-main .np-img {
    overflow: hidden;
    height: 300px;
    flex-shrink: 0;
}

.np-main .np-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.np-main:hover .np-img img { transform: scale(1.04); }

.np-main .np-body {
    padding: 24px;
    flex: 1;
    border-top: 3px solid var(--rcm-rose);
}

.np-main .np-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--rcm-text);
    margin: 10px 0 14px;
}

.np-main .np-body h2 a { color: inherit; text-decoration: none; }
.np-main .np-body h2 a:hover { color: var(--rcm-rose); }

.np-main .np-body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--rcm-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Columna derecha: 2 artículos apilados */
.np-stack {
    display: flex;
    flex-direction: column;
}

.np-stack-item {
    flex: 1;
    padding: 20px;
    border-bottom: 1px solid #C8CCCA;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.np-stack-item:last-child { border-bottom: none; }
.np-stack-item:hover { background: rgba(155,61,63,0.03); }

.np-stack-item .np-thumb {
    overflow: hidden;
    height: 110px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.np-stack-item .np-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.np-stack-item:hover .np-thumb img { transform: scale(1.06); }

.np-stack-item h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rcm-text);
}

.np-stack-item h3 a { color: inherit; text-decoration: none; }
.np-stack-item h3 a:hover { color: var(--rcm-rose); }

.np-stack-item p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--rcm-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== FILA INFERIOR: 4 artículos texto-denso ===== */
.newspaper-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #C8CCCA;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--rcm-white);
    margin-bottom: 28px;
}

.np-text-card {
    padding: 20px;
    border-right: 1px solid #C8CCCA;
    cursor: pointer;
    transition: background 0.2s;
}

.np-text-card:last-child { border-right: none; }
.np-text-card:hover { background: rgba(155,61,63,0.03); }

.np-text-card .np-thumb-sm {
    overflow: hidden;
    height: 90px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.np-text-card .np-thumb-sm img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.np-text-card:hover .np-thumb-sm img { transform: scale(1.06); }

.np-text-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rcm-text);
    margin-bottom: 8px;
}

.np-text-card h4 a { color: inherit; text-decoration: none; }
.np-text-card h4 a:hover { color: var(--rcm-rose); }

.np-text-card p {
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--rcm-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== META COMÚN ===== */
.np-meta {
    display: flex;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--rcm-granite);
    margin-top: 8px;
}

.np-meta i { color: var(--rcm-rose); margin-right: 3px; }

/* ===== CATEGORY BADGE ===== */
.category-badge,
.card-category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    width: fit-content;
}

.cat-nacional      { background: #1565C0 !important; color: white !important; }
.cat-politica      { background: #C2185B !important; color: white !important; }
.cat-economia      { background: #2E7D32 !important; color: white !important; }
.cat-deportes      { background: #EF6C00 !important; color: white !important; }
.cat-internacional { background: #7B1FA2 !important; color: white !important; }
.cat-cultura       { background: #00695C !important; color: white !important; }
.cat-tecnologia    { background: #283593 !important; color: white !important; }
.cat-salud         { background: #AD1457 !important; color: white !important; }
.cat-general       { background: var(--rcm-rose) !important; color: white !important; }
.cat-destacado     { background: var(--rcm-carbon) !important; color: var(--rcm-alabaster) !important; }

/* ===== NEWS SECTION ===== */
.news-section { padding: 20px 0 60px; }

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: var(--rcm-text);
    margin: 0 0 24px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rcm-rose);
}

/* ===== CARD GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .card-grid { grid-template-columns: 1fr; } }

/* ===== ARTICLE CARD ===== */
.article-card {
    background: var(--rcm-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 3px solid transparent;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--rcm-rose);
}

.article-card .card-image-wrapper {
    overflow: hidden;
    height: 175px;
    flex-shrink: 0;
}

.article-card .card-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.article-card:hover .card-image-wrapper img { transform: scale(1.06); }

.article-card .card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    color: var(--rcm-text);
}

.article-card .card-title a { color: inherit; text-decoration: none; }
.article-card .card-title a:hover { color: var(--rcm-rose); }

.article-card .card-excerpt {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--rcm-text-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-card .card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--rcm-granite);
    padding-top: 10px;
    border-top: 1px solid #E0E4E3;
    margin-top: auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--rcm-carbon);
    border-top: 4px solid var(--rcm-rose);
    padding: 60px 0 30px;
    margin-top: var(--space-2xl);
}

.footer-grid {
    display: grid;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid.cols-3 { grid-template-columns: 2fr 1fr 1fr; }

.footer-column { display: flex; flex-direction: column; gap: 14px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.footer-logo img { height: 40px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }

.footer-logo h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--rcm-alabaster);
    font-size: 1.1rem;
    margin: 0;
}

.footer-about {
    color: rgba(224,228,227,0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.footer-column h4 {
    color: var(--rcm-rose);
    font-family: 'Noto Sans', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    margin: 0 0 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(155,61,63,0.3);
}

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.footer-links li a {
    color: rgba(224,228,227,0.5);
    transition: all 0.3s;
    font-size: 0.88rem;
    display: inline-block;
}

.footer-links li a:hover { color: var(--rcm-alabaster); padding-left: 5px; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(155,61,63,0.4);
    color: var(--rcm-alabaster);
    transition: all 0.3s;
    font-size: 0.85rem;
}

.social-link:hover {
    background: var(--rcm-rose);
    border-color: var(--rcm-rose);
    color: var(--rcm-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(155,61,63,0.2);
    margin-top: 40px;
    padding: 24px 24px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(224,228,227,0.3);
    font-size: 0.82rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .newspaper-top { grid-template-columns: 1fr; }
    .np-main { grid-column: auto; border-right: none; border-bottom: 1px solid #C8CCCA; }
    .np-stack { flex-direction: row; }
    .np-stack-item { border-right: 1px solid #C8CCCA; border-bottom: none; }
    .np-stack-item:last-child { border-right: none; }
    .newspaper-row { grid-template-columns: repeat(2, 1fr); }
    .np-text-card:nth-child(2) { border-right: none; }
    .np-text-card:nth-child(3) { border-top: 1px solid #C8CCCA; }
    .np-text-card:nth-child(4) { border-top: 1px solid #C8CCCA; border-right: none; }
}

@media (max-width: 600px) {
    .np-stack { flex-direction: column; }
    .np-stack-item { border-right: none; border-bottom: 1px solid #C8CCCA; }
    .newspaper-row { grid-template-columns: 1fr; }
    .np-text-card { border-right: none; border-bottom: 1px solid #C8CCCA; }
    .np-text-card:last-child { border-bottom: none; }
    .footer-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.article-card { animation: fadeIn 0.4s ease forwards; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F2F3F3; }
::-webkit-scrollbar-thumb { background: var(--rcm-granite); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--rcm-rose); }
