/* =====================================================================
   Afectados Moves III · 2025
   Hoja de estilos única. Sin frameworks, sin dependencias externas.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #eef3f6;
  --ink: #0d1b26;
  --ink-soft: #33475a;
  --muted: #56697a;
  --line: #d9e2e9;
  --line-strong: #bfced9;

  --brand: #0b4f6c;
  --brand-strong: #083d54;
  --brand-soft: #e3eff4;
  --accent: #c2410c;
  --accent-strong: #9a3309;
  --accent-soft: #fdece3;
  --ok: #0f766e;
  --warn-bg: #fff6e6;
  --warn-line: #f0c27b;

  --btn-ink: #fff;
  --btn-accent-ink: #fff;

  --shadow-sm: 0 1px 2px rgba(13, 27, 38, .06), 0 1px 3px rgba(13, 27, 38, .04);
  --shadow-md: 0 4px 12px rgba(13, 27, 38, .07), 0 12px 28px rgba(13, 27, 38, .05);
  --shadow-lg: 0 24px 60px rgba(13, 27, 38, .12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --wrap: 1120px;
  --wrap-narrow: 760px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.07rem);
  --step-1: clamp(1.2rem, 1.12rem + .35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.28rem + .75vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.55rem + 2.8vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1117;
    --surface: #101c25;
    --surface-2: #16252f;
    --ink: #e9f0f5;
    --ink-soft: #c3d0da;
    --muted: #96a8b6;
    --line: #22333f;
    --line-strong: #2e4553;

    --brand: #7cc4e0;
    --brand-strong: #a5d9ee;
    --brand-soft: #122d3a;
    --accent: #ff8f5e;
    --accent-strong: #ffab84;
    --accent-soft: #33180e;
    --ok: #5eead4;
    --warn-bg: #2a2110;
    --warn-line: #6b5320;

    --btn-ink: #062f42;
    --btn-accent-ink: #2a1005;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); }

img, svg { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .4em; }

strong { font-weight: 700; }
small { font-size: var(--step--1); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--btn-accent-ink); }

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section--brand {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(124, 196, 224, .22) 0%, transparent 55%),
    linear-gradient(135deg, #0b4f6c 0%, #083d54 60%, #062f42 100%);
  color: #eaf4f9;
}
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand p { color: #cfe3ec; }
.section--brand a { color: #fff; }
.section--brand .section-head p:not(.kicker),
.section--brand .small.muted { color: #cfe3ec; }

.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.kicker) { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-bottom: .9em;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.section--brand .kicker { color: #ffb38f; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- 4. Accesibilidad ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--accent);
  color: var(--btn-accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: var(--btn-accent-ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.brand:hover { color: var(--brand); }
.brand__mark {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand);
  color: var(--btn-ink);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__text { display: flex; flex-direction: column; font-size: .95rem; }
.brand__text small {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav li { margin: 0; }
.nav a {
  display: inline-block;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"],
.nav a[aria-current="location"] { background: var(--brand-soft); color: var(--brand); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    padding: 12px clamp(16px, 4vw, 32px) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .site-header .header-cta { display: none; }
}

/* ---------- 6. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--btn-ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  color: var(--btn-ink);
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

.btn--accent { background: var(--accent); color: var(--btn-accent-ink); }
.btn--accent:hover { background: var(--accent-strong); color: var(--btn-accent-ink); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--brand);
  color: var(--brand);
}

.btn--light {
  background: #fff;
  color: #083d54;
}
.btn--light:hover { background: #eaf4f9; color: #083d54; }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-row--center { justify-content: center; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 84px) clamp(40px, 5vw, 68px);
  background:
    radial-gradient(80% 90% at 85% 0%, rgba(11, 79, 108, .10) 0%, transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(194, 65, 12, .07) 0%, transparent 60%),
    var(--bg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  opacity: .35;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: .35em; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__lead strong { color: var(--ink); }

.hero .btn-row { margin-top: 28px; }

.hero__question {
  margin: 28px 0 0;
  font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem);
  font-weight: 800;
  color: var(--ink);
}
.hero__question + .btn-row { margin-top: 12px; }

/* Tarjeta de dato destacado del hero */
.hero__card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--accent), #e8a33d);
}
.hero__card-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__time {
  display: block;
  margin: 6px 0 2px;
  font-size: clamp(2.4rem, 2rem + 2.4vw, 3.6rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--accent);
}
.hero__claim {
  display: block;
  margin: 8px 0 2px;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--accent);
}

