/* ==========================================================================
   LIBRO VIVIENTE V2 — EXPERIENCIA EDITORIAL HORIZONTAL
   Disciplina: Antroposofía — antroposofia.net.ar
   Diseño: Premium Minimalista / Apple Wellness Editorial
   ========================================================================== */

:root {
  /* Paleta Editorial Primaria */
  --bg-book: #FBF8F3;
  --bg-page: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.88);
  --text-main: #2C2621;
  --text-secondary: #6B5E52;
  --text-muted: #9E8E81;
  
  /* Acentos Nobles y Dorados */
  --accent-gold: #B8860B;
  --accent-gold-light: #DFB75A;
  --accent-gold-bg: rgba(184, 134, 11, 0.08);
  --border-light: rgba(184, 134, 11, 0.22);
  --border-subtle: rgba(44, 38, 33, 0.08);
  
  /* Sombras y Luces */
  --shadow-book: 0 20px 50px rgba(44, 38, 33, 0.12), 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.14);
  --shadow-sheet: 0 4px 20px rgba(0, 0, 0, 0.04);
  
  /* Tipografías */
  --font-title: 'Playfair Display', Georgia, serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-brand: 'Cinzel', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transiciones */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo Noche / Sepia Oscuro */
body.theme-dark {
  --bg-book: #161513;
  --bg-page: #1F1D1A;
  --bg-card: rgba(31, 29, 26, 0.92);
  --text-main: #E8E2D9;
  --text-secondary: #B5A89B;
  --text-muted: #7A6F64;
  --accent-gold: #D4AF37;
  --accent-gold-light: #E8C86A;
  --accent-gold-bg: rgba(212, 175, 55, 0.12);
  --border-light: rgba(212, 175, 55, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-book: 0 25px 60px rgba(0, 0, 0, 0.65);
}

/* ── Reset y Base ─────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-book);
  color: var(--text-main);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* ── Contenedor Maestro Viewport ─────────────────────────────────────────── */
#book-viewport {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

/* ── Barra Superior Flotante Ultra-Liviana (Glassmorphism Minimal) ── */
#top-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(251, 248, 243, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  opacity: 0.75;
  border-bottom: 1px solid rgba(184, 134, 11, 0.12);
  transition: opacity 0.25s ease, background 0.3s ease;
}

body.theme-dark #top-toolbar {
  background: rgba(22, 21, 19, 0.75);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

#top-toolbar:hover {
  opacity: 1;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.toolbar-btn:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
}

.toolbar-title-center {
  font-family: var(--font-brand);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45vw;
}

/* ── Barra de Progreso Inferior ───────────────────────────────────────────── */
#reading-progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  z-index: 1001;
  transition: width 0.3s ease;
}

/* ── Flechas de Navegación Lateral (Diseño Apple Minimal) ─────────────────── */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  color: var(--accent-gold);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  box-shadow: var(--shadow-float);
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-arrow:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
  border-color: var(--accent-gold);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}

.nav-arrow.left-arrow {
  left: 18px;
}

.nav-arrow.right-arrow {
  right: 18px;
}

/* ── TIPOS DE PANTALLAS (SPREADS) ────────────────────────────────────────── */

/* 1. PORTADA DEL LIBRO */
.spread-cover {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.cover-card-container {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--bg-card);
  padding: 36px 48px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-book);
  max-width: 960px;
  max-height: 86vh;
}

.cover-portrait-img {
  max-height: 68vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  object-fit: contain;
}

.cover-editorial-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  text-align: left;
}

.cover-discipline-badge {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cover-main-title {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 12px;
}

.cover-author-line {
  font-family: var(--font-brand);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.cover-description-p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.btn-open-book {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--accent-gold), #966C05);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.35);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-open-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.45);
}

/* 2. PANTALLA HERO: RESUMEN VISUAL (MODO FULL-CANVAS INMERSIVO 3:2) */
.spread-visual-summary {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.summary-card-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 46px 20px 38px 20px;
  box-sizing: border-box;
}

.summary-infographic-img {
  display: block;
  width: min(calc(100vw - 36px), calc((100vh - 84px) * 1.5));
  height: min(calc(100vh - 84px), calc((100vw - 36px) / 1.5));
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 84px);
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  cursor: zoom-in;
  margin: 0 auto;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.summary-infographic-img:hover {
  transform: scale(1.008);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28), 0 0 24px rgba(184, 134, 11, 0.2);
}

/* La acción de lectura ahora se ubica limpiamente en la barra superior; se elimina el dock superpuesto */
.summary-action-row {
  display: none !important;
}

/* 3. PANTALLA DE LECTURA HORIZONTAL DEL ARTÍCULO (SPREAD DE 2 PÁGINAS) */
.spread-reading-pages {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 30px 40px;
}

