/* Deck theme on top of Reveal.js core (no Reveal theme is loaded).
   Restyle a deck by editing the variables in :root (and Deck.colors in lib.js
   for colours used from JS). Default preset: dark "innovation lab". */

:root {
  /* Editorial "salmon paper" preset (financial press look) */
  --bg: #fff1e5;
  --bg-2: #f6e2d0;
  --panel: rgba(255, 255, 255, 0.42);
  --panel-strong: rgba(51, 48, 46, 0.07);
  --line: rgba(51, 48, 46, 0.18);
  --line-strong: rgba(51, 48, 46, 0.38);
  --text: #33302e;
  --text-2: #4f4a46;
  --muted: #7a6f67;
  --heading: #1a1817;

  /* Accents: blue = investing / the protagonist; claret = inflation / the problem; teal = context */
  --accent: #0f5499;
  --accent-2: #009080;
  --warm: #990f3d;
  --gold: #d08a00;
  --accent-rgb: 15, 84, 153;
  --warm-rgb: 153, 15, 61;

  /* Chart marks: validated categorical order on #fff1e5 (blue, claret, teal, gold) */
  --mark-a: #0f5499;
  --mark-b: #990f3d;
  --mark-c: #009080;
  --mark-d: #d08a00;

  /* Status: always shipped with an icon + label, never colour alone */
  --good: #2e7d32;
  --warn: #b26a00;
  --bad: #b3261e;

  --bg-dot-a: 15, 84, 153;
  --bg-dot-b: 153, 15, 61;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

html,
body {
  background: var(--bg);
}

/* ---------- Background layers (remove from index.html for a flat style) ---------- */

#bg-field,
.bg-grid,
.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

#bg-field {
  inset: 0;
}

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
}

.bg-glow {
  inset: -20%;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb), 0.1), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(167, 139, 250, 0.1), transparent 45%);
}

.reveal-viewport {
  background: transparent;
}

/* ---------- Reveal base ---------- */

.reveal {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  z-index: 1;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  height: 100%;
  padding: 64px 88px 56px;
  box-sizing: border-box;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  font-family: var(--font-display);
  color: var(--heading);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.reveal h1 {
  font-size: 104px;
  font-weight: 700;
}

.reveal h2 {
  font-size: 54px;
  font-weight: 600;
  margin-bottom: 14px;
}

.reveal h3 {
  font-size: 32px;
  font-weight: 600;
}

.reveal p {
  margin: 0 0 14px;
  line-height: 1.45;
}

.reveal ul,
.reveal ol {
  margin: 0;
  padding-left: 1.1em;
}

.reveal li {
  margin: 0.32em 0;
  line-height: 1.4;
}

.reveal li::marker {
  color: var(--accent);
}

.reveal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
}

/* Reveal's reset.css removes italics; restore them for titles and terms. */
.reveal em {
  font-style: italic;
}

.reveal strong {
  color: var(--heading);
  font-weight: 600;
}

.reveal code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.reveal :not(pre) > code {
  background: var(--panel-strong);
  padding: 0.08em 0.36em;
  border-radius: 6px;
}

.reveal .controls,
.reveal .progress {
  color: var(--accent);
}

.reveal .progress {
  height: 3px;
  background: rgba(148, 163, 184, 0.12);
}

