/* ============================================================
   SINGLE archivo — Rediseño multimedia (video + galería)
   Layout: header compacto + grid 2-col (main + sidebar sticky)
   ============================================================ */

.ad-s { max-width: 1400px; margin: 0 auto; padding: 0; }

/* ============================================================
   HEADER compacto
   ============================================================ */
.ad-s-header {
    padding: 96px 32px 32px;
    border-bottom: 1px solid var(--ad-line);
    position: relative;
}
.ad-s-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(90,200,250,0.06), transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(191,90,242,0.05), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.ad-s-header-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }

.ad-s-bread {
    display: flex; gap: 6px; align-items: center;
    font-size: 12.5px; color: var(--ad-text-muted);
    margin-bottom: 18px; flex-wrap: wrap;
}
.ad-s-bread a { color: var(--ad-text-muted); transition: color 200ms ease; }
.ad-s-bread a:hover { color: var(--ad-accent); }
.ad-s-bread span { color: var(--ad-text-dim); }

.ad-s-ref-row {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.ad-s-ref {
    display: inline-block;
    background: rgba(90,200,250,0.12);
    border: 1px solid rgba(90,200,250,0.32);
    color: var(--ad-accent);
    padding: 4px 12px; border-radius: var(--ad-r-full);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
}
.ad-s-classif {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px; color: var(--ad-text-dim);
    letter-spacing: 0.1em; text-transform: uppercase;
}

.ad-s-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 18px;
    max-width: 950px;
    color: var(--ad-text);
}

.ad-s-meta-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: 13px;
}
.ad-s-meta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-r-full);
    color: var(--ad-text); font-weight: 500;
}
.ad-s-meta svg { color: var(--ad-text-muted); }

.ad-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px; border-radius: var(--ad-r-full);
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ad-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: currentColor;
    color: var(--ad-bg-deep) !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.ad-pill-prominent .ad-pill-icon { width: 16px; height: 16px; font-size: 11px; }

.ad-pill--resuelto, .ad-pill--resolved {
    background: rgba(48,209,88,0.15); color: var(--ad-success); border: 1px solid rgba(48,209,88,0.3);
}
.ad-pill--inconcluso, .ad-pill--inconclusive {
    background: rgba(255,159,10,0.15); color: var(--ad-warning); border: 1px solid rgba(255,159,10,0.3);
}
.ad-pill--sin-resolver, .ad-pill--unresolved, .ad-pill--unresolved-case {
    background: rgba(255,69,58,0.15); color: var(--ad-danger); border: 1px solid rgba(255,69,58,0.3);
}
.ad-pill--en-investigacion, .ad-pill--investigating, .ad-pill--in-investigation {
    background: rgba(90,200,250,0.15); color: var(--ad-accent); border: 1px solid rgba(90,200,250,0.32);
}
.ad-pill--desestimado, .ad-pill--dismissed {
    background: rgba(160,160,170,0.10); color: rgba(245,245,247,0.55); border: 1px solid rgba(160,160,170,0.25);
}
.ad-pill--neutral {
    background: rgba(255,255,255,0.08); color: var(--ad-text-muted);
}

/* Versión PROMINENT — para el header del single y CTA's destacados.
   Más grande, más contraste, animación sutil para los estados críticos. */
.ad-pill-prominent {
    padding: 7px 14px 7px 11px;
    font-size: 12px;
    letter-spacing: 0.10em;
    border-width: 2px !important;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.ad-pill-prominent.ad-pill--resuelto,
.ad-pill-prominent.ad-pill--resolved {
    background: rgba(48,209,88,0.22);
    box-shadow: 0 2px 8px rgba(48,209,88,0.22), inset 0 0 0 1px rgba(48,209,88,0.18);
}
.ad-pill-prominent.ad-pill--inconcluso,
.ad-pill-prominent.ad-pill--inconclusive {
    background: rgba(255,159,10,0.22);
    box-shadow: 0 2px 8px rgba(255,159,10,0.22), inset 0 0 0 1px rgba(255,159,10,0.18);
}
.ad-pill-prominent.ad-pill--sin-resolver,
.ad-pill-prominent.ad-pill--unresolved,
.ad-pill-prominent.ad-pill--unresolved-case {
    background: rgba(255,69,58,0.22);
    box-shadow: 0 2px 12px rgba(255,69,58,0.32), inset 0 0 0 1px rgba(255,69,58,0.22);
    animation: ad-pill-pulse-danger 2400ms ease-in-out infinite;
}
@keyframes ad-pill-pulse-danger {
    0%, 100% { box-shadow: 0 2px 12px rgba(255,69,58,0.32), inset 0 0 0 1px rgba(255,69,58,0.22); }
    50%      { box-shadow: 0 2px 18px rgba(255,69,58,0.55), inset 0 0 0 1px rgba(255,69,58,0.35); }
}
.ad-pill-prominent.ad-pill--en-investigacion,
.ad-pill-prominent.ad-pill--investigating,
.ad-pill-prominent.ad-pill--in-investigation {
    background: rgba(90,200,250,0.20);
    box-shadow: 0 2px 8px rgba(90,200,250,0.22), inset 0 0 0 1px rgba(90,200,250,0.20);
}
.ad-pill-prominent.ad-pill--desestimado,
.ad-pill-prominent.ad-pill--dismissed {
    background: rgba(160,160,170,0.14);
}

/* Bandera dentro del meta-row del header (sustituye al icono SVG genérico de pin) */
.ad-s-meta-country {
    gap: 7px !important;
    padding-left: 4px;
}
.ad-s-meta-flag {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.ad-s-meta-flag .ad-flag-img {
    width: 22px;
    height: auto;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: inline-block;
}

/* Badge específico para casos sin país pero CON región amplia
   (ej. location_text = "Middle East", "Pacífico Norte") */
.ad-s-meta-region {
    gap: 7px !important;
    padding: 4px 11px;
    background: rgba(90, 200, 250, 0.10);
    border: 1px solid rgba(90, 200, 250, 0.30);
    color: rgba(245, 245, 247, 0.92);
}
.ad-s-meta-region-icon {
    font-size: 14px;
    line-height: 1;
}
.ad-s-meta-region-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}
.ad-s-meta-region-note {
    color: var(--ad-accent);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    font-style: italic;
    opacity: 0.85;
}

/* ============================================================
   SHELL grid: main + sidebar sticky
   ============================================================ */
.ad-s-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: flex-start;
}

