/* ═══════════════════════════════════════════════════════════════
   ULIC · RESULTADOS REALES — vídeo testimonios
   Shared styles for the "Resultados reales" section across exam pages.
   Uses the site design tokens (--ink, --accent, --rule, f-display…).
   ═══════════════════════════════════════════════════════════════ */

.tv-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gutter); align-items: stretch; }
.tv-grid--solo { grid-template-columns: minmax(0, 880px); justify-content: center; }
.tv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--gutter); }
/* Collage row: three compact video cards under the .tv-duo pair (IELTS Academic). */
.tv-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: var(--gutter); align-items: stretch; }
.tv-trio .tv-body { padding: 24px 26px 22px; }
.tv-trio .tv-body blockquote { font-size: 19px; line-height: 1.34; }
.tv-trio .tv-body .quote-mark { font-size: 46px; margin-bottom: 14px; }

.tv-card { background: #fff; border: 1px solid var(--rule-strong); display: flex; flex-direction: column; }
.tv-frame { position: relative; aspect-ratio: 16 / 10; background: var(--ulic-blue-tint); overflow: hidden; }
.tv-frame image-slot { width: 100%; height: 100%; display: block; }
.tv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: rgba(4,67,152,0.92); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; transition: background 140ms, transform 140ms; }
.tv-play:hover { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.tv-play svg { width: 22px; height: 22px; margin-left: 3px; }
.tv-badge { position: absolute; z-index: 2; /* above the absolutely-positioned video preview */ left: 14px; top: 14px; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--letter-mono); text-transform: uppercase; font-weight: 600; padding: 7px 12px; }
.tv-flag { position: absolute; right: 14px; bottom: 14px; background: rgba(255,255,255,0.92); color: var(--ink-soft); font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--letter-mono); text-transform: uppercase; padding: 5px 9px; font-weight: 600; }

.tv-body { padding: 30px 32px 26px; display: flex; flex-direction: column; flex: 1; }
.tv-body .quote-mark { font-family: var(--f-display); font-size: 60px; line-height: 0.5; color: var(--accent); margin-bottom: 18px; font-weight: 500; }
.tv-body blockquote { margin: 0 0 20px; font-family: var(--f-display); font-weight: 500; font-size: clamp(21px, 2vw, 27px); line-height: 1.28; letter-spacing: var(--letter-display); color: var(--ink); text-wrap: pretty; }
.tv-body blockquote em { font-style: italic; font-weight: 400; }
.tv-ctx { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 24px; }

