/**
 * Yurivisión Portal — Home (corporativo + regional amazónico)
 */

/* ── Hero cinematográfico ── */
.portal-hero-corp {
    position: relative;
    min-height: clamp(420px, 62vh, 560px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 0;
    color: #fff;
    overflow: hidden;
}

.portal-hero-corp--compact {
    min-height: clamp(240px, 38vh, 320px);
}

.portal-hero-corp--slider {
    min-height: clamp(340px, 58vh, 500px);
    isolation: isolate;
}

@media (min-width: 768px) {
    .portal-hero-corp--compact {
        min-height: clamp(280px, 42vh, 360px);
    }

    .portal-hero-corp--slider {
        min-height: clamp(400px, 62vh, 560px);
    }
}

.portal-hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.portal-hero-carousel .carousel-inner,
.portal-hero-carousel .carousel-item,
.portal-hero-slide-media {
    height: 100%;
}

.portal-hero-slide-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.portal-hero-slide-image,
.portal-hero-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, hsl(223, 47%, 18%), hsl(223, 35%, 28%));
    pointer-events: none;
}

.portal-hero-slide-video {
    object-position: center 18%;
}

.portal-hero-carousel.carousel-fade .carousel-item.active .portal-hero-slide-video {
    opacity: 1;
    visibility: visible;
}

.portal-hero-slide-youtube {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.portal-hero-slide-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.portal-hero-corp-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.portal-hero-corp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.portal-hero-corp-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.35) 0%, rgba(17, 24, 39, 0.15) 35%, rgba(17, 24, 39, 0.82) 100%),
        linear-gradient(90deg, rgba(31, 107, 78, 0.25), transparent 55%);
    pointer-events: none;
}

.portal-hero-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    margin-bottom: 0;
    gap: 6px;
    z-index: 4;
    pointer-events: auto;
}

.portal-hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.portal-hero-indicators [data-bs-target].active {
    background: #fff;
    transform: scale(1.15);
}

.portal-hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    opacity: 1;
    z-index: 4;
    pointer-events: auto;
}

.portal-hero-control.carousel-control-prev {
    left: 12px;
}

.portal-hero-control.carousel-control-next {
    right: 12px;
}

.portal-hero-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.25rem;
    backdrop-filter: blur(4px);
}

.portal-hero-corp-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-top: var(--space-7);
    padding-bottom: calc(var(--space-6) + 28px);
    pointer-events: none;
}

.portal-hero-corp-content a,
.portal-hero-corp-content button {
    pointer-events: auto;
}

#portal-hero-kicker-text,
#portal-hero-title,
#portal-hero-lead {
    transition: opacity 0.25s ease;
}

.portal-hero-corp-content.is-updating #portal-hero-kicker-text,
.portal-hero-corp-content.is-updating #portal-hero-title,
.portal-hero-corp-content.is-updating #portal-hero-lead {
    opacity: 0.35;
}

@media (min-width: 992px) {
    .portal-hero-corp-content {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: end;
        padding-bottom: var(--space-6);
    }
}

.portal-hero-corp-title {
    font-family: var(--font-display);
    font-size: var(--text-h1);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-3);
    color: #fff;
    text-shadow:
        0 2px 16px rgba(0, 0, 0, 0.55),
        0 1px 3px rgba(0, 0, 0, 0.8);
}

.portal-premium main .portal-hero-corp-title {
    color: #fff;
}

.portal-hero-corp-lead {
    font-size: var(--text-body-lg);
    line-height: var(--leading-snug);
    color: rgba(255, 255, 255, 0.94);
    margin: 0 0 var(--space-4);
    max-width: 540px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.portal-premium main .portal-hero-corp-lead {
    color: rgba(255, 255, 255, 0.94);
}

.portal-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    padding: 6px 12px;
    margin-bottom: var(--space-4);
    border-radius: 999px;
    background: rgba(31, 107, 78, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-display);
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: #fff;
}

.portal-hero-corp--compact .portal-hero-corp-title {
    max-width: none;
    font-size: var(--text-h2);
}