.reveal .slide-number {
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Step markers drive animations; they never show anything themselves. */
.reveal .fragment.step {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Layout helpers ---------- */

.kicker {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.lede {
  font-size: 30px;
  color: var(--text-2);
  max-width: 1250px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 22px;
}

.tiny {
  font-size: 17px;
}

.c-accent {
  color: var(--accent);
}

.c-accent-2 {
  color: var(--accent-2);
}

.c-warm {
  color: var(--warm);
}

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.row {
  display: flex;
  gap: 32px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stage {
  position: relative;
  width: 100%;
}

.stage svg {
  display: block;
  overflow: visible;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 28px;
  backdrop-filter: blur(6px);
  position: relative;
}

.card h3 {
  margin-bottom: 10px;
}

.card.glow {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.12), 0 0 40px rgba(var(--accent-rgb), 0.1);
}

.card.glow-warm {
  border-color: rgba(var(--warm-rgb), 0.45);
  box-shadow: 0 0 40px rgba(var(--warm-rgb), 0.08);
}

.card.dim {
  opacity: 0.72;
  border-style: dashed;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  margin-right: 8px;
  white-space: nowrap;
}

.tag.accent {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
}

.tag.warm {
  border-color: rgba(var(--warm-rgb), 0.5);
  color: var(--warm);
}

/* One line at the bottom of the slide for sources and caveats. Keep it short. */
.footnote {
  position: absolute;
  left: 88px;
  right: 88px;
  bottom: 26px;
  font-size: 15px;
  color: var(--muted);
}

.callout {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 22px;
  font-size: 28px;
  line-height: 1.4;
  color: var(--text);
}

.callout.warm {
  border-color: var(--warm);
}

.big-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.35);
}

/* ---------- Code / JSON ---------- */

.code {
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.5;
  background: rgba(3, 7, 15, 0.75);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  white-space: pre;
  color: #c9d5e6;
  overflow: hidden;
  position: relative;
}

.code .k {
  color: #7dd3fc;
}

.code .s {
  color: #fcd34d;
}

.code .n {
  color: #f0abfc;
}

.code .p {
  color: #64748b;
}

.code .hl {
  background: rgba(var(--accent-rgb), 0.12);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}

.code-title {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-title .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- Bars (HTML) ---------- */

.bars {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 16px;
  align-items: center;
  font-size: 20px;
}

.bars .lbl {
  font-family: var(--font-mono);
  color: var(--text-2);
}

.bars .track {
  height: 14px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
  overflow: hidden;
}

.bars .fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--mark-a);
}

.bars .fill.top {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.6);
}

.bars .val {
  font-family: var(--font-mono);
  min-width: 3.2em;
  text-align: right;
}

/* ---------- Tables ---------- */

.reveal table.tbl {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 21px;
  margin: 0;
}

.reveal table.tbl th,
.reveal table.tbl td {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.32;
}

.reveal table.tbl th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.reveal table.tbl td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
}

.reveal table.tbl td.hl {
  background: rgba(var(--accent-rgb), 0.06);
}

/* ---------- Title and divider slides ---------- */

.title-slide,
.divider {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

.title-slide h1 {
  font-size: 128px;
  line-height: 0.98;
}

.title-slide .sub {
  font-size: 38px;
  color: var(--text-2);
  margin-top: 26px;
  font-family: var(--font-display);
}

.title-slide .tags {
  margin-top: 54px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.title-slide .tags .tag {
  font-size: 19px;
  padding: 7px 16px;
}

.divider .num {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.divider h2 {
  font-size: 92px;
  margin-top: 18px;
}

.divider p {
  font-size: 32px;
  color: var(--text-2);
  margin-top: 18px;
  max-width: 1100px;
}

.replay-hint {
  position: absolute;
  right: 88px;
  bottom: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(125, 138, 160, 0.6);
}

/* Closing "takeaways" list */
.takeaways {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 40px;
}

.takeaways .item {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  font-size: 34px;
  line-height: 1.35;
  color: var(--text-2);
}

.takeaways .n {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.4);
  line-height: 1;
}

/* ---------- Screenshots with annotation boxes ---------- */

.shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.shot img {
  display: block;
  width: 100%;
  margin: 0;
}

.shot-label {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 10, 19, 0.88);
  border-radius: 999px;
  padding: 4px 14px 4px 6px;
}

/* Position with left/top/width/height in % of the image */
.shot-mark {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45);
  z-index: 2;
}

