/* ============================================
   TV MÉXICO - Estilo Personalizado
   Paleta: Coffee Bean, Wine Plum, Mauve Shadow, Dusty Lavender
   Layout: Cinematic full-width hero + 3-col grid
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Noto+Sans:wght@400;600;700&display=swap');

body { background: #160E13; color: #F0E8EC; }

/* ===== HEADER ===== */
.header {
    background: rgba(32,19,26,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(94,43,55,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.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: 66px; width: auto; object-fit: contain; display: block; filter: brightness(0) invert(1); }

/* ===== LIVE BADGE ===== */
.header-live-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(94,43,55,0.3);
    border: 1px solid rgba(94,43,55,0.6);
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #F0E8EC;
    flex-shrink: 0;
}

.live-dot {
    width: 8px; height: 8px;
    background: #FF4444;
    border-radius: 50%;
    animation: tvm-live-pulse 1.5s ease-in-out infinite;
}

@keyframes tvm-live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
    50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255,68,68,0); }
}

/* ===== NAVEGACIÓN ===== */
.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.73rem;
    padding: 10px 16px;
    color: rgba(240,232,236,0.55);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--tvm-blush);
    border-bottom-color: var(--tvm-wine);
}

/* ===== CINEMATIC HERO ===== */
.featured-section { padding: 0; }

.cinematic-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    max-height: 700px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 40px;
}

.cinematic-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}

.cinematic-hero:hover img { transform: scale(1.06); }

/* Letterbox bars */
.cinematic-hero::before,
.cinematic-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 60px;
    background: #160E13;
    z-index: 2;
    pointer-events: none;
}
.cinematic-hero::before { top: 0; }
.cinematic-hero::after  { bottom: 0; }

.cinematic-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 80px 60px 80px;
    background: linear-gradient(to top,
        rgba(22,14,19,0.98) 0%,
        rgba(22,14,19,0.7) 50%,
        transparent 100%);
    z-index: 3;
}

.cinematic-overlay .hero-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--tvm-wine);
    color: var(--tvm-blush);
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    margin-bottom: 14px;
}

.cinematic-overlay h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--tvm-white);
    margin-bottom: 16px;
    max-width: 800px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.cinematic-overlay h1 a { color: inherit; text-decoration: none; }
.cinematic-overlay h1 a:hover { color: var(--tvm-blush); }

.cinematic-overlay .hero-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(240,232,236,0.75);
    max-width: 600px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cinematic-overlay .hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    color: rgba(240,232,236,0.5);
}

.cinematic-overlay .hero-meta i { color: var(--tvm-wine); margin-right: 4px; }

/* ===== SECONDARY ROW (3 artículos bajo el hero) ===== */
.secondary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--tvm-mauve);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
}

.secondary-card {
    background: var(--tvm-coffee);
    display: flex;
    gap: 0;
    cursor: pointer;
    transition: background 0.25s;
    overflow: hidden;
}

.secondary-card:hover { background: rgba(94,43,55,0.25); }

.secondary-card .sec-img {
    width: 110px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
}

.secondary-card .sec-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.secondary-card:hover .sec-img img { transform: scale(1.08); }

.secondary-card .sec-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex: 1;
}

.secondary-card .sec-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tvm-text);
}

.secondary-card .sec-content h3 a { color: inherit; text-decoration: none; }
.secondary-card .sec-content h3 a:hover { color: var(--tvm-blush); }

.secondary-card .sec-content .card-meta {
    font-size: 0.7rem;
    color: var(--tvm-text-muted);
    display: flex;
    gap: 8px;
}

/* ===== NEWS SECTION ===== */
.news-section { padding: 0 0 60px; }

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: var(--tvm-blush);
    margin: 0 0 28px;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--tvm-wine), var(--tvm-lavender));
}

/* ===== CARD GRID (3 columnas) ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 900px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .card-grid { grid-template-columns: 1fr; } }

/* ===== ARTICLE CARD (dark) ===== */
.article-card {
    background: var(--tvm-coffee);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(94,43,55,0.2);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--tvm-wine);
}

.article-card .card-image-wrapper {
    overflow: hidden;
    aspect-ratio: 16/9;
    height: auto;
    flex-shrink: 0;
    position: relative;
}

.article-card .card-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.article-card:hover .card-image-wrapper img { transform: scale(1.06); }

.article-card .card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--tvm-text);
}

.article-card .card-title a { color: inherit; text-decoration: none; }
.article-card .card-title a:hover { color: var(--tvm-blush); }

.article-card .card-excerpt {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--tvm-text-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.article-card .card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.73rem;
    color: var(--tvm-text-muted);
    padding-top: 12px;
    border-top: 1px solid rgba(94,43,55,0.2);
    margin-top: auto;
}

/* ===== 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: 8px;
    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(--tvm-wine) !important; color: white !important; }
.cat-destacado     { background: var(--tvm-mauve) !important; color: var(--tvm-blush) !important; border: 1px solid var(--tvm-wine) !important; }

/* ===== FOOTER ===== */
.footer {
    background: var(--tvm-coffee);
    border-top: 2px solid rgba(94,43,55,0.5);
    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(--tvm-blush);
    font-size: 1.2rem;
    margin: 0;
}

.footer-about {
    color: rgba(240,232,236,0.4);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.footer-column h4 {
    color: var(--tvm-wine);
    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(94,43,55,0.3);
}

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.footer-links li a {
    color: rgba(240,232,236,0.4);
    transition: all 0.3s;
    font-size: 0.88rem;
    display: inline-block;
}

.footer-links li a:hover { color: var(--tvm-blush); 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(94,43,55,0.4);
    color: var(--tvm-lavender);
    transition: all 0.3s;
    font-size: 0.85rem;
}

.social-link:hover {
    background: var(--tvm-wine);
    border-color: var(--tvm-wine);
    color: var(--tvm-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(94,43,55,0.2);
    margin-top: 40px;
    padding: 24px 24px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(240,232,236,0.25);
    font-size: 0.82rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cinematic-hero { height: 55vh; min-height: 360px; }
    .cinematic-overlay { padding: 60px 30px 70px; }
    .secondary-row { grid-template-columns: 1fr; gap: 1px; }
    .footer-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .cinematic-hero { height: 50vh; min-height: 300px; }
    .cinematic-overlay { padding: 40px 20px 60px; }
    .footer-grid.cols-3 { grid-template-columns: 1fr; }
    .header-live-badge { display: none; }
}

/* ===== 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: #160E13; }
::-webkit-scrollbar-thumb { background: var(--tvm-mauve); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--tvm-wine); }

/* ===== 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;
}

