@charset "UTF-8";
/* Lector común de prólogos y capítulos */
/* Fuente optimizada para lectura larga. Solo la descarga el lector cuando se usa. */
@font-face {
  font-family: "Literata";
  src: url("../assets/fonts/Literata-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../assets/fonts/Literata-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
.book-header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  width: fit-content;
}
.book-header__icon {
  width: 28px;
  height: 42px;
  flex-shrink: 0;
}
.book-header__icon svg, .book-header__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.book-header__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.book-header__subtitle {
  font-family: "Cinzel", "EB Garamond", "Baskerville", "Georgia", serif;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--reader-header-subtitle, #444);
  margin-bottom: 0.2rem;
  font-weight: 500;
}
.book-header__title {
  font-family: "Cinzel", "EB Garamond", "Baskerville", "Georgia", serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--reader-header-title, #222);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .book-header__title {
    font-size: 2rem;
  }
}
@media (max-width: 600px) {
  .book-header__title {
    font-size: 1.6rem;
  }
}

.prologue-book__ornament {
  position: relative;
  z-index: 3;
  height: 1rem;
  pointer-events: none;
}
.prologue-book__ornament::before {
  position: absolute;
  top: 0.5rem;
  right: 0;
  left: 0;
  height: 0.15rem;
  content: "";
  background: linear-gradient(90deg, transparent 0%, var(--reader-ornament-line, #ccc) 20%, var(--reader-ornament-line, #ccc) 80%, transparent 100%);
}
.prologue-book__ornament::after {
  position: absolute;
  top: 0.1rem;
  left: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border: 0.15rem solid var(--reader-ornament-border);
  background: var(--reader-ornament-paper);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}
.prologue-book__ornament--bottom {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin-top: 5rem;
}
.prologue-book__header {
  position: relative;
  z-index: 3;
  max-width: 82rem;
  margin: 4rem auto 3.5rem;
  text-align: left;
}
.prologue-book__title {
  margin: 0;
  color: var(--reader-prologue-title);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.prologue-book__lead {
  position: relative;
  max-width: 66rem;
  margin: 2rem 0 0;
  padding-bottom: 2.5rem;
  color: var(--reader-prologue-lead);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.5;
}
.prologue-book__lead::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(100%, 42rem);
  height: 0.1rem;
  content: "";
  background: linear-gradient(90deg, transparent, var(--reader-prologue-line), transparent);
  transform: translateX(-50%);
}

.page-prologue-reader,
.page-chapter-reader {
  min-width: 32rem;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--reader-background, #222);
}

/* Variables inherited by the reader, header, footer and note dialog.
   The original white paper is shared by every period. */
:where(.page-chapter-reader, .page-prologue-reader) {
  --reader-paper: #f6f5f0;
  --reader-transition: 180ms ease;
  --reader-decorative-font: Georgia, serif;
  --reader-dropcap-weight: 700;
  --reader-ink: #262626;
  --reader-muted: #676767;
  --reader-accent: #595959;
  --reader-gold: #909090;
  --reader-secondary: var(--reader-gold);
  --reader-panel-border: rgba(66, 66, 66, 0.14);
  --reader-panel-shadow: rgba(27, 27, 27, 0.16);
  --reader-arrow: rgba(86, 86, 86, 0.82);
  --reader-focus: rgba(89, 89, 89, 0.28);
  --reader-quote-border: rgba(89, 89, 89, 0.45);
  --reader-track-start: rgba(158, 158, 158, 0.34);
  --reader-track-end: rgba(113, 113, 113, 0.22);
  --reader-track-border: rgba(102, 102, 102, 0.3);
  --reader-track-shadow: rgba(60, 60, 60, 0.18);
  --reader-progress-highlight: rgba(255, 255, 255, 0.58);
  --reader-progress-start: #b5b5b5;
  --reader-progress-mid: #888888;
  --reader-progress-end: #6c6c6c;
  --reader-progress-shadow: rgba(52, 52, 52, 0.24);
  --reader-progress-glow: rgba(97, 97, 97, 0.18);
  --reader-dropcap: #666666;
  --reader-divider: rgba(97, 97, 97, 0.5);
  --reader-note-backdrop: rgba(15, 15, 15, 0.58);
  --reader-note-grain-primary: rgba(75, 75, 75, 0.032);
  --reader-note-grain-secondary: rgba(75, 75, 75, 0.024);
  --reader-note-wash: rgba(65, 65, 65, 0.025);
  --reader-note-border: rgba(69, 69, 69, 0.24);
  --reader-note-shadow-near: rgba(15, 15, 15, 0.12);
  --reader-note-shadow-far: rgba(15, 15, 15, 0.28);
  --reader-note-frame: rgba(78, 78, 78, 0.16);
  --reader-close-ink: #b4b4b4;
  --reader-close-start: #585858;
  --reader-close-mid: #393939;
  --reader-close-end: #222222;
  --reader-close-border: #717171;
  --reader-close-shadow: rgba(24, 24, 24, 0.65);
  --reader-close-highlight: rgba(225, 225, 225, 0.16);
  --reader-close-hover-border: #6f6f6f;
  --reader-close-hover-ring: rgba(37, 37, 37, 0.9);
  --reader-close-hover-shadow: rgba(21, 21, 21, 0.34);
  --reader-soft-surface: #e7e7e7;
  --reader-note-focus: rgba(89, 89, 89, 0.3);
  --reader-note-section-line: rgba(78, 78, 78, 0.1);
  --reader-illustration-shadow: rgba(38, 38, 38, 0.14);
  --reader-illustration-border: rgba(61, 61, 61, 0.16);
  --reader-placeholder-start: rgba(89, 89, 89, 0.05);
  --reader-placeholder-end: rgba(144, 144, 144, 0.1);
  --reader-header-subtitle: #404040;
  --reader-header-title: #1a1a1a;
  --reader-ornament-line: #c0c0c0;
  --reader-ornament-border: rgba(103, 103, 103, 0.4);
  --reader-ornament-paper: #f6f6f6;
  --reader-prologue-title: #272727;
  --reader-prologue-lead: #696969;
  --reader-prologue-line: rgba(103, 103, 103, 0.42);
}

.chapter-reader {
  --reader-shell-width: min(calc(100% - 2rem), 108rem);
  --reader-text-width: 95%;
  --reader-footer-width: min(calc(100% - 2rem), 90rem);
  --reader-footer-height: 5rem;
  --reader-transition: 180ms ease;
  --reader-arrow-previous-image: none;
  --reader-arrow-next-image: var(--reader-arrow-previous-image);
  position: relative;
  isolation: isolate;
  height: 100dvh;
  overflow: hidden;
  color: var(--reader-ink);
}
.chapter-reader__reading-area {
  position: relative;
  z-index: 2;
  width: var(--reader-shell-width);
  height: calc(100% - 2rem);
  margin: 1rem auto;
  overflow: hidden;
  touch-action: pan-y;
  background: var(--reader-paper);
  border: 0.1rem solid var(--reader-panel-border);
  border-radius: 0.8rem;
  box-shadow: 0 1.5rem 4rem var(--reader-panel-shadow);
}
.chapter-reader__pages {
  height: 100%;
}
.chapter-reader__footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: grid;
  grid-template-columns: 6rem minmax(18rem, 1fr) 6rem;
  grid-template-rows: auto auto;
  grid-template-areas: ". counter ." "previous progress next";
  align-items: center;
  column-gap: clamp(1.5rem, 3vw, 4rem);
  row-gap: 0;
  width: var(--reader-footer-width);
  height: var(--reader-footer-height);
  padding: 0.5rem 1rem 0.5rem;
  color: var(--reader-muted);
  border: 0;
  box-shadow: none;
  font-family: var(--font-body);
}
.chapter-reader__footer::before, .chapter-reader__footer::after {
  display: none;
}
.chapter-reader__arrow {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  color: var(--reader-arrow);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color var(--reader-transition), opacity var(--reader-transition), transform var(--reader-transition);
}
.chapter-reader__arrow--previous {
  grid-area: previous;
  justify-self: start;
}
.chapter-reader__arrow--next {
  grid-area: next;
  justify-self: end;
}
.chapter-reader__arrow-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--reader-transition);
}
.chapter-reader__arrow-image {
  display: none;
  width: 100%;
  height: 100%;
  background: center/contain no-repeat var(--reader-arrow-previous-image);
  transition: transform var(--reader-transition);
}
.chapter-reader__arrow--next .chapter-reader__arrow-image {
  background-image: var(--reader-arrow-next-image);
}
.chapter-reader--image-arrows .chapter-reader__arrow-image {
  display: block;
}
.chapter-reader--image-arrows .chapter-reader__arrow-icon {
  display: none;
}
.chapter-reader--image-arrows .chapter-reader__arrow--next .chapter-reader__arrow-image {
  transform: scaleX(-1);
}
.chapter-reader__arrow--next .chapter-reader__arrow-icon {
  transform: scaleX(-1);
}
.chapter-reader__arrow:hover, .chapter-reader__arrow:focus-visible {
  color: var(--reader-accent);
}
.chapter-reader__arrow--previous:hover .chapter-reader__arrow-icon, .chapter-reader__arrow--previous:focus-visible .chapter-reader__arrow-icon {
  transform: translateX(-0.25rem);
}
.chapter-reader__arrow--next:hover .chapter-reader__arrow-icon, .chapter-reader__arrow--next:focus-visible .chapter-reader__arrow-icon {
  transform: scaleX(-1) translateX(-0.25rem);
}
.chapter-reader__arrow:active {
  transform: scale(0.92);
}
.chapter-reader__arrow:focus-visible {
  outline: 0.2rem solid var(--reader-focus);
  outline-offset: 0.2rem;
  border-radius: 50%;
}
.chapter-reader__arrow:disabled {
  opacity: 0.16;
  cursor: default;
  transform: none;
}
.chapter-reader__arrow--previous:disabled .chapter-reader__arrow-icon {
  transform: none;
}
.chapter-reader__arrow--next:disabled .chapter-reader__arrow-icon {
  transform: scaleX(-1);
}