.hero__card p {
  margin-top: 10px;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.5;
}
.hero__card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero__card-foot svg { width: 16px; height: 16px; color: var(--brand); }
.hero__card-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
.hero__card-foot a:hover { text-decoration: underline; }

/* ---------- 8. Cifras ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  list-style: none;
}
.stats li {
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--surface);
}
.stats b {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--ink);
}
.stats span {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--muted);
}
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- 9. Tarjetas ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--accent { background: var(--accent-soft); color: var(--accent); }
.card h3 { margin-bottom: .4em; color: var(--ink); }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.card p:last-child { margin-bottom: 0; }

.card--link { text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--brand);
}
.card__more svg { width: 15px; height: 15px; transition: transform .15s ease; }
.card--link:hover .card__more svg { transform: translateX(3px); }

/* ---------- 10. Avisos ---------- */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.callout svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.callout p { font-size: .93rem; line-height: 1.55; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--accent); background: var(--warn-bg); border-color: var(--warn-line); }
.callout--warn svg { color: var(--accent); }
.callout--warn p { color: var(--ink-soft); }
.callout--plain { border-left-color: var(--line-strong); background: var(--surface-2); }
.callout--plain svg { color: var(--muted); }
.callout--centered { max-width: 760px; margin-inline: auto; }
.list-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.5;
}
.list-links a { color: var(--brand); font-weight: 600; }