@media (max-width: 991px) {
    .portal-hero-corp--slider {
        min-height: min(58vh, 460px);
    }

    .portal-hero-corp-shade {
        background:
            linear-gradient(180deg, rgba(17, 24, 39, 0.45) 0%, rgba(17, 24, 39, 0.2) 28%, rgba(17, 24, 39, 0.88) 62%, rgba(17, 24, 39, 0.96) 100%);
    }

    .portal-hero-corp-content {
        gap: var(--space-3);
        padding-top: var(--space-3);
        padding-bottom: calc(var(--space-4) + 18px);
    }

    .portal-hero-corp-title {
        font-size: clamp(1.2rem, 5.4vw, 1.65rem);
        line-height: 1.15;
        margin-bottom: var(--space-2);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .portal-hero-corp-lead {
        font-size: var(--text-caption);
        line-height: 1.45;
        margin-bottom: var(--space-3);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .portal-hero-kicker {
        font-size: var(--text-micro);
        padding: 5px 10px;
        margin-bottom: var(--space-2);
        max-width: 100%;
    }

    .portal-hero-corp-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    .portal-hero-corp-actions .btn-yv {
        flex: 1 1 calc(50% - 4px);
        width: auto;
        min-width: 0;
        min-height: 40px;
        padding: 8px 10px;
        font-size: var(--text-micro);
        letter-spacing: var(--tracking-wide);
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    }

    .portal-hero-control {
        display: none;
    }

    .portal-hero-indicators {
        bottom: 6px;
    }

    .portal-hero-indicators [data-bs-target] {
        width: 7px;
        height: 7px;
    }

    .portal-live-front-bar-inner {
        min-height: 40px;
        padding: 6px 0;
    }

    .portal-live-front-label {
        font-size: var(--text-micro);
    }

    .portal-live-front-sub {
        display: none;
    }

    .portal-live-front-body {
        padding: var(--space-3) 0 var(--space-4);
    }
}

.portal-hero-corp--compact .portal-hero-corp-lead {
    font-size: var(--text-subtitle);
    margin-bottom: var(--space-4);
}

.portal-hero-corp--compact .portal-hero-corp-content {
    padding-top: var(--space-5);
    padding-bottom: var(--space-4);
}

/* ── Bloque EN VIVO al frente ── */
.portal-live-front {
    position: relative;
    z-index: 8;
    background: var(--yv-surface);
    box-shadow: 0 -8px 32px rgba(17, 24, 39, 0.12), var(--shadow-lg);
    margin-top: -1px;
}

.portal-live-front-bar {
    background: var(--yv-ink);
    color: #fff;
    border-bottom: 3px solid var(--yv-news-red);
}

.portal-live-front-bar.is-live {
    background: linear-gradient(90deg, #7f1020, var(--yv-news-red) 45%, #7f1020);
}

.portal-live-front-bar-inner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 52px;
    padding: var(--space-2) 0;
    flex-wrap: wrap;
}

.portal-live-front-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.portal-live-front-pulse .live-heart-icon {
    color: #fff;
    font-size: var(--text-body-lg);
    animation: heartbeat 1.15s ease-in-out infinite;
}

.portal-live-front-label {
    font-family: var(--font-display);
    font-size: var(--text-subtitle);
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.portal-live-front-sub {
    font-size: var(--text-ui);
    opacity: 0.85;
    margin-left: auto;
}

@media (max-width: 575px) {
    .portal-live-front-sub {
        width: 100%;
        margin-left: 0;
        padding-left: calc(36px + var(--space-3));
    }
}

.portal-live-front-body {
    padding: var(--space-5) 0 var(--space-6);
}

.portal-section--flush {
    margin-bottom: 0;
    padding-top: 0;
}

.portal-live-front .player-card {
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(217, 30, 46, 0.15);
    display: flex;
    flex-direction: column;
}

.portal-live-front .player-frame,
.portal-live-front .social-live-embed,
.portal-live-front .social-live-fallback {
    background: #000;
}

.portal-live-front .broadcast-layout {
    gap: var(--space-4);
}

@media (min-width: 992px) {
    .portal-live-front .live-platform-tabs {
        order: 1;
    }

    .portal-live-front .live-platform-panels {
        order: 2;
    }
}

@media (max-width: 991px) {
    .portal-live-front .broadcast-layout {
        display: flex;
        flex-direction: column;
    }

    .portal-live-front .player-card {
        order: 1;
        border-color: var(--yv-news-red);
        box-shadow:
            0 0 0 1px rgba(217, 30, 46, 0.12),
            0 14px 36px rgba(217, 30, 46, 0.16);
    }

    .portal-live-front .on-air-panel {
        order: 2;
        gap: var(--space-3);
    }

    .portal-section--broadcast .portal-section-header {
        display: none;
    }

    .portal-live-front-body {
        padding: var(--space-2) 0 var(--space-4);
    }

    .portal-live-front-body > .container {
        padding-left: max(calc(var(--bs-gutter-x) * 0.5), env(safe-area-inset-left, 0px));
        padding-right: max(calc(var(--bs-gutter-x) * 0.5), env(safe-area-inset-right, 0px));
    }

    .on-air-card {
        padding: var(--space-4);
    }

    .portal-live-front .live-platform-panels {
        order: 1;
    }

    .portal-live-front .live-platform-tabs {
        order: 2;
    }

    .portal-live-front .player-frame {
        border-radius: calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) 0 0;
    }

    .portal-live-front .live-platform-panel.is-active .social-live-embed,
    .portal-live-front .live-platform-panel.is-active .social-live-fallback {
        border-radius: calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) 0 0;
        overflow: hidden;
    }
}

/* ── Modo inmersivo móvil (pantalla completa) ── */
.player-immersive-enter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
}

.player-immersive-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
    background: linear-gradient(90deg, #7f1020, var(--yv-news-red));
    color: #fff;
    flex-shrink: 0;
}

.player-immersive-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: var(--text-ui);
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.player-immersive-live .live-heart-icon {
    color: #fff;
    font-size: 1rem;
}

.player-immersive-exit {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .player-immersive-enter {
        display: none;
    }
}

