/* Barco Político — Theme-specific styles (WordPress overrides + responsive) */

/* ── WordPress base resets ────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { background: var(--navy-deep); }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Admin bar scroll offset */
body.admin-bar section[id] { scroll-margin-top: 110px; }
section[id] { scroll-margin-top: 78px; }

/* Remove default WP margins */
.wp-block-paragraph { margin: 0; }

/* ── Sticky header ────────────────────────────────────────────── */
.bp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    background: linear-gradient(180deg, rgba(8,18,34,.55), transparent);
    border-bottom: 1px solid transparent;
}
.bp-header.scrolled {
    background: rgba(8,18,34,.92);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--line-navy);
}
.bp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.bp-logo img { height: 38px; display: block; }
.bp-desktop-nav { display: flex; gap: 26px; align-items: center; }
.bp-nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color .18s, border-color .18s;
    white-space: nowrap;
}
.bp-nav-link:hover,
.bp-nav-link.is-active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}
.bp-mobile-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 4px;
}
.bp-mobile-menu {
    display: none;
    background: var(--navy-deep);
    border-top: 1px solid var(--line-navy);
    padding: 8px 0 16px;
}
.bp-mobile-menu.open { display: block; }
.bp-mobile-menu a {
    display: block;
    padding: 13px 40px;
    color: rgba(255,255,255,.78);
    font-size: 14.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color .15s;
}
.bp-mobile-menu a:hover,
.bp-mobile-menu a.is-active { color: var(--gold-light); }
.bp-mobile-menu-cta { padding: 12px 40px 4px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.bp-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
}
.bp-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
    padding: 150px 40px 96px;
    min-height: 100vh;
    max-width: 1240px;
    margin: 0 auto;
}
.bp-hero-portrait {
    position: relative;
    justify-self: center;
    width: min(100%, 360px);
}
.bp-hero-frame {
    position: absolute;
    inset: -14px;
    border: 1px solid var(--gold);
    opacity: .55;
    pointer-events: none;
}
.bp-hero-img-wrap {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-navy);
    background: var(--navy-800);
}
.bp-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8,18,34,.78));
    pointer-events: none;
}
.bp-hero-nameplate {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0 0 22px 24px;
}
.bp-hero-float-badge {
    position: absolute;
    top: 22px;
    right: -12px;
}

/* ── Video principal ──────────────────────────────────────────── */
.bp-video-player-wrap {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    padding: 8px;
    background: var(--grad-gold);
    box-shadow: var(--shadow-navy);
}
.bp-video-ratio {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #06101f;
    overflow: hidden;
}
.bp-video-ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.bp-video-facade {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #06101f;
    width: 100%;
}
.bp-video-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
}
.bp-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,18,34,.25), rgba(8,18,34,.62));
}
.bp-video-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    transition: transform .18s;
    pointer-events: none;
}
.bp-video-facade:hover .bp-video-play-btn { transform: scale(1.07); }
.bp-video-caption {
    position: absolute;
    left: 0; right: 0; bottom: 22px;
    text-align: center;
    color: #fff;
    font-weight: 500;
    font-size: 15.5px;
    letter-spacing: .01em;
    text-shadow: 0 2px 14px rgba(0,0,0,.6);
}

/* ── Transmisión cards ────────────────────────────────────────── */
.bp-tx-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    padding: 34px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.bp-tx-icon {
    width: 50px;
    height: 50px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* ── Attr items (¿Qué es?) ────────────────────────────────────── */
.bp-attr-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 16px 18px;
}
.bp-attr-icon {
    width: 40px;
    height: 40px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Schedule block ───────────────────────────────────────────── */
.bp-schedule-block {
    display: flex;
    align-items: center;
    gap: 13px;
}
.bp-schedule-icon {
    width: 46px;
    height: 46px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Navy statement poster ────────────────────────────────────── */
.bp-statement-poster {
    position: relative;
    overflow: hidden;
    padding: 72px 54px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--grad-navy);
}
.bp-quote-mark {
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: .4;
    color: var(--gold);
    height: 44px;
}

/* ── Episode / archive cards ─────────────────────────────────── */
.bp-ep-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
    color: inherit;
    text-decoration: none;
}
.bp-ep-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.bp-ep-thumb {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(150deg,#0b1c38,#16315c);
    overflow: hidden;
}
.bp-ep-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}
.bp-ep-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 26px rgba(0,0,0,.4);
}
.bp-ep-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.bp-ep-meta { display: flex; gap: 16px; color: var(--ink-3); font-size: 12.5px; margin-bottom: 12px; }
.bp-ep-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Guest cards ──────────────────────────────────────────────── */
.bp-guest-card {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.bp-guest-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.bp-guest-portrait {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(150deg,#0b1c38,#16315c);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bp-guest-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bp-guest-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.bp-guest-body { padding: 22px 24px 26px; }

/* ── Article cards ────────────────────────────────────────────── */
.bp-article-card {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.bp-article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.bp-article-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(150deg,#0b1c38,#16315c);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-article-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}
.bp-article-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ── Social blocks ────────────────────────────────────────────── */
.bp-social-block {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line-navy);
    padding: 38px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color .2s, transform .2s, background .2s;
    color: inherit;
    text-decoration: none;
}
.bp-social-block:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    background: rgba(255,255,255,.07);
}
.bp-social-chip {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

/* ── Contact form ─────────────────────────────────────────────── */
.bp-form-card {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: clamp(28px,4vw,46px);
}
.bp-field-label {
    display: block;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
    font-weight: 600;
}
.bp-field-input {
    width: 100%;
    border: 0;
    border-bottom: 1.5px solid var(--field-line);
    background: transparent;
    padding: 10px 2px;
    font-size: 16px;
    font-family: var(--font-sans);
    color: var(--ink);
    outline: none;
    transition: border-color .18s;
    display: block;
}
.bp-field-input:focus { border-bottom-color: var(--gold); }
.bp-form-success { text-align: center; padding: 40px 12px; }
.bp-form-success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--grad-gold);
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Redes info blocks ────────────────────────────────────────── */
.bp-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bp-contact-icon {
    width: 42px; height: 42px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Social chips (footer) ────────────────────────────────────── */
.bp-social-link-chip {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .16s;
}
.bp-social-link-chip:hover { transform: translateY(-3px); }

/* ── Archive page header ──────────────────────────────────────── */
.bp-archive-header {
    position: relative;
    overflow: hidden;
    padding: 84px 0 72px;
    background: var(--navy);
}
.bp-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--on-navy-3);
    font-size: 12.5px;
    letter-spacing: .06em;
    margin-bottom: 22px;
}
.bp-breadcrumb a { color: var(--on-navy-3); transition: color .15s; }
.bp-breadcrumb a:hover { color: var(--gold-light); }
.bp-breadcrumb .current { color: var(--gold-light); }

/* ── Filter bar ───────────────────────────────────────────────── */
.bp-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    align-items: center;
}
.bp-filter-btn {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    transition: all .15s;
    font-family: var(--font-sans);
}
.bp-filter-btn.active,
.bp-filter-btn:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}
.bp-filter-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--ink-3);
}

