/* Endometriosis — sistema de diseño
   Amarillo = color internacional de la concienciación sobre endometriosis.
   Se usa como fondo con texto oscuro (nunca como texto sobre claro). */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7e9ee;
  --ink: #2a1a2c;
  --muted: #6e5e70;
  --line: #eadfe6;
  --accent: #f4c542;
  --accent-ink: #3b1f3f;
  --plum: #5a3360;
  --plum-soft: #f7e9ee;
  --plum-deep: #3b1f3f;
  --sun-soft: #fff4d6;
  --teal: #2f6f6a;
  --teal-soft: #dff0ed;
  --warn: #9b3d1f;
  --warn-soft: #fbe6dc;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(43, 35, 48, .06), 0 6px 20px rgba(43, 35, 48, .06);
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1720;
    --surface: #262029;
    --surface-2: #2f2833;
    --ink: #f3ecf4;
    --muted: #b9aebf;
    --line: #3d3443;
    --accent: #f0c03a;
    --plum: #e3a6cb;
    --plum-soft: #3a2a35;
    --plum-deep: #f3ecf4;
    --sun-soft: #3b3320;
    --teal: #8fd0c8;
    --teal-soft: #213532;
    --warn: #f0a07f;
    --warn-soft: #3d2620;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--plum-deep); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small, .small { font-size: .9rem; color: var(--muted); }

.container { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(740px, 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--plum-deep); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #3b1f3f; font-family: var(--sans); font-size: .9rem; font-weight: 800; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-size: .98rem; font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .75rem; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem 1rem 1rem; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .9rem; }
}

/* ---------- Hero / secciones ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); background:
  radial-gradient(900px 300px at 85% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
  var(--bg); }
.hero p.lead { font-size: 1.25rem; max-width: 36em; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--plum); margin-bottom: .75rem; }
.page-head { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head p.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin: 0; }
.section { padding: 2.5rem 0; }
.section.alt { background: var(--surface-2); }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .1s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; border-color: var(--warn); color: var(--warn); }
.btn-sm { padding: .45rem .9rem; font-size: .92rem; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.card .spacer { flex: 1; }
.card a.stretch { margin-top: auto; font-weight: 600; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: .9rem; }
a.card { text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translateY(-2px); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--plum); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Avisos ---------- */
.callout { border-left: 5px solid var(--plum); background: var(--plum-soft); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout.teal { border-color: var(--teal); background: var(--teal-soft); }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.callout.yellow { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.callout > :last-child { margin-bottom: 0; }
.callout strong.title { display: block; margin-bottom: .25rem; }

.disclaimer { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }

/* ---------- Texto largo ---------- */
.prose { max-width: 44rem; }
.prose h2:first-child { margin-top: 0; }
.say-dont-say { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1rem 0 1.5rem; }
.say-dont-say > div { border-radius: var(--radius); padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--surface); }
.say-dont-say h4 { margin: 0 0 .5rem; font-family: var(--sans); font-size: 1rem; }
.say-dont-say .yes { border-top: 5px solid var(--teal); }
.say-dont-say .no { border-top: 5px solid var(--warn); }
.say-dont-say ul { margin: 0; }
.quote { font-family: var(--serif); font-size: 1.15rem; font-style: italic; border-left: 4px solid var(--accent); padding: .25rem 0 .25rem 1rem; margin: 1.25rem 0; color: var(--ink); }

.layout-toc { display: grid; gap: 2.5rem; grid-template-columns: 220px minmax(0, 1fr); align-items: start; padding: 2rem 0 3rem; }
.toc { position: sticky; top: 84px; font-size: .95rem; }
.toc strong { display: block; margin-bottom: .5rem; font-family: var(--serif); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .3rem .8rem; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--plum); }
@media (max-width: 860px) { .layout-toc { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- Formularios ---------- */
label, legend { font-weight: 600; }
input[type="text"], input[type="date"], input[type="number"], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem .8rem;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--plum); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.2rem 1.2rem; margin: 0 0 1.1rem; }
legend { padding: 0 .4rem; font-family: var(--serif); font-size: 1.1rem; }
.field { margin-bottom: 1rem; }
.field-hint { font-size: .9rem; color: var(--muted); font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.chip span { display: inline-block; padding: .4rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); font-weight: 500; font-size: .96rem; transition: all .1s ease; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }

.pain-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: .25rem; margin-top: .5rem; }
.pain-scale label { position: relative; font-weight: 600; text-align: center; }
.pain-scale input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pain-scale span { display: block; padding: .55rem 0; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); }
.pain-scale span { color: #1d1620; }
.pain-scale input:checked + span { color: #1d1620; border-color: transparent; transform: scale(1.08); box-shadow: var(--shadow); }
.pain-scale input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }
.pain-labels { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.two-col { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .4rem; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab { background: none; border: none; font: inherit; font-weight: 600; padding: .7rem 1.1rem; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab:hover { color: var(--ink); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Diario ---------- */
.entry-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: start; }
.entry .score { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: #1d1620; }
.entry h4 { margin: 0 0 .15rem; font-family: var(--sans); font-size: 1.02rem; }
.entry p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.entry .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.tag { font-size: .8rem; background: var(--surface-2); border-radius: 999px; padding: .15rem .65rem; color: var(--ink); }
.tag.p { background: var(--plum-soft); }
.empty { text-align: center; padding: 2.5rem 1rem; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }
.chart-wrap svg { width: 100%; height: auto; min-width: 520px; display: block; }
.bar-list { list-style: none; padding: 0; margin: 0; }
.bar-list li { display: grid; grid-template-columns: 170px 1fr 36px; gap: .6rem; align-items: center; margin-bottom: .45rem; font-size: .95rem; }
.bar-list .bar { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-list .bar i { display: block; height: 100%; background: var(--plum); border-radius: 99px; }
@media (max-width: 520px) { .bar-list li { grid-template-columns: 110px 1fr 28px; } .entry { grid-template-columns: 48px 1fr; } .entry .actions { grid-column: 1 / -1; } }

.sum-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); }
.sum-table th, .sum-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sum-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* ---------- Preguntas ---------- */
.q-group { margin-bottom: 1.6rem; }
.q-group h3 { margin: 0 0 .6rem; }
.q-item { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .5rem; }
.q-item input[type="checkbox"] { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--plum); flex: none; }
.q-item label { font-weight: 400; cursor: pointer; flex: 1; }
.q-item .why { display: block; font-size: .88rem; color: var(--muted); }
.q-item.custom button { background: none; border: none; color: var(--warn); cursor: pointer; font-size: 1.1rem; }

/* ---------- Investigación ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.filter { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: .4rem 1rem; font: inherit; font-weight: 500; cursor: pointer; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.paper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: .9rem; }
.paper h3 { margin: 0 0 .25rem; font-size: 1.12rem; }
.paper .meta { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.paper .plain { margin-bottom: .6rem; }
.paper .plain b { color: var(--plum); }
.paper .links a { margin-right: 1rem; font-weight: 600; font-size: .95rem; }
.paper ul.bullets { margin: 0 0 .8rem; }
.paper-fig { margin: .8rem 0; }
.paper-fig img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.level { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .55rem; border-radius: 6px; background: var(--teal-soft); color: var(--teal); margin-right: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #eadfee; padding: 2.5rem 0; margin-top: 3rem; font-size: .95rem; }
.site-footer a { color: #f6d77a; }
.site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 1rem; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }

.print-only { display: none; }

/* ---------- Inicio y brecha de investigación (diseño del mockup) ---------- */
.hero { background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: var(--plum-deep); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent) 62%); }
.badge { display: inline-block; background: var(--sun-soft); color: var(--plum); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.2rem; }
.btn-plum { background: #3b1f3f; color: #fff; }
.btn-plum:hover { background: #5a3360; }

.stack { position: relative; height: 420px; }
.scard { position: absolute; background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: 0 18px 40px rgba(59, 31, 63, .14); padding: 1.4rem; }
.scard-a { top: 0; left: 30px; right: 0; background: #3b1f3f; color: #fff; }
.scard-a small { color: var(--accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.scard-a h3 { font-size: 1.4rem; margin: .5rem 0 .9rem; color: #fff; }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #3b1f3f; margin-left: -8px; }
.avatars span:first-child { margin-left: 0; }
.scard-b { top: 170px; left: 0; width: 300px; }
.scard-b h4 { font-family: var(--sans); font-size: .95rem; margin: 0 0 .75rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--surface-2); }
.bars i.hi { background: var(--plum); }
.scard-b p { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.scard-c { top: 250px; right: 10px; width: 230px; background: #fff4d6; color: #3b1f3f; }
.scard-c b { font-family: var(--serif); font-size: 2.1rem; }
.scard-c p { font-size: .88rem; margin: 0; color: #5a3360; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 640px) { .stack { display: none; } }

.stat-band { background: #3b1f3f; color: #fff; padding: 2rem 0; text-align: center; }
.stat-band p { margin: 0; font-size: 1.1rem; }
.stat-band b { font-family: var(--serif); font-size: 2.5rem; color: var(--accent); margin-right: .6rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { margin: 0 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; }
.cta-band { background: var(--accent); border-radius: 28px; padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: #3b1f3f; max-width: 34rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }

.gap-intro { max-width: 46rem; margin: 0 auto 2rem; text-align: center; color: var(--muted); font-size: 1.1rem; }
.gap-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.gap-kpi { background: #3b1f3f; color: #fff; border-radius: 22px; padding: 1.7rem; }
.gap-kpi b { display: block; font-family: var(--serif); font-size: 2.7rem; color: var(--accent); line-height: 1; margin-bottom: .6rem; }
.gap-kpi p { margin: 0; font-size: .95rem; color: #ebddee; }
.gap-compare { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 1rem; background: var(--surface); }
.gap-compare-scroll { overflow-x: auto; }
.gap-compare table { width: 100%; border-collapse: collapse; min-width: 620px; }
.gap-compare caption { text-align: left; padding: 1.3rem 1.6rem .4rem; font-family: var(--serif); font-size: 1.35rem; color: var(--plum-deep); }
.gap-compare th, .gap-compare td { padding: 1rem 1.6rem; text-align: left; border-top: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.gap-compare thead th { background: var(--surface-2); color: var(--plum); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.gap-compare tbody th { color: var(--plum-deep); width: 28%; }
.gap-compare td.endo { background: var(--sun-soft); color: var(--ink); }
.gap-note { font-size: .88rem; color: var(--muted); max-width: 46rem; }
.gap-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.gap-chart { border: 1px solid var(--line); border-radius: 22px; padding: 1.7rem; background: var(--surface); }
.gap-chart h3 { margin: 0 0 .3rem; font-size: 1.3rem; }
.gap-chart .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.gap-row { margin-bottom: .9rem; }
.gap-row span { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 700; margin-bottom: .35rem; }
.gap-track { height: 16px; border-radius: 999px; background: var(--surface-2); }
.gap-fill { height: 100%; border-radius: 999px; background: var(--plum); }
.gap-fill.endo { background: var(--accent); }
.gap-chart .note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }
.gap-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.gap-moment { background: var(--surface-2); border-radius: 20px; padding: 1.5rem; }
.gap-moment b { font-family: var(--serif); font-size: 1.9rem; color: var(--plum-deep); display: block; margin-bottom: .3rem; }
.gap-moment p { margin: 0; font-size: .95rem; }
.sources-box { max-width: 52rem; margin: 0 auto 2rem; border: 1px solid var(--line); border-radius: 18px; padding: .6rem 1.5rem; background: var(--surface); }
.sources-box summary { cursor: pointer; font-weight: 800; color: var(--plum-deep); min-height: 44px; display: flex; align-items: center; }
.sources-box ul { margin: .4rem 0 .6rem 1.1rem; color: var(--muted); font-size: .92rem; }
.sources-box code { font-size: .82rem; word-break: break-word; }

[hidden] { display: none !important; }

/* ---------- Impresión / PDF ---------- */
@media print {
  @page { margin: 16mm 15mm; }
  :root { --bg: #fff; --surface: #fff; --surface-2: #f3f3f3; --ink: #1d1620; --muted: #4a4350; --line: #cfc7d3; --plum: #5c2a4b; --plum-deep: #2a1a2c; --sun-soft: #fff4d6; }
  body { font-size: 11pt; line-height: 1.5; background: #fff; color: #000; }
  .site-header, .site-footer, .no-print, .toc, .btn-row, .tabs, .skip-link { display: none !important; }
  .print-only { display: block; }
  .hero, .page-head { background: none; padding: 0 0 .5rem; border: none; }
  .layout-toc { display: block; padding: 0; }
  .container, .narrow { width: 100%; }
  .card, .paper, .callout, .q-item, .entry, .say-dont-say > div, fieldset { box-shadow: none; break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; word-break: break-all; }
  .callout, .say-dont-say .yes, .say-dont-say .no, .entry .score, .tag, .pain-scale span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section { padding: 1rem 0; }
  .print-check .page-head, .print-check .prose > :not(.check-print) { display: none !important; }
  .print-check #check { display: none !important; }
  .only-selected .q-item:not(.checked) { display: none; }
  .only-selected .q-group:not(:has(.q-item.checked)):not(:has(textarea)) { display: none; }
  .q-item input[type="checkbox"] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sum-table { font-size: 9pt; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