@media (max-width: 767px) {
    body.player-immersive-active {
        overflow: hidden;
        padding-top: 0 !important;
    }

    body.player-immersive-active .portal-corp-bar,
    body.player-immersive-active .portal-header,
    body.player-immersive-active .chatbot-wrapper {
        visibility: hidden;
        pointer-events: none;
    }

    body.player-immersive-active .portal-live-front-bar,
    body.player-immersive-active .portal-live-front-body > .portal-section > .portal-section-header,
    body.player-immersive-active .broadcast-layout > .on-air-panel,
    body.player-immersive-active .live-platform-tabs {
        display: none !important;
    }

    body.player-immersive-active .portal-live-front {
        position: fixed;
        inset: 0;
        z-index: 3000;
        margin: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        background: #000;
    }

    body.player-immersive-active .portal-live-front-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0;
        max-width: none;
        width: 100%;
        margin: 0;
    }

    body.player-immersive-active .portal-live-front-body > .portal-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        margin: 0;
        min-height: 0;
    }

    body.player-immersive-active .broadcast-layout {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    body.player-immersive-active .player-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        border: none;
        border-radius: 0;
        box-shadow: none;
        min-height: 0;
        position: relative;
    }

    body.player-immersive-active .player-immersive-enter {
        display: none;
    }

    body.player-immersive-active .player-immersive-topbar {
        display: flex;
    }

    body.player-immersive-active .live-platform-panels {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    body.player-immersive-active .live-platform-panel.is-active {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    body.player-immersive-active .player-frame {
        flex: 1;
        display: flex;
        flex-direction: column;
        border-radius: 0;
        min-height: 0;
    }

    body.player-immersive-active .player-frame .ratio-16x9 {
        flex: 1;
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 0;
    }

    body.player-immersive-active .player-frame video {
        object-fit: contain;
        background: #000;
    }

    body.player-immersive-active .social-live-embed {
        flex: 1;
        min-height: 0;
    }

    body.player-immersive-active .social-live-embed iframe {
        height: 100%;
        min-height: 0;
    }
}

.portal-hero-corp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.portal-hero-live-box {
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.portal-hero-live-label {
    display: block;
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-3);
}

.portal-hero-live-box p {
    margin: var(--space-3) 0 0;
    font-size: var(--text-small);
    line-height: var(--leading-normal);
    color: rgba(255, 255, 255, 0.82);
}

.portal-hero-live-box .live-badge.is-on {
    background: var(--yv-news-red);
    color: #fff;
    border-color: var(--yv-news-red);
}

.portal-photo-credit {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-bottom: var(--space-3);
    font-size: var(--text-overline);
    color: rgba(255, 255, 255, 0.55);
}

/* ── Banda regional ── */
.portal-region-band {
    background: linear-gradient(180deg, var(--yv-amazon-green-dark), var(--yv-amazon-green));
    color: #fff;
    padding: var(--space-6) 0;
    margin-bottom: var(--space-6);
}

.portal-region-band-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
    .portal-region-band-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.portal-region-band .section-eyebrow--amazon {
    color: var(--yv-accent-yellow);
}

.portal-region-band .section-title {
    color: #fff;
}

.portal-region-band-desc {
    margin: 0;
    max-width: 420px;
    font-size: var(--text-subtitle);
    color: rgba(255, 255, 255, 0.82);
    line-height: var(--leading-normal);
}

.portal-region-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .portal-region-gallery { grid-template-columns: repeat(3, 1fr); }
}

.portal-region-card {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

.portal-region-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

@media (min-width: 992px) {
    .portal-region-card img { height: 200px; }
}

.portal-region-card figcaption {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portal-region-card figcaption strong {
    font-family: var(--font-display);
    font-size: var(--text-subtitle);
}

.portal-region-card figcaption span {
    font-size: var(--text-ui);
    color: rgba(255, 255, 255, 0.78);
    line-height: var(--leading-snug);
}

/* ── Broadcast ── */
.portal-section--broadcast {
    padding-top: var(--space-2);
}

.broadcast-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 992px) {
    .broadcast-layout { grid-template-columns: 1fr 360px; }
}

.player-card { overflow: hidden; position: relative; }

.player-frame {
    background: #000;
    border-radius: calc(var(--radius-md) - 1px);
    overflow: hidden;
}

.player-offline {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.player-offline-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.player-offline-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    text-align: center;
    color: #fff;
}

.player-offline-content i {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
    opacity: 0.85;
}

.player-offline-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-h4);
    margin: 0 0 var(--space-2);
}

.player-offline-content p {
    margin: 0;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--text-subtitle);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-5);
    z-index: 2;
    color: #fff;
}

.player-overlay--loading { background: rgba(0, 0, 0, 0.75); }
.player-overlay--error { background: rgba(0, 0, 0, 0.88); }

.on-air-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.on-air-card { padding: var(--space-5); }

.on-air-card--regional {
    padding: 0;
    overflow: hidden;
}

.on-air-regional-photo {
    height: 120px;
    overflow: hidden;
}

.on-air-regional-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.on-air-regional-body { padding: var(--space-5); }

.on-air-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--yv-news-red);
    margin-bottom: var(--space-3);
}

.on-air-title {
    font-family: var(--font-display);
    font-size: var(--text-body-lg);
    font-weight: var(--weight-bold);
    margin: 0 0 var(--space-2);
    line-height: var(--leading-snug);
}

.on-air-desc {
    font-size: var(--text-subtitle);
    color: var(--yv-muted);
    margin: 0 0 var(--space-4);
}

.on-air-host {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.on-air-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--yv-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--weight-bold);
    font-size: var(--text-small);
}

.on-air-host-name { font-size: var(--text-small); font-weight: var(--weight-semibold); }
.on-air-host-role { font-size: var(--text-ui); color: var(--yv-muted); }

