﻿/* ==========================================================================
   1. VARIABLES DE ENTORNO Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
@font-face {
    font-family: 'roboto';
    src: url('fonts/texgyreadventor-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --noti-orange: #f26522;
    --noti-bg: #e6e7e8; 
    --noti-nav-bg: #e6e7e8;
    --noti-card-bg: #ffffff;
    --noti-text-dark: #1a1a1a;
    --noti-text-gray: #666666;
    --radius-main: 15px;
    --radius-card: 10px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --main-font: 'roboto', sans-serif;
    --transition-standard: all 0.3s ease;
}

*, *::before, *::after {
    font-family: var(--main-font) !important;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background-color: #000000 !important;
    color: var(--noti-text-dark);
}

.container-noticias {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Elementos Base */
a{
    color: #E41C36;
    font-weight: bold;
}

a:hover, a:focus{
    color: #E41C36;
    font-weight: bold;
}

iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
    display: block; 
}


/* ==========================================================================
   2. NAVEGACIÓN (Sticky Categories)
   ========================================================================== */
.categories-header-nav {
    background-color: #6b6b6b;
    padding: 12px 0; 
    position: sticky; 
    top: 80px;
    z-index: 100; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.categories-list-wrapper { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    scrollbar-width: none; 
}

.categories-list-wrapper::-webkit-scrollbar { 
    display: none; 
}

.cat-button {
    background: #fff; 
    color: #000; 
    padding: 8px 18px; 
    border-radius: 50px;
    font-size: 11px; 
    font-weight: 700; 
    white-space: nowrap;
    transition: var(--transition-standard);
}

.cat-button.active, 
.cat-button:hover { 
    background: #E41C36; 
    color: #fff; 
}


/* ==========================================================================
   3. GRID MULTIMEDIA & TABS (Iframes)
   ========================================================================== */
.multimedia-top-section { 
    padding: 80px 0; 
}

.multimedia-grid {
    display: grid; 
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; 
}

.multi-card { 
    background: #fff; 
    border: 1px solid #E41C36; 
    border-radius: 5px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
}

.multi-card-header { 
    background: #fff; 
    border-bottom: 1px solid #eee; 
    padding: 8px 10px; 
    text-align: center; 
}

.header-label { 
    color: #E41C36; 
    font-weight: 700; 
    font-size: 12px; /*original 12px*/
    letter-spacing: 1px; 
}

/* Sistema de Tabs Funcionales */
.tab-triggers { 
    display: flex; 
    justify-content: space-around; 
    padding: 4px; 
    gap: 4px; 
}

.tab-item {
    padding: 6px 10px; 
    font-size: 10px; 
    font-weight: 800; 
    cursor: pointer; 
    color: #888; 
    border: none; 
    background: none; 
    transition: var(--transition-standard);
}

.tab-item.active { 
    background: #E41C36; 
    color: #fff; 
    border-radius: 4px; 
}

.video-container-tabs, 
.video-wrapper-fixed {
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    background: #000; 
    overflow: hidden;
}

.tab-video { 
    display: none; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 0.4s ease-in-out; 
}

.tab-video.active { 
    display: block; 
    opacity: 1; 
}


/* ==========================================================================
   4. LIVE STREAM CARD (Premium Glass)
   ========================================================================== */
.multi-card.premium-live { 
    background: #000 !important; 
    position: relative; 
}

.live-anchor { 
    text-decoration: none !important; 
    display: block; 
    height: 100%; 
}

.live-container-inner { 
    position: relative; 
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
}

.glass-mask {
    position: absolute; 
    inset: 0; 
    z-index: 2;
    background: linear-gradient(135deg, rgba(242, 101, 34, 0.65), rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
}

.badge-live {
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: #e31212; 
    padding: 4px 10px; 
    font-size: 9px; 
    font-weight: 800; 
    border-radius: 3px; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    color: #fff; 
    z-index: 3;
}

.badge-live::before {
    content: ""; 
    width: 8px; 
    height: 8px; 
    border-radius: 50%;
    background: #fff; 
    animation: pulse-live 1.5s infinite;
}

.play-circle {
    width: 35px; 
    height: 35px; 
    background: #fff; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 3;
}

.play-circle::after {
    content: ""; 
    border-left: 10px solid var(--noti-orange);
    border-top: 6px solid transparent; 
    border-bottom: 6px solid transparent; 
    margin-left: 3px;
}

@keyframes pulse-live {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255,255,255,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}


/* ==========================================================================
   5. SECCIÓN NOTICIAS (Grids y Tarjetas)
   ========================================================================== */
.news-section-block { 
    margin-bottom: 40px; 
}

.section-title-bar { 
    background: #E41C36; 
    padding: 12px 25px;
    border-radius: var(--radius-main) var(--radius-main) 0 0;
}

.section-title { 
    color: #fff; 
    font-size: 1.1rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin: 0; 
}

.section-title a { 
    color: #fff !important; 
}

/* Contenedores de Grids de Noticias */
.news-grid-inferior { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px; 
    background: var(--noti-card-bg); 
    padding: 20px;
    border-radius: 0 0 var(--radius-main) var(--radius-main); 
    box-shadow: var(--shadow);
}

/* Especificidad para portal-noticias si se requiere */
.portal-noticias .news-grid-inferior {
    grid-template-columns: repeat(6, 1fr) !important;
    background: #000;
    border-radius: 0 0 15px 15px;
    align-items: start;
}

/* Tarjeta de Noticias Individual */
.news-card-item { 
    display: flex; 
    flex-direction: column; 
    background: #fff; 
    border-radius: var(--radius-card); 
    overflow: hidden; 
    border: 1px solid #f0f0f0; 
    transition: var(--transition-standard);
}

.news-card-item:hover { 
    transform: translateY(-5px); 
}

.card-image-container { 
    width: 100%; 
    aspect-ratio: 16/9; 
    overflow: hidden; 
}

.portal-noticias .zeo-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portal-noticias .card-image-container:hover .zeo-img-cover {
    transform: scale(1.08);
}

.card-content { 
    padding: 12px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.card-title { 
    font-size: 0.85rem; 
    line-height: 1.2; 
    font-weight: 700; 
    margin: 0 0 8px; 
    color: var(--noti-text-dark); 
    text-align: center;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sobreescritura específica para títulos en Portal */
.portal-noticias .card-title {
    margin: 10px 0 5px;
    font-size: 15px;
    line-height: 1.3;
    height: 3.9em;
}

.card-meta-date { 
    font-size: 0.7rem; 
    color: black; 
    font-weight: 600; 
    margin-top: auto; 
    text-align: center; 
}


/* ==========================================================================
   6. OPTIMIZACIÓN RESPONSIVA (Media Queries ordenadas de mayor a menor)
   ========================================================================== */
@media (max-width: 1250px) { 
    .news-grid-inferior { 
        grid-template-columns: repeat(3, 1fr); 
    } 
}

@media (max-width: 850px) {
    .multimedia-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .news-grid-inferior { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .portal-noticias .news-grid-inferior {
        grid-template-columns: repeat(2, 1fr) !important;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .news-grid-inferior { 
        grid-template-columns: 1fr; 
    }
    .multimedia-grid { 
        grid-template-columns: 1fr; 
    }
}