/* ============================================
   VÉRTICE NOTICIAS - Estilo Personalizado
   Paleta: Prussian Blue, Pacific Blue, Smoky Rose, Pale Cyan
   Layout: Bento/Mosaic grid asimétrico
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Noto+Sans:wght@400;600;700&display=swap');

/* ===== HEADER ===== */
.header {
    background: var(--vn-prussian);
    border-bottom: 3px solid var(--vn-pacific);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(4,37,72,0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 24px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section { display: flex; align-items: center; flex-shrink: 0; }
.site-logo { height: 68px; width: auto; object-fit: contain; display: block; filter: brightness(0) invert(1); }

/* ===== NAVEGACIÓN ===== */
.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-link {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    padding: 10px 16px;
    color: rgba(200,232,239,0.6);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--vn-cyan);
    border-bottom-color: var(--vn-pacific);
}

/* ===== FEATURED SECTION ===== */
.featured-section { padding: var(--space-2xl) 0 var(--space-md); }

/* ===== BENTO GRID (mosaic asimétrico) ===== */
/*
  Layout:
  [ GRANDE (2x2) ] [ TALL (1x2) ] [ SMALL (1x1) ]
                                   [ SMALL (1x1) ]
  [ WIDE (2x1)  ] [ WIDE (2x1) ]
*/
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 280px 200px;
    gap: 12px;
    margin-bottom: 40px;
}

/* Celda grande: ocupa 2 cols × 2 rows */
.bento-cell-large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Celda tall: 1 col × 2 rows */
.bento-cell-tall {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

/* Celdas pequeñas: 1 col × 1 row */
.bento-cell-sm {
    grid-column: 4 / 5;
    grid-row: auto;
}

/* ===== BENTO CARD BASE ===== */
.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: var(--vn-prussian);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.bento-card:hover img { transform: scale(1.06); }

.bento-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(to top,
        rgba(4,37,72,0.95) 0%,
        rgba(4,37,72,0.5) 55%,
        transparent 100%);
    transition: padding 0.3s ease;
}

.bento-card:hover .bento-overlay { padding-bottom: 24px; }

/* Large card overlay */
.bento-cell-large .bento-overlay {
    padding: 32px;
}

.bento-cell-large .bento-overlay h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.2rem, 2.2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--vn-white);
    margin: 8px 0 10px;
}

.bento-cell-large .bento-overlay h2 a { color: inherit; text-decoration: none; }
.bento-cell-large .bento-overlay h2 a:hover { color: var(--vn-cyan); }

.bento-cell-large .bento-overlay p {
    font-size: 0.9rem;
    color: rgba(200,232,239,0.75);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Tall card overlay */
.bento-cell-tall .bento-overlay h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--vn-white);
    margin: 6px 0 8px;
}

.bento-cell-tall .bento-overlay h3 a { color: inherit; text-decoration: none; }
.bento-cell-tall .bento-overlay h3 a:hover { color: var(--vn-cyan); }

/* Small card overlay */
.bento-cell-sm .bento-overlay {
    padding: 14px;
}

.bento-cell-sm .bento-overlay h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--vn-white);
    margin: 4px 0;
}

.bento-cell-sm .bento-overlay h4 a { color: inherit; text-decoration: none; }
.bento-cell-sm .bento-overlay h4 a:hover { color: var(--vn-cyan); }

/* ===== BENTO META ===== */
.bento-meta {
    display: flex;
    gap: 12px;
    font-size: 0.72rem;
    color: rgba(200,232,239,0.55);
}

.bento-meta i { color: var(--vn-pacific); margin-right: 3px; }

/* ===== CATEGORY BADGE ===== */
.category-badge,
.card-category-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    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(--vn-pacific) !important; color: white !important; }
.cat-destacado     { background: var(--vn-prussian) !important; color: var(--vn-cyan) !important; border: 1px solid var(--vn-pacific) !important; }

/* ===== NEWS SECTION ===== */
.news-section { padding: 20px 0 60px; }

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: var(--vn-text);
    margin: 0 0 28px;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--vn-prussian), var(--vn-pacific));
}

/* ===== CARD GRID (4 columnas) ===== */
.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(--vn-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 3px solid transparent;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--vn-pacific);
}

.article-card .card-image-wrapper {
    overflow: hidden;
    aspect-ratio: 16/9;
    height: auto;
    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.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    color: var(--vn-text);
}

.article-card .card-title a { color: inherit; text-decoration: none; }
.article-card .card-title a:hover { color: var(--vn-prussian); }

.article-card .card-excerpt {
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--vn-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.73rem;
    color: var(--vn-text-muted);
    padding-top: 10px;
    border-top: 1px solid rgba(79,176,198,0.15);
    margin-top: auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--vn-prussian);
    border-top: 3px solid var(--vn-pacific);
    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(--vn-cyan);
    font-size: 1.2rem;
    margin: 0;
}

.footer-about {
    color: rgba(200,232,239,0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.footer-column h4 {
    color: var(--vn-pacific);
    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(79,176,198,0.2);
}

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.footer-links li a {
    color: rgba(200,232,239,0.5);
    transition: all 0.3s;
    font-size: 0.88rem;
    display: inline-block;
}

.footer-links li a:hover { color: var(--vn-cyan); 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.04);
    border: 1px solid rgba(79,176,198,0.25);
    color: var(--vn-cyan);
    transition: all 0.3s;
    font-size: 0.85rem;
}

.social-link:hover {
    background: var(--vn-pacific);
    border-color: var(--vn-pacific);
    color: var(--vn-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(79,176,198,0.12);
    margin-top: 40px;
    padding: 24px 24px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(200,232,239,0.3);
    font-size: 0.82rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 260px 200px 200px;
    }
    .bento-cell-large { grid-column: 1 / 3; grid-row: 1 / 2; }
    .bento-cell-tall  { grid-column: 1 / 2; grid-row: 2 / 4; }
    .bento-cell-sm    { grid-column: 2 / 3; grid-row: auto; }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-cell-large,
    .bento-cell-tall,
    .bento-cell-sm { grid-column: auto; grid-row: auto; height: 220px; }
    .footer-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.article-card { animation: fadeInUp 0.5s ease forwards; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--vn-offwhite); }
::-webkit-scrollbar-thumb { background: var(--vn-pacific); border-radius: 4px; opacity: 0.5; }
::-webkit-scrollbar-thumb:hover { background: var(--vn-prussian); }

/* ===== EMBEDS (Instagram, Twitter, YouTube) ===== */
.article-content .instagram-embed,
.article-content .twitter-embed {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.article-content .video-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