.on-air-progress {
    height: 4px;
    background: var(--yv-border);
    border-radius: 999px;
    overflow: hidden;
    margin-top: var(--space-4);
}

.on-air-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--yv-news-red), var(--yv-primary));
    border-radius: 999px;
}

.on-air-times {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-caption);
    color: var(--yv-muted);
    margin-top: var(--space-2);
}

.next-program-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.next-program-time {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--yv-surface-soft);
    border: 1px solid var(--yv-border);
    font-size: var(--text-ui);
    font-weight: var(--weight-bold);
    color: var(--yv-primary-dark);
}

/* ── Noticias con fotografía ── */
.portal-section--news {
    padding-top: var(--space-2);
}

.portal-section-header--news {
    margin-bottom: var(--space-4);
}

.news-toolbar {
    padding: var(--space-4);
    margin-bottom: var(--portal-block-gap);
    display: grid;
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .news-toolbar {
        padding: var(--space-4) var(--space-5);
        gap: var(--space-4);
    }
}

.news-search-wrap {
    position: relative;
}

.news-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--yv-muted);
    pointer-events: none;
}

.news-search-input {
    width: 100%;
    padding: 12px 44px 12px 42px;
    border: 1px solid var(--yv-border);
    border-radius: var(--radius-md);
    background: var(--yv-surface);
    font-size: var(--text-subtitle);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.news-search-input:focus {
    outline: none;
    border-color: var(--yv-news-red);
    box-shadow: 0 0 0 3px rgba(217, 30, 46, 0.12);
}

.news-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--yv-muted);
    cursor: pointer;
}

.news-search-clear:hover {
    background: var(--yv-surface-muted);
    color: var(--yv-ink);
}

.news-results-meta {
    margin: 0;
    font-size: var(--text-ui);
    color: var(--yv-muted);
}

.news-filters {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.news-filters::-webkit-scrollbar { display: none; }

.news-filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--yv-border);
    background: var(--yv-surface);
    color: var(--yv-muted);
    font-size: var(--text-ui);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: all 0.15s ease;
}

.news-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--cat-color, var(--yv-news-red));
}

.news-filter-count {
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
}

.news-filter-btn:hover {
    border-color: var(--cat-color, var(--yv-news-red));
    color: var(--yv-ink);
}

.news-filter-btn.is-active {
    background: var(--cat-color, var(--yv-news-red));
    border-color: var(--cat-color, var(--yv-news-red));
    color: #fff;
}

.news-filter-btn.is-active .news-filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.news-filter-link {
    text-decoration: none;
}

.news-filter-item.is-filter-hidden {
    display: none !important;
}

.news-empty-filter {
    margin-top: var(--space-4);
    padding: var(--space-6);
    text-align: center;
    color: var(--yv-muted);
}

.news-empty-filter i {
    font-size: 2rem;
    color: var(--yv-news-red);
    margin-bottom: var(--space-3);
}

.news-empty-filter h3 {
    font-size: var(--text-body-lg);
    color: var(--yv-ink);
    margin-bottom: var(--space-2);
}

.news-read-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--yv-news-red);
    color: #fff !important;
    font-size: var(--text-small);
    font-weight: var(--weight-bold);
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 20px rgba(217, 30, 46, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.news-read-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(217, 30, 46, 0.34);
    background: #b91826;
    color: #fff !important;
}

.news-read-cta--featured {
    margin-top: var(--space-4);
    width: fit-content;
}

.news-read-cta--card {
    position: relative;
    z-index: 2;
    padding: 8px 14px;
    font-size: var(--text-ui);
    pointer-events: none;
}

.news-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.news-card-link:focus-visible {
    outline: 3px solid rgba(217, 30, 46, 0.45);
    outline-offset: 2px;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    margin-bottom: var(--portal-block-gap);
}

@media (min-width: 768px) {
    .featured-article { grid-template-columns: 1.1fr 1fr; }
}

.featured-article-media {
    position: relative;
    min-height: 240px;
    overflow: hidden;
}

.featured-article-media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.featured-article-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.55), transparent 50%);
}

.featured-article-badge {
    position: absolute;
    left: var(--space-4);
    bottom: var(--space-4);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: var(--yv-accent-yellow);
    color: var(--yv-ink);
    font-size: var(--text-overline);
    font-weight: var(--weight-extrabold);
    text-transform: uppercase;
}

.featured-article-category-pill {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 1;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cat-color, var(--yv-news-red));
    color: #fff;
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
}

.featured-article-body {
    padding: var(--space-4);
}

@media (min-width: 768px) {
    .featured-article-body {
        padding: var(--space-5);
    }
}

.featured-article-category {
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--cat-color, var(--yv-primary));
    margin-bottom: var(--space-2);
}

.featured-article-title {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    margin: 0 0 var(--space-3);
}

.featured-article-summary {
    color: var(--yv-muted);
    margin: 0 0 var(--space-4);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.featured-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-ui);
    color: var(--yv-muted);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--portal-block-gap);
}

@media (min-width: 576px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-card:hover .news-read-cta--card {
    background: #b91826;
    box-shadow: 0 8px 18px rgba(217, 30, 46, 0.3);
}

.news-card-media {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-media img { transform: scale(1.04); }

.news-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.65), transparent 55%);
}