/* ── Program detail page ──────────────────────────────────────── */
.bp-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.bp-detail-sidebar {
    background: var(--paper-2);
    border: 1px solid var(--line);
    padding: 30px 28px;
}
.bp-detail-sidebar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.bp-detail-sidebar-row:first-child { padding-top: 0; }
.bp-detail-sidebar-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-share-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ── Sub-header (inner pages) ─────────────────────────────────── */
.bp-subheader {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    border-bottom: 1px solid var(--line-navy);
    padding: 0;
}
.bp-subheader-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}
.bp-subheader-nav { display: flex; gap: 22px; align-items: center; }
.bp-subheader-nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    transition: color .15s;
    white-space: nowrap;
}
.bp-subheader-nav a:hover,
.bp-subheader-nav a.active { color: var(--gold-light); }

/* ── Status badges (emitido / próximo) ───────────────────────── */
.bp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid;
}
.bp-status-badge.is-emitido {
    background: rgba(31,138,91,.12);
    color: #1f8a5b;
    border-color: rgba(31,138,91,.4);
}
.bp-status-badge.is-proximo {
    background: rgba(198,166,103,.15);
    color: var(--gold-deep);
    border-color: rgba(198,166,103,.5);
}
.bp-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ── Pagination ───────────────────────────────────────────────── */
.bp-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 60px;
}
.bp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    text-decoration: none;
    transition: all .15s;
}
.bp-pagination .page-numbers:hover,
.bp-pagination .page-numbers.current {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.bp-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

/* ── Alicia section ───────────────────────────────────────────── */
.bp-alicia-portrait {
    position: relative;
    justify-self: center;
    width: min(100%, 360px);
}

/* ── Live dot ─────────────────────────────────────────────────── */
.live-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #e2483d;
    box-shadow: 0 0 0 0 rgba(226,72,61,.7);
    animation: pulse 1.8s infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(226,72,61,.6); }
    70%  { box-shadow: 0 0 0 8px rgba(226,72,61,0); }
    100% { box-shadow: 0 0 0 0 rgba(226,72,61,0); }
}

/* ── Scroll cue ───────────────────────────────────────────────── */
.bp-scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--on-navy-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.bp-scroll-cue span {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* ── SVG inline icons ─────────────────────────────────────────── */
.bp-icon { display: inline-flex; align-items: center; justify-content: center; }

/* ── WP alignment overrides ───────────────────────────────────── */
.alignwide { max-width: 100%; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .bp-desktop-nav { gap: 18px; }
    .bp-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
    .bp-desktop-nav { display: none; }
    .bp-mobile-toggle { display: block; }
    .bp-hero-grid { grid-template-columns: 1fr !important; padding-top: 116px !important; padding-bottom: 64px !important; min-height: 0 !important; gap: 40px !important; }
    .bp-hero-portrait { order: -1; width: min(80%, 320px) !important; }
    .bp-scroll-cue { display: none; }
    .bp-split { grid-template-columns: 1fr !important; gap: 44px !important; }
    .bp-footer-grid { grid-template-columns: 1fr 1fr !important; }
    .bp-subheader-nav { display: none; }
}
@media (max-width: 760px) {
    .bp-grid-4 { grid-template-columns: 1fr 1fr !important; }
    .bp-grid-3 { grid-template-columns: 1fr 1fr !important; }
    .bp-wrap { padding: 0 24px !important; }
    .bp-section { padding: 64px 0 !important; }
    .bp-statement-poster { padding: 48px 32px; }
}
@media (max-width: 540px) {
    .bp-grid-4 { grid-template-columns: 1fr !important; }
    .bp-grid-3 { grid-template-columns: 1fr !important; }
    .bp-grid-2 { grid-template-columns: 1fr !important; }
    .bp-form-row { grid-template-columns: 1fr !important; }
    .bp-footer-grid { grid-template-columns: 1fr !important; }
    .bp-footer-bottom { flex-direction: column; }
}