.shot-mark span {
  position: absolute;
  left: -2px;
  top: -30px;
  font-family: var(--font-mono);
  font-size: 15px;
  background: var(--accent);
  color: #021015;
  padding: 2px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.shot-mark.below span {
  top: auto;
  bottom: -30px;
}

.shot-mark.left span {
  top: 4px;
  left: auto;
  right: calc(100% + 10px);
}

/* ---------- Interactive controls ---------- */

.slider-row {
  display: grid;
  grid-template-columns: 170px 1fr 80px;
  gap: 18px;
  align-items: center;
  font-size: 20px;
  margin: 10px 0;
}

.slider-row .lbl {
  font-family: var(--font-mono);
  color: var(--text-2);
}

.slider-row output {
  font-family: var(--font-mono);
  text-align: right;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  border: 3px solid var(--bg);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.btn {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

/* Chart tooltip */
.viz-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(6, 10, 19, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.12s;
  white-space: nowrap;
  z-index: 10;
}

/* ---------- PDF export (index.html?print-pdf) ----------
   Reveal's print layout resets the slide box and gradient text renders with a
   visible box, so restore/replace them. */
html.reveal-print .reveal .slides section {
  padding: 64px 88px 56px !important;
  box-sizing: border-box !important;
  height: 900px !important;
  min-height: 900px !important;
}

html.reveal-print .reveal .slides section.title-slide,
html.reveal-print .reveal .slides section.divider {
  display: flex !important;
}

html.reveal-print .grad {
  background: none;
  color: var(--accent);
}

html.reveal-print .replay-hint {
  display: none;
}

@media print {
  #bg-field,
  .bg-grid,
  .bg-glow {
    display: none;
  }
}

/* =====================================================================
   Editorial salmon overrides (finanzas-personales-101)
   Flat paper look: no glows, thin rules, serif headlines.
   ===================================================================== */

.reveal h1,
.reveal h2,
.reveal h3 {
  letter-spacing: -0.01em;
}

.reveal h2 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
}

.reveal h3 {
  font-weight: 700;
}

/* Running header: a newspaper rule at the top of every content slide */
.reveal .slides section:not(.title-slide)::before {
  content: "FINANZAS PERSONALES 101";
  position: absolute;
  left: 88px;
  right: 88px;
  top: 26px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.reveal .slides section {
  padding-top: 70px;
}

.kicker {
  color: var(--warm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.16em;
}

.kicker::before {
  width: 26px;
  height: 3px;
  box-shadow: none;
}

.lede {
  color: var(--text-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
}

.c-gold {
  color: var(--gold);
}

.grad {
  background: none;
  color: var(--warm);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  backdrop-filter: none;
}

.card.glow {
  border-color: var(--accent);
  border-top: 4px solid var(--accent);
  box-shadow: none;
}

.card.glow-warm {
  border-color: var(--warm);
  border-top: 4px solid var(--warm);
  box-shadow: none;
}

.callout {
  border-left: 4px solid var(--accent);
  font-family: var(--font-display);
  font-size: 30px;
  background: rgba(255, 255, 255, 0.35);
  padding: 12px 20px 12px 24px;
}

.callout.warm {
  border-color: var(--warm);
}

.big-num {
  font-family: var(--font-display);
  color: var(--accent);
  text-shadow: none;
}

.big-num.warm {
  color: var(--warm);
}

.tag {
  border-radius: 3px;
  font-size: 15px;
}

.bars .track {
  background: rgba(51, 48, 46, 0.08);
}

.bars .fill.top {
  background: var(--accent);
  box-shadow: none;
}

.takeaways .n {
  font-family: var(--font-display);
  color: var(--warm);
  text-shadow: none;
}

.reveal .progress {
  background: rgba(51, 48, 46, 0.1);
  color: var(--warm);
}

.reveal .controls {
  color: var(--warm);
}

.code {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

.viz-tip {
  background: #fffaf5;
  color: var(--text);
}

.code-title .dot {
  box-shadow: none;
}

.reveal table.tbl th {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid var(--text);
}

.reveal table.tbl td:first-child {
  font-family: var(--font-body);
  font-weight: 600;
}

.reveal table.tbl td.num,
.reveal table.tbl th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.reveal table.tbl td.hl {
  background: rgba(var(--accent-rgb), 0.07);
}

/* Cover: newspaper masthead */
.title-slide {
  padding-top: 56px !important;
  justify-content: flex-start !important;
}

.masthead {
  border-top: 6px double var(--text);
  border-bottom: 1px solid var(--text);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--text-2);
  text-transform: uppercase;
}

.title-slide h1 {
  font-size: 132px;
  font-weight: 900;
  line-height: 0.95;
  margin-top: 70px;
  letter-spacing: -0.02em;
}

.title-slide .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  color: var(--text-2);
}

.title-slide .byline {
  margin-top: 30px;
  font-size: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
  max-width: 1000px;
}

.divider .num {
  color: var(--warm);
  font-weight: 600;
}

.divider h2 {
  font-size: 96px;
  font-weight: 900;
  border-bottom: 1px solid var(--text);
  padding-bottom: 22px;
}

.divider p {
  font-family: var(--font-display);
  font-style: italic;
}

/* Editorial pull quote */
.pull {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.25;
  color: var(--heading);
  border-top: 3px solid var(--warm);
  border-bottom: 1px solid var(--line-strong);
  padding: 26px 0;
}

.pull cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 20px;
  color: var(--muted);
}

/* Stat blocks: big number + label */
.stat .big-num {
  font-size: 104px;
  font-weight: 700;
}

.stat .lbl {
  font-size: 22px;
  color: var(--text-2);
  margin-top: 10px;
  line-height: 1.35;
}

.legend {
  display: flex;
  gap: 26px;
  font-size: 18px;
  color: var(--text-2);
}

.legend .sw {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -1px;
}

.disclaimer-box {
  border: 2px solid var(--text);
  padding: 30px 36px;
  background: rgba(255, 255, 255, 0.4);
}

html.reveal-print .reveal .slides section {
  padding: 70px 88px 56px !important;
}

/* ---------- Deck components (finanzas-personales-101) ---------- */

/* Stepped captions host (Deck.captions fills it) */
.caption-box {
  position: relative;
  min-height: 84px;
  margin-top: 12px;
  border-left: 4px solid var(--warm);
  background: rgba(255, 255, 255, 0.35);
}

.caption-box .step-cap {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.35;
  color: var(--text);
  padding-right: 20px;
}

.caption-box.tall {
  min-height: 420px;
  border-left: none;
  border-top: 3px solid var(--warm);
  background: none;
}

.caption-box.tall .step-cap {
  font-size: 30px;
  inset: 18px 0 0 0 !important;
}

.caption-box .step-cap .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 10px;
}

.caption-box .step-cap small {
  display: block;
  font-family: var(--font-body);
  font-size: 21px;
  color: var(--text-2);
  margin-top: 12px;
  line-height: 1.4;
}

/* Cover sparkline */
.cover-spark {
  height: 120px;
  margin-top: 36px;
  max-width: 1424px;
}

/* Agenda: newspaper index */
.agenda {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  margin-top: 30px;
}

.agenda .ag {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: baseline;
  border-top: 1px solid var(--line-strong);
  padding: 16px 0;
}

.agenda .n {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--warm);
}

.agenda strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
}

