/* Teletristadio - Estilo Noticiero Futurista v5.9 (Sistema Tipográfico Completo: Tamaños + Grosores) */

*{
    margin: 0;
    box-sizing: border-box;
}

:root {
    /* --- Paleta de Colores --- */
    --primary-blue: #0066ff;
    --primary-white: #ffffff;
    --accent-orange: #ff6600;
    
    /* --- Fondos --- */
    --bg-dark: #0a0f1c;
    --bg-card: #1a2332;
    
    /* --- Textos --- */
    --text-light: #e8f4ff;
    --text-gray: #a3b8d1;
    
    /* --- SISTEMA DE FUENTES (Centralizado) --- */
    
    /* 1. Tamaños (Size) */
    --fz-title: 1.5rem;  /* Títulos e Iconos */
    --fz-body: 1.0rem;   /* Texto base, Menús, Botones */
    --fz-meta: 0.8rem;   /* Metadatos */
    
    /* 2. Grosores (Weight) */
    --fw-bold: 700;      /* Negrita (Títulos, Paginación) */
    --fw-semi: 600;      /* Seminegrita (Enlaces, Etiquetas) */
    --fw-normal: 400;    /* Normal (Lectura) */
    
    /* --- Referencias --- */
    --border-blue: var(--primary-blue);
    --tech-font: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    font-family: var(--tech-font);
    
    /* Valores base heredados */
    font-size: var(--fz-body);
    font-weight: var(--fw-normal);
    
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    
    /* Rejilla de fondo */
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 102, 255, 0.15) 25%, rgba(0, 102, 255, 0.15) 26%, transparent 27%, transparent 74%, rgba(0, 102, 255, 0.15) 75%, rgba(0, 102, 255, 0.15) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 102, 255, 0.15) 25%, rgba(0, 102, 255, 0.15) 26%, transparent 27%, transparent 74%, rgba(0, 102, 255, 0.15) 75%, rgba(0, 102, 255, 0.15) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    background-attachment: fixed;
}

/* Wrapper Flexible */
.main-content-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Cabecera */
.cabecera {
    display: flex;
    position: relative;
    z-index: 1010;
    height: 45px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-dark);
    border-bottom: 4px solid var(--primary-blue);
    backdrop-filter: blur(10px);
}

.header-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--fz-title);
    
    /* GROSOR: Bold */
    font-weight: var(--fw-bold);
    
    color: var(--primary-white);
    white-space: nowrap;
    letter-spacing: 3px;
}

/* Barra de Navegación */
.barra-navegacion-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: 30px;
    width: 100%;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--primary-blue);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.barra-navegacion-sticky ul {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0 20px;
    justify-content: center;
    list-style: none;
}

.barra-navegacion-sticky a {
    display: flex;
    height: 100%;
    padding: 0 15px;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    
    /* GROSOR: Semi-Bold */
    font-weight: var(--fw-semi);
    font-size: var(--fz-body);
    
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
}

.barra-navegacion-sticky a:hover {
    color: var(--primary-white);
    background: var(--primary-blue);
}

/* Contenedor Principal */
.container {
    width: 100%;
    margin: 0;
    padding: 20px 10px;
    flex: 1;
}

/* Tarjetas */
.tarjeta {
    position: relative;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--border-blue);
    border-radius: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
}

.noticia-meta {
    display: flex;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    font-size: var(--fz-meta);
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.noticia-meta span {
    padding: 5px 14px;
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    
    /* GROSOR: Semi-Bold */
    font-weight: var(--fw-semi);
    
    background: rgba(0, 102, 255, 0.15);
}

.noticia-meta span:nth-child(2) {
    padding: 5px 0;
    border: none;
    border-radius: 0;
    font-style: italic;
    
    /* GROSOR: Normal (Para contrarrestar el semi del padre) */
    font-weight: var(--fw-normal);
    
    background: none;
}

.titulo-tarjeta {
    margin-bottom: 25px;
    font-size: var(--fz-title);
    
    /* GROSOR: Bold */
    font-weight: var(--fw-bold);
    
    color: var(--primary-white);
    letter-spacing: 2px;
    line-height: 1.2;
}

.tarjeta-imagen {
    position: relative;
    margin: 10px 0;
    text-align: center;
    overflow: hidden;
}

.tarjeta-imagen::after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    pointer-events: none;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
}

.tarjeta-imagen img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    transition: transform 0.5s ease;
}

.tarjeta-imagen:hover img {
    transform: scale(1.02);
}

.contenido-tarjeta {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: var(--fz-body);
    
    /* GROSOR: Normal */
    font-weight: var(--fw-normal);
    
    line-height: 1.8;
    color: var(--text-light);
    text-align: left;
}

.contenido-tarjeta p {
    margin-bottom: 10px;
}

/* Paginación */
.paginacion {
    display: flex;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.pagina-btn {
    display: flex;
    min-width: 50px;
    height: 50px;
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    
    /* GROSOR: Bold */
    font-weight: var(--fw-bold);
    font-size: var(--fz-body);
    
    color: var(--primary-blue);
    cursor: pointer;
    background: none;
    transition: all 0.3s ease;
}

.pagina-btn:hover:not(:disabled) {
    color: var(--accent-orange);
    text-shadow: 0 0 15px var(--accent-orange);
    transform: scale(1.2);
}

.pagina-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.pagina-actual {
    min-width: 60px;
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    
    /* GROSOR: Bold */
    font-weight: var(--fw-bold);
    font-size: var(--fz-body);
    
    color: var(--primary-white);
    text-align: center;
    background: none;
}

/* Mensaje Sin Noticias */
.no-noticias {
    margin: 20px 0;
    padding: 80px 30px;
    border: 2px solid var(--border-blue);
    border-radius: 8px;
    font-size: var(--fz-body);
    color: var(--text-gray);
    text-align: center;
    background: var(--bg-card);
}

.no-noticias::before {
    display: block;
    margin-bottom: 20px;
    content: '⚠';
    font-size: var(--fz-title);
    color: var(--accent-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .tarjeta {
        margin-bottom: 20px;
    }
    
    .paginacion {
        margin: 20px 0;
        gap: 20px;
    }
    
    .pagina-btn {
        min-width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .titulo-tarjeta {
        margin-bottom: 10px;
    }
    
    .noticia-meta span {
        padding: 6px 12px;
    }
    
    .noticia-meta span:nth-child(2) {
        padding: 6px 0;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enlaces Globales */
a {
    color: var(--accent-orange);
    text-decoration: underline;
    
    /* GROSOR: Semi-Bold */
    font-weight: var(--fw-semi);
    
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: var(--primary-blue);
    text-decoration: none;
    text-shadow: 0 0 10px var(--primary-blue);
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--primary-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Título Cabecera */
a.header-title {
    text-decoration: none;
    color: var(--primary-white);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}