/* Trece Tronos · web final — la disposición del archivo (v3) con la estética del Imperio (v2):
   negro profundo y violeta casi negro, oro con brillos, acentos violeta y esmeralda de la nebulosa. */

:root {
  color-scheme: dark;
  /* superficies (los nombres vienen del archivo: «vellum» es ahora el fondo nocturno) */
  --vellum: #050407;
  --vellum-hi: #110d16;
  --vellum-2: #0b0910;
  --vellum-3: #3a3123;
  /* tinta = marfil sobre negro */
  --ink: #efe5d0;
  --ink-2: #d2c6ab;
  --ink-3: #a99c82;
  /* acento principal: oro */
  --rubric: #d6b26a;
  --rubric-deep: #f0d695;
  --gold: #b8924a;
  --gold-leaf: #d6b26a;
  --gold-hi: #f0d695;
  --gold-lo: #7d6334;
  --line: rgba(214, 178, 106, .28);
  --line-soft: rgba(214, 178, 106, .14);
  /* nebulosa */
  --violet: #9b82e0;
  --violet-deep: #1c1233;
  --emerald: #4fbf9a;
  --blood: #c4543f;
  --night: #07060f;
  --night-2: #161033;
  --night-ink: #e6e2f2;

  --f-display: "Gloock", "Bodoni 72", Didot, Georgia, serif;
  --f-text: "Spectral", Georgia, "Times New Roman", serif;
  --f-sc: "Spectral SC", "Spectral", Georgia, serif;

  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-book: cubic-bezier(.65, 0, .25, 1);
  --shadow-1: 0 2px 4px rgba(0, 0, 0, .5), 0 10px 24px -8px rgba(0, 0, 0, .75);
  --shadow-2: 0 4px 8px rgba(0, 0, 0, .5), 0 30px 60px -20px rgba(0, 0, 0, .9);
  --paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .88  0 0 0 0 .6  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Islas luminosas (Luzaria, modo Pergamino): mismas fichas, tinta oscura */
.lux {
  --ink: #1d150b;
  --ink-2: #3b2d18;
  --ink-3: #5a4626;
  --rubric: #7a4a12;
  --rubric-deep: #4f2e08;
  --vellum-hi: #f6ead0;
  --vellum-3: #c9ae78;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-synthesis: none; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--vellum); scrollbar-color: var(--gold-lo) var(--vellum); scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--vellum);
  background-image:
    radial-gradient(90% 60% at 85% -10%, rgba(155, 130, 224, .10), transparent 60%),
    radial-gradient(70% 50% at 0% 0%, rgba(214, 178, 106, .07), transparent 60%);
  background-repeat: no-repeat;
  font-family: var(--f-text);
  font-size: clamp(1.06rem, 1rem + .3vw, 1.19rem);
  line-height: 1.64;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
::selection { background: var(--gold-leaf); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--vellum); }
::-webkit-scrollbar-thumb { background: var(--gold-lo); border: 3px solid var(--vellum); border-radius: 10px; }
a { color: var(--rubric); text-decoration-color: var(--gold-lo); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--rubric-deep); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold-leaf); color: #000; padding: .6em 1em; font-family: var(--f-sc); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* grano y luz dorada (v2) */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 250; opacity: .04; background-size: 220px 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(6) infinite; }
@keyframes grain { 0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 41px -29px; } 60% { background-position: -19px -13px; } 80% { background-position: 31px 37px; } 100% { background-position: 0 0; } }