.reader-page {
  display: none;
  width: 100%;
  height: 100%;
  padding: clamp(3.4rem, 4vh, 5rem) clamp(2rem, 4vw, 4rem) calc(var(--reader-footer-height) + 4rem);
  overflow-y: auto;
  opacity: 0;
  transform: translateX(1rem);
  transition: opacity var(--reader-transition), transform var(--reader-transition);
}
.reader-page.is-active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}
.reader-page.is-leaving {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
}
.reader-page.is-leaving-to-left {
  transform: translateX(-1.2rem);
}
.reader-page.is-leaving-to-right {
  transform: translateX(1.2rem);
}
.reader-page__header {
  margin-bottom: clamp(2rem, 4vh, 4rem);
}
.reader-page__eyebrow {
  margin: 0 0 0.8rem;
  color: var(--reader-accent);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.reader-page__title {
  max-width: 9ch;
  margin: 0;
  color: var(--reader-ink);
  font-family: var(--font-display);
  font-size: clamp(5rem, 6.5vw, 10rem);
  font-weight: 500;
  line-height: 0.88;
  text-wrap: balance;
}
.reader-page__subtitle {
  max-width: 11ch;
  margin: 0;
  color: var(--reader-ink);
  font-family: var(--font-display);
  font-size: clamp(4rem, 5.2vw, 7rem);
  font-weight: 500;
  line-height: 0.95;
  text-wrap: balance;
}
.reader-page__meta {
  margin: 1.8rem 0 0;
  color: var(--reader-muted);
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.05vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.reader-page__body {
  width: min(100%, var(--reader-text-width));
  margin-inline: auto;
}
.reader-page__body > p, .reader-page__cadence p, .reader-page__questions p {
  margin: 0 0 1.05em;
  color: var(--reader-ink);
  font-family: var(--font-reader);
  font-size: clamp(1.4rem, 1.52vw, 1.6rem);
  font-optical-sizing: auto;
  line-height: 1.55;
  text-wrap: pretty;
}
.reader-page__body > p:last-child {
  margin-bottom: 0;
}
.reader-page__lead {
  font-size: clamp(2.4rem, 2.15vw, 3.2rem) !important;
  font-weight: 600;
}
.reader-page__short-line {
  margin-bottom: 0.45em !important;
}
.reader-page__emphasis {
  font-weight: 600;
}
.reader-page__ending {
  margin-top: 1.5em !important;
  font-weight: 600;
}
.reader-page__ending--large {
  font-size: clamp(2.5rem, 2.5vw, 3.8rem) !important;
  line-height: 1.15 !important;
}
.reader-page__cadence, .reader-page__questions {
  margin: 2rem 0;
}
.reader-page__cadence p {
  margin-bottom: 0.3em;
  font-weight: 600;
}
.reader-page__questions {
  padding-left: 2rem;
  border-left: 0.3rem solid var(--reader-quote-border);
}
.reader-page__questions p {
  margin-bottom: 0.45em;
  font-style: italic;
}

.reader-summary {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding-left: 2.2rem;
}
.reader-summary li {
  padding-left: 0.4rem;
  color: var(--reader-ink);
  font-family: var(--font-reader);
  font-size: clamp(1.65rem, 1.35vw, 2.1rem);
  font-optical-sizing: auto;
  line-height: 1.5;
}

.reader-progress {
  display: contents;
}
.reader-progress__counter {
  grid-area: counter;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--reader-ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 0;
  white-space: nowrap;
}
.reader-progress__separator {
  color: var(--reader-gold);
  font-weight: 400;
}
.reader-progress__percentage {
  color: var(--reader-gold);
  font-weight: 600;
}
.reader-progress__track {
  position: relative;
  grid-area: progress;
  align-self: center;
  width: 100%;
  height: 0.8rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--reader-track-start), var(--reader-track-end));
  border: 0.1rem solid var(--reader-track-border);
  border-radius: 999rem;
  box-shadow: inset 0 0.15rem 0.25rem var(--reader-track-shadow), inset 0 -0.1rem 0.2rem rgba(255, 255, 255, 0.54);
}
.reader-progress__track:focus {
  outline: none;
}
.reader-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(180deg, var(--reader-progress-start) 0%, var(--reader-progress-mid) 40%, var(--reader-progress-end) 100%);
  border-radius: inherit;
  box-shadow: inset 0 0.1rem 0.15rem var(--reader-progress-highlight), inset 0 -0.12rem 0.18rem var(--reader-progress-shadow), 0 0 0.55rem var(--reader-progress-glow);
  transition: width var(--reader-transition);
}
.reader-progress__bar::after {
  display: none;
}