.news-card-category {
    position: absolute;
    left: var(--space-3);
    bottom: var(--space-3);
    z-index: 1;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--cat-color, var(--yv-news-red));
    font-size: var(--text-overline);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    color: #fff;
}

.news-card-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    font-size: var(--text-caption);
    color: var(--yv-muted);
    margin-bottom: var(--space-2);
}

.news-card-title {
    font-family: var(--font-display);
    font-size: var(--text-body);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    margin: 0 0 var(--space-2);
}

.news-card:hover .news-card-title { color: var(--yv-news-red); }

.news-card-summary {
    font-size: var(--text-small);
    color: var(--yv-muted);
    line-height: var(--leading-normal);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin: 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--yv-border);
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.news-card-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--yv-amazon-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-overline);
    font-weight: var(--weight-bold);
}

.news-card-author-name {
    font-size: var(--text-caption);
    color: var(--yv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    text-align: center;
    padding: var(--space-7) var(--space-4);
    color: var(--yv-muted);
}

.empty-state i {
    font-size: 2rem;
    opacity: 0.35;
    display: block;
    margin-bottom: var(--space-3);
}

/* ── Programación ── */
.portal-section--schedule {
    margin-bottom: var(--portal-block-gap);
}

.schedule-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--yv-border);
    box-shadow: var(--shadow-md);
}

.schedule-card--premium {
    background: linear-gradient(180deg, var(--yv-surface) 0%, var(--yv-surface-soft) 100%);
}

.schedule-card-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: linear-gradient(90deg, var(--yv-primary-dark), var(--yv-amazon-green-dark));
    color: #fff;
}

.schedule-card-head-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.schedule-card-head-title {
    margin: 0 0 2px;
    font-family: var(--font-display);
    font-size: var(--text-subtitle);
    font-weight: var(--weight-extrabold);
}

.schedule-card-head-desc {
    margin: 0;
    font-size: var(--text-caption);
    opacity: 0.88;
}

.schedule-card .schedule-tabs,
.schedule-card .tab-content {
    padding-inline: var(--space-4);
}

.schedule-card .schedule-tabs {
    padding-top: var(--space-4);
}

.schedule-card .tab-content {
    padding-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .schedule-card .schedule-tabs,
    .schedule-card .tab-content {
        padding-inline: var(--space-5);
    }

    .schedule-card .tab-content {
        padding-bottom: var(--space-5);
    }
}

.schedule-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.schedule-tabs::-webkit-scrollbar { display: none; }

.schedule-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--yv-border);
    border-radius: 999px;
    background: var(--yv-surface);
    color: var(--yv-muted);
    font-family: var(--font-display);
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
}

.schedule-tab:hover {
    border-color: var(--yv-amazon-green);
    color: var(--yv-amazon-green);
}

.schedule-tab.active {
    background: linear-gradient(135deg, var(--yv-amazon-green), var(--yv-amazon-green-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(31, 107, 78, 0.28);
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .schedule-grid { grid-template-columns: repeat(3, 1fr); }
}

.schedule-item {
    position: relative;
    padding: var(--space-4);
    padding-top: calc(var(--space-4) + 4px);
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--yv-border);
    background: var(--yv-surface);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.schedule-item-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--prog-accent-color, var(--yv-primary));
}

.schedule-item-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    background: color-mix(in srgb, var(--prog-accent-color, var(--yv-primary)) 12%, white);
    color: var(--prog-accent-color, var(--yv-primary));
    font-size: 1rem;
}

.schedule-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.schedule-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: var(--text-caption);
    font-weight: var(--weight-extrabold);
    color: var(--yv-primary-dark);
    background: var(--yv-surface-soft);
    padding: 5px 10px;
    border-radius: 999px;
}

.schedule-rating {
    font-size: var(--text-overline);
    font-weight: var(--weight-bold);
    color: var(--yv-muted);
    padding: 3px 8px;
    border: 1px solid var(--yv-border);
    border-radius: 999px;
}

.schedule-name {
    font-family: var(--font-display);
    font-size: var(--text-subtitle);
    font-weight: var(--weight-bold);
    margin: 0 0 var(--space-2);
    line-height: var(--leading-snug);
}

.schedule-desc {
    font-size: var(--text-ui);
    color: var(--yv-muted);
    margin: 0 0 var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--leading-normal);
}

.schedule-host {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: var(--space-3);
    border-top: 1px solid var(--yv-border);
    font-size: var(--text-ui);
    color: var(--yv-muted);
}

.schedule-host-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--prog-accent-color, var(--yv-amazon-green)) 16%, white);
    color: var(--prog-accent-color, var(--yv-amazon-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-caption);
    font-weight: var(--weight-extrabold);
}

/* ── Chatbot ── */
.chatbot-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

@media (max-width: 991px) {
    .chatbot-wrapper {
        right: 0;
        left: 0;
        bottom: 0;
        pointer-events: none;
    }

    .chatbot-toggle {
        display: none !important;
        visibility: hidden;
    }

    .chatbot-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        height: min(78vh, calc(100dvh - var(--header-offset)));
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -12px 40px rgba(17, 24, 39, 0.18);
        pointer-events: auto;
        transform: translateY(100%);
    }

    .chatbot-panel.is-open {
        transform: translateY(0);
    }

    body.chat-panel-open {
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .chatbot-wrapper {
        bottom: 24px;
        right: 24px;
    }
}

