/* ==========================================================================
   InfoCórdoba · Portal de noticias
   Marca: tokens del kit v1.0 (navy #0B132B, azul #3182F6, celeste #7EC8FF,
   coral #F15A43 solo para alertas). Tipografía de marca: Inter.

   "Liquid glass": aproximación web (backdrop-filter + bordes en capas +
   reflejos). No es el material oficial de Apple, que existe solo en sus
   plataformas. Con prefers-reduced-transparency cae a superficies sólidas.

   Sistema de formas: interactivos = pill (999px) · paneles y tarjetas = 22px
   · imágenes dentro de paneles = 14px.
   Capas (z-index): 1 contenido · 40 barra de progreso · 50 header y tab bar
   · 60 toast.
   ========================================================================== */

:root {
  --navy: #0B132B;
  --blue: #3182F6;
  --blue-text: #185ABA;
  --sky: #7EC8FF;
  --critical: #F15A43;

  --bg: #EDF1F7;
  --ink: #0B132B;
  --text: #253044;
  --muted: #5A6679;
  --hairline: rgb(11 19 43 / .09);
  --surface: rgb(255 255 255 / .62);
  --surface-solid: #FFFFFF;
  --surface-sunk: rgb(11 19 43 / .035);

  --glass-bg: linear-gradient(135deg, rgb(255 255 255 / .74), rgb(255 255 255 / .42));
  --glass-edge: rgb(255 255 255 / .78);
  --glass-inner: rgb(255 255 255 / .9);
  --glass-shadow: 0 1px 1px rgb(11 19 43 / .04), 0 12px 40px -12px rgb(26 52 102 / .22);
  --glass-blur: blur(22px) saturate(170%);

  --r-pill: 999px;
  --r-panel: 22px;
  --r-media: 14px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #070D1C;
  --ink: #F1F5FD;
  --text: #CBD5E6;
  --muted: #8E9BB3;
  --blue-text: #95C7FF;
  --hairline: rgb(255 255 255 / .08);
  --surface: rgb(20 32 58 / .55);
  --surface-solid: #111C33;
  --surface-sunk: rgb(255 255 255 / .04);
  --glass-bg: linear-gradient(135deg, rgb(40 58 96 / .55), rgb(14 24 46 / .45));
  --glass-edge: rgb(255 255 255 / .14);
  --glass-inner: rgb(255 255 255 / .16);
  --glass-shadow: 0 1px 1px rgb(0 0 0 / .2), 0 18px 50px -14px rgb(0 0 0 / .6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070D1C;
    --ink: #F1F5FD;
    --text: #CBD5E6;
    --muted: #8E9BB3;
    --blue-text: #95C7FF;
    --hairline: rgb(255 255 255 / .08);
    --surface: rgb(20 32 58 / .55);
    --surface-solid: #111C33;
    --surface-sunk: rgb(255 255 255 / .04);
    --glass-bg: linear-gradient(135deg, rgb(40 58 96 / .55), rgb(14 24 46 / .45));
    --glass-edge: rgb(255 255 255 / .14);
    --glass-inner: rgb(255 255 255 / .16);
    --glass-shadow: 0 1px 1px rgb(0 0 0 / .2), 0 18px 50px -14px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Luz ambiente: le da al vidrio algo para refractar. Fija y sin eventos. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 120vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vw 38vw at 12% 8%, rgb(126 200 255 / .38), transparent 70%),
    radial-gradient(38vw 34vw at 92% 18%, rgb(49 130 246 / .20), transparent 70%),
    radial-gradient(50vw 30vw at 60% 95%, rgb(126 200 255 / .16), transparent 70%);
}
:root[data-theme="dark"] body::before { opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { opacity: .55; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgb(49 130 246 / .25); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 70; padding: 10px 16px; border-radius: var(--r-pill); background: var(--navy); color: #fff; }
.skip:focus { top: 16px; }

/* ---------- Vidrio ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-inner), var(--glass-shadow);
}
.glass::after { /* reflejo superior */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .22), transparent 38%);
  mix-blend-mode: soft-light;
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--surface-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass::after { display: none; }
}

