/* ==========================================================================
   UNIMAR NEWS — Plantilla Editorial Magazine de Alto Impacto
   Universidad Mariana
   Sección de Streaming Auto-Sincronizada con YouTube (@UMarianaPasto)
   Identidad Oficial Exclusiva: Azul Institucional #075293 & Blanco #FFFFFF
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE DISEÑO & SISTEMA DE TOKENS INSTITUCIONALES
   -------------------------------------------------------------------------- */
:root {
    /* Color Institucional Oficial Universidad Mariana: #075293 */
    --accent: #075293;
    --accent-dark: #053b6b;
    --accent-light: #eaf3fa;
    --accent-subtle: #c7dff3;
    --accent-glow: rgba(7, 82, 147, 0.22);
    --accent-cyan: #38bdf8;

    /* Color Secundario y Fondos de Contraste */
    --secondary: #0c192c;
    --secondary-dark: #060e19;
    --secondary-light: #162a45;
    
    /* Superficies y Fondos */
    --paper: #ffffff;
    --paper-alt: #f8fafd;
    --paper-subtle: #f0f4f9;
    --paper-card: #ffffff;
    
    /* Textos y Tintas */
    --ink: #0f172a;
    --ink-light: #334155;
    --ink-muted: #64748b;
    --ink-subtle: #94a3b8;
    
    /* Bordes y Líneas */
    --line: #e2e8f0;
    --line-subtle: #f1f5f9;
    --line-strong: #cbd5e1;
    
    /* Fondo y Componentes Streaming */
    --streaming-bg: #07101e;
    --streaming-card: #0e1c31;
    --streaming-card-hover: #162b49;
    --streaming-border: rgba(7, 82, 147, 0.35);
    
    /* Tipografía Simple, Moderna y de Alta Legibilidad */
    --font-headline: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-brand: "Cinzel", "Plus Jakarta Sans", serif;
    --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-reading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Espaciados y Dimensiones */
    --max-width: 1320px;
    --gap: 2rem;
    --gap-sm: 1.25rem;
    --gap-lg: 3rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Sombras y Elevaciones */
    --shadow-sm: 0 1px 3px rgba(7, 82, 147, 0.05);
    --shadow-md: 0 4px 14px rgba(7, 82, 147, 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(12, 25, 44, 0.12), 0 8px 10px -6px rgba(7, 82, 147, 0.06);
    --shadow-hover: 0 15px 30px -5px rgba(7, 82, 147, 0.2);
    
    /* Transiciones */
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET Y ESTILOS BASE CON PROTECCIÓN CONTRA OVERFLOW
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-width: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper-alt);
    background-image: url('../images/fondo_textura.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
}

.wrap {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .wrap {
        padding: 0 0.85rem;
    }
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    background: var(--secondary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    z-index: 9999;
    border-radius: var(--radius-sm);
}
.skip-link:focus {
    top: 1rem;
}

/* --------------------------------------------------------------------------
   3. TOPBAR INFORMATIVA CON BOTÓN YOUTUBE Y REDES (AZUL INSTITUCIONAL)
   -------------------------------------------------------------------------- */
.topbar {
    width: 100%;
    background: #04213f;
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.topbar__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    flex-wrap: wrap;
}

.topbar__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #e2e8f0;
}

.topbar__tag {
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.topbar__divider {
    color: #475569;
}

.topbar__links-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    font-weight: 600;
    transition: var(--transition);
}
.topbar__link:hover {
    color: #fff;
}

.topbar__link--yt {
    color: var(--accent-cyan);
    font-weight: 700;
}
.topbar__link--yt svg {
    color: #38bdf8;
    transition: transform 0.2s ease;
}
.topbar__link--yt:hover {
    color: #ffffff;
}
.topbar__link--yt:hover svg {
    transform: scale(1.15);
}

.topbar__link--podcast {
    color: #93c5fd;
    font-weight: 700;
}
.topbar__link--podcast:hover {
    color: #ffffff;
}

@media (max-width: 640px) {
    .topbar {
        padding: 0.35rem 0;
        font-size: 0.75rem;
    }
    .topbar__inner {
        justify-content: center;
        text-align: center;
        gap: 0.25rem;
    }
    .topbar__meta {
        justify-content: center;
        gap: 0.4rem;
    }
    .topbar__date {
        font-size: 0.72rem;
    }
    .topbar__date svg {
        display: none;
    }
    .topbar__tag {
        font-size: 0.7rem;
    }
    .topbar__actions {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   4. CABECERA PRINCIPAL / BRAND MASTHEAD EN AZUL INSTITUCIONAL & LOGO BLANCO
   -------------------------------------------------------------------------- */
.site-header {
    width: 100%;
    background: var(--accent, #075293);
    border-bottom: 2px solid #053b6b;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(7, 82, 147, 0.25);
    color: #ffffff;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 1.5rem;
    width: 100%;
}

.brand {
    max-width: 100%;
}

.brand__link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
}

.brand__logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.brand__logo-img {
    height: clamp(65px, 7.8vw, 90px);
    width: auto;
    max-width: 290px;
    object-fit: contain;
}

.brand__text-container {
    display: flex;
    flex-direction: column;
    border-left: 2px solid rgba(255, 255, 255, 0.25);
    padding-left: 1.5rem;
    min-width: 0;
}

.brand__title {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.1;
    text-transform: capitalize;
    word-break: break-word;
}

.brand__subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: -0.01em;
}

.header-yt-badge {
    display: none;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    color: #ffffff;
    transition: var(--transition);
}
.header-yt-badge:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--accent, #075293);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.header-yt-badge__icon {
    width: 30px;
    height: 30px;
    background: #ffffff;
    color: var(--accent, #075293);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.header-yt-badge:hover .header-yt-badge__icon {
    background: var(--accent, #075293);
    color: #ffffff;
}

.header-yt-badge__text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}
.header-yt-badge__text strong {
    font-size: 0.82rem;
    font-weight: 800;
}
.header-yt-badge__text small {
    font-size: 0.72rem;
    color: #cbd5e1;
    font-weight: 700;
}
.header-yt-badge:hover .header-yt-badge__text small {
    color: var(--accent, #075293);
}

@media (min-width: 900px) {
    .header-yt-badge { display: inline-flex; }
}

@media (max-width: 768px) {
    .site-header__inner {
        padding: 0.85rem 0.75rem;
        justify-content: center;
    }
    .brand__link {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.45rem;
        width: 100%;
    }
    .brand__text-container {
        border-left: none;
        padding-left: 0;
        align-items: center;
        text-align: center;
    }
    .brand__logo-img {
        height: 58px;
    }
    .brand__title {
        font-size: 1.4rem;
        line-height: 1.15;
    }
    .brand__subtitle {
        font-size: 0.82rem;
        text-align: center;
        margin-top: 0.15rem;
    }
}

/* --------------------------------------------------------------------------
   5. CINTILLO DE ÚLTIMA HORA (BREAKING TICKER)
   -------------------------------------------------------------------------- */
.breaking-bar {
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 0.45rem 0;
    overflow: hidden;
}

.breaking-bar__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.breaking-bar__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--accent, #075293);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.breaking-bar__pulse {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.breaking-bar__content {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   6. CONTENEDOR DE MENSAJES DEL SISTEMA
   -------------------------------------------------------------------------- */
.system-messages-container {
    margin-top: 1.5rem;
    width: 100%;
}
.system-messages-container:empty {
    display: none;
}

/* --------------------------------------------------------------------------
   7. LAYOUT PRINCIPAL DE NOTICIAS
   -------------------------------------------------------------------------- */
.layout {
    display: grid;
    gap: var(--gap);
    padding: 2rem 1.5rem 2.5rem;
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.layout.layout--fullwidth {
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .layout.layout--with-sidebar {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

.layout__main {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.layout__sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .layout {
        padding: 1.25rem 0.85rem 2rem;
        gap: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   8. BENTO HERO SHOWCASE & BOTÓN DE PLAY MULTIMEDIA
   -------------------------------------------------------------------------- */
.bento-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 900px) {
    .bento-hero {
        grid-template-columns: 1.6fr 1fr;
        align-items: stretch;
    }
}

.bento-hero__primary {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--secondary-dark);
    box-shadow: var(--shadow-md);
    min-height: 420px;
    width: 100%;
}

.bento-hero__link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    width: 100%;
}

.bento-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bento-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-hero__primary:hover .bento-hero__media img {
    transform: scale(1.04);
}

.card-play-button {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    background: rgba(7, 82, 147, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-play-button svg {
    margin-left: 3px;
}
.bento-hero__primary:hover .card-play-button,
.magazine-card:hover .card-play-button {
    transform: translate(-50%, -50%) scale(1.18);
    background: var(--accent, #075293);
    box-shadow: 0 8px 30px rgba(7, 82, 147, 0.65);
}

.card-play-button--sm {
    width: 44px;
    height: 44px;
    top: 50%;
}
.card-play-button--sm svg {
    margin-left: 2px;
}

.bento-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 14, 25, 0.1) 0%, rgba(6, 14, 25, 0.55) 45%, rgba(4, 10, 18, 0.96) 100%);
    z-index: 2;
}

.bento-hero__content {
    position: relative;
    z-index: 3;
    padding: 2rem 1.75rem 1.75rem;
    color: #fff;
    width: 100%;
}

.bento-hero__badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.bento-hero__title {
    font-family: var(--font-headline);
    font-size: clamp(1.15rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0.65rem 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    word-break: break-word;
}

.bento-hero__excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.bento-hero__secondary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.bento-hero__secondary-card {
    position: relative;
    flex: 1;
    min-height: 195px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--secondary-dark);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.bento-hero__secondary-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    width: 100%;
}

.bento-hero__secondary-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.bento-hero__secondary-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.5s ease;
}
.bento-hero__secondary-card:hover .bento-hero__secondary-media img {
    transform: scale(1.05);
}

.bento-hero__secondary-content {
    position: relative;
    z-index: 3;
    padding: 1.25rem;
    color: #fff;
    width: 100%;
}

.bento-hero__secondary-title {
    font-family: var(--font-headline);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-top: 0.4rem;
    color: #ffffff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

@media (max-width: 640px) {
    .bento-hero {
        gap: 1rem;
        margin-bottom: 1.75rem;
    }
    .bento-hero__primary {
        min-height: 320px;
    }
    .bento-hero__content {
        padding: 1.25rem 0.85rem 1rem;
    }
    .bento-hero__title {
        font-size: 1.08rem;
        line-height: 1.25;
        margin: 0.4rem 0;
    }
    .bento-hero__excerpt {
        display: none;
    }
    .bento-hero__secondary-card {
        min-height: 160px;
    }
    .bento-hero__secondary-content {
        padding: 0.85rem;
    }
    .bento-hero__secondary-title {
        font-size: 0.95rem;
    }
}

/* --------------------------------------------------------------------------
   9. BADGES DE CATEGORÍA Y ETIQUETAS
   -------------------------------------------------------------------------- */
.badge-category {
    display: inline-block;
    background: var(--accent, #075293);
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.32rem 0.7rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(7, 82, 147, 0.3);
    width: fit-content;
}

.badge-category--floating {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
}

.badge-category--hero {
    background: var(--accent, #075293);
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
}

.badge-video {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent, #075293);
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.32rem 0.7rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(7, 82, 147, 0.4);
    width: fit-content;
}

.badge-video--floating {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
}

/* --------------------------------------------------------------------------
   10. SECCIÓN DE STREAMING EN AZUL INSTITUCIONAL & BLANCO
   -------------------------------------------------------------------------- */
.streaming-section {
    background: var(--streaming-bg);
    color: #ffffff;
    padding: 3.5rem 0 3.5rem;
    margin-top: 2rem;
    margin-bottom: 0;
    border-top: 4px solid var(--accent, #075293);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    width: 100%;
}

.streaming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(7, 82, 147, 0.35);
    padding-bottom: 0.85rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.streaming-header__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.streaming-pulse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    animation: pulse 1.5s infinite;
}

.streaming-header__title h2 {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
}

.streaming-badge {
    background: rgba(7, 82, 147, 0.3);
    border: 1px solid rgba(7, 82, 147, 0.6);
    color: var(--accent-cyan);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.streaming-header__tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.streaming-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}
.streaming-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.streaming-tab--active {
    background: var(--accent, #075293);
    color: #ffffff;
    border-color: var(--accent, #075293);
    box-shadow: 0 2px 8px rgba(7, 82, 147, 0.4);
}
.streaming-tab--active:hover {
    background: var(--accent-dark, #053b6b);
}

.streaming-tab--sub {
    background: rgba(7, 82, 147, 0.2);
    color: #93c5fd;
    border-color: rgba(7, 82, 147, 0.4);
}
.streaming-tab--sub:hover {
    background: var(--accent, #075293);
    color: #ffffff;
    border-color: var(--accent, #075293);
}

.streaming-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    width: 100%;
}

@media (min-width: 960px) {
    .streaming-grid {
        grid-template-columns: 1.8fr 1.2fr;
        align-items: start;
    }
}

.streaming-main {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.streaming-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.streaming-player-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.streaming-current-info {
    padding: 0.5rem 0.25rem;
}

.streaming-current-badge {
    display: inline-block;
    color: var(--accent-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.streaming-current-title {
    font-family: var(--font-headline);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
}

.streaming-sidebar {
    background: var(--streaming-card);
    border: 1px solid var(--streaming-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.streaming-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.streaming-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.streaming-playlist::-webkit-scrollbar {
    width: 5px;
}
.streaming-playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.streaming-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.streaming-item:hover {
    background: var(--streaming-card-hover);
    border-color: rgba(7, 82, 147, 0.4);
    transform: translateX(4px);
}

.streaming-item.is-active {
    background: rgba(7, 82, 147, 0.28);
    border-color: var(--accent, #075293);
    border-left: 4px solid var(--accent, #075293);
}

.streaming-item__thumb {
    position: relative;
    width: 110px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #000;
}

.streaming-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streaming-item__play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    transition: var(--transition);
}
.streaming-item:hover .streaming-item__play-icon,
.streaming-item.is-active .streaming-item__play-icon {
    background: var(--accent, #075293);
    transform: scale(1.1);
}

.streaming-item__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.streaming-item__title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: #e2e8f0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.streaming-item:hover .streaming-item__title,
.streaming-item.is-active .streaming-item__title {
    color: #ffffff;
}

.streaming-item__date {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 0.35rem;
}

.streaming-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.streaming-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.streaming-nav-btn:hover {
    background: var(--accent, #075293);
    border-color: var(--accent, #075293);
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   11. SEPARADORES Y TÍTULOS DE SECCIÓN
   -------------------------------------------------------------------------- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
    width: 100%;
}

.section-divider__title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.section-divider__accent {
    display: inline-block;
    width: 10px;
    height: 22px;
    background: var(--accent, #075293);
    border-radius: 2px;
}

.section-divider__bar {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--line-strong) 0%, transparent 100%);
}

@media (max-width: 640px) {
    .section-divider {
        margin: 1.5rem 0 1rem;
    }
    .section-divider__title {
        font-size: 1.1rem;
    }
}

/* --------------------------------------------------------------------------
   12. GRILLA EDITORIAL DE ARTÍCULOS (MAGAZINE GRID)
   -------------------------------------------------------------------------- */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    width: 100%;
}

@media (min-width: 640px) {
    .magazine-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .magazine-grid { grid-template-columns: repeat(3, 1fr); }
}

.magazine-card {
    background: var(--paper-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
}
.magazine-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-subtle);
}

.magazine-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--secondary-light);
    width: 100%;
}

.magazine-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.magazine-card:hover .magazine-card__media img {
    transform: scale(1.06);
}

.card-fallback-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.magazine-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.magazine-card__title {
    font-family: var(--font-headline);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin: 0.6rem 0;
    color: var(--secondary);
    word-break: break-word;
}
.magazine-card__title a:hover {
    color: var(--accent, #075293);
}

.magazine-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
    flex: 1;
}

.magazine-card__footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent, #075293);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.read-more-link:hover {
    color: var(--accent-dark);
    gap: 0.55rem;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--ink-muted);
    font-weight: 600;
}

.card-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.card-meta__views {
    color: var(--accent, #075293);
    font-weight: 700;
}

.card-meta--light {
    color: rgba(255, 255, 255, 0.85);
}
.card-meta--light .card-meta__views {
    color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   13. MÓDULOS DE BARRA LATERAL (SIDEBAR WIDGETS)
   -------------------------------------------------------------------------- */
.mod-card {
    background: var(--paper-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent, #075293);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.mod-card__title {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line-subtle);
}

.mod-card--dark {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary-dark);
    border-top-color: var(--accent, #075293);
}
.mod-card__title--white {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mod-card--ranked ol,
.mod-card--ranked ul {
    list-style: none;
    counter-reset: rank-counter;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.mod-card--ranked li {
    counter-increment: rank-counter;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line-subtle);
}
.mod-card--ranked li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mod-card--ranked li::before {
    content: counter(rank-counter, decimal-leading-zero);
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--accent, #075293);
    line-height: 1;
    flex-shrink: 0;
}

.mod-card--ranked li a {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}
.mod-card--ranked li a:hover {
    color: var(--accent, #075293);
}

/* --------------------------------------------------------------------------
   14. VISTA DE ARTÍCULO INDIVIDUAL
   -------------------------------------------------------------------------- */
.article-single {
    background: var(--paper-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
}

.article-single__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.article-single__breadcrumbs a:hover {
    color: var(--accent, #075293);
}

.article-single__title {
    font-family: var(--font-headline);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    word-break: break-word;
}

.article-single__byline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.75rem;
    width: 100%;
}

.byline-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.byline-author__avatar {
    width: 38px;
    height: 38px;
    background: var(--accent-light);
    border: 1px solid var(--accent-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #075293);
    flex-shrink: 0;
}

.byline-author__name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
}

.byline-author__meta {
    font-size: 0.82rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.byline-hits {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent, #075293);
    font-weight: 700;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.article-share__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    margin-right: 0.25rem;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper-alt);
    color: var(--ink-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.share-btn--fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; transform: translateY(-2px); }
.share-btn--ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
    border-color: #d6249f;
    transform: translateY(-2px);
}
.share-btn--wa:hover { background: #25d366; color: #fff; border-color: #25d366; transform: translateY(-2px); }
.share-btn--tw:hover { background: #000000; color: #fff; border-color: #000000; transform: translateY(-2px); }
.share-btn--copy:hover { background: var(--accent, #075293); color: #fff; border-color: var(--accent, #075293); transform: translateY(-2px); }

.article-single__video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow-lg);
}
.article-single__video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-single__lead-image {
    margin: 0 0 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    text-align: center;
    width: 100%;
}
.article-single__lead-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    margin: 0 auto;
}
.article-single__caption {
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-style: italic;
    padding: 0.6rem 0.5rem;
    background: var(--paper-card);
    border-top: 1px solid var(--line-subtle);
}

.article-single__body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
    word-break: break-word;
}

.article-single__body p {
    margin-bottom: 1.5rem;
}

.article-single__body > p:first-of-type::first-letter {
    font-family: var(--font-headline);
    font-size: 3.2rem;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    margin-right: 0.65rem;
    color: var(--accent, #075293) !important;
}

.article-single__body h2,
.article-single__body h3 {
    font-family: var(--font-headline);
    font-weight: 800;
    color: var(--secondary);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.article-single__body blockquote {
    border-left: 4px solid var(--accent, #075293);
    background: var(--accent-light);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--secondary-dark);
}

.article-single__body iframe[src*="youtube.com"],
.article-single__body iframe[src*="youtu.be"] {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
}

.article-single__body iframe[src*="spotify.com"],
.article-single__body iframe[src*="ivoox.com"] {
    width: 100% !important;
    border-radius: var(--radius-md);
    border: none;
    margin: 1.5rem 0;
}

.article-single__body audio {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
}

.article-single__footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-back:hover {
    background: var(--accent, #075293);
    color: #fff;
}

@media (max-width: 640px) {
    .article-single {
        padding: 1rem 0.75rem;
        border-radius: 6px;
    }
    .article-single__title {
        font-size: 1.25rem;
        line-height: 1.25;
    }
    .article-single__byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    .article-share {
        width: 100%;
        justify-content: flex-start;
    }
    .article-single__body {
        font-size: 0.98rem;
        line-height: 1.68;
    }
    .article-single__body > p:first-of-type::first-letter {
        font-size: 2.6rem;
        margin-right: 0.45rem;
    }
}

/* --------------------------------------------------------------------------
   15. PAGINACIÓN
   -------------------------------------------------------------------------- */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination {
    display: inline-flex;
    gap: 0.35rem;
    list-style: none;
    background: var(--paper-card);
    padding: 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--ink-light);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--paper-subtle);
    color: var(--accent, #075293);
}

.pagination .active span {
    background: var(--accent, #075293);
    color: #fff;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. PIE DE PÁGINA MAGAZINE TOTALMENTE CENTRADO Y SIMÉTRICO
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--secondary-dark);
    color: #94a3b8;
    padding: 3rem 0 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    text-align: center;
}

.site-footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Contenedor Centrado para Módulos de Footer */
.site-footer__custom-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 850px;
    margin: 0 auto 1.5rem;
}

.site-footer__custom-item,
.footer-widget,
.site-footer .mod-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.footer-widget__title,
.site-footer .mod-card__title {
    font-family: var(--font-headline);
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    text-align: center !important;
    border-bottom: none !important;
}

.footer-widget__body,
.site-footer .mod-card__body {
    font-size: 0.86rem;
    color: #cbd5e1 !important;
    line-height: 1.7;
    text-align: center !important;
    margin: 0 auto;
    width: 100%;
}

.footer-widget__body p,
.footer-widget__body span,
.footer-widget__body div,
.site-footer .mod-card__body p,
.site-footer .mod-card__body span {
    text-align: center !important;
    margin: 0 auto;
}

/* Bloque Estándar Centrado */
.footer-centered-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 1.75rem;
}

.footer-centered__logo {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 0.85rem;
}

.footer-centered__title {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.footer-centered__desc {
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-centered__men {
    font-size: 0.78rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
}

/* Barra Inferior Centrada */
.site-footer__bottom--centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: #64748b;
}

.footer-sep {
    color: var(--accent, #075293);
    font-weight: 900;
}

.site-footer__credit a {
    color: var(--accent-cyan);
    font-weight: 600;
    transition: var(--transition);
}
.site-footer__credit a:hover {
    color: #ffffff;
    text-decoration: underline;
}