.agenda span:not(.n) {
  display: block;
  font-size: 20px;
  color: var(--muted);
  margin-top: 2px;
}

.card .ico {
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.card .cat {
  margin: -4px 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  font-size: 14px;
}

.pc-list li {
  margin: 0.55em 0;
}

.card.sat h3,
.card.sesgo h3 {
  font-size: 27px;
}

.card.sesgo {
  border-top: 3px solid var(--warm);
}

/* Five steps plan */
.steps5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.steps5 .s5 {
  border-top: 4px solid var(--accent);
  padding-top: 16px;
}

.steps5 .n {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: var(--warm);
  line-height: 1;
}

.steps5 h3 {
  font-size: 28px;
  margin: 12px 0 10px;
}

/* Books */
.libros {
  font-size: 21px;
  padding-left: 1.2em;
}

.libros li {
  margin: 0.55em 0;
}

.libros em {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  color: var(--heading);
  display: block;
  font-size: 23px;
  line-height: 1.25;
}

.libros span {
  display: block;
  font-size: 17px;
  color: var(--muted);
}

.libros.canales {
  list-style: none;
  padding-left: 0;
  font-family: var(--font-mono);
  font-size: 20px;
}

.col-lib h3 {
  font-size: 28px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.fuentes li {
  margin: 0.6em 0;
}

/* Lining figures everywhere (Playfair defaults to old-style numerals) */
.reveal,
.reveal svg text {
  font-variant-numeric: lining-nums;
}

.big-num.c-gold {
  color: var(--gold);
}

.reveal table.tbl td.num {
  white-space: nowrap;
}