/* ---------- 11. Cronología ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 36px;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px; left: 9px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--line-strong));
}
.timeline > li {
  position: relative;
  margin: 0 0 32px;
  padding: 0 0 0 4px;
}
.timeline > li:last-child { margin-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  top: 4px; left: -36px;
  width: 20px; height: 20px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 2px var(--line-strong);
}
.timeline > li.is-key::before {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 8px var(--accent-soft);
}
.timeline__date {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.timeline > li.is-key .timeline__date { color: var(--accent); font-weight: 900; }
.timeline h3 { font-size: 1.15rem; margin-bottom: .4em; color: var(--ink); font-weight: 700; }
.timeline p { color: var(--ink); font-size: 1rem; line-height: 1.65; }
.timeline p:last-child { margin-bottom: 0; }
.timeline .src { font-size: .82rem; color: var(--muted); }
.timeline .src a { color: var(--accent); text-decoration: underline; }

/* Timeline sobre fondo oscuro (section--brand) */
.section--brand .timeline__date { color: #cfe3ec; }
.section--brand .timeline > li.is-key .timeline__date { color: #ffb38f; }
.section--brand .timeline h3 { color: #ffffff; }
.section--brand .timeline p { color: #cfe3ec; }
.section--brand .timeline .src { color: #a0c4d4; }
.section--brand .timeline .src a { color: #ffffff; }
.section--brand .timeline > li::before {
  border-color: #eaf4f9;
  background: #8fb8cc;
  box-shadow: 0 0 0 2px #8fb8cc;
}
.section--brand .timeline > li.is-key::before {
  background: #ffb38f;
  box-shadow: 0 0 0 2px #ffb38f, 0 0 0 8px rgba(255, 179, 143, .25);
}
.section--brand .timeline::before {
  background: linear-gradient(to bottom, #8fb8cc, #5a8fa8);
}

/* ---------- 12. Lista de comprobación ---------- */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  margin: 0 0 2px;
  padding: 14px 16px 14px 48px;
  border-radius: var(--radius-sm);
  font-size: .96rem;
  line-height: 1.5;
}
.checklist li:nth-child(odd) { background: var(--surface-2); }
.checklist li::before {
  content: "";
  position: absolute;
  top: 15px; left: 16px;
  width: 20px; height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
.checklist li::after {
  content: "";
  position: absolute;
  top: 21px; left: 21px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg) scale(.9);
}

/* ---------- 13. Noticias ---------- */
.news-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item__date {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}
.news-item__date strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.news-item h3 { font-size: 1.08rem; margin-bottom: .3em; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--brand); text-decoration: underline; }
.news-item p { font-size: .93rem; color: var(--muted); line-height: 1.55; margin-bottom: .5em; }
.news-item .src { font-size: .8rem; }
@media (max-width: 560px) {
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .news-item__date { display: flex; align-items: baseline; gap: 8px; }
  .news-item__date strong { font-size: 1rem; }
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.tag--accent { background: var(--accent-soft); color: var(--accent); }
.tag--muted { background: var(--surface-2); color: var(--muted); }

.src { color: var(--muted); }
.src a { color: var(--muted); }
.src a:hover { color: var(--brand); }

/* ---------- 14. Banda CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(124, 196, 224, .25) 0%, transparent 55%),
    linear-gradient(135deg, #0b4f6c 0%, #083d54 65%, #062f42 100%);
  color: #eaf4f9;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #cfe3ec; max-width: 56ch; }
.cta-band .btn-row { margin-top: 24px; }
.cta-band .checklist li { color: #eaf4f9; background: rgba(255, 255, 255, .06); }
.cta-band .checklist li:nth-child(odd) { background: rgba(255, 255, 255, .12); }
.cta-band .checklist li::before { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); }
.cta-band .checklist li::after { border-color: #5eead4; }

/* ---------- 15. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
  transition: transform .18s ease, background .18s ease;
}
.faq details[open] summary::after {
  content: "−";
  background: var(--brand);
  border-color: var(--brand);
  color: var(--btn-ink);
}
.faq details > div {
  padding: 0 40px 22px 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.65;
}
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- 16. Prosa (artículos y legales) ---------- */
.prose { max-width: 72ch; }
.prose a, .footer-grid a { overflow-wrap: anywhere; }
.prose > h2 { margin-top: 2.2em; }
.prose > h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
}
.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: .88em;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 28px;
  font-size: .82rem;
  color: var(--muted);
}
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.meta-line svg { width: 14px; height: 14px; }

/* ---------- 17. Migas ---------- */
.breadcrumbs {
  padding-top: 20px;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

/* ---------- 18. Cabecera de página interior ---------- */
.page-head {
  padding-block: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(11, 79, 108, .08) 0%, transparent 60%),
    var(--bg);
}
.page-head h1 { font-size: var(--step-3); max-width: 22ch; }
.page-head p {
  max-width: 65ch;
  font-size: clamp(1rem, .98rem + .25vw, 1.12rem);
  color: var(--muted);
}

/* ---------- 19. Tabla ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
caption {
  padding: 14px 18px;
  text-align: left;
  font-size: .8rem;
  color: var(--muted);
}
th, td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }

/* ---------- 20. Plantilla copiable ---------- */
.template {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.template__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.template__bar h3 { margin: 0; font-size: .9rem; }
.template pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- 21. Compartir ---------- */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.share__label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.share a, .share button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.share a:hover, .share button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.share svg { width: 15px; height: 15px; }

/* ---------- 22. Footer ---------- */
.site-footer {
  padding-block: clamp(40px, 5vw, 64px) 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .8fr));
  gap: 40px;
}
.footer-grid h2,
.footer-title {
  margin: 0 0 .5em;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-about p { color: var(--muted); max-width: 42ch; line-height: 1.6; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 23. Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 24px; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem); color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.nowrap { white-space: nowrap; }

/* ---------- 24. Impresión ---------- */
@media print {
  .site-header, .site-footer, .share, .btn, .nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding: 0; }
  .template pre { white-space: pre-wrap; border: 1px solid #999; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- 25. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 26. Vídeo ---------- */
.video-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

/* En móvil, el vídeo de "La promesa" va justo debajo del titular */
.video-mobile { display: none; }
@media (max-width: 640px) {
  .video-desktop { display: none; }
  .video-mobile { display: block; }
}
.video-card video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-card__caption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}
.section--brand .callout a { color: var(--brand); }
.section--brand .palabra-abandonan { color: #ffb38f; }
.palabra-abandonan { color: var(--accent); }

/* Ajustes de la portada */
#que-ha-pasado .timeline h3 { font-size: var(--step-1); }
#te-suena .cta-band { border: 1px solid rgba(255, 255, 255, .14); }
#te-suena .cta-band .kicker { color: #ffb38f; }

/* Causa → efecto en "La doble pérdida" */
#doble-perdida .causa-efecto {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
#doble-perdida .causa-efecto li {
  margin: 0;
  padding: 10px 16px 10px 18px;
  border-left: 3px solid #ffb38f;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, .07);
  color: #cfe3ec;
  font-size: 1rem;
  line-height: 1.55;
}
#doble-perdida .causa-efecto li.is-key {
  background: rgba(255, 179, 143, .16);
}
.causa-efecto__causa { font-weight: 700; color: #fff; }
.causa-efecto__flecha { margin: 0 .35em; color: #ffb38f; font-weight: 800; }
.causa-efecto__efecto { color: #cfe3ec; }
#doble-perdida .resalto { color: #fff; font-weight: 800; }

@media (prefers-color-scheme: dark) {
  .section--brand .card { border-color: rgba(255, 255, 255, .16); }
}