/* ---------- Header flotante ---------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin-top: 12px;
}
.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 0 8px 0 18px;
  border-radius: var(--r-pill);
}
.brand { display: flex; align-items: center; height: 100%; flex: none; }
.brand img { height: 36px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-sunk); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.bar-actions { display: flex; align-items: center; gap: 6px; flex: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-sunk); }
.icon-btn:active { transform: scale(.94); }
.theme-toggle .ph-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ph-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ph-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ph-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ph-moon { display: inline; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--navy);
  color: #F5F7FA;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 8px 22px -10px rgb(11 19 43 / .55);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 12px 28px -10px rgb(11 19 43 / .6); }
:root[data-theme="dark"] .btn-primary { background: #F1F5FD; color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: #F1F5FD; color: var(--navy); } }
.btn-glass { color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Banda de última hora ---------- */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 6px 16px 6px 6px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink);
  transition: transform .3s var(--ease);
}
.alert:hover { transform: translateY(-1px); }
.alert-tag {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--critical);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}
.alert-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.alert i { color: var(--muted); flex: none; }

/* ---------- Tipografía editorial ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-text);
}
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.025em; text-wrap: balance; }
.h-display { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.06; font-weight: 820; letter-spacing: -.035em; }
.h-section { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; font-weight: 780; }
.dek { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: var(--text); max-width: 60ch; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta i { font-size: 15px; vertical-align: -2px; margin-right: 4px; }

/* ---------- Home: nota principal ---------- */
main { padding-bottom: 120px; }
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}
.lead-story {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}
.lead-story > img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: var(--r-panel);
  background: var(--navy);
}
.lead-panel {
  position: relative;
  margin: -84px 18px 0;
  border-radius: 20px;
  padding: 24px 28px 22px;
  transition: transform .5s var(--ease);
}
.lead-story:hover .lead-panel { transform: translateY(-3px); }
.lead-panel .h-display { margin: 10px 0 12px; }
.lead-panel .dek { margin: 0 0 18px; }

.keys {
  border-radius: var(--r-panel);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.keys h2 { font-size: 20px; font-weight: 760; margin-bottom: 6px; }
.keys-sub { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.quote-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.quote-list li {
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--surface-sunk);
}
.quote-list blockquote { margin: 0 0 8px; font-size: 16px; line-height: 1.45; font-weight: 620; color: var(--ink); text-wrap: pretty; }
.quote-list cite { font-style: normal; font-size: 13px; color: var(--muted); }
.keys .btn { margin-top: auto; align-self: flex-start; }
.keys .quote-list { margin-bottom: 22px; }

/* ---------- Home: seguimiento (scroll horizontal) ---------- */
.block { margin-top: clamp(64px, 9vw, 104px); }
.block-head { margin-bottom: 22px; }
.block-head p { margin: 8px 0 0; color: var(--muted); max-width: 58ch; }
.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  margin: 0 -4px;
  scrollbar-width: thin;
}
.step {
  scroll-snap-align: start;
  border-radius: var(--r-panel);
  padding: 10px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-media { aspect-ratio: 16 / 10; border-radius: var(--r-media); overflow: hidden; background: var(--surface-sunk); }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-media.is-empty { display: grid; place-items: center; color: var(--muted); font-size: 34px; border: 1.5px dashed var(--hairline); background: transparent; }
.step-body { padding: 0 10px; }
.step time { font-size: 13px; font-weight: 700; color: var(--blue-text); }
.step h3 { font-size: 18px; line-height: 1.3; font-weight: 720; margin: 6px 0 8px; }
.step p { margin: 0; font-size: 15px; color: var(--text); }
.step.is-pending h3 { color: var(--muted); }

/* ---------- Home: cita a pantalla completa ---------- */
.quote-band {
  position: relative;
  border-radius: calc(var(--r-panel) + 6px);
  overflow: hidden;
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  background: var(--navy);
}
.quote-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85);
}
.quote-band::before { content: ""; position: absolute; inset: 0; background: rgb(11 19 43 / .35); }
.quote-card {
  position: relative;
  max-width: 760px;
  border-radius: var(--r-panel);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}