.book-pages-container {
  display: flex;
  width: min(92vw, 1400px);
  height: min(84vh, 760px);
  background: var(--bg-page);
  border-radius: 12px;
  box-shadow: var(--shadow-book);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
}

/* Lomo central sutil del libro */
.book-pages-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-light) 15%, var(--border-light) 85%, transparent);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

.reading-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 48px;
  overflow: hidden;
  position: relative;
}

.reading-page.page-left {
  padding-right: 44px;
}

.reading-page.page-right {
  padding-left: 44px;
}

/* Encabezado Editorial del Capítulo */
.reading-chapter-header {
  border-bottom: 1.5px solid var(--accent-gold);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.reading-category-pill {
  font-family: var(--font-brand);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.reading-article-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 6px;
}

.reading-article-desc {
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
}

/* Cuerpo de Texto Editorial */
.reading-body-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.76;
  color: var(--text-main);
  text-align: justify;
  overflow: hidden;
  padding-right: 6px;
}

/* Destacado Poético de Nota del Autor */
.author-quote-box {
  background: var(--accent-gold-bg);
  border-left: 3px solid var(--accent-gold);
  padding: 12px 18px;
  margin: 14px 0 12px 0;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent-gold);
}
.author-quote-box p {
  margin-bottom: 4px !important;
}
.author-quote-box p:last-child {
  margin-bottom: 0 !important;
}

/* Destacado Poético del Epílogo */
.epilogue-quote-highlight {
  border-left: 3px solid var(--accent-gold);
  padding: 16px 20px;
  margin: 22px 0 16px 0;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--accent-gold);
  background: var(--accent-gold-bg);
  border-radius: 0 8px 8px 0;
}

.epilogue-signature {
  text-align: right;
  font-family: var(--font-brand);
  color: var(--accent-gold);
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-top: 24px;
  font-size: 13px;
}

/* Tarjeta Contratapa Optimizada */
.backcover-card {
  max-width: 820px;
  max-height: 90vh;
  padding: 24px 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.backcover-card .reading-body-text {
  font-size: 14px;
  line-height: 1.62;
  overflow: visible;
  margin-bottom: 8px;
}

.backcover-card .reading-body-text p {
  margin-bottom: 8px;
}

.backcover-manifesto {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-gold);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  margin: 10px 0 6px 0;
  line-height: 1.55;
}

.reading-body-text p {
  margin-bottom: 14px;
}

/* Letra Capitular (Drop Cap) en el primer párrafo */
.reading-body-text.has-dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-title);
  font-size: 48px;
  line-height: 40px;
  padding-top: 4px;
  padding-right: 10px;
  padding-bottom: 2px;
  color: var(--accent-gold);
  font-weight: 700;
}

.reading-body-text h2, .reading-body-text h3 {
  font-family: var(--font-title);
  color: var(--text-main);
  margin: 18px 0 10px 0;
  line-height: 1.35;
}

.reading-body-text h2 { font-size: 18px; border-left: 3px solid var(--accent-gold); padding-left: 10px; }
.reading-body-text h3 { font-size: 16px; font-weight: 600; }

.reading-body-text blockquote {
  border-left: 2px solid var(--accent-gold);
  padding: 8px 16px;
  margin: 14px 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--accent-gold-bg);
  border-radius: 0 6px 6px 0;
}

.reading-body-text ul, .reading-body-text ol {
  margin: 10px 0 14px 24px;
}

.reading-body-text li {
  margin-bottom: 6px;
}

/* Pie de Página Editorial */
.page-editorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 8px;
  font-family: var(--font-brand);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.page-editorial-footer span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82%;
}
.page-editorial-footer span:last-child {
  font-weight: 700;
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* 4. ÍNDICE GENERAL INTERACTIVO (TOC) */
.spread-index-toc {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 30px 40px;
}

.toc-card-container {
  width: min(92vw, 1300px);
  height: min(84vh, 760px);
  background: var(--bg-page);
  border-radius: 12px;
  box-shadow: var(--shadow-book);
  border: 1px solid var(--border-light);
  padding: 36px 48px;
  display: flex;
  flex-direction: column;
}

.toc-header {
  text-align: center;
  margin-bottom: 24px;
}

.toc-header h2 {
  font-family: var(--font-title);
  font-size: 28px;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.toc-header p {
  font-family: var(--font-brand);
  font-size: 11px;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}

.toc-grid-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.toc-grid-columns::-webkit-scrollbar {
  width: 5px;
}
.toc-grid-columns::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.toc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-gold-bg);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toc-item-row:hover {
  background: rgba(184, 134, 11, 0.15);
  transform: translateX(4px);
}

.toc-item-left {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  display: flex;
  flex-direction: column;
  margin-right: 8px;
}

.toc-item-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-item-category {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-item-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SPREAD MANUAL DE VIDA (22 CÓDIGOS) ──────────────────────────────────── */
.manual-intro-p {
  font-size: 12px;
  line-height: 1.48;
  color: var(--text-main);
  margin-bottom: 6px;
}

.manual-section-title {
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 8px 0 6px 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 3px;
}

.manual-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}

.manual-chapters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5px 12px;
  margin: 6px 0 8px 0;
}

