/* ==========================================================================
   RUSPOST — PROGRAMAS (YouTube)
   ========================================================================== */
:root {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    --color-yellow-original: #fffb18;
    --color-yellow-200: oklch(94.5% 0.129 101.54);
    --color-gray-100: oklch(96.7% 0.003 264.542);


    --rp-accent: var(--color-yellow-200);
    --rp-bg: #0a0a0a;
    --rp-surface: #171717;
    --rp-border: #262626;
    --rp-text: #ffffff;

    --rp-muted: color-mix(in oklch, var(--color-gray-100) 65%, black);
}
.rp-programas-page {
    min-height: 100vh;
    background: var(--rp-bg);
    color: var(--rp-text);
    font-family: var(--font-sans);
}

.rp-programas-page .rp-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width:540px) {
    .rp-programas-page .rp-container {
        padding: 0 18px;
    }
}

.rp-programas-page a {
    color: inherit;
    text-decoration: none;
}

.rp-programas-page svg.rp-ico {
    width: 18px;
    height: 18px;
    display: inline-block;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.rp-prog-hero {
    position: relative;
    height: 60vh;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.rp-prog-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rp-prog-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .60;
    filter: grayscale(100%) contrast(1.25);
}

.rp-prog-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 10, 10, .65), rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, 1)),
        linear-gradient(to top, rgba(10, 10, 10, 1), rgba(10, 10, 10, .25), rgba(10, 10, 10, 0));
}

.rp-prog-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 72px;
}

.rp-prog-hero-inner {
    max-width: 780px;
}

.rp-prog-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-yellow-original);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .2em;
}

.rp-prog-title {
    margin: 0 0 18px 0;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-family: var(--font-sans);
    color: var(--rp-text);
}

.rp-prog-title .dot {
    color: var(--color-yellow-original);
}

.rp-prog-desc {
    margin: 0;
    max-width: 62ch;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--rp-muted);
    font-weight: 300;
    line-height: 1.7;
    font-family: var(--font-sans);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.rp-prog-sections {
    padding: 80px 0 40px;
}

.rp-prog-wrap {
    display: flex;
    flex-direction: column;
    gap: 84px;
}

.rp-prog-section {
    position: relative;
}

.rp-prog-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.rp-prog-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-family: var(--font-sans);
    color: var(--rp-text);
}

.rp-prog-section-line {
    flex: 0 0 auto;
    width: 34px;
    height: 2px;
    background: var(--color-yellow-original);
}

.rp-prog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width:820px) {
    .rp-prog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

.rp-prog-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #0f0f0f;
    aspect-ratio: 4 / 3;
}

@media (min-width:768px) {
    .rp-prog-card {
        aspect-ratio: 16 / 9;
    }
}

.rp-prog-card-media {
    position: absolute;
    inset: 0;
}

.rp-prog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
    filter: grayscale(100%);
    transform: scale(1);
    transition: transform .7s ease, opacity .3s ease, filter .35s ease;
}

.rp-prog-card-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, .92), rgba(10, 10, 10, 0));
    opacity: .82;
    transition: opacity .3s ease;
}

.rp-prog-card-meta {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform .3s ease;
}

.rp-prog-card-meta h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.05;
    font-family: var(--font-sans);
}

.rp-prog-card-underline {
    display: block;
    width: 0;
    height: 4px;
    margin-top: 12px;
    background: var(--rp-accent);
    transition: width .5s ease;
}

.rp-prog-card-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    color: var(--rp-accent);
    opacity: 0;
    transform: translateX(14px);
    transition: opacity .25s ease, transform .25s ease;
}

.rp-prog-card-cta {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .25s ease, transform .25s ease;
}

.rp-prog-card-cta-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--rp-accent);
    border-radius: 4px;
    background: rgba(10, 10, 10, .55);
    backdrop-filter: blur(6px);
    color: var(--rp-accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-family: var(--font-sans);
}


.rp-prog-card:hover img {
    opacity: .42;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.rp-prog-card:hover .rp-prog-card-grad {
    opacity: .92;
}

.rp-prog-card:hover .rp-prog-card-cta {
    opacity: 1;
    transform: scale(1);
}

.rp-prog-card:hover .rp-prog-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.rp-prog-card:hover .rp-prog-card-meta {
    transform: translateY(-6px);
}

.rp-prog-card:hover .rp-prog-card-underline {
    width: 48px;
}

.rp-prog-card:focus-visible {
    outline: 2px solid var(--rp-accent);
    outline-offset: 3px;
}

/* ---------- Hover CTA + Arrow (EP) ---------- */
.rp-prog-ep {
    position: relative;
}

.rp-prog-ep-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    color: var(--color-yellow-original);
    opacity: 0;
    transform: translateX(14px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.rp-prog-ep-cta {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    color: var(--color-yellow-original);
}

.rp-prog-ep-cta-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--color-yellow-original);
    border-radius: 4px;
    background: rgba(10, 10, 10, .55);
    backdrop-filter: blur(6px);
    color: var(--color-yellow-original);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-family: var(--font-sans);
}

.rp-prog-ep:hover .rp-prog-ep-cta {
    opacity: 1;
    transform: scale(1);
}

.rp-prog-ep:hover .rp-prog-ep-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================================================
   CARRUSEL DE CAPÍTULOS
   ========================================================================== */
.rp-prog-controls {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.rp-prog-iconbtn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: transparent;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.rp-prog-iconbtn:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .28);
}

.rp-prog-iconbtn:focus-visible {
    outline: 2px solid var(--rp-accent);
    outline-offset: 3px;
}

.rp-prog-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.rp-prog-track::-webkit-scrollbar {
    display: none;
}

.rp-prog-ep {
    flex: 0 0 auto;
    width: 320px;
    border-radius: 4px;
    overflow: hidden;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, .08);
    scroll-snap-align: start;
}

@media (max-width:420px) {
    .rp-prog-ep {
        width: 280px;
    }
}

.rp-prog-ep-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.rp-prog-ep img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
    filter: grayscale(100%);
    transform: scale(1);
    transition: transform .7s ease, opacity .3s ease, filter .35s ease;
}

.rp-prog-ep-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, .92), rgba(10, 10, 10, 0));
    opacity: .85;
}

.rp-prog-ep-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--rp-accent);
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 6px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    font-family: var(--font-sans);
    background-color: #fffb18;
}

.rp-prog-ep-meta {
    padding: 14px 16px 16px;
}

.rp-prog-ep-meta h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
    font-family: var(--font-sans);
    color: var(--rp-text);
}

.rp-prog-ep-underline {
    display: block;
    width: 0;
    height: 3px;
    background: var(--color-yellow-original);
    margin-top: 10px;
    transition: width .5s ease;
}

.rp-prog-ep:hover img {
    opacity: .45;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.rp-prog-ep:hover .rp-prog-ep-underline {
    width: 48px;
}

.rp-prog-ep:focus-visible {
    outline: 2px solid var(--rp-accent);
    outline-offset: 3px;
}

/* ==========================================================================
   REVEAL (JS)
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
    will-change: opacity, transform;
}

[data-reveal].is-inview {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.rp-prog-empty {
    padding: 64px 0;
    color: color-mix(in oklch, var(--color-gray-100) 55%, black);
    font-family: var(--font-sans);
}