.tv-attr { margin-top: auto; border-top: 1px solid var(--rule); padding-top: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tv-attr .who { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.tv-attr .who span { color: var(--ink-soft); font-weight: 400; }
.tv-attr .what { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: var(--letter-mono); text-transform: uppercase; color: var(--accent-deep); font-weight: 600; white-space: nowrap; }

.tv-side { display: flex; flex-direction: column; gap: var(--gutter); }
/* Quote cards hug their content: they must NOT stretch to fill the column, and the
   attribution must not be pushed to the bottom by .tv-attr's auto margin (that stays
   for the tall .tv-body video card). Fill the column with more cards, not with air. */
.tq-card { background: #fff; border: 1px solid var(--rule-strong); padding: 26px 28px 22px; display: flex; flex-direction: column; flex: 0 0 auto; }
.tq-card .tv-attr { margin-top: 0; }
.tq-card .quote-mark { font-family: var(--f-display); font-size: 46px; line-height: 0.5; color: var(--accent); margin-bottom: 14px; font-weight: 500; }
.tq-card blockquote { margin: 0 0 20px; font-family: var(--f-display); font-weight: 500; font-size: 19px; line-height: 1.34; letter-spacing: var(--letter-display); color: var(--ink); text-wrap: pretty; }
.tq-card blockquote em { font-style: italic; font-weight: 400; }
.tq-strip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--gutter); }

.tv-all { margin-top: 40px; display: flex; justify-content: flex-end; }
.tv-all a { font-family: var(--f-mono); font-size: 12px; letter-spacing: var(--letter-mono); text-transform: uppercase; color: var(--accent-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--accent); padding-bottom: 4px; transition: gap 140ms; }
.tv-all a:hover { gap: 16px; }

/* Results strip (mono chips) — pages without a cleared video story yet */
.rr-strip { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 26px 0; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.rr-chip { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: var(--letter-mono); text-transform: uppercase; color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.rr-chip::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.rr-note { margin: 24px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.rr-note a { color: var(--accent-deep); font-weight: 600; border-bottom: 1px solid var(--accent); }

@media (max-width: 980px) {
  .tv-grid, .tv-grid--solo, .tv-duo, .tv-trio { grid-template-columns: 1fr; }
  .tq-strip { grid-template-columns: 1fr; }
}

/* ═══ Testimonios page — filterable grid ═══ */
.tst-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.tst-filter { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: var(--letter-mono); text-transform: uppercase; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid var(--rule-strong); padding: 11px 18px; cursor: pointer; transition: background 140ms, border-color 140ms, color 140ms; }
.tst-filter:hover { border-color: var(--ink); color: var(--ink); }
.tst-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.tst-card { background: #fff; border: 1px solid var(--rule-strong); display: flex; flex-direction: column; }
.tst-card.is-hidden { display: none; }
.tst-frame { position: relative; aspect-ratio: 4 / 3; background: var(--ulic-blue-tint); overflow: hidden; }
.tst-frame image-slot { width: 100%; height: 100%; display: block; }
.tst-body { padding: 24px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.tst-body .quote-mark { font-family: var(--f-display); font-size: 44px; line-height: 0.5; color: var(--accent); margin-bottom: 12px; font-weight: 500; }
.tst-body blockquote { margin: 0 0 18px; font-family: var(--f-display); font-weight: 500; font-size: 18px; line-height: 1.34; letter-spacing: var(--letter-display); color: var(--ink); text-wrap: pretty; }
.tst-body blockquote em { font-style: italic; font-weight: 400; }
.tst-note { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; font-style: italic; }
.tst-attr { margin-top: auto; border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.tst-attr .who { font-size: 14px; font-weight: 600; color: var(--ink); }
.tst-attr .who span { color: var(--ink-soft); font-weight: 400; }
.tst-link { font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--letter-mono); text-transform: uppercase; color: var(--accent-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: gap 140ms; }
.tst-link:hover { gap: 13px; }
.tst-empty { padding: 40px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: var(--letter-mono); text-transform: uppercase; color: var(--ink-mute); display: none; }
@media (max-width: 860px) { .tst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tst-grid { grid-template-columns: 1fr; } }

/* ═══ Real video · muted card previews + interview lightbox ═══ */
.tv-frame video.tv-preview,
.tst-frame video.tv-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.interview-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.interview-modal.open { display: block; }
.im-backdrop { position: absolute; inset: 0; background: rgba(12,22,40,0.72); }
.im-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(880px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-top: 4px solid var(--accent); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
}
.im-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; background: rgba(255,255,255,0.9); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 140ms; }
.im-x:hover { background: var(--accent); color: #fff; }
.im-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.im-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.im-cap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px 24px; border-top: 1px solid var(--rule); }
.im-cap .im-mark { font-family: var(--f-display); font-size: 56px; line-height: 0.5; color: var(--accent); }
.im-cap .im-l { display: flex; flex-direction: column; gap: 4px; }
.im-cap .im-t { font-family: var(--f-display); font-size: 19px; font-weight: 500; letter-spacing: var(--letter-display); color: var(--ink); }
.im-cap .im-s { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: var(--letter-mono); text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.im-cap .im-stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; }
@media (max-width: 580px) { .im-cap { grid-template-columns: 1fr auto; } .im-cap .im-mark { display: none; } }