.chatbot-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid var(--yv-amazon-green);
    background: #fff;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
}

.chatbot-toggle-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chatbot-toggle-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--yv-primary), var(--yv-amazon-green));
    color: #fff;
    font-size: var(--text-micro);
    font-weight: var(--weight-extrabold);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chatbot-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: min(360px, calc(100vw - 32px));
    height: min(480px, calc(100vh - 140px));
    background: var(--yv-surface);
    border: 1px solid var(--yv-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.22s ease;
}

.chatbot-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.chatbot-header {
    padding: var(--space-4);
    background: linear-gradient(90deg, var(--yv-primary-dark), var(--yv-amazon-green-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chatbot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    flex-shrink: 0;
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chatbot-name {
    font-family: var(--font-display);
    font-size: var(--text-subtitle);
    font-weight: var(--weight-bold);
    margin: 0;
}

.chatbot-status { font-size: var(--text-caption); opacity: 0.85; }

.chatbot-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: var(--yv-surface-soft);
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: var(--text-small);
    line-height: var(--leading-normal);
}

.chat-msg.bot {
    align-self: flex-start;
    background: var(--yv-surface);
    border: 1px solid var(--yv-border);
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--yv-primary);
    color: #fff;
}

.chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chat-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--yv-border);
    background: var(--yv-surface);
    font-size: var(--text-caption);
    color: var(--yv-muted);
    cursor: pointer;
}

.chat-chip:hover {
    border-color: var(--yv-amazon-green);
    color: var(--yv-amazon-green);
}

.chat-typing {
    padding: var(--space-2) var(--space-4);
    display: flex;
    gap: 4px;
    border-top: 1px solid var(--yv-border);
}

.chat-typing .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yv-muted);
    animation: typing 1.4s infinite ease-in-out;
}

.chat-typing .dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

.chatbot-input-area {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    border-top: 1px solid var(--yv-border);
}

.chatbot-input-area input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--yv-border);
    border-radius: var(--radius-sm);
    font-size: var(--text-small);
}

.chatbot-input-area input:focus {
    outline: none;
    border-color: var(--yv-primary);
}

.chatbot-input-area button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--yv-amazon-green);
    color: #fff;
    cursor: pointer;
}

/* ── Programación destacada (parte superior) ── */
.prog-accent--news { --prog-accent-color: var(--yv-news-red); }
.prog-accent--sports { --prog-accent-color: var(--yv-amazon-green); }
.prog-accent--culture { --prog-accent-color: var(--yv-amazon-teal); }
.prog-accent--music { --prog-accent-color: #7C3AED; }
.prog-accent--default { --prog-accent-color: var(--yv-primary); }

.programming-spotlight {
    position: relative;
    padding: var(--space-4) 0 var(--space-6);
    margin-bottom: var(--space-5);
    overflow: hidden;
    background: var(--yv-surface-soft);
}

.programming-spotlight .container {
    position: relative;
    z-index: 1;
}

.programming-spotlight-head {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, #0b1220 0%, var(--yv-primary-dark) 48%, var(--yv-amazon-green-dark) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 16px 40px rgba(6, 59, 115, 0.22);
    color: #fff;
}

@media (min-width: 768px) {
    .programming-spotlight-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding: var(--space-6);
    }
}

.programming-spotlight-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-3);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-display);
    font-size: var(--text-caption);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
}

.programming-spotlight-eyebrow {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--yv-accent-yellow) !important;
    font-size: var(--text-overline);
    letter-spacing: var(--tracking-wider);
}

.portal-premium main .programming-spotlight-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4vw, var(--text-h2));
    font-weight: var(--weight-extrabold);
    margin: 0 0 var(--space-2);
    color: #fff;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.programming-spotlight-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
    font-size: var(--text-small);
    line-height: var(--leading-normal);
}

.programming-spotlight-cta {
    flex-shrink: 0;
    align-self: flex-start;
}

@media (max-width: 767px) {
    .programming-spotlight-cta {
        width: 100%;
        justify-content: center;
    }
}

.programming-now-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
    .programming-now-grid { grid-template-columns: repeat(2, 1fr); }
}

.programming-now-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3);
    align-items: start;
    padding: var(--space-4);
    border: 1px solid var(--yv-border);
    border-radius: var(--radius-md);
    background: var(--yv-surface);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.programming-now-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--prog-accent-color, var(--yv-primary));
}

.programming-now-card--live {
    border-color: rgba(217, 30, 46, 0.28);
    background: linear-gradient(135deg, #fff 0%, rgba(217, 30, 46, 0.06) 100%);
    box-shadow:
        0 0 0 1px rgba(217, 30, 46, 0.1),
        0 12px 32px rgba(217, 30, 46, 0.14);
}

.programming-now-card--live::before {
    background: var(--yv-news-red);
}

.programming-now-card--next {
    border-color: rgba(7, 85, 165, 0.22);
    background: linear-gradient(135deg, #fff 0%, rgba(7, 85, 165, 0.05) 100%);
}

.programming-now-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--prog-accent-color, var(--yv-primary)) 14%, white);
    color: var(--prog-accent-color, var(--yv-primary));
    font-size: 1.2rem;
    flex-shrink: 0;
}

.programming-now-card--live .programming-now-card-icon {
    background: rgba(217, 30, 46, 0.12);
    color: var(--yv-news-red);
}