.ad-s-main {
    min-width: 0; /* prevent grid blowout */
    display: flex; flex-direction: column;
    gap: 56px;
}

.ad-s-aside {
    position: sticky; top: 96px;
    display: flex; flex-direction: column;
    gap: 14px;
}

/* ============================================================
   STAGE — protagonist video / image viewer
   ============================================================ */
.ad-s-stage-wrap { display: flex; flex-direction: column; gap: 14px; }

.ad-s-tabs {
    display: inline-flex; gap: 4px; padding: 4px;
    background: var(--ad-bg-surface); border: 1px solid var(--ad-line);
    border-radius: var(--ad-r-full);
    width: fit-content;
}
.ad-s-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--ad-r-full);
    font-size: 13px; font-weight: 600;
    color: var(--ad-text-muted);
    transition: background 220ms var(--ad-ease-out), color 220ms var(--ad-ease-out);
}
.ad-s-tab:hover { color: var(--ad-text); }
.ad-s-tab.is-active {
    background: var(--ad-grad-primary);
    color: #fff;
}

.ad-s-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--ad-r-xl);
    overflow: hidden;
    border: 1px solid var(--ad-line);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
    transition: box-shadow 480ms var(--ad-ease-out);
}
.ad-s-stage:hover {
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(90,200,250,0.1) inset;
}
.ad-s-stage-img {
    width: 100%; height: 100%; object-fit: contain;
    background: #000;
    display: block;
    animation: ad-stage-fade 420ms var(--ad-ease-out) both;
}
@keyframes ad-stage-fade {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}
.ad-s-stage-video { width: 100%; height: 100%; }
.ad-s-stage-video iframe,
.ad-s-stage-video video {
    width: 100%; height: 100%; border: 0; display: block;
}
.ad-s-stage-video .ad-video-wrap {
    position: static; padding-bottom: 0; height: 100%;
    border-radius: 0; overflow: visible; background: transparent; box-shadow: none;
}
.ad-s-stage-video .ad-video-wrap iframe,
.ad-s-stage-video .ad-video-wrap video {
    position: static; width: 100%; height: 100%;
}

.ad-s-stage-zoom {
    position: absolute; top: 14px; right: 14px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 240ms var(--ad-ease-out), background 240ms ease;
    z-index: 5;
}
.ad-s-stage:hover .ad-s-stage-zoom { opacity: 0.9; }
.ad-s-stage-zoom:hover { background: rgba(0,0,0,0.9); }

.ad-s-stage-counter {
    position: absolute; top: 14px; left: 14px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    border-radius: var(--ad-r-full);
    z-index: 5;
}
.ad-s-stage-counter-sep { color: rgba(255,255,255,0.4); margin: 0 2px; }

.ad-s-stage-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 240ms var(--ad-ease-out), background 240ms ease, transform 240ms var(--ad-ease-out);
    z-index: 5;
}
.ad-s-stage:hover .ad-s-stage-nav { opacity: 0.85; }
.ad-s-stage-nav:hover { background: rgba(0,0,0,0.9); opacity: 1; }
.ad-s-stage-prev { left: 14px; }
.ad-s-stage-next { right: 14px; }
.ad-s-stage-prev:hover { transform: translateY(-50%) translateX(-2px); }
.ad-s-stage-next:hover { transform: translateY(-50%) translateX(2px); }

.ad-s-stage-caption {
    margin: 0;
    padding: 4px 4px;
    font-size: 13.5px; line-height: 1.55;
    color: var(--ad-text-muted);
    font-style: italic;
}

/* Thumbnails strip */
.ad-s-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    padding: 4px 0;
}
.ad-s-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--ad-bg-surface);
    border: 2px solid transparent;
    border-radius: var(--ad-r-md);
    overflow: hidden;
    padding: 0; cursor: pointer;
    transition: border-color 280ms var(--ad-ease-out), transform 280ms var(--ad-ease-out);
}
.ad-s-thumb:hover { transform: translateY(-2px); border-color: rgba(90,200,250,0.4); }
.ad-s-thumb.is-active {
    border-color: var(--ad-accent);
    box-shadow: 0 0 0 1px rgba(90,200,250,0.4), 0 8px 20px rgba(90,200,250,0.18);
}
.ad-s-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 240ms ease;
}
.ad-s-thumb:not(.is-active) img { opacity: 0.65; }
.ad-s-thumb:hover img { opacity: 1; }
.ad-s-thumb-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ad-text-dim); background: var(--ad-bg-elevated);
}
.ad-s-thumb-icon {
    position: absolute; inset: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    background: rgba(0,0,0,0.3);
    transition: background 220ms ease;
}
.ad-s-thumb:hover .ad-s-thumb-icon { background: rgba(0,0,0,0.15); }
.ad-s-thumb-badge {
    position: absolute; bottom: 6px; right: 6px;
    padding: 2px 7px;
    background: linear-gradient(135deg, #bf5af2, #ff9f0a);
    color: #fff;
    font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(191,90,242,0.4);
}

/* ============================================================
   Recreación artística — thumb pill + stage banner + lightbox banner
   ============================================================ */
.ad-s-thumb-rec-badge {
    position: absolute;
    top: 6px; left: 6px;
    padding: 2px 6px;
    background: rgba(255, 185, 69, 0.95);
    color: #1a1306;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(255, 185, 69, 0.35);
    pointer-events: none;
}
.ad-s-thumb.is-recreation {
    border-color: rgba(255, 185, 69, 0.55);
}
.ad-s-thumb.is-recreation.is-active {
    border-color: #ffb945;
    box-shadow: 0 0 0 1px rgba(255, 185, 69, 0.45), 0 8px 20px rgba(255, 185, 69, 0.22);
}

.ad-s-recreation-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 4px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(255, 185, 69, 0.08), rgba(255, 185, 69, 0.04));
    border: 1px solid rgba(255, 185, 69, 0.32);
    border-radius: var(--ad-r-md);
    color: rgba(245, 245, 247, 0.88);
}
.ad-s-recreation-notice[hidden] { display: none; }
.ad-s-recreation-notice-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.ad-s-recreation-notice-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ad-s-recreation-notice-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffb945;
}
.ad-s-recreation-notice-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(245, 245, 247, 0.75);
}