/* ==================================================
   ESTILOS NARRATIVOS COMPARTIDOS
================================================== */
.prologue-book__first-paragraph::first-letter {
  float: left;
  margin: -0.02em 0.1em 0 0;
  color: var(--reader-dropcap);
  font-family: var(--reader-decorative-font);
  font-size: 4.8rem;
  line-height: 0.82;
  font-weight: var(--reader-dropcap-weight);
}

.reader-page__dialogue {
  padding-left: 3rem;
  font-style: italic;
}

.reader-page__divider {
  width: min(100%, 34rem);
  height: 0.1rem;
  margin: 3rem auto;
  background: linear-gradient(90deg, transparent, var(--reader-divider), transparent);
  border: 0;
}

.capitle {
  font-family: "Cinzel", "EB Garamond", "Baskerville", "Georgia", serif;
  font-size: 1.8rem;
  text-align: center;
  margin: 0.5rem auto 1.5rem;
  color: var(--reader-header-title, #222);
}

/* ==================================================
   ILUSTRACIONES DE ESCENA
================================================== */
.reader-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(48dvh, 50.625vw);
  width: 100%;
  margin: 2rem auto;
  flex: 0 0 auto;
  aspect-ratio: 16/9;
}
.reader-illustration img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 0.8rem 2rem var(--reader-illustration-shadow), 0 0 0 0.1rem var(--reader-illustration-border);
}
.reader-illustration.is-missing {
  width: 90%;
  aspect-ratio: 16/9;
  margin-inline: auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--reader-placeholder-start), var(--reader-placeholder-end)), var(--reader-soft-surface);
  border: 0.1rem dashed var(--reader-focus);
}
.reader-illustration.is-missing::before {
  content: "Ilustración panorámica pendiente";
  color: var(--reader-muted);
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.reader-illustration.is-missing img {
  display: none;
}

.marginornament {
  margin: 3rem auto;
}

/* ==================================================
   RESPONSIVE DEL LECTOR
================================================== */
@media (max-width: 1024px) {
  .chapter-reader {
    --reader-shell-width: min(calc(100% - 2rem), 130rem);
    --reader-footer-width: min(calc(100% - 3rem), 90rem);
  }
  .chapter-reader__reading-area {
    height: calc(100% - 1rem);
    margin: 0.5rem auto;
  }
  .reader-page {
    padding-inline: clamp(2.5rem, 6vw, 5rem);
  }
}
@media (max-width: 768px) {
  .chapter-reader {
    --reader-shell-width: 100%;
    --reader-footer-height: 6.2rem;
  }
  .chapter-reader__reading-area {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .chapter-reader__footer {
    grid-template-columns: 4.4rem minmax(10rem, 1fr) 4.4rem;
    width: 100%;
    padding: 0 1.4rem 0.8rem;
  }
  .chapter-reader__arrow {
    width: 4.2rem;
    height: 4.2rem;
  }
  .reader-page {
    padding: 1.8rem 2rem calc(var(--reader-footer-height) + 1.4rem);
  }
  .reader-page__body > p, .reader-page__cadence p, .reader-page__questions p {
    font-size: clamp(1.3rem, 4.7vw, 1.6rem);
  }
  .prologue-book__first-paragraph::first-letter {
    font-size: 4.6rem;
  }
}
@media (max-height: 760px) and (min-width: 769px) {
  .reader-page {
    padding-top: 1.5rem;
    padding-bottom: calc(var(--reader-footer-height) + 1.5rem);
  }
  .reader-page__body > p, .reader-page__cadence p, .reader-page__questions p {
    font-size: clamp(1.35rem, 1.25vw, 1.55rem);
    line-height: 1.52;
  }
}
@media (max-width: 560px) {
  .reader-progress__counter {
    gap: 0.35rem;
    font-size: 1.05rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reader-page,
  .reader-progress__bar,
  .chapter-reader__arrow {
    transition-duration: 0.01ms !important;
  }
}
@media (max-height: 600px) and (orientation: landscape) {
  .reader-illustration {
    height: min(38dvh, 56.25vw);
    margin: 1rem auto;
  }
  .reader-illustration img {
    max-width: 100%;
    max-height: 100%;
  }
}
.reader-page__end {
  font-family: var(--reader-decorative-font);
  font-weight: 500;
  font-size: 2.5rem;
  text-align: center;
  margin: 1rem auto;
}

.historical-map-link {
  font-weight: bold;
}

/* ==================================================
   NOTAS HISTÓRICAS · COMPONENTE COMPARTIDO
   La estructura es común; cada libro redefine las variables --reader-note-*
   y, si lo necesita, el aspecto del enlace disparador.
================================================== */
.historical-note-link {
  display: inline;
  padding: 0 0.2rem;
  color: var(--reader-accent);
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 0.7em;
  font-weight: 800;
  line-height: 1;
  vertical-align: super;
  cursor: pointer;
}
.historical-note-link:hover, .historical-note-link:focus-visible {
  text-decoration: underline;
}

.historical-note {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2.4rem;
}
.historical-note[hidden] {
  display: none;
}
.historical-note__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: var(--reader-note-backdrop);
  border: 0;
  backdrop-filter: blur(0.45rem);
  cursor: pointer;
}
.historical-note__card {
  position: relative;
  z-index: 1;
  width: min(78rem, 94vw);
  max-height: min(82vh, 82rem);
  padding: clamp(3.8rem, 5vw, 5.6rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--reader-ink);
  background-color: var(--reader-paper);
  background-image: radial-gradient(circle at 18% 22%, var(--reader-note-grain-primary) 0, var(--reader-note-grain-primary) 0.08rem, transparent 0.11rem), radial-gradient(circle at 72% 68%, var(--reader-note-grain-secondary) 0, var(--reader-note-grain-secondary) 0.07rem, transparent 0.1rem), linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 48%, var(--reader-note-wash));
  background-size: 1.9rem 2.1rem, 2.7rem 2.4rem, 100% 100%;
  border: 0.1rem solid var(--reader-note-border);
  border-radius: 0.7rem;
  box-shadow: 0 0.8rem 1.8rem var(--reader-note-shadow-near), 0 2.8rem 7rem var(--reader-note-shadow-far);
}
.historical-note__card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 0.1rem solid var(--reader-note-frame);
  border-radius: 0.4rem;
  pointer-events: none;
}
.historical-note__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: var(--reader-close-ink);
  background: radial-gradient(circle at 35% 30%, var(--reader-close-start) 0%, var(--reader-close-mid) 45%, var(--reader-close-end) 100%);
  border: 0.2rem solid var(--reader-close-border);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.3rem var(--reader-close-shadow), inset 0 0.2rem 0.4rem var(--reader-close-highlight), 0 0.4rem 1.2rem rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  transition: color var(--reader-transition), background var(--reader-transition), border-color var(--reader-transition), transform var(--reader-transition), box-shadow var(--reader-transition);
}
.historical-note__close::before, .historical-note__close::after {
  content: "";
  position: absolute;
  width: 1.45rem;
  height: 0.18rem;
  box-shadow: 0 0.1rem 0 rgba(255, 255, 255, 0.08);
  background: currentColor;
  border-radius: 999rem;
}
.historical-note__close::before {
  transform: rotate(45deg);
}
.historical-note__close::after {
  transform: rotate(-45deg);
}
.historical-note__close:hover {
  color: var(--reader-accent);
  background: var(--reader-soft-surface);
  border-color: var(--reader-close-hover-border);
  box-shadow: 0 0 0 0.25rem var(--reader-close-hover-ring), 0 0.65rem 1.4rem var(--reader-close-hover-shadow);
  transform: scale(1.05);
}
.historical-note__close:active {
  transform: scale(0.94);
}
.historical-note__close:focus-visible {
  outline: 0.25rem solid var(--reader-note-focus);
  outline-offset: 0.3rem;
}
.historical-note__number {
  margin: 0 0 0.8rem;
  color: var(--reader-accent);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.historical-note__title {
  margin: 0 0 3rem;
  color: var(--reader-ink);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}
.historical-note__section {
  position: relative;
  z-index: 1;
}
.historical-note__section + .historical-note__section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 0.1rem solid var(--reader-note-section-line);
}
.historical-note__section h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.9rem;
  color: var(--reader-accent);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.historical-note__section h3::before {
  content: "";
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  background: currentColor;
  border-radius: 0.08rem;
  transform: rotate(45deg);
}
.historical-note__section h3::after {
  content: "";
  flex: 0 0 3.2rem;
  height: 0.1rem;
  background: currentColor;
  opacity: 0.34;
}
.historical-note__section p {
  margin: 0;
  color: var(--reader-ink);
  font-family: var(--font-reader);
  font-size: clamp(1.4rem, 1.4vw, 1.6rem);
  font-optical-sizing: auto;
  line-height: 1.55;
  text-wrap: pretty;
}