/* ───────── Cabecera ───────── */
.rh {
  position: sticky; top: 0; z-index: 40;
  background: rgba(3, 2, 5, .86); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.rh__in { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }
.rh__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--gold-hi); margin-right: auto; }
.rh__brand img { width: 28px; height: auto; filter: drop-shadow(0 2px 6px rgba(214, 178, 106, .35)); }
.rh__brand span { font-family: var(--f-display); font-size: 1.35rem; line-height: 1; }
.rh__brand small { display: block; font-family: var(--f-sc); font-size: .74rem; letter-spacing: .06em; color: var(--ink-3); margin-top: 4px; }
.rh__links { display: flex; gap: clamp(.8rem, 1.8vw, 1.9rem); list-style: none; margin: 0; padding: 0; }
.rh__links a { color: var(--ink-3); text-decoration: none; font-family: var(--f-sc); font-size: .95rem; letter-spacing: .06em; padding: .4em 0; position: relative; transition: color .3s; }
.rh__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1em; height: 1px; background: var(--gold-leaf); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.rh__links a:hover, .rh__links a[aria-current="page"] { color: var(--gold-hi); }
.rh__links a:hover::after, .rh__links a[aria-current="page"]::after { transform: scaleX(1); }
.rh__menu { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); color: var(--gold-hi); padding: .45em 1em; font-family: var(--f-sc); letter-spacing: .05em; font-size: .95rem; border-radius: 999px; min-height: 44px; }
.rh__menu .icon { width: 1.2em; height: 1.2em; }
@media (max-width: 1240px) {
  .rh__links { display: none; }
  .rh__menu { display: inline-flex; }
}
.drawer { position: fixed; inset: 0; z-index: 260; background: rgba(0, 0, 0, .97); padding: 20px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility .45s; }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.drawer__title { font-family: var(--f-sc); letter-spacing: .08em; color: var(--gold-leaf); font-size: 1rem; }
.drawer__close { background: none; border: 1px solid var(--line); color: var(--gold-hi); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.drawer ol { list-style: none; margin: 0; padding: 0; }
.drawer li { border-top: 1px solid var(--line-soft); }
.drawer li a { display: flex; align-items: baseline; gap: .9rem; padding: .8rem 0; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.1; }
.drawer li a em { font-family: var(--f-sc); font-style: normal; font-size: .85rem; letter-spacing: .06em; color: var(--gold-leaf); min-width: 2.4em; }
.drawer li a[aria-current="page"] { color: var(--gold-hi); }
.drawer.is-open li { animation: drawerIn .6s var(--ease-out) both; }
.drawer.is-open li:nth-child(2) { animation-delay: .04s; } .drawer.is-open li:nth-child(3) { animation-delay: .08s; } .drawer.is-open li:nth-child(4) { animation-delay: .12s; }
.drawer.is-open li:nth-child(5) { animation-delay: .16s; } .drawer.is-open li:nth-child(6) { animation-delay: .2s; } .drawer.is-open li:nth-child(7) { animation-delay: .24s; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(14px); } }

/* ───────── Ornamentos ───────── */
.filet { display: flex; align-items: center; gap: .9rem; color: var(--gold-leaf); margin: 0 auto; max-width: 420px; }
.filet::before, .filet::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor 40%, currentColor 60%, transparent); opacity: .8; }
.filet svg { width: 34px; height: 18px; flex: none; }
.fleuron { width: 28px; height: 28px; color: var(--gold-leaf); display: inline-block; vertical-align: middle; }

.sec { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.sec-head { text-align: center; max-width: 860px; margin: 0 auto clamp(2.2rem, 5vw, 3.6rem); }
.sec-head h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.4rem); letter-spacing: -.02em; color: var(--ink); }
.sec-head .filet { margin-block: 1.2rem 1.3rem; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.32rem); color: var(--ink-2); max-width: 60ch; margin-inline: auto; font-style: italic; font-weight: 300; line-height: 1.55; }
.label { font-family: var(--f-sc); letter-spacing: .08em; color: var(--gold-leaf); font-size: .92rem; }