.manual-subcol {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  min-width: 0;
}

.manual-chapter-item {
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 1.34;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  padding: 2.5px 5px;
  border-radius: 4px;
  min-width: 0;
}

.manual-chapter-item .manual-ch-title,
.manual-chapter-item span:first-child {
  white-space: normal;
  display: block;
  word-break: normal;
}

.manual-chapter-item strong {
  color: var(--accent-gold);
  font-family: var(--font-brand);
  font-size: 10.5px;
  margin-right: 3px;
}

.manual-chapter-item.active {
  color: var(--accent-gold);
  font-weight: 700;
  background: var(--accent-gold-bg);
  border-left: 3px solid var(--accent-gold);
  padding: 3px 6px;
}

.manual-chapter-item.active strong {
  color: var(--accent-gold);
}

.manual-badge {
  font-family: var(--font-brand);
  font-size: 8.5px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  background: rgba(184, 134, 11, 0.15);
  padding: 1.5px 5px;
  border-radius: 3px;
  margin-top: 2px;
  white-space: nowrap;
  display: inline-block;
}

.manual-feature-box {
  background: var(--accent-gold-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 6px 12px;
  margin: 6px 0;
  text-align: center;
}

.manual-feature-title {
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
}

.manual-feature-sub {
  font-family: var(--font-title);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1px;
}

.manual-feature-desc {
  font-size: 10.5px;
  line-height: 1.38;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 3px;
}

.manual-links-box {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10.5px;
  color: var(--text-secondary);
  text-align: center;
}

.manual-link {
  display: inline-block;
  color: var(--accent-gold);
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin: 2px 5px;
  padding: 2px 8px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.manual-link:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Indicador de Página en Resumen Visual */
.summary-page-footer {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(8px);
  padding: 5px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  font-family: var(--font-brand);
  font-size: 10.5px;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
body.theme-dark .summary-page-footer {
  background: rgba(22, 21, 19, 0.88);
}

/* 5. LIGHTBOX DE INSPECCIÓN EN ALTA RESOLUCIÓN */
#lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

#lightbox-modal.active {
  display: flex;
}

#lightbox-img {
  max-width: 98vw;
  max-height: 98vh;
  width: min(98vw, calc(98vh * 1.5));
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95);
  transition: transform 0.2s ease;
}

/* ── RESPONSIVE Y PANTALLAS PEQUEÑAS ──────────────────────────────────────── */
@media (max-width: 900px) {
  .book-pages-container {
    flex-direction: column;
    height: 85vh;
  }
  .book-pages-container::before {
    display: none;
  }
  .reading-page.page-right {
    display: none; /* En pantallas pequeñas se muestra 1 página a la vez */
  }
  .toc-grid-columns {
    grid-template-columns: 1fr;
  }
  .cover-card-container {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .cover-portrait-img {
    max-height: 40vh;
  }
  .summary-action-row {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    padding: 4px 8px;
  }
  .summary-infographic-img {
    max-width: 98vw;
    max-height: calc(100vh - 70px);
  }
}

/* ── AJUSTES DE CIFRAS RECTAS (LINING NUMBERS) Y DESTACADOS EN NEGRITA ───── */
html, body, *, *::before, *::after {
  font-variant-numeric: lining-nums tabular-nums !important;
  -moz-font-feature-settings: "lnum" 1, "tnum" 1 !important;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1 !important;
  font-feature-settings: "lnum" 1, "tnum" 1 !important;
}

.manual-chapter-item strong,
.toc-item-page,
.page-editorial-footer span:last-child,
.summary-page-footer,
.reading-category-pill,
.manual-badge {
  font-family: var(--font-ui) !important;
  font-variant-numeric: lining-nums tabular-nums !important;
  font-feature-settings: "lnum" 1, "tnum" 1 !important;
}

/* Textos destacados con fondo beige/dorado: siempre en NEGRITA manteniendo su color */
.author-quote-box,
.author-quote-box p,
.epilogue-quote-highlight,
.manual-feature-box,
.manual-feature-desc,
.reading-body-text blockquote {
  font-weight: 700 !important;
}

/* Cabeceras de Lectura Alineadas (Running Headers) */
.reading-chapter-header.running-header {
  height: 30px;
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--accent-gold);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