/* Lightbox: banner solo visible cuando la imagen abierta es recreación */
.ad-lb-recreation-banner {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 10px;
    max-width: min(640px, calc(100% - 48px));
    padding: 12px 18px;
    background: rgba(26, 19, 6, 0.92);
    border: 1px solid rgba(255, 185, 69, 0.55);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    color: rgba(255, 234, 200, 0.95);
    font-size: 13px;
    line-height: 1.45;
    z-index: 2;
}
.ad-lb.is-recreation .ad-lb-recreation-banner { display: flex; }
.ad-lb-recreation-banner-icon { font-size: 18px; flex-shrink: 0; }
.ad-lb-recreation-banner-text strong {
    color: #ffb945;
    margin-right: 4px;
}

/* ============================================================
   H2 sections (eyebrow + title combo)
   ============================================================ */
.ad-s-h2 {
    font-size: 24px; font-weight: 700;
    letter-spacing: -0.02em; line-height: 1.2;
    color: var(--ad-text);
    margin: 0 0 20px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ad-s-h2-eyebrow {
    display: inline-block;
    padding: 3px 10px; border-radius: var(--ad-r-full);
    background: rgba(255,159,10,0.1);
    border: 1px solid rgba(255,159,10,0.3);
    color: var(--ad-accent-3);
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Prose */
.ad-s-prose .ad-content-prose {
    font-size: 17px; line-height: 1.75; color: var(--ad-text);
}
.ad-s-prose .ad-content-prose h2 { font-size: 26px; font-weight: 700; margin: 40px 0 14px; letter-spacing: -0.02em; }
.ad-s-prose .ad-content-prose h3 { font-size: 19px; font-weight: 650; margin: 28px 0 10px; }
.ad-s-prose .ad-content-prose p { margin: 0 0 18px; }
.ad-s-prose .ad-content-prose a { color: var(--ad-accent); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.ad-s-prose .ad-content-prose a:hover { border-bottom-color: var(--ad-accent); }
.ad-s-prose .ad-content-prose blockquote {
    border-left: 3px solid var(--ad-accent);
    padding: 4px 0 4px 20px; margin: 24px 0;
    color: var(--ad-text-muted); font-style: italic;
}

/* ============================================================
   Connected (casos relacionados)
   ============================================================ */
.ad-connected-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.ad-connected-card {
    display: flex; gap: 12px; align-items: center;
    padding: 12px;
    background: var(--ad-bg-surface);
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-r-md);
    transition: transform 280ms var(--ad-ease-out), border-color 220ms ease;
    color: inherit; text-decoration: none;
}
.ad-connected-card:hover { transform: translateY(-2px); border-color: var(--ad-accent); }
.ad-connected-photo {
    width: 64px; height: 64px; border-radius: var(--ad-r-sm);
    overflow: hidden; flex-shrink: 0; background: var(--ad-bg-elevated);
}
.ad-connected-photo img { width: 100%; height: 100%; object-fit: cover; }
.ad-connected-body { min-width: 0; }
.ad-connected-ref {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; color: var(--ad-accent);
    background: rgba(90,200,250,0.1);
    padding: 1px 6px; border-radius: 4px;
}
.ad-connected-title {
    font-size: 13.5px; font-weight: 600;
    color: var(--ad-text); margin: 4px 0 2px;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ad-connected-country { font-size: 11px; color: var(--ad-text-muted); }

/* ============================================================
   Support, source, disclaimer — heredados pero re-organizados
   ============================================================ */
.ad-support {
    position: relative;
    background:
        linear-gradient(135deg, rgba(90,200,250,0.04) 0%, rgba(191,90,242,0.04) 100%),
        var(--ad-bg-surface);
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-r-xl);
    overflow: hidden;
}
.ad-support::before {
    content: ''; position: absolute;
    top: -50%; right: -20%;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(90,200,250,0.12), transparent 60%);
    pointer-events: none;
}
.ad-support::after {
    content: ''; position: absolute;
    bottom: -40%; left: -20%;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(191,90,242,0.10), transparent 60%);
    pointer-events: none;
}
.ad-support-inner { position: relative; z-index: 1; padding: 36px 40px; }
.ad-support-author {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 20px; padding-bottom: 24px;
    border-bottom: 1px solid var(--ad-line);
}
.ad-support-avatar {
    flex-shrink: 0;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--ad-grad-primary);
    color: #fff; font-weight: 700; font-size: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(90,200,250,0.32);
}
.ad-support-author-text { display: flex; flex-direction: column; gap: 2px; }
.ad-support-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ad-accent-3);
}
.ad-support-name {
    font-size: 22px; font-weight: 700; letter-spacing: -0.015em;
    color: var(--ad-text); line-height: 1.2;
}
.ad-support-role { font-size: 13px; color: var(--ad-text-muted); font-weight: 500; margin-top: 2px; }
.ad-support-bio {
    font-size: 15px; line-height: 1.65; color: var(--ad-text-muted);
    margin: 0 0 24px; max-width: 600px;
}
.ad-support-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.ad-donate-btn {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 14px 22px; min-width: 260px;
    border-radius: var(--ad-r-md);
    text-decoration: none;
    transition: transform 320ms var(--ad-ease-out), box-shadow 320ms var(--ad-ease-out);
    position: relative; overflow: hidden;
}
.ad-donate-btn::before {
    content: ''; position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 800ms var(--ad-ease-out);
}
.ad-donate-btn:hover { transform: translateY(-2px); }
.ad-donate-btn:hover::before { left: 100%; }
.ad-donate-flow {
    background: linear-gradient(135deg, #d52b1e 0%, #a01a10 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(213,43,30,0.32);
}
.ad-donate-flow:hover { box-shadow: 0 14px 32px rgba(213,43,30,0.5); }
.ad-donate-paypal {
    background: linear-gradient(135deg, #003087 0%, #009cde 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,156,222,0.32);
}
.ad-donate-paypal:hover { box-shadow: 0 14px 32px rgba(0,156,222,0.5); }
.ad-donate-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; backdrop-filter: blur(8px);
}
.ad-donate-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ad-donate-method {
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; opacity: 0.85;
}
.ad-donate-cta { font-size: 14.5px; font-weight: 650; line-height: 1.2; display: inline-flex; align-items: center; gap: 6px; }
.ad-donate-cta .ad-flag-img { width: 20px; height: auto; border-radius: 2px; }
.ad-donate-arrow { color: #fff; opacity: 0.85; flex-shrink: 0; transition: transform 320ms var(--ad-ease-out); }
.ad-donate-btn:hover .ad-donate-arrow { transform: translateX(4px); }
.ad-support-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ad-text-muted); line-height: 1.5; }