/* Letra capital dorada */
.cap::first-letter {
  float: left;
  font-family: var(--f-display);
  font-style: normal;
  font-size: 4.1em;
  line-height: .8;
  padding: .06em .12em 0 0;
  margin: .04em .08em 0 0;
  color: var(--gold-hi);
  text-shadow: 0 1px 0 var(--gold-lo), 0 0 22px rgba(214, 178, 106, .25);
}
.lux .cap::first-letter { color: #7a4a12; text-shadow: none; }

/* Botones (v2) */
.btn {
  --b: var(--gold-leaf);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .65em 1.4em;
  font-family: var(--f-sc); font-size: 1rem; letter-spacing: .06em; text-decoration: none;
  border: 1px solid var(--b); border-radius: 0;
  color: #0b0805; background: linear-gradient(100deg, #b08f4f, var(--gold-leaf) 45%, var(--gold-hi));
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s, transform .3s var(--ease-out);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .55s var(--ease-out); }
.btn:hover { color: #0b0805; text-decoration: none; }
.btn:hover::before { transform: none; }
.btn--ghost { background: transparent; color: var(--gold-hi); }
.btn--ghost::before { background: linear-gradient(100deg, #b08f4f, var(--gold-leaf) 45%, var(--gold-hi)); }
.btn--ghost:hover { color: #0b0805; }
.btn--gold { }
.btn .icon { width: 1.05em; height: 1.05em; }

/* Lámina con marco dorado */
.plate {
  position: relative; background: #0a080d; padding: 10px;
  border: 1px solid var(--gold-lo);
  box-shadow: 0 0 0 4px #0a080d, 0 0 0 5px var(--line), var(--shadow-2);
}
.plate img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(0, 0, 0, .6); }
.plate figcaption { font-style: italic; font-size: .92rem; color: var(--ink-2); text-align: center; padding: .7rem .4rem .1rem; line-height: 1.45; }
.plate .corner { position: absolute; width: 26px; height: 26px; color: var(--gold-leaf); pointer-events: none; }
.plate .corner--tl { top: -9px; left: -9px; }
.plate .corner--tr { top: -9px; right: -9px; transform: scaleX(-1); }
.plate .corner--bl { bottom: -9px; left: -9px; transform: scaleY(-1); }
.plate .corner--br { bottom: -9px; right: -9px; transform: scale(-1); }

/* Reflejo dorado al pasar (portadas, retratos) */
.sheen { position: relative; overflow: hidden; isolation: isolate; }
.sheen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 236, 190, .28) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1.1s var(--ease-out); }
:hover > .sheen::after, .sheen:hover::after, :focus-visible > .sheen::after { transform: translateX(120%); }

/* Camafeo / miniatura oval con marco de oro */
.cameo {
  --s: 120px;
  position: relative; display: block; width: var(--s); aspect-ratio: 4 / 5; flex: none;
  border-radius: 50%; overflow: hidden; isolation: isolate;
  background: var(--vellum-2);
  border: 1px solid var(--gold-hi);
  box-shadow: 0 0 0 3px #08060a, 0 0 0 4.5px var(--gold-leaf), 0 0 0 7px #08060a, 0 0 0 8px var(--gold-lo), 0 14px 30px -10px rgba(0, 0, 0, .9);
}
.cameo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
/* Las portadas «Memorias Dinásticas» llevan rótulo: se encuadra el rostro */
.cameo--cover img { inset: auto; width: 215%; height: auto; max-width: none; left: -57.5%; top: -37%; position: absolute; object-fit: fill; }
.cameo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .25), inset 0 -18px 30px -12px rgba(0, 0, 0, .55); pointer-events: none; }
.monogram {
  display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(214, 178, 106, .2), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(155, 130, 224, .14), transparent 60%), #0d0a10;
}
.monogram b { font-family: var(--f-display); font-weight: 400; font-size: calc(var(--s) * .5); line-height: 1; color: var(--gold-hi); text-shadow: 0 2px 0 var(--gold-lo), 0 0 26px rgba(214, 178, 106, .3); position: relative; z-index: 1; }
.monogram svg { position: absolute; inset: 12%; width: 76%; height: 76%; color: var(--gold-lo); opacity: .9; }