.programming-now-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-bottom: var(--space-2);
    border-radius: 999px;
    font-size: var(--text-overline);
    font-weight: var(--weight-extrabold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--yv-news-red);
    background: rgba(217, 30, 46, 0.1);
}

.programming-now-badge--next {
    color: var(--yv-primary);
    background: rgba(7, 85, 165, 0.1);
}

.programming-now-name {
    font-family: var(--font-display);
    font-size: var(--text-h4);
    font-weight: var(--weight-bold);
    margin: 0 0 var(--space-2);
    line-height: var(--leading-snug);
}

.programming-now-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: var(--text-ui);
    color: var(--yv-muted);
}

.programming-now-time {
    font-family: var(--font-display);
    font-weight: var(--weight-extrabold);
    color: var(--yv-primary-dark);
}

.programming-now-host {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.programming-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(217, 30, 46, 0.08), rgba(7, 85, 165, 0.06));
    border: 1px solid rgba(217, 30, 46, 0.14);
    border-left: 4px solid var(--yv-news-red);
}

.programming-timeline-eyebrow {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-display);
    font-size: var(--text-overline);
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--yv-news-red);
}

.portal-premium main .programming-timeline-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-h4);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-snug);
    color: var(--yv-ink);
}

.programming-timeline-hint {
    flex-shrink: 0;
    font-size: var(--text-caption);
    color: var(--yv-muted);
}

@media (max-width: 575px) {
    .programming-timeline-hint {
        display: none;
    }
}

.programming-timeline-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2);
    scroll-snap-type: x mandatory;
}

.programming-timeline {
    display: flex;
    gap: var(--space-3);
    min-width: min-content;
    padding-bottom: var(--space-1);
}

.programming-timeline-item {
    flex: 0 0 196px;
    padding: var(--space-4);
    padding-top: calc(var(--space-4) + 2px);
    border: 1px solid var(--yv-border);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #fff 0%, var(--yv-surface-soft) 100%);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.programming-timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--prog-accent-color, var(--yv-primary));
}

.programming-timeline-item.is-current {
    border-color: rgba(217, 30, 46, 0.35);
    background: linear-gradient(160deg, #fff 0%, rgba(217, 30, 46, 0.08) 100%);
    box-shadow: 0 10px 28px rgba(217, 30, 46, 0.16);
    transform: translateY(-2px);
}

.programming-timeline-item.is-current::before {
    background: var(--yv-news-red);
}

.programming-timeline-item.is-next {
    border-color: rgba(7, 85, 165, 0.28);
    box-shadow: 0 8px 22px rgba(7, 85, 165, 0.12);
}

.programming-timeline-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    background: color-mix(in srgb, var(--prog-accent-color, var(--yv-primary)) 12%, white);
    color: var(--prog-accent-color, var(--yv-primary));
    font-size: 0.95rem;
}

.programming-timeline-time {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-body-lg);
    font-weight: var(--weight-extrabold);
    color: var(--yv-primary-dark);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.programming-timeline-body h4 {
    font-size: var(--text-small);
    font-weight: var(--weight-bold);
    margin: 0 0 4px;
    line-height: var(--leading-snug);
}

.programming-timeline-body p {
    margin: 0;
    font-size: var(--text-caption);
    color: var(--yv-muted);
}

.programming-timeline-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: var(--text-micro);
    font-weight: var(--weight-extrabold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--yv-news-red);
}

.programming-timeline-tag--next {
    background: var(--yv-primary);
}

.programming-spotlight-empty {
    text-align: center;
    padding: var(--space-5);
    background: var(--yv-surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--yv-border);
    box-shadow: var(--shadow-sm);
}

.programming-spotlight-empty i {
    font-size: 1.75rem;
    color: var(--yv-muted);
    opacity: 0.5;
    display: block;
    margin-bottom: var(--space-2);
}

@media (max-width: 991px) {
    .programming-spotlight {
        padding-top: var(--space-3);
    }

    .programming-spotlight-head {
        padding: var(--space-4);
    }

    .programming-timeline-item {
        flex-basis: 168px;
    }

    .programming-timeline-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Pestañas YouTube / Facebook en vivo ── */
.live-platform-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--yv-border);
    background: var(--yv-surface-soft);
}

.live-platform-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1px solid var(--yv-border);
    border-radius: 999px;
    background: var(--yv-surface);
    color: var(--yv-muted);
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: var(--weight-semibold);
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.live-platform-tab i {
    font-size: 0.9rem;
    line-height: 1;
}

.live-tab-label {
    line-height: 1;
}

.live-platform-tab:hover {
    border-color: var(--yv-primary);
    color: var(--yv-primary);
}

.live-platform-tab.is-active {
    background: var(--yv-ink);
    border-color: var(--yv-ink);
    color: #fff;
}

.live-platform-tab[data-live-tab="youtube"].is-active {
    background: #FF0000;
    border-color: #FF0000;
}

.live-platform-tab[data-live-tab="facebook"].is-active {
    background: #1877F2;
    border-color: #1877F2;
}

.live-platform-tab[data-live-tab="tiktok"].is-active {
    background: #111827;
    border-color: #111827;
}

.live-platform-tab[data-live-tab="tiktok"]:hover {
    border-color: #111827;
    color: #111827;
}