/* Source */
.ad-source {
    background: var(--ad-bg-surface);
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-r-lg);
    padding: 28px 32px;
}
.ad-source-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.ad-source-label {
    display: block; font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ad-text-muted); margin-bottom: 6px;
}
.ad-source-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 500;
    color: var(--ad-accent);
}
.ad-source-link:hover { text-decoration: underline; }
.ad-source-value { font-size: 14px; font-weight: 600; color: var(--ad-text); }

/* Disclaimer */
.ad-disclaimer {
    display: grid; grid-template-columns: 40px 1fr;
    gap: 18px; padding: 24px 28px;
    background: rgba(19, 26, 45, 0.5); backdrop-filter: blur(8px);
    border: 1px solid var(--ad-line);
    border-left: 3px solid var(--ad-accent);
    border-radius: var(--ad-r-md);
}
.ad-disclaimer-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(90,200,250,0.1);
    border: 1px solid rgba(90,200,250,0.25);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ad-accent); flex-shrink: 0;
}
.ad-disclaimer-title {
    font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
    color: var(--ad-text); margin: 0 0 12px;
}
.ad-disclaimer-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.ad-disclaimer-list li { font-size: 13px; line-height: 1.6; color: var(--ad-text-muted); }
.ad-disclaimer-list strong { color: var(--ad-text); font-weight: 650; }
.ad-disclaimer-list a {
    color: var(--ad-accent);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease;
}
.ad-disclaimer-list a:hover { border-bottom-color: var(--ad-accent); }
.ad-disclaimer-author { font-weight: 600; }

/* ============================================================
   ASIDE — info card + map + share (sticky)
   ============================================================ */
.ad-s-card {
    background: var(--ad-bg-surface);
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-r-lg);
    padding: 20px 22px;
}
.ad-s-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ad-line);
}
.ad-s-card-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ad-text-muted);
    margin: 0 0 14px;
}
.ad-s-card-title svg { color: var(--ad-accent); }

.ad-s-info-ref-big {
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px; font-weight: 700;
    background: var(--ad-grad-primary);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.06em;
}
.ad-pill-lg {
    padding: 6px 14px; font-size: 11px;
}

.ad-s-info-dl {
    margin: 0;
    display: flex; flex-direction: column;
    gap: 12px;
}
.ad-s-info-dl > div {
    display: flex; justify-content: space-between;
    gap: 12px;
}
.ad-s-info-dl dt {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ad-text-muted);
    flex-shrink: 0;
}
.ad-s-info-dl dd {
    margin: 0;
    font-size: 13px; font-weight: 500;
    color: var(--ad-text);
    text-align: right;
}
.ad-s-info-dl dd code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: var(--ad-bg-elevated);
    padding: 2px 6px; border-radius: 4px;
}

/* Mini location map */
.ad-location-map {
    width: 100%; height: 180px;
    border-radius: var(--ad-r-md);
    overflow: hidden;
    border: 1px solid var(--ad-line);
    background: var(--ad-bg-elevated);
}
.ad-s-coords {
    margin: 10px 0 0; text-align: center;
}
.ad-s-coords code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: var(--ad-bg-elevated);
    color: var(--ad-accent);
    padding: 3px 10px; border-radius: var(--ad-r-full);
}

/* ============================================================
   TRANSCRIPCIÓN BILINGÜE — Apple-style, español primero
   ============================================================ */