/* Etiquetas de libro */
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .28em .75em .28em .3em; border: 1px solid var(--line); border-radius: 0;
  background: rgba(214, 178, 106, .04); color: var(--ink-2); font-size: .9rem; text-decoration: none; line-height: 1.2;
  transition: border-color .3s, color .3s, background-color .3s;
}
.chip img { width: 22px; height: 33px; object-fit: cover; }
.chip:hover { border-color: var(--gold-leaf); color: var(--gold-hi); background: rgba(214, 178, 106, .1); }
.chip--soon { color: var(--ink-3); }

.seal { display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-sc); letter-spacing: .06em; color: var(--gold-leaf); border: 1px dashed var(--gold-lo); padding: .45em 1em; font-size: .95rem; }
.seal::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(79, 191, 154, .18); }

/* ───────── Ficha (diálogo con cortina) ───────── */
dialog.sheet {
  width: min(1180px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; color: var(--ink); background: transparent; overflow: visible;
}
dialog.sheet:focus, dialog.sheet:focus-visible { outline: none; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(6px); }
dialog.sheet[open] .sheet__book { animation: sheetIn .75s var(--ease-out) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(28px) scale(.985); clip-path: inset(8% 0 8% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
.sheet__book {
  position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(155, 130, 224, .09), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(214, 178, 106, .07), transparent 60%), #0b090e;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  padding: clamp(22px, 4vw, 56px);
}
.sheet__close {
  position: sticky; top: 0; float: right; margin: -8px -8px 0 0; z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center; background: rgba(0, 0, 0, .75); color: var(--gold-hi); border: 1px solid var(--line); border-radius: 50%;
  transition: transform .4s var(--ease-out), border-color .3s;
}
.sheet__close:hover { transform: rotate(90deg); border-color: var(--gold-hi); }
.sheet__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sheet__media { position: sticky; top: 0; }
.sheet__cover { aspect-ratio: 2 / 3; }
.sheet__eyebrowless { font-family: var(--f-sc); letter-spacing: .06em; color: var(--gold-leaf); margin-bottom: .5rem; font-size: 1rem; }
.sheet h2 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.6rem); letter-spacing: -.02em; margin-bottom: .6rem; }
.sheet__quote { font-family: var(--f-display); font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); line-height: 1.25; color: var(--gold-hi); margin: 1.2rem 0 1.4rem; }
.sheet__quote::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; height: .4em; color: var(--gold-lo); }
.sheet__text { max-width: var(--measure); color: #e3d8c0; }
.sheet__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-family: var(--f-sc); letter-spacing: .05em; font-size: .92rem; color: var(--ink-3); margin: 1rem 0 1.4rem; }
.sheet__buy { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 .4rem; }
.sheet__sub { font-family: var(--f-sc); letter-spacing: .08em; font-weight: 400; font-size: 1rem; color: var(--gold-leaf); margin: 2rem 0 .8rem; }
.sheet__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.sheet__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.sheet__nav button { background: none; border: 0; padding: .4rem 0; display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); font-family: var(--f-sc); letter-spacing: .05em; font-size: .95rem; min-height: 44px; }
.sheet__nav button:hover { color: var(--gold-hi); }
.sheet__nav button:disabled { visibility: hidden; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; margin: 1.2rem 0; font-size: .98rem; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.facts dt { font-family: var(--f-sc); letter-spacing: .05em; color: var(--gold-leaf); }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 760px) {
  .sheet__grid { grid-template-columns: 1fr; }
  .sheet__media { position: static; max-width: 280px; margin-inline: auto; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: .6rem; }
}