.live-platform-panel { display: none; }
.live-platform-panel.is-active { display: block; }

.live-platform-panel-foot {
    padding: var(--space-2) var(--space-3);
    border-top: 1px solid var(--yv-border);
    text-align: right;
}

@media (max-width: 991px) {
    .live-platform-tabs--compact,
    .live-platform-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 4px;
        padding: 5px 8px;
        border-bottom: none;
        border-top: 1px solid var(--yv-border);
        background: var(--yv-surface);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .live-platform-tabs--compact::-webkit-scrollbar,
    .live-platform-tabs::-webkit-scrollbar {
        display: none;
    }

    .live-platform-tab {
        flex: 0 0 auto;
        min-height: 28px;
        padding: 4px 9px;
        font-size: 0.58rem;
        letter-spacing: 0.02em;
    }

    .live-platform-tab i {
        font-size: 0.78rem;
    }

    .live-platform-panel-foot {
        padding: var(--space-2);
    }

    .social-live-link {
        font-size: var(--text-caption);
    }
}

@media (max-width: 420px) {
    .live-platform-tab .live-tab-label {
        display: none;
    }

    .live-platform-tab {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
    }

    .live-platform-tab.is-active .live-tab-label {
        display: none;
    }
}

.social-live-link {
    font-size: var(--text-ui);
    font-weight: var(--weight-semibold);
    color: var(--yv-primary);
}

.social-live-link:hover { color: var(--yv-primary-dark); }

.social-live-embed iframe,
.social-live-embed--panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.social-live-embed--facebook,
.social-live-embed--panel.social-live-embed--facebook {
    min-height: 380px;
}

.social-live-embed--facebook iframe,
.social-live-embed--panel.social-live-embed--facebook iframe {
    min-height: 380px;
}

.social-live-embed--tiktok iframe {
    min-height: 520px;
}

.social-live-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    min-height: 320px;
    padding: var(--space-6) var(--space-4);
    text-align: center;
    background: var(--yv-surface-soft);
}

.social-live-fallback i {
    font-size: 2.5rem;
}

.social-live-fallback h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-h4);
}

.social-live-fallback p {
    margin: 0;
    max-width: 360px;
    color: var(--yv-muted);
    line-height: var(--leading-normal);
}

.social-live-fallback--youtube i {
    color: #FF0000;
}

.social-live-fallback--tiktok i {
    color: #111827;
}

/* ── Chatbot IA generativa ── */
.chatbot-ai-tools {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--yv-border);
    background: var(--yv-surface);
}

.chatbot-ai-tools-label {
    display: block;
    font-size: var(--text-overline);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--yv-muted);
    margin-bottom: var(--space-2);
}

.chatbot-ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.chat-ai-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--yv-border);
    border-radius: var(--radius-sm);
    background: var(--yv-surface-soft);
    font-size: var(--text-overline);
    font-weight: var(--weight-semibold);
    color: var(--yv-ink);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.chat-ai-tool i {
    color: var(--yv-amazon-green);
    font-size: var(--text-small);
}

.chat-ai-tool:hover {
    border-color: var(--yv-primary);
    background: rgba(7, 85, 165, 0.06);
}

.chat-ai-tool.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.chat-typing-text {
    font-size: var(--text-caption);
    color: var(--yv-muted);
    margin-left: 6px;
}

.chat-msg.ai-generated {
    border-left: 3px solid var(--yv-amazon-green);
}

.chatbot-panel {
    height: min(560px, calc(100vh - 120px));
}


/* ── Publicidad no intrusiva ── */
.portal-ad {
    margin: var(--space-5, 1.5rem) 0;
    text-align: center;
}

.portal-ad-label {
    margin: 0 0 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.portal-ad-link {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.portal-ad-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
}

.portal-ad--home_mid .portal-ad-link,
.portal-ad--footer .portal-ad-link,
.portal-ad--news_inline .portal-ad-link {
    width: min(100%, 970px);
    aspect-ratio: 970 / 120;
}

.portal-ad--news_inline .portal-ad-link {
    aspect-ratio: 728 / 90;
    width: min(100%, 728px);
}

.portal-ad--footer .portal-ad-link {
    aspect-ratio: 970 / 90;
}

.portal-ad--news_sidebar {
    margin: 0 0 1.25rem;
    text-align: left;
}

.portal-ad--news_sidebar .portal-ad-link {
    width: 100%;
    aspect-ratio: 300 / 250;
    display: block;
}

.portal-ad--news_sidebar .portal-ad-image {
    object-fit: cover;
}

.portal-ad-footer-wrap {
    padding: 1.25rem 0 0.25rem;
}

@media (max-width: 767px) {
    .portal-ad {
        margin: 1.1rem 0;
    }

    /* En móvil los banners usan todo el ancho disponible para máxima legibilidad. */
    .portal-ad--home_mid .portal-ad-link,
    .portal-ad--footer .portal-ad-link,
    .portal-ad--news_inline .portal-ad-link {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }

    .portal-ad-label {
        font-size: 0.66rem;
    }
}

.portal-ad--sample {
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px dashed rgba(225, 29, 46, 0.35);
    background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
}

.portal-ad--sample .portal-ad-label {
    color: #e11d2e;
}

.portal-ad-sample-note {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.portal-ad-sample-note a {
    color: #1f6b4e;
    font-weight: 700;
}