.ad-transcript {
    position: relative;
    margin: 48px 0 56px;
    padding: 48px 44px;
    background: linear-gradient(180deg, rgba(20, 27, 44, 0.92), rgba(12, 18, 32, 0.96));
    border: 1px solid rgba(90, 200, 250, 0.14);
    border-radius: 24px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 20px 60px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.ad-transcript::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 200, 250, 0.4), transparent);
    pointer-events: none;
}
.ad-transcript::after {
    /* Decoración cosmic muy sutil arriba-derecha */
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(90, 200, 250, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ad-transcript-head {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
    text-align: left;
}
.ad-transcript-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--ad-accent);
    margin-bottom: 12px;
}
.ad-transcript-eyebrow svg {
    opacity: 0.85;
}
.ad-transcript-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.024em;
    line-height: 1.08;
    color: var(--ad-text);
    margin: 0 0 10px;
}
.ad-transcript-sub {
    font-size: 13px;
    color: rgba(245, 245, 247, 0.55);
    margin: 0;
    letter-spacing: 0.2px;
}
.ad-transcript-sub-sep {
    margin: 0 6px;
    opacity: 0.5;
}

.ad-transcript-block {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Language pill — chip elegante con borde glow */
.ad-transcript-lang {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.ad-transcript-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1;
}
.ad-transcript-pill-primary {
    background: linear-gradient(135deg, rgba(90, 200, 250, 0.18), rgba(90, 200, 250, 0.06));
    border: 1px solid rgba(90, 200, 250, 0.36);
    color: #d4ecff;
    box-shadow: 0 0 18px -6px rgba(90, 200, 250, 0.35);
}
.ad-transcript-pill-muted {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(245, 245, 247, 0.7);
}
.ad-transcript-flag {
    font-size: 16px; /* fallback emoji */
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
    display: inline-flex;
    align-items: center;
}
.ad-transcript-flag .ad-flag-img {
    width: 18px;
    height: auto;
    border-radius: 2px;
    vertical-align: middle;
    display: inline-block;
}
.ad-transcript-pill-text {
    text-transform: uppercase;
    letter-spacing: 1.4px;
}
.ad-transcript-note {
    font-size: 11px;
    color: rgba(245, 245, 247, 0.4);
    letter-spacing: 0.4px;
    font-style: italic;
}

/* Body del texto — tipografía editorial, líneas generosas */
.ad-transcript-body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: -0.005em;
    color: rgba(245, 245, 247, 0.92);
    max-width: 68ch;
}
.ad-transcript-body p {
    margin: 0 0 1.1em;
}
.ad-transcript-body p:last-child {
    margin-bottom: 0;
}
.ad-transcript-body strong {
    color: var(--ad-text);
    font-weight: 600;
}
.ad-transcript-body em {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}
.ad-transcript-body a {
    color: var(--ad-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(90, 200, 250, 0.35);
    transition: border-color .2s ease, color .2s ease;
}
.ad-transcript-body a:hover {
    color: #84d8ff;
    border-bottom-color: var(--ad-accent);
}

/* Drop cap para el primer párrafo del español (Apple-style editorial)
   Pero NO aplicar si el primer párrafo es diálogo o stage direction
   (no tiene sentido un drop cap sobre un "—" o "[")  */
.ad-transcript-es .ad-transcript-body > p:first-child:not(.ad-transcript-line):not(.ad-transcript-stage)::first-letter {
    font-family: 'Inter', sans-serif;
    font-size: 3.4em;
    font-weight: 700;
    float: left;
    line-height: 0.92;
    padding: 4px 12px 0 0;
    color: var(--ad-accent);
    letter-spacing: -0.04em;
}

/* ============================================================
   LÍNEAS DE DIÁLOGO — estilo "subtítulo cinematográfico"
   Cuando la transcripción es conversación entre pilotos/agentes
   ============================================================ */
.ad-transcript-line {
    display: flex !important;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 14px !important;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(90, 200, 250, 0.06), rgba(90, 200, 250, 0.02) 70%, transparent);
    border-left: 2px solid rgba(90, 200, 250, 0.45);
    border-radius: 0 8px 8px 0;
    font-size: 16.5px;
    line-height: 1.55;
    transition: background .25s ease, border-color .25s ease;
}
.ad-transcript-line:hover {
    background: linear-gradient(90deg, rgba(90, 200, 250, 0.12), rgba(90, 200, 250, 0.04) 70%, transparent);
    border-left-color: var(--ad-accent);
}
.ad-transcript-line-dash {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    line-height: 1;
    color: var(--ad-accent);
    font-weight: 600;
    transform: translateY(2px);
    opacity: 0.85;
}
.ad-transcript-line-text {
    flex: 1;
    color: rgba(245, 245, 247, 0.95);
    font-weight: 450;
}

/* Sutil "primera línea" — un poquito más prominente */
.ad-transcript-body > .ad-transcript-line:first-child {
    border-left-width: 3px;
    border-left-color: var(--ad-accent);
}

/* ============================================================
   STAGE DIRECTIONS — anotaciones [técnicas]
   Estilo "screenplay direction" — monoespaciado, sutil
   ============================================================ */
.ad-transcript-stage {
    margin: 0 0 18px !important;
    padding: 10px 16px;
    background: rgba(20, 27, 44, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Menlo', monospace !important;
    font-size: 12.5px !important;
    line-height: 1.55;
    letter-spacing: 0.2px;
    color: rgba(245, 245, 247, 0.62);
    text-transform: none;
    font-style: normal !important;
}
.ad-transcript-stage-bracket {
    color: var(--ad-accent);
    opacity: 0.7;
    margin: 0 2px;
}

/* Versión original — los diálogos y stages son MÁS sutiles aún */
.ad-transcript-body-muted .ad-transcript-line {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: rgba(255, 255, 255, 0.18);
    font-size: 15px;
    padding: 12px 16px;
}
.ad-transcript-body-muted .ad-transcript-line:hover {
    background: rgba(255, 255, 255, 0.04);
}
.ad-transcript-body-muted .ad-transcript-line-dash {
    color: rgba(245, 245, 247, 0.5);
}
.ad-transcript-body-muted .ad-transcript-line-text {
    color: rgba(245, 245, 247, 0.78);
}
.ad-transcript-body-muted .ad-transcript-stage {
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.06);
    font-size: 11.5px !important;
    color: rgba(245, 245, 247, 0.5);
}
.ad-transcript-body-muted .ad-transcript-stage-bracket {
    color: rgba(255, 255, 255, 0.35);
}