/* ───────── Pie ───────── */
.colophon { border-top: 1px solid var(--line-soft); padding: 5rem 0 2.6rem; text-align: center; background: radial-gradient(70% 90% at 50% 0%, rgba(214, 178, 106, .08), transparent 60%), #000; }
.colophon__mark { width: 52px; margin: 0 auto 1rem; filter: drop-shadow(0 2px 10px rgba(214, 178, 106, .3)); }
.colophon__title { font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); color: var(--gold-hi); }
.colophon p { color: var(--ink-3); font-style: italic; max-width: 52ch; margin: .7rem auto 0; }
.colophon nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; margin: 2rem auto 1.4rem; max-width: 820px; }
.colophon nav a { color: var(--ink-2); text-decoration: none; font-family: var(--f-sc); letter-spacing: .05em; }
.colophon nav a:hover { color: var(--gold-hi); }
.colophon small { display: block; color: var(--ink-3); font-size: .86rem; margin-top: 1rem; }
.colophon__prev { display: inline-block; margin-top: .8rem; font-size: .86rem; color: var(--ink-3); text-decoration-color: var(--line); }
.colophon__tri { width: 80px; margin: 1.6rem auto 0; color: var(--gold-lo); }

/* ───────── Revelados ───────── */
.js [data-ink] { --len: 1000; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js [data-ink].is-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .js [data-ink] { stroke-dashoffset: 0 !important; transition: none !important; }
  dialog.sheet[open] .sheet__book, .drawer.is-open li { animation: none; }
  .grain { animation: none; }
  .sheen::after { display: none; }
}