.quote-card blockquote {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.18;
  font-weight: 780;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.quote-card figcaption { color: var(--muted); font-size: 15px; }
.quote-card figcaption strong { color: var(--ink); font-weight: 650; }

/* ---------- Home: cómo trabajamos ---------- */
.principles {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.principles .dek { margin: 14px 0 22px; }
.principle-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.principle-list li { border-radius: var(--r-panel); padding: 22px; }
.principle-list li:nth-child(2) { transform: translateY(28px); }
.principle-list li:nth-child(4) { transform: translateY(28px); }
.principle-list i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 21px;
  color: var(--blue-text);
  background: rgb(49 130 246 / .1);
}
.principle-list h3 { font-size: 17px; font-weight: 720; margin-bottom: 6px; }
.principle-list p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }

/* ---------- CTA fuentes ---------- */
.tip {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-panel) + 6px);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(60% 120% at 100% 0%, rgb(126 200 255 / .35), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgb(49 130 246 / .35), transparent 60%),
    var(--navy);
  color: #E8EEF8;
}
.tip h2 { color: #F5F7FA; }
.tip p { margin: 10px 0 0; max-width: 52ch; color: #BFCBE0; }
.tip .btn-primary { background: #F5F7FA; color: var(--navy); }
.tip-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: #9FB0CC; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; padding: 40px 0 120px; border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-grid p { margin: 0; font-size: 14px; color: var(--muted); max-width: 36ch; }
.footer-grid h2 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { font-size: 14.5px; font-weight: 550; color: var(--text); }
.footer-grid a:hover { color: var(--blue-text); }
.footer-base { margin-top: 36px; font-size: 13px; color: var(--muted); }

/* ---------- Tab bar (móvil) ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  display: none;
  gap: 2px;
  padding: 6px;
  border-radius: var(--r-pill);
}
.tabbar a {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 70px;
  padding: 7px 10px 6px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tabbar a i { font-size: 22px; }
.tabbar a { white-space: nowrap; }
.tabbar a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }

/* ---------- Nota ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 40;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--sky), var(--blue));
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { to { transform: scaleX(1); } }
  }
}
.article-head { max-width: 860px; margin: 48px auto 0; text-align: left; }
.article-head .h-display { font-size: clamp(32px, 5vw, 58px); margin: 14px 0 18px; }
.article-head .dek { font-size: clamp(17px, 1.7vw, 20px); max-width: 64ch; margin: 0 0 22px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.share { display: flex; gap: 6px; }
.share .icon-btn { background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.share .icon-btn:hover { background: var(--surface-solid); }

.article-hero { max-width: 1080px; margin: 36px auto 0; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-panel); }
figcaption.caption { margin-top: 10px; font-size: 13px; color: var(--muted); }

.prose { max-width: 680px; margin: 44px auto 0; font-size: 18px; line-height: 1.72; color: var(--text); }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose p { text-wrap: pretty; }
.prose > h2 { font-size: 26px; line-height: 1.2; font-weight: 780; margin-top: 2em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose > figure, .prose > .pull { margin-block: 1.8em; }
.prose figure img { border-radius: var(--r-media); width: 100%; }
.pull {
  margin-inline: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--blue);
  font-size: 23px;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.pull cite { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; font-style: normal; letter-spacing: 0; color: var(--muted); }

.note {
  border-radius: var(--r-panel);
  padding: 22px 24px;
  font-size: 16px;
  line-height: 1.6;
}
.note h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 720; margin-bottom: 8px; letter-spacing: -.01em; }
.note h3 i { color: var(--blue-text); font-size: 19px; }
.note p { margin: 0; }
.note.is-pending { border: 1.5px dashed var(--critical); background: rgb(241 90 67 / .07); box-shadow: none; }
.note.is-pending h3 i { color: var(--critical); }

.evidence { display: grid; gap: 10px; }
.evidence-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 15.5px;
  line-height: 1.5;
}
.level { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.level.is-strong { color: #16794A; }
.level.is-mid { color: #9A6A00; }
.level.is-weak { color: #B23A27; }
:root[data-theme="dark"] .level.is-strong { color: #6FD9A2; }
:root[data-theme="dark"] .level.is-mid { color: #F2C55C; }
:root[data-theme="dark"] .level.is-weak { color: #FF9C8A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .level.is-strong { color: #6FD9A2; }
  :root:not([data-theme="light"]) .level.is-mid { color: #F2C55C; }
  :root:not([data-theme="light"]) .level.is-weak { color: #FF9C8A; }
}
.open-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.note h3 + p { margin-top: 0; }
.open-list li { display: flex; gap: 12px; align-items: baseline; }
.open-list i { color: var(--blue-text); flex: none; transform: translateY(2px); }

.share-rail {
  width: fit-content;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  z-index: 30;
}

/* ---------- Sección ---------- */
.section-head { margin-top: 56px; }
.section-head .dek { margin-top: 12px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 32px; }
.card { border-radius: var(--r-panel); padding: 10px 10px 20px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-3px); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-media); }
.card-body { padding: 0 10px; display: grid; gap: 8px; }
.card h2 { font-size: 20px; line-height: 1.25; font-weight: 740; }
.card p { margin: 0; font-size: 15px; color: var(--text); }
.empty {
  margin-top: 32px;
  border-radius: var(--r-panel);
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 720px;
}
.empty i { font-size: 30px; color: var(--blue-text); }
.empty h2 { font-size: 24px; font-weight: 760; }
.empty p { margin: 0 0 8px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); transition: color .25s var(--ease); }
.chip:hover, .chip[aria-current="page"] { color: var(--ink); background: var(--surface-solid); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Aparición al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 10px; }
}
@media (max-width: 960px) {
  .nav, .bar-actions .btn { display: none; }
  .bar { justify-content: space-between; padding-right: 6px; }
  .tabbar { display: flex; }
  .lead { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .tip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-header { top: 8px; margin-top: 8px; }
  .bar { height: 54px; padding-left: 14px; }
  .brand img { height: 30px; }
  .alert { margin-top: 14px; }
  .lead { margin-top: 16px; }
  .lead-story > img { aspect-ratio: 4 / 3; }
  .lead-panel { margin: -48px 10px 0; padding: 20px; }
  .principle-list { grid-template-columns: 1fr; }
  .principle-list li:nth-child(2), .principle-list li:nth-child(4) { transform: none; }
  .quote-band { min-height: 380px; padding: 24px 12px; }
  .prose { font-size: 17px; }
  .pull { font-size: 20px; }
  .evidence-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Clips de video dentro de la nota ---------- */
.prose > .clip { margin-block: 2em; }
.clip {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 12px 22px 12px 12px;
  border-radius: var(--r-panel);
}
.clip video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--r-media);
  background: var(--navy);
}
.clip blockquote { margin: 0 0 10px; font-size: 19px; line-height: 1.38; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.clip p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.5; }
.clip .caption { display: block; font-size: 13px; color: var(--muted); }

/* Índice de la nota */
.toc { border-radius: var(--r-panel); padding: 18px 22px; font-size: 15.5px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); font-weight: 650; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 550; }
.toc a:hover { color: var(--blue-text); }
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .clip { grid-template-columns: 1fr; padding: 10px 10px 18px; }
  .clip video { max-width: 300px; margin-inline: auto; }
  .clip figcaption { padding: 0 8px; }
}