/* Versión original — más sutil */
.ad-transcript-body-muted {
    font-size: 15.5px;
    color: rgba(245, 245, 247, 0.7);
    font-style: normal;
    /* Permite reconocer que es transcripción literal */
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    padding-left: 22px;
    max-width: 64ch;
}

/* Divider entre los dos idiomas */
.ad-transcript-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 44px 0 36px;
}
.ad-transcript-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 200, 250, 0.25), transparent);
}
.ad-transcript-divider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(20, 27, 44, 0.9);
    border: 1px solid rgba(90, 200, 250, 0.25);
    color: rgba(90, 200, 250, 0.7);
}

/* Responsive */
@media (max-width: 720px) {
    .ad-transcript {
        padding: 32px 22px;
        margin: 32px 0 40px;
        border-radius: 18px;
    }
    .ad-transcript-body { font-size: 16px; }
    .ad-transcript-body-muted { font-size: 14.5px; padding-left: 16px; }
    .ad-transcript-lang { flex-wrap: wrap; gap: 10px; }
    .ad-transcript-es .ad-transcript-body > p:first-child::first-letter {
        font-size: 3em;
        padding-right: 10px;
    }
}

/* ============================================================
   DIÁLOGO DEL AUDIO — bloque dedicado al audio del video.
   Theme violet/purple para diferenciarlo del cyan de transcripción.
   Speaker cards estilo chat / Apple Podcasts.
   ============================================================ */
.ad-dlg {
    position: relative;
    margin: 48px 0 56px;
    padding: 44px 44px 48px;
    background: linear-gradient(180deg, rgba(22, 18, 38, 0.95), rgba(15, 12, 28, 0.96));
    border: 1px solid rgba(191, 90, 242, 0.18);
    border-radius: 24px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 24px 70px -24px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.ad-dlg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 90, 242, 0.55), transparent);
    pointer-events: none;
}
.ad-dlg::after {
    /* Nebula violet decorativa */
    content: '';
    position: absolute;
    bottom: -140px; left: -100px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.10), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ad-dlg-head {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
}
.ad-dlg-wave {
    position: absolute;
    top: -8px;
    right: 0;
    width: 240px;
    height: 36px;
    opacity: 0.45;
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.ad-dlg-wave svg {
    width: 100%; height: 100%; display: block;
}

.ad-dlg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #bf5af2;
    margin-bottom: 14px;
}
.ad-dlg-mic { opacity: 0.95; }

.ad-dlg-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: -0.024em;
    line-height: 1.08;
    color: var(--ad-text);
    margin: 0 0 10px;
    max-width: 90%;
}
.ad-dlg-sub {
    font-size: 13px;
    color: rgba(245, 245, 247, 0.55);
    margin: 0;
}
.ad-dlg-sub-sep { margin: 0 6px; opacity: 0.5; }

.ad-dlg-block {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
}
.ad-dlg-block:last-child { margin-bottom: 0; }

/* Pill de idioma + línea horizontal hasta el borde */
.ad-dlg-lang-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.ad-dlg-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;
}
.ad-dlg-pill-primary {
    background: linear-gradient(135deg, rgba(191, 90, 242, 0.22), rgba(191, 90, 242, 0.06));
    border: 1px solid rgba(191, 90, 242, 0.4);
    color: #f0d4ff;
    box-shadow: 0 0 20px -6px rgba(191, 90, 242, 0.4);
}
.ad-dlg-pill-muted {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(245, 245, 247, 0.72);
}
.ad-dlg-pill-flag { font-size: 16px; line-height: 1; display: inline-flex; align-items: center; }
.ad-dlg-pill-flag .ad-flag-img {
    width: 18px;
    height: auto;
    border-radius: 2px;
    vertical-align: middle;
    display: inline-block;
}
.ad-dlg-lang-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(191, 90, 242, 0.3), transparent);
}

/* Lista de líneas de diálogo */
.ad-dlg-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* SPEAKER CARD — cada línea con avatar + bubble */
.ad-dlg-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ad-dlg-avatar {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px; font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform .25s ease;
}
.ad-dlg-item:hover .ad-dlg-avatar { transform: scale(1.06); }