/* Encabezado de página interior */
.folio-head { padding: clamp(3.6rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.folio-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(closest-side at 50% 40%, rgba(214, 178, 106, .11), transparent), radial-gradient(closest-side at 78% 22%, rgba(155, 130, 224, .10), transparent); pointer-events: none; }
.folio-head h1 { font-size: clamp(3.1rem, 1.4rem + 7vw, 7rem); letter-spacing: -.025em; color: var(--ink); line-height: .95; }
.folio-head .lede { margin-top: 1.4rem; }
.folio-head .filet { margin-top: 1.6rem; }

/* Selector segmentado (chips v2) */
.seg { display: flex; flex-wrap: wrap; gap: .45rem; }
.seg button { background: transparent; border: 1px solid var(--line); padding: .45em 1em; border-radius: 0; font-family: var(--f-sc); letter-spacing: .05em; font-size: .95rem; color: var(--ink-2); min-height: 44px; transition: color .3s, border-color .3s, background-color .3s; }
.seg button:hover { border-color: var(--gold-leaf); color: var(--gold-hi); }
.seg button[aria-pressed="true"] { background: var(--gold-leaf); border-color: var(--gold-leaf); color: #0b0805; }
.seg small { font-size: .82em; opacity: .75; margin-left: .25em; }

/* Buscador */
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .icon { position: absolute; left: .2rem; top: 50%; transform: translateY(-50%); color: var(--gold-leaf); width: 1.2em; height: 1.2em; }
.search input { width: 100%; font: inherit; font-style: italic; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .6rem .4rem .6rem 2.1rem; min-height: 48px; border-radius: 0; caret-color: var(--gold-hi); }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-bottom-color: var(--gold-hi); box-shadow: 0 1px 0 var(--gold-hi); }
.search input::-webkit-search-cancel-button { filter: invert(.8) sepia(1) saturate(2); }
.rh__links a[href$="#aeterna"] { color: #e88c97; }
.rh__links a[href$="#aeterna"]::after { background: #c43a4b; }
.rh__links { gap: clamp(.7rem, 1.4vw, 1.6rem); }
.rh__links a { white-space: nowrap; font-size: .9rem; letter-spacing: .05em; }
.rh__brand small { white-space: nowrap; }
@media (max-width: 1500px) { .rh__brand small { display: none; } }
.rh__links a[href$="#aeterna"] { color: var(--gold-hi); }
.rh__links a[href$="#aeterna"]::after { background: var(--gold-leaf); }
/* m66: el índice siempre accesible; enlaces legales */
.rh__menu { display: inline-flex; }
.rh__in { gap: 1.2rem; }
.rh__links { gap: clamp(.6rem, 1.1vw, 1.3rem); }
.rh__links a { font-size: .86rem; letter-spacing: .04em; }
@media (max-width: 1340px) { .rh__links { display: none; } }
.colophon__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin: 1.2rem auto 0; }
.colophon__legal a { color: var(--ink-2); font-size: .9rem; text-decoration: underline; text-decoration-color: var(--line); }
.colophon__legal a:hover { color: var(--gold-hi); }

/* ═════ m68: menú por saga con desplegables + botón Leer ═════ */
.rh__in { gap: 1rem; }
.rh__nav { margin-left: auto; }
.rh__links { display: flex; align-items: center; gap: clamp(.4rem, 1.2vw, 1.4rem); }
@media (max-width: 1340px) { .rh__links { display: flex; } }
.dd { position: relative; }
.dd__btn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: .55rem .2rem; min-height: 44px; font-family: var(--f-sc); font-size: .95rem; letter-spacing: .05em; color: var(--ink-2); cursor: pointer; }
.dd__btn:hover, .dd.is-open .dd__btn, .dd.is-current .dd__btn { color: var(--gold-hi); }
.dd__chev { width: .8em; height: .8em; transform: rotate(90deg); transition: transform .3s var(--ease-out); }
.dd.is-open .dd__chev { transform: rotate(-90deg); }
.dd__panel { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; z-index: 80; min-width: 300px; padding: 1rem 1.1rem 1.1rem; background: rgba(6,5,8,.97); border: 1px solid var(--line); box-shadow: 0 0 0 4px rgba(6,5,8,.97), 0 0 0 5px var(--line-soft), 0 30px 60px -20px #000; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s; }
.dd__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; }
.dd__title { margin: 0 0 .5rem; font-family: var(--f-sc); letter-spacing: .1em; font-size: .78rem; color: var(--gold-leaf); border-bottom: 1px solid var(--line-soft); padding-bottom: .5rem; }
.dd__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.dd__panel a { display: block; padding: .5rem .6rem; text-decoration: none; color: var(--ink); border-radius: 2px; }
.dd__panel a b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; line-height: 1.15; }
.dd__panel a small { display: block; font-size: .82rem; color: var(--ink-3); margin-top: .1rem; }
.dd__panel a:hover, .dd__panel a:focus-visible, .dd__panel a[aria-current="page"] { background: rgba(214,178,106,.1); color: var(--gold-hi); }
.rh__plain { font-family: var(--f-sc); font-size: .9rem; letter-spacing: .04em; color: var(--ink-3); text-decoration: none; white-space: nowrap; padding: .55rem .1rem; display: inline-flex; min-height: 44px; align-items: center; }
.rh__plain:hover { color: var(--gold-hi); }
.rh__links a::after { display: none; }
.rh__read { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem 1.1rem; font-family: var(--f-sc); font-size: .98rem; letter-spacing: .08em; text-decoration: none; color: #120c04; background: linear-gradient(100deg, #b08f4f, var(--gold-leaf) 45%, var(--gold-hi)); border: 1px solid var(--gold-hi); box-shadow: 0 8px 22px -10px rgba(214,178,106,.6); white-space: nowrap; transition: transform .25s var(--ease-out), filter .25s; }
.rh__read:hover { color: #000; transform: translateY(-1px); filter: brightness(1.08); }
.rh__read .icon { width: 1.15em; height: 1.15em; }
.rh__read[aria-current="page"] { outline: 1px solid var(--gold-hi); outline-offset: 3px; }
.rh__menu { display: none; }
@media (max-width: 1180px) { .rh__plain { display: none; } }
@media (max-width: 900px) {
  .rh__nav { display: none; }
  .rh__menu { display: inline-flex; }
  .rh__read { margin-left: auto; }
  .rh__brand small { display: none; }
}
@media (max-width: 420px) { .rh__brand span { font-size: 1.1rem; } .rh__read { padding: .4rem .8rem; } .rh__menu { padding: .4em .8em; } }
/* cajón móvil por bloques */
.drawer__home { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--ink); text-decoration: none; padding: .4rem 0 1rem; border-bottom: 1px solid var(--line-soft); }
.drawer__group { margin-top: 1.4rem; }
.drawer__group h2 { font-family: var(--f-sc); font-weight: 500; letter-spacing: .12em; font-size: .9rem; color: var(--gold-leaf); margin: 0 0 .3rem; }
.drawer__group ol { list-style: none; margin: 0; padding: 0; }
.drawer__group li a { display: block; padding: .6rem 0 .6rem .9rem; border-left: 1px solid var(--line); font-size: clamp(1.35rem, 5.5vw, 1.8rem); }
.drawer__group--extra li a { border-left: 0; padding-left: 0; font-size: 1.3rem; color: var(--ink-2); }
.drawer li { border-top: 0; }
#hellas { scroll-margin-top: 90px; }
.dd__panel { background: #060508; box-shadow: 0 0 0 4px #060508, 0 0 0 5px var(--line-soft), 0 30px 60px -20px #000; }
.drawer { background: #030204; }
@media (max-width: 560px) { .rh__brand span { white-space: nowrap; font-size: 1.12rem; } .rh__brand img { width: 24px; } .rh__in { gap: .5rem; } .rh__read { padding: .4rem .75rem; font-size: .92rem; } .rh__menu { padding: .4em .75em; font-size: .9rem; } }
@media (max-width: 380px) { .rh__menu { font-size: 0; gap: 0; } .rh__menu .icon { font-size: 1rem; } }

/* ───────── m153: párrafos largos justificados (con guiones; todas las páginas son lang="es").
   No en títulos, pies, botones ni tarjetas estrechas; por debajo de 420 px, a la izquierda ───────── */
@media (min-width: 421px) {
  .sheet__text p, .ficha__just p, .author__body > p, .hdh__intro p, .prologue__text p,
  .atlas__text p, .atlas__more details > p, .voz > p:not(.see) {
    text-align: justify; -webkit-hyphens: auto; hyphens: auto;
  }
}

/* ───────── tanda5-18: fondo nocturno en las fichas de Trece Tronos ─────────
   Imperio de la Noche (castillo, luna, Muro) para todos; Luzaria con su lado luminoso, velado.
   Fondo quieto: background-attachment por defecto en el contenedor que hace scroll = no se mueve con el texto. */
/* el texto más tenue se aclara un punto: contraste AA aunque detrás haya luna o estrellas */
.sheet__book--tt { --ink-3: #c4b79c; }
.sheet__book--tt {
  background:
    linear-gradient(180deg, rgba(7, 6, 14, .62) 0%, rgba(7, 6, 14, .8) 35%, rgba(7, 6, 14, .87) 100%),
    url("../../assets/tt/ficha-noche-desk.jpg") 30% 30% / cover no-repeat, #0b090e;
}
.sheet__book--tt.is-luz {
  background:
    linear-gradient(180deg, rgba(14, 10, 8, .74) 0%, rgba(12, 9, 8, .87) 30%, rgba(10, 8, 8, .91) 100%),
    url("../../assets/tt/ficha-luz-desk.jpg") 50% 35% / cover no-repeat, #0e0b09;
}
@media (max-width: 760px) {
  .sheet__book--tt { background-image: linear-gradient(180deg, rgba(7, 6, 14, .68) 0%, rgba(7, 6, 14, .82) 35%, rgba(7, 6, 14, .88) 100%), url("../../assets/tt/ficha-noche-mob.jpg"); background-position: 0 0, 40% 20%; }
  .sheet__book--tt.is-luz { background-image: linear-gradient(180deg, rgba(14, 10, 8, .8) 0%, rgba(12, 9, 8, .89) 35%, rgba(10, 8, 8, .92) 100%), url("../../assets/tt/ficha-luz-mob.jpg"); background-position: 0 0, 50% 40%; }
}
/* m322: aviso obligatorio de Afiliados de Amazon */
.colophon small.colophon__afil { margin-top: .4rem; font-size: .78rem; opacity: .85; }