.has-open-note {
  overflow: hidden;
}

@media (max-width: 768px) {
  .historical-note {
    padding: 1.2rem;
  }
  .historical-note__card {
    max-height: 88vh;
    padding: 3rem 2.2rem;
  }
}
/* =========================================================
comming soon
========================================================= */
.chapter-reader--coming-soon .book-header__title {
  text-transform: uppercase;
}

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 3rem 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
}
.coming-soon__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  min-height: 80vh;
}
.coming-soon {
  /* --- CABECERA (TABLILLA + ORNAMENTOS) --- */
}
.coming-soon__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 2.2rem;
}
.coming-soon__tablet {
  width: 100%;
  height: auto;
  display: block;
}
.coming-soon {
  /* --- TEXTOS --- */
}
.coming-soon p {
  font-size: 2rem;
}
.coming-soon {
  /* --- ENLACE INFERIOR --- */
}
.coming-soon__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 4.5rem;
  color: var(--reader-accent, #214b5e);
  font-size: 1.6rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.coming-soon__link span {
  font-size: 2rem;
  line-height: 1;
}
.coming-soon__link:hover {
  color: var(--reader-accent-light, #4f7c8c);
  transform: translateX(-3px);
}

/* Adaptación para móviles */
@media (max-width: 480px) {
  .coming-soon__divider {
    max-width: 50px;
  }
  .coming-soon__tablet {
    width: 72px;
  }
  .coming-soon__link {
    margin-top: 3rem;
  }
}

/*# sourceMappingURL=reader.css.map */