/* Paleta de speakers — colors únicos por hash del nombre */
.ad-dlg-c1 .ad-dlg-avatar { background: linear-gradient(135deg, #5ac8fa, #1e7fbf); }
.ad-dlg-c2 .ad-dlg-avatar { background: linear-gradient(135deg, #bf5af2, #7a2bbf); }
.ad-dlg-c3 .ad-dlg-avatar { background: linear-gradient(135deg, #ff9f0a, #c66b00); }
.ad-dlg-c4 .ad-dlg-avatar { background: linear-gradient(135deg, #30d158, #1a7d34); }
.ad-dlg-c5 .ad-dlg-avatar { background: linear-gradient(135deg, #ff453a, #b5241c); }

.ad-dlg-avatar-anon {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(245, 245, 247, 0.5);
}

.ad-dlg-bubble {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(191, 90, 242, 0.5);
    border-radius: 4px 12px 12px 4px;
    transition: background .2s ease, border-color .2s ease;
}
.ad-dlg-item:hover .ad-dlg-bubble {
    background: rgba(191, 90, 242, 0.08);
    border-left-color: #bf5af2;
}
.ad-dlg-anon .ad-dlg-bubble {
    border-left-color: rgba(255, 255, 255, 0.18);
}
.ad-dlg-anon:hover .ad-dlg-bubble {
    border-left-color: rgba(255, 255, 255, 0.4);
}

.ad-dlg-speaker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #bf5af2;
    margin-bottom: 6px;
    line-height: 1;
}
.ad-dlg-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(245, 245, 247, 0.96);
    letter-spacing: -0.005em;
}

/* Versión idioma original: bubble y speaker en tonos atenuados */
.ad-dlg-block-orig .ad-dlg-bubble {
    background: rgba(255, 255, 255, 0.025);
    border-left-color: rgba(255, 255, 255, 0.14);
}
.ad-dlg-block-orig .ad-dlg-speaker {
    color: rgba(245, 245, 247, 0.55);
}
.ad-dlg-block-orig .ad-dlg-text {
    color: rgba(245, 245, 247, 0.78);
    font-size: 14.5px;
}
.ad-dlg-block-orig .ad-dlg-item:hover .ad-dlg-bubble {
    background: rgba(255, 255, 255, 0.05);
}

/* STAGE direction dentro del diálogo (entre [brackets]) */
.ad-dlg-stage {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(245, 245, 247, 0.55);
    letter-spacing: 0.2px;
}
.ad-dlg-stage-icon {
    color: rgba(191, 90, 242, 0.6);
    font-size: 14px;
    line-height: 1;
}
.ad-dlg-stage-text {
    flex: 1;
}

/* Responsive */
@media (max-width: 720px) {
    .ad-dlg { padding: 30px 22px; margin: 32px 0 40px; border-radius: 18px; }
    .ad-dlg-wave { width: 140px; height: 28px; top: 4px; }
    .ad-dlg-avatar { width: 34px; height: 34px; font-size: 14px; }
    .ad-dlg-bubble { padding: 12px 14px; }
    .ad-dlg-text { font-size: 14.5px; }
    .ad-dlg-block-orig .ad-dlg-text { font-size: 13.5px; }
}

/* ============================================================
   BADGE DEL TIPO DE ARCHIVO (video / imagen / PDF) en el header
   ============================================================ */
.ad-s-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 7px;
    border-radius: 999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    line-height: 1;
}
.ad-s-badge-icon { font-size: 13px; line-height: 1; }
.ad-s-badge-video {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.18), rgba(255, 159, 10, 0.06));
    border: 1px solid rgba(255, 159, 10, 0.4);
    color: #ffb945;
}
.ad-s-badge-image {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.18), rgba(48, 209, 88, 0.06));
    border: 1px solid rgba(48, 209, 88, 0.4);
    color: #5ce680;
}
.ad-s-badge-pdf {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.18), rgba(255, 69, 58, 0.06));
    border: 1px solid rgba(255, 69, 58, 0.4);
    color: #ff7066;
}

/* ============================================================
   PDF VIEWER EMBEBIDO — iframe nativo con controles + descarga
   ============================================================ */
.ad-s-stage-pdf {
    position: relative;
    width: 100%;
    min-height: 720px;
    border-radius: var(--ad-r-lg);
    overflow: hidden;
    background: var(--ad-bg-elevated);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.ad-pdf-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 720px;
}
.ad-pdf-iframe {
    flex: 1;
    width: 100%;
    min-height: 660px;
    border: 0;
    background: #2b2b2b; /* match típico viewer PDF */
}
.ad-pdf-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: var(--ad-bg-surface);
    border-top: 1px solid var(--ad-line);
    flex-wrap: wrap;
}
.ad-pdf-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--ad-r-md);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--ad-text);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}
.ad-pdf-action svg { flex-shrink: 0; }
.ad-pdf-open {
    background: rgba(255, 69, 58, 0.14);
    border: 1px solid rgba(255, 69, 58, 0.32);
    color: #ffaaa0;
}
.ad-pdf-open:hover {
    background: rgba(255, 69, 58, 0.22);
    transform: translateY(-1px);
}
.ad-pdf-download {
    background: rgba(90, 200, 250, 0.10);
    border: 1px solid rgba(90, 200, 250, 0.28);
    color: var(--ad-accent);
}
.ad-pdf-download:hover {
    background: rgba(90, 200, 250, 0.18);
    transform: translateY(-1px);
}

/* Thumbnail PDF (en strip inferior) — icono distintivo sin imagen */
.ad-s-thumb[data-type^="pdf"] {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.16), rgba(255, 69, 58, 0.05));
    border-color: rgba(255, 69, 58, 0.35);
}
.ad-s-thumb[data-type^="pdf"] .ad-s-thumb-empty {
    color: #ff7066;
}
.ad-s-thumb[data-type^="pdf"]::after {
    content: 'PDF';
    position: absolute;
    bottom: 6px; right: 6px;
    background: rgba(255, 69, 58, 0.9);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1;
}

/* Fallback mobile — tarjeta clickeable que reemplaza el iframe.
   Hidden por default (desktop usa el iframe). El @media de abajo lo activa. */
.ad-pdf-mobile-fallback {
    display: none;
}

/* Responsive PDF viewer en mobile.
   iOS Safari NO renderiza el iframe inline; Android lo muestra pero sin
   gestos de zoom apropiados. Reemplazamos con un CTA grande que abre el PDF
   en una pestaña nueva (el visor nativo del browser maneja zoom/pan/scroll). */
@media (max-width: 720px) {
    .ad-s-stage-pdf {
        min-height: 0;
        box-shadow: none;
        background: transparent;
    }
    .ad-pdf-wrap {
        min-height: 0;
    }
    .ad-pdf-iframe {
        display: none; /* dejamos el iframe en el DOM por SEO/estructura, pero oculto */
    }
    .ad-pdf-mobile-fallback {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 32px 22px 28px;
        background: linear-gradient(180deg, rgba(255, 69, 58, 0.16), rgba(255, 69, 58, 0.04));
        border: 1px solid rgba(255, 69, 58, 0.32);
        border-radius: var(--ad-r-lg);
        color: var(--ad-text);
        text-decoration: none;
        transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    }
    .ad-pdf-mobile-fallback:active {
        transform: scale(0.985);
        background: linear-gradient(180deg, rgba(255, 69, 58, 0.22), rgba(255, 69, 58, 0.08));
        border-color: rgba(255, 69, 58, 0.5);
    }
    .ad-pdf-mobile-icon {
        color: #ff7066;
        margin-bottom: 4px;
    }
    .ad-pdf-mobile-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--ad-text);
        letter-spacing: -0.01em;
    }
    .ad-pdf-mobile-hint {
        font-size: 13px;
        line-height: 1.55;
        color: var(--ad-text-muted);
        max-width: 380px;
    }
    .ad-pdf-mobile-cta {
        margin-top: 6px;
        padding: 10px 20px;
        background: #ff453a;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.01em;
        border-radius: var(--ad-r-full);
        box-shadow: 0 8px 20px rgba(255, 69, 58, 0.35);
    }
    .ad-pdf-actions {
        padding: 10px 12px;
        border-top: none;
        background: transparent;
        justify-content: center;
    }
    .ad-pdf-action { font-size: 12.5px; padding: 7px 12px; }
}

/* Marker variant — área aproximada (más sutil que el pin exacto) */
.ad-marker-area {
    width: 14px !important;
    height: 14px !important;
    background: #5ac8fa !important;
    border-radius: 50% !important;
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(90, 200, 250, 0.6);
    animation: ad-marker-area-pulse 2400ms ease-in-out infinite;
}
@keyframes ad-marker-area-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 0.95; transform: scale(1.15); }
}

/* Etiqueta "área aproximada" debajo del mapa */
.ad-s-coords-approx {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    margin: 10px 0 0;
    text-align: left;
    justify-content: center;
}
.ad-s-coords-flag {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.ad-s-coords-flag .ad-flag-img {
    width: 22px;
    height: auto;
    border-radius: 3px;
    vertical-align: middle;
    display: inline-block;
}
.ad-s-coords-note {
    font-size: 11px;
    color: #a1a8c0;
    font-style: italic;
    letter-spacing: 0.2px;
}

/* Bloque ubicación textual (cuando NO hay coords) */
.ad-s-loc-text {
    text-align: center;
    padding: 20px 12px;
    background: var(--ad-bg-elevated);
    border-radius: var(--ad-r-md);
    border: 1px dashed var(--ad-line);
    color: var(--ad-text);
}
.ad-s-loc-text-value {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}
.ad-s-loc-text-note {
    font-size: 11px;
    color: #a1a8c0;
    margin: 0;
    line-height: 1.5;
}

/* Share grid */
.ad-s-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.ad-s-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--ad-bg-elevated);
    border: 1px solid var(--ad-line);
    border-radius: var(--ad-r-md);
    color: var(--ad-text); font-size: 12px; font-weight: 600;
    text-decoration: none;
    transition: background 220ms ease, border-color 220ms ease, transform 220ms var(--ad-ease-out);
    cursor: pointer;
}
.ad-s-share-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--ad-accent);
    transform: translateY(-1px);
}
.ad-s-share-btn svg { flex-shrink: 0; }
.ad-s-share-btn.is-copied {
    background: rgba(48,209,88,0.18);
    border-color: var(--ad-success);
    color: var(--ad-success);
}

/* ============================================================
   LIGHTBOX — fullscreen image viewer
   ============================================================ */
/* Solo aplica display:flex cuando el lightbox NO está hidden.
   Sin :not([hidden]), display:flex sobrescribe el display:none del atributo
   hidden → el lightbox quedaba siempre visible cubriendo TODA la página
   con backdrop negro al 95% (look "todo en negro"). */
.ad-lb[hidden] { display: none !important; }
.ad-lb {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
    padding: 40px;
    animation: ad-lb-in 320ms var(--ad-ease-out) both;
}
@keyframes ad-lb-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.ad-lb-img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    box-shadow: 0 32px 80px rgba(0,0,0,0.8);
    animation: ad-lb-img-in 480ms var(--ad-ease-out) both;
}
@keyframes ad-lb-img-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.ad-lb-close {
    position: absolute; top: 20px; right: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 220ms ease, transform 220ms var(--ad-ease-out);
}
.ad-lb-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ad-s-shell { grid-template-columns: 1fr; gap: 32px; }
    .ad-s-aside { position: static; }
    .ad-s-thumbs { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}
@media (max-width: 768px) {
    .ad-s-header { padding: 64px 20px 24px; }
    .ad-s-shell { padding: 32px 20px 60px; gap: 40px; }
    .ad-s-main { gap: 40px; }
    .ad-s-stage { border-radius: var(--ad-r-lg); }
    .ad-s-stage-nav { width: 36px; height: 36px; }
    .ad-s-thumbs { grid-template-columns: repeat(4, 1fr); }
    .ad-donate-btn { min-width: 0; width: 100%; }
    .ad-support-inner { padding: 28px 24px; }
    .ad-disclaimer { grid-template-columns: 1fr; padding: 20px 22px; gap: 12px; }
    .ad-s-meta-row { gap: 6px; }
    .ad-s-meta { font-size: 12px; padding: 4px 9px; }
    .ad-lb { padding: 20px; }
    .ad-lb-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}
