:root {
  /* Paleta Rojo Santo (fiel al color carmesí-terracota real del libreto físico) + Oro Mostaza + Papel Web Limpio */
  --burgundy-950: #240608;
  --burgundy-900: #3d0b0f;
  --burgundy-850: #541117;
  --burgundy-800: #701920;
  --burgundy-700: #8e232a;
  --burgundy-600: #a83238;
  --burgundy-500: #bd3b42;

  --santo-red: #a83238;
  --santo-red-deep: #96282e;
  --santo-red-page: #b2292e;
  --santo-ochre: #b88d24;
  --santo-ochre-line: #cba12c;
  --santo-banner-gold: #d4a91e;

  --gold-600: #b08b21;
  --gold-500: #d4af37;
  --gold-400: #e6c65a;
  --gold-300: #f5df8e;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --paper-cream: #fbf9f4;
  --paper-warm: #f4efe4;
  --paper-border: #e4dac8;
  --ink-900: #1e1a1b;
  --ink-700: #4a383a;
  --ink-500: #785e62;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-roman: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h: 64px;
  --player-h: 98px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background-color: var(--burgundy-950);
  background-image:
    radial-gradient(circle at 50% 18%, rgba(115, 18, 33, 0.55) 0%, rgba(30, 3, 7, 0.96) 75%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 2px, transparent 2px, transparent 6px);
  color: var(--paper-cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  padding-top: var(--header-h);
  padding-bottom: calc(var(--player-h) + var(--safe-bottom) + 24px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ==========================================================================
   CABECERA PRINCIPAL
   ========================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: linear-gradient(180deg, rgba(51, 6, 13, 0.97) 0%, rgba(71, 9, 19, 0.95) 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 10px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  min-width: 0;
  flex: 0 1 auto;
}

.tau-emblem {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--burgundy-700), var(--burgundy-900));
  border: 1.5px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.28);
  transition: transform 0.2s ease;
  padding: 3px;
  flex-shrink: 0;
}

.header-brand:hover .tau-emblem {
  transform: scale(1.06);
}

.tau-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
  display: block;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.brand-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--gold-300);
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.brand-sub {
  font-size: 0.7rem;
  color: rgba(250, 246, 238, 0.75);
  letter-spacing: 0.03em;
}

.header-center {
  flex: 1;
  max-width: 320px;
  display: flex;
  justify-content: center;
}


.chapter-selector-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(30, 3, 7, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 0 10px 0 14px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chapter-selector-wrap:hover,
.chapter-selector-wrap:focus-within {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.chapter-select-icon {
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  flex-shrink: 0;
  margin-right: 6px;
  user-select: none;
}

.chapter-select {
  flex: 1;
  min-width: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  color: var(--paper-cream);
  border: none;
  border-radius: 0;
  padding: 8px 26px 8px 0 !important;
  font-size: 0.84rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.chapter-select:hover,
.chapter-select:focus {
  border-color: transparent;
  box-shadow: none;
}

.chapter-select option {
  background: var(--burgundy-950);
  color: var(--paper-cream);
  padding: 8px 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

#toggleSpreadBtn {
  display: none !important;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 3, 7, 0.65);
  color: rgba(250, 246, 238, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-pill:hover {
  background: var(--burgundy-700);
  border-color: var(--gold-400);
  color: #fff;
}

.action-pill.active {
  background: rgba(115, 18, 33, 0.9);
  border-color: var(--gold-400);
  color: var(--gold-300);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.action-pill.gold-pill {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--burgundy-950);
  border-color: var(--gold-300);
  font-weight: 700;
}

.action-pill.gold-pill:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.action-pill.active .dot-indicator {
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

.color-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7a1220;
  border: 1.5px solid var(--gold-300);
}

/* ==========================================================================
   ÁREA DE TRABAJO DEL LIBRO INTERACTIVO
   ========================================================================== */
.book-workspace {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-top-bar {
  display: none !important;
}

.page-breadcrumb {
  display: none !important;
}

.page-badge {
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--burgundy-700);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.section-crumb {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--paper-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.interactive-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.interactive-hint.is-hidden {
  display: none !important;
}

.quick-nav-links {
  display: none !important;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.text-link-btn:hover {
  color: #fff;
  background: rgba(212, 175, 55, 0.18);
}

.sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   ESCENARIO DEL LIBRO Y PÁGINAS CON ZONAS CLICABLES
   ========================================================================== */
.book-stage-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 6px 0;
}

.page-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(92, 13, 25, 0.95), rgba(51, 6, 13, 0.95));
  color: var(--gold-300);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-nav-arrow:hover:not(:disabled) {
  background: var(--gold-500);
  color: var(--burgundy-950);
  transform: translateY(-50%) scale(1.08);
}

.page-nav-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.prev-arrow {
  left: 4px;
}

.next-arrow {
  right: 4px;
}

.book-viewport {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 4px 22px;
  padding: 4px 62px;
}

.book-spread {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: var(--burgundy-900);
  border-radius: 10px;
  padding: 8px;
  border: 2px solid rgba(212, 175, 55, 0.42);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(92, 13, 25, 0.8),
    inset 0 0 18px rgba(0, 0, 0, 0.65);
  transition: transform 0.25s ease;
  max-width: 100%;
}

.book-page-card {
  position: relative;
  background: var(--burgundy-900);
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
}

.book-spread.is-single .book-page-card {
  width: min(92vw, calc((100vh - 210px) * 0.95), 760px);
  max-width: 760px;
  border-radius: 6px;
}

.book-spread.is-wide-spread .book-page-card {
  width: min(94vw, calc((100vh - 210px) * 1.91), 1320px);
  max-width: 1320px;
  border-radius: 6px;
}

/* Modo Zoom para lectura detallada */
body.page-zoomed .book-spread.is-single .book-page-card {
  width: min(98vw, 1080px);
  max-width: 1080px;
}

body.page-zoomed .book-spread.is-wide-spread .book-page-card {
  width: min(98vw, 1520px);
  max-width: 1520px;
}

.book-page-surface {
  position: relative;
  width: 100%;
  aspect-ratio: 1374 / 1446;
  background: var(--burgundy-900);
}

.book-page-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Numeración integrada en la esquina que aparece al pasar página y se desvanece suavemente para no tapar ningún texto */
.page-corner-num {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(24, 3, 7, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  z-index: 25;
  pointer-events: none;
  animation: pageNumFadeOut 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageNumFadeOut {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  72% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(3px);
  }
}

/* ==========================================================================
   ZONAS INTERACTIVAS (HOTSPOTS) SOBRE LOS TEXTOS DEL LIBRO
   ========================================================================== */
.page-hotspot {
  position: absolute;
  z-index: 20;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  border: 1.5px dashed transparent;
  box-shadow: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

.page-hotspot:hover,
.page-hotspot:focus-visible {
  background: rgba(212, 175, 55, 0.08) !important;
  border: 1.5px solid var(--gold-400) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
}

.page-hotspot.is-selected {
  background: rgba(212, 175, 55, 0.08) !important;
  border: 2px solid var(--gold-400) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35) !important;
}

.page-hotspot.is-playing {
  background: rgba(212, 175, 55, 0.12) !important;
  border: 2px solid var(--gold-300) !important;
  box-shadow: 0 0 16px 2px rgba(212, 175, 55, 0.4) !important;
  animation: hotspotPlayingPulse 2s ease-in-out infinite;
}

.hotspot-pill {
  display: none !important;
}

/* En la página 37 (Índice General de 31 pistas): NO poner botones ni pastillas que tapen la lista */
.book-page-card[data-page="37"] .hotspot-pill-tag,
.book-page-card[data-page="37"] .hotspot-pill {
  display: none !important;
}

.book-page-card[data-page="37"] .page-hotspot {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}

.book-page-card[data-page="37"] .page-hotspot:hover {
  background: rgba(212, 175, 55, 0.1) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 4px;
}

.book-page-card[data-page="37"] .page-hotspot.is-playing {
  background: rgba(212, 175, 55, 0.16) !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.25) !important;
  animation: none !important;
}

/* ==========================================================================
   DESLIZADOR DE PÁGINAS (SCRUBBER BAR) — Oculto para vista limpia fiel al libro
   ========================================================================== */
.page-scrubber-bar {
  display: none !important;
}

.mobile-turn-btn {
  background: var(--burgundy-700);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mobile-turn-btn:hover:not(:disabled) {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

.mobile-turn-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.scrubber-slider-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#pageRangeSlider {
  width: 100%;
  accent-color: var(--gold-500);
  cursor: pointer;
  height: 6px;
}

/* ==========================================================================
   PANEL DE TRANSCRIPCIÓN Y LETRAS INTERACTIVAS DE LA PÁGINA
   ========================================================================== */
.interactive-reading-panel {
  display: none !important;
}

.reading-panel-header {
  display: none !important;
}

.reading-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tau-mini {
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

#readingPanelTitle {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--gold-300);
}

.reading-subtitle {
  font-size: 0.8rem;
  color: rgba(250, 246, 238, 0.72);
}

.reading-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.reading-card {
  background: var(--paper-cream);
  color: var(--ink-900);
  border-radius: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--paper-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.reading-card.is-clickable-track {
  cursor: pointer;
  border-left: 5px solid var(--burgundy-700);
}

.reading-card.is-clickable-track:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  border-left-color: var(--burgundy-600);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.reading-card.is-playing-card {
  background: #fffdf7;
  border-color: var(--gold-500);
  border-left: 6px solid var(--burgundy-600);
  box-shadow: 0 0 0 2px var(--gold-400), 0 10px 26px rgba(0, 0, 0, 0.45);
}

.reading-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.reading-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--burgundy-800);
  line-height: 1.25;
}

.reading-play-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--burgundy-700);
  color: var(--gold-300);
  border: 1px solid var(--gold-500);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.reading-card.is-clickable-track:hover .reading-play-badge,
.reading-card.is-playing-card .reading-play-badge {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

.reading-card-prose {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-900);
  white-space: pre-line;
}

.reading-card-lyrics {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: var(--burgundy-900);
  background: rgba(115, 18, 33, 0.055);
  border-left: 3px solid var(--gold-500);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  white-space: pre-line;
}

.reading-card-credits {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.94rem;
  color: var(--ink-700);
  border-top: 1px dashed rgba(115, 18, 33, 0.2);
  padding-top: 8px;
}

/* ==========================================================================
   REPRODUCTOR DE AUDIO INFERIOR (DOCK SINCRONIZADO)
   ========================================================================== */
.audio-player-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(64, 8, 17, 0.98) 0%, rgba(32, 3, 8, 0.99) 100%);
  backdrop-filter: blur(18px);
  border-top: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
  padding: 6px 16px calc(8px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.time-label {
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-300);
  min-width: 34px;
  text-align: center;
}

.progress-slider-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

#audioSeekSlider {
  width: 100%;
  accent-color: var(--gold-400);
  height: 5px;
  cursor: pointer;
}

.player-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.player-disc-thumb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.75));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.player-disc-thumb:hover {
  transform: scale(1.09);
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.55));
}

.player-disc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: spinDisc 9s linear infinite;
  animation-play-state: paused;
}

.player-disc-thumb.spinning img {
  animation-play-state: running;
}

@keyframes spinDisc {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.player-text-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
}

.player-title-line {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.track-num-badge {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.track-title-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: #fff;
  white-space: normal;
  overflow: visible;
  word-break: normal;
  overflow-wrap: break-word;
  letter-spacing: 0.01em;
}

.player-sub-line {
  font-size: 0.74rem;
  color: rgba(250, 246, 238, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.go-track-page-btn {
  background: rgba(115, 18, 33, 0.85);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.go-track-page-btn:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

.player-transport-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Botones de atras y adelante visibles en el reproductor */
#prevTrackBtn,
#nextTrackBtn {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#rewind10Btn,
#forward10Btn,
.player-quick-select-wrap {
  display: none !important;
}

/* Ocultar textos adicionales pequeños y badges para dejar SOLO el nombre de la canción */
.track-num-badge,
#playerTrackNum,
.player-sub-line,
#playerTrackSub,
.go-track-page-btn,
#goTrackPageBtn {
  display: none !important;
}

.transport-btn {
  background: rgba(255, 255, 255, 0.07);
  color: var(--paper-cream);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.transport-btn:hover {
  background: var(--burgundy-600);
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.seek-step-btn {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  width: auto;
  padding: 0 9px;
  height: 32px;
}

.play-pause-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--burgundy-950);
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.play-pause-btn:hover {
  transform: scale(1.07);
  filter: brightness(1.08);
}

.player-extra-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.sync-toggle-btn {
  display: none !important;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 246, 238, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.sync-toggle-btn.active {
  background: rgba(115, 18, 33, 0.9);
  color: var(--gold-300);
  border-color: var(--gold-400);
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.sync-toggle-btn.active .sync-dot {
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

#volumeSlider {
  width: 72px;
  accent-color: var(--gold-400);
  cursor: pointer;
}

.playlist-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--burgundy-700);
  color: var(--gold-300);
  border: 1px solid var(--gold-400);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.playlist-drawer-btn svg {
  flex-shrink: 0;
  display: block;
}

.playlist-drawer-btn:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

/* ==========================================================================
   CAJÓN LATERAL (ÍNDICE DE 31 PISTAS Y 38 PÁGINAS)
   ========================================================================== */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 1, 3, 0.72);
  backdrop-filter: blur(5px);
  z-index: 200;
}

.tracks-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 460px);
  background: linear-gradient(180deg, var(--burgundy-900) 0%, var(--burgundy-950) 100%);
  border-left: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 210;
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-300);
}

.drawer-subtitle {
  font-size: 0.76rem;
  color: rgba(250, 246, 238, 0.7);
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 1rem;
  cursor: pointer;
}

.drawer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 14px 0;
  gap: 8px;
}

.drawer-tab {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(250, 246, 238, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 9px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.drawer-tab.active {
  background: var(--burgundy-700);
  color: var(--gold-300);
  border-color: var(--gold-400);
}

.drawer-search-bar {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

#drawerSearchInput {
  width: 100%;
  background: rgba(20, 2, 5, 0.8);
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
  outline: none;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-section-header {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 10px;
  margin-bottom: 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.drawer-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-track-item:hover {
  background: rgba(115, 18, 33, 0.65);
  border-color: var(--gold-400);
}

.drawer-track-item.active {
  background: linear-gradient(90deg, rgba(140, 24, 42, 0.9), rgba(92, 13, 25, 0.9));
  border-color: var(--gold-400);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.drawer-track-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer-track-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--burgundy-800);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-track-item.active .drawer-track-num {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

.drawer-track-texts {
  min-width: 0;
}

.drawer-track-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-track-meta {
  font-size: 0.73rem;
  color: rgba(250, 246, 238, 0.68);
}

/* Lista de páginas con miniatura en el cajón */
.drawer-page-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.drawer-page-item:hover,
.drawer-page-item.active {
  background: rgba(115, 18, 33, 0.75);
  border-color: var(--gold-400);
}

.drawer-page-thumb {
  width: 46px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
}

/* ==========================================================================
   MODAL DE ACCESO MÓVIL Y QR
   ========================================================================== */
.modal-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: min(94vw, 520px);
  background: linear-gradient(180deg, var(--burgundy-850), var(--burgundy-950));
  border: 1.5px solid var(--gold-400);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.modal-header h3 {
  font-family: var(--font-display);
  color: var(--gold-300);
  font-size: 1.1rem;
}

.modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-intro {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(250, 246, 238, 0.9);
}

.qr-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(20, 2, 5, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 14px;
}

.qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 170px;
}

.qr-box img {
  width: 160px;
  height: 160px;
  display: block;
}

.urls-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.url-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.url-item a {
  color: var(--gold-300);
  font-weight: 700;
  word-break: break-all;
  text-decoration: none;
}

.copy-url-btn {
  background: var(--gold-500);
  color: var(--burgundy-950);
  border: none;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-tips-box {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--gold-400);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.mobile-tips-box ul {
  margin-top: 6px;
  padding-left: 18px;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   ADAPTACIÓN MÓVIL 100% ACCESIBLE
   ========================================================================== */
@media (max-width: 900px) {

  .desktop-only,
  .hide-mobile,
  .header-center {
    display: none !important;
  }

  .book-viewport {
    padding: 2px 12px;
  }

  .book-spread.is-single .book-page-card {
    width: min(94vw, calc((100vh - 210px) * 0.95), 700px);
    max-width: 100%;
  }

  .book-spread.is-wide-spread .book-page-card {
    width: min(96vw, calc((100vh - 210px) * 1.91), 1000px);
    max-width: 100%;
  }

  .book-stage-container {
    min-height: 0 !important;
    padding: 2px 0 !important;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 58px;
    --player-h: 106px;
  }

  .app-header {
    padding: 0 10px;
    gap: 8px;
    overflow: hidden;
  }

  .brand-sub,
  .hide-sm {
    display: none !important;
  }

  .header-brand {
    gap: 8px;
    min-width: max-content;
    flex: 1 0 auto !important;
    /* Prioridad absoluta: crece para mostrar el título completo y nunca encoge */
    overflow: visible;
  }

  .tau-emblem {
    width: 32px !important;
    height: 32px !important;
    border-radius: 7px;
    padding: 2px;
    flex-shrink: 0;
  }

  .brand-titles {
    min-width: max-content;
    overflow: visible;
    flex-shrink: 0;
  }

  .brand-main {
    font-size: clamp(0.92rem, 3.8vw, 1.08rem) !important;
    font-weight: 800;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    display: block;
    color: var(--gold-300);
    letter-spacing: 0.015em;
  }

  .header-center {
    display: none !important;
  }

  .hide-xs {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 1;
    /* Cede espacio y se compacta si es necesario */
    margin-left: auto;
    min-width: 0;
  }

  /* En móvil el libro siempre es a 2 páginas; ocultamos el selector 1/2 págs para no apretujar los botones de la cabecera */
  #toggleSpreadBtn {
    display: none !important;
  }

  .action-pill {
    padding: 4px 7px;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 1;
  }

  .action-pill svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .action-pill.admin-pill-btn {
    padding: 4px 7px;
  }

  .guide-btn-text-full {
    display: none !important;
  }

  .guide-btn-text-short {
    display: inline !important;
    font-size: 0.73rem;
    font-weight: 700;
  }

  .hide-sm-text {
    display: none !important;
  }

  /* Eliminar todo el gran espacio vacío superior al mostrar el libro */
  .book-stage-container {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .book-workspace {
    padding: 4px 6px 14px;
    gap: 5px;
  }

  .book-top-bar {
    display: none !important;
  }

  .page-breadcrumb {
    width: 100%;
    flex-wrap: nowrap !important;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
  }

  .section-crumb {
    font-size: 0.86rem;
    line-height: 1.25;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0;
    flex: 1;
  }

  .interactive-hint {
    width: 100%;
    justify-content: center;
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .quick-nav-links {
    font-size: 0.75rem;
  }

  .book-viewport {
    padding: 0;
  }

  .page-nav-arrow {
    width: 34px;
    height: 34px;
    background: rgba(51, 6, 13, 0.88);
  }

  .prev-arrow {
    left: 2px;
  }

  .next-arrow {
    right: 2px;
  }

  .book-spread {
    padding: 2px;
    width: 100%;
    border-radius: 6px;
    border-width: 1.5px;
  }

  .book-spread.is-single,
  .book-spread.is-wide-spread {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .book-spread.is-single .book-page-card,
  .book-spread.is-wide-spread .book-page-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-corner-num {
    bottom: 6px;
    right: 8px;
    padding: 2px 8px;
    font-size: 0.64rem;
  }

  .hotspot-pill-tag {
    padding: 1px 4.5px;
    font-size: 7px;
    top: 4px;
    right: 4px;
    transform: none;
  }

  .hotspot-pill-tag.tag-pos-inside-top {
    top: 4px !important;
    bottom: auto !important;
    transform: none !important;
  }

  .hotspot-pill-tag.tag-pos-inside-bottom {
    top: auto !important;
    bottom: 4px !important;
    transform: none !important;
  }

  .hotspot-pill-tag.tag-pos-left {
    right: auto !important;
    left: 4px !important;
  }

  .hotspot-pill-tag.tag-pos-right {
    left: auto !important;
    right: 4px !important;
  }

  .page-hotspot.is-playing .hotspot-pill-tag {
    opacity: 0.45;
  }


  .book-spread.is-single .book-page-card {
    width: 100%;
    max-width: 100%;
  }

  .reading-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Barra de reproducción inferior simplificada y limpia para móvil */
  .audio-player-dock {
    padding: 6px 10px calc(8px + var(--safe-bottom));
    gap: 4px;
  }

  .player-progress-row {
    gap: 8px;
  }

  .time-label {
    font-size: 0.7rem;
    min-width: 28px;
  }

  /* Ocultar elementos secundarios que saturan en móvil */
  .seek-step-btn,
  .volume-control-wrap,
  .sync-toggle-btn,
  .player-quick-select-wrap,
  .playlist-drawer-btn,
  .player-extra-controls,
  .track-num-badge,
  #playerTrackNum,
  .player-sub-line,
  #playerTrackSub,
  .go-track-page-btn,
  #goTrackPageBtn {
    display: none !important;
  }

  .player-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  /* Mostrar la información de la pista activa en móvil, con el nombre COMPLETO sin cortes */
  .player-track-info {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .player-disc-thumb {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .player-text-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .player-title-line {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .track-title-text {
    display: block;
    font-size: 0.9rem;
    line-height: 1.22;
    color: #fff;
    font-weight: 700;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* Controles de reproducción en móvil: Atrás, Play/Pausa, Adelante */
  .player-transport-controls {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  #prevTrackBtn,
  #nextTrackBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--paper-cream);
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
  }

  #prevTrackBtn svg,
  #nextTrackBtn svg {
    width: 16px;
    height: 16px;
  }

  .play-pause-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-sizing: border-box;
  }

  .playlist-drawer-btn span {
    display: none !important;
  }

  .playlist-drawer-btn svg {
    display: block;
    margin: 0 auto;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   PRIORIDAD ABSOLUTA AL TÍTULO "TRIGUEROS CON EL SANTO" EN MÓVIL
   ========================================================================== */
@media (max-width: 480px) {
  .header-brand {
    gap: 7px;
    flex: 1 0 auto !important;
  }

  .brand-main {
    font-size: 0.96rem !important;
    font-weight: 800;
  }

  .header-actions {
    gap: 4px;
    flex-shrink: 1;
  }

  /* Compactar 'Guía' a botón icono perfectamente centrado */
  .guide-btn-text,
  .guide-btn-text-short,
  .guide-btn-text-full {
    display: none !important;
  }

  .action-pill.guide-pill-btn {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  .action-pill.guide-pill-btn .guide-bulb {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13.5px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    transform: translateY(-0.5px);
  }
}

@media (max-width: 375px) {
  .header-brand {
    gap: 6px;
  }

  .tau-emblem {
    width: 28px !important;
    height: 28px !important;
  }

  .brand-main {
    font-size: 0.88rem !important;
  }

  .track-title-text {
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
  }

  .player-disc-thumb {
    width: 34px !important;
    height: 34px !important;
  }

  #prevTrackBtn,
  #nextTrackBtn {
    width: 30px !important;
    height: 30px !important;
  }

  .play-pause-btn {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ==========================================================================
   CARTEL OFICIAL DE DISCOS EN FÍSICO DISPONIBLES EN TIENDA
   ========================================================================== */
.physical-store-banner {
  background: linear-gradient(90deg, #420710 0%, #6d101f 50%, #420710 100%);
  border-bottom: 1.5px solid var(--gold-500);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  padding: 9px 16px;
  position: relative;
  z-index: 90;
}

.store-banner-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.store-banner-message {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
  text-align: center;
}

.store-real-disc-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
  flex-shrink: 0;
  animation: spinDisc 14s linear infinite;
}

.store-banner-text {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--paper-cream);
  line-height: 1.35;
}

.stock-number-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--burgundy-950);
  font-weight: 800;
  font-size: 0.96rem;
  padding: 1px 9px;
  border-radius: 999px;
  margin: 0 2px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.store-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-300);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.45);
  transition: all 0.18s ease;
}

.store-contact-link:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
  text-decoration: none;
  transform: translateY(-1px);
}

.banner-admin-edit-btn {
  background: rgba(20, 2, 5, 0.65);
  color: rgba(245, 223, 142, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.banner-admin-edit-btn:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
  border-color: var(--gold-300);
}

/* ==========================================================================
   BARRA DE SELECTOR DE PISTAS SIEMPRE VISIBLE Y AL ALCANCE
   ========================================================================== */
.always-visible-tracks-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 88;
  background: linear-gradient(180deg, rgba(44, 5, 11, 0.97) 0%, rgba(30, 3, 7, 0.96) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  padding: 6px 16px;
}

.quick-tracks-top-row {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-filter-btn {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-300);
  border: 1.5px solid rgba(212, 175, 55, 0.48);
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quick-filter-btn:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
  transform: translateY(-1px);
}

@media (max-width: 920px) {
  .always-visible-tracks-bar {
    padding: 5px 12px;
  }

  .quick-tracks-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .quick-filter-btn {
    padding: 5px 16px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

/* Cinta horizontal de las 31 pistas siempre a la vista */
.tracks-pills-scroller {
  display: none !important;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.06);
  -webkit-overflow-scrolling: touch;
}

.tracks-pills-scroller::-webkit-scrollbar {
  height: 5px;
}

.tracks-pills-scroller::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.tracks-pills-scroller::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.55);
  border-radius: 999px;
}

.track-pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(92, 13, 25, 0.55);
  color: rgba(250, 246, 238, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.track-pill-chip:hover {
  background: var(--burgundy-600);
  border-color: var(--gold-400);
  color: #fff;
  transform: translateY(-1px);
}

.track-pill-chip.active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--burgundy-950);
  border-color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.45);
}

.track-pill-num {
  font-weight: 800;
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Selector directo también en la barra fija del reproductor inferior */
.player-quick-select-wrap {
  display: flex;
  align-items: center;
}

.player-quick-track-select {
  background: rgba(92, 13, 25, 0.9);
  color: var(--gold-300);
  border: 1px solid var(--gold-400);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  max-width: 210px;
  cursor: pointer;
  outline: none;
}

.player-quick-track-select option {
  background: var(--burgundy-950);
  color: var(--paper-cream);
}

/* ==========================================================================
   MODALES DE CONTACTO TIENDA Y PANEL DE ADMINISTRADOR
   ========================================================================== */
.store-modal-highlight {
  background: linear-gradient(135deg, rgba(115, 18, 33, 0.85), rgba(51, 6, 13, 0.95));
  border: 1.5px solid var(--gold-400);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-modal-stock-line {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.store-modal-sub {
  font-size: 0.82rem;
  color: var(--gold-300);
}

.contact-methods-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--paper-cream);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.contact-action-card:hover {
  background: rgba(115, 18, 33, 0.85);
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.quick-contact-form,
.admin-auth-box,
.admin-config-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-300);
}

.admin-input {
  width: 100%;
  background: rgba(20, 2, 5, 0.82);
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  outline: none;
}

.admin-input:focus {
  border-color: var(--gold-300);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.inquiry-row {
  display: flex;
  gap: 8px;
}

.qty-small {
  width: 78px;
  text-align: center;
  flex-shrink: 0;
}

.stock-stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-big-input {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-300);
}

.stepper-btn {
  background: var(--burgundy-700);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stepper-btn:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

.admin-preview-banner {
  background: rgba(20, 2, 5, 0.65);
  border: 1px dashed rgba(212, 175, 55, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.84rem;
  color: var(--paper-cream);
}

.preview-tag {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-400);
  margin-bottom: 4px;
}

.admin-unlocked-badge {
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #86efac;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
}

.admin-error-msg {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-save-msg,
.inquiry-feedback {
  color: #86efac;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.gold-submit-btn {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--burgundy-950);
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: all 0.15s ease;
}

.gold-submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.admin-actions-row {
  display: flex;
  gap: 10px;
}

.admin-actions-row .gold-submit-btn {
  flex: 1;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper-cream);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 720px) {
  .store-banner-text {
    font-size: 0.82rem;
  }

  .banner-admin-edit-btn {
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .quick-select-label span:not(.pulse-note) {
    display: none;
  }

  .player-quick-track-select {
    /* max-width responsive */
    font-size: 0.7rem;
    padding: 4px 7px;
  }
}



/* ==========================================================================
    MAQUETACIÓN WEB NATIVA DE LAS 38 PÁGINAS DEL LIBRO-DISCO (SIN ESCANEOS)
   ========================================================================== */
.book-page-surface {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 2040;
  background: var(--paper-cream);
  container-type: inline-size;
  overflow: hidden;
  user-select: text;
}

.wb-page {
  position: relative;
  width: 100%;
  height: 100%;
  font-family: 'Times New Roman', 'Cormorant Garamond', Georgia, serif;
  color: var(--ink-900);
  font-size: clamp(10.5px, 2.55cqi, 24px);
  line-height: 1.34;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.wb-page-cream {
  background: #fbf9f4;
}

/* Marca de agua vertical central ("TRIGUEROS CON EL SANTO") */
.wb-watermark-center {
  position: absolute;
  left: 44.5%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 800;
  font-size: 5.5cqi;
  letter-spacing: 0.06em;
  color: rgba(212, 200, 174, 0.34);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.wb-watermark-center-red {
  position: absolute;
  left: 45%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 800;
  font-size: 5.5cqi;
  letter-spacing: 0.06em;
  color: rgba(145, 22, 28, 0.35);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Cabecera de capítulo (Páginas 11, 15, 19, 21, 23, 33, 35) fiel a la foto real */
.wb-sec-header {
  position: relative;
  z-index: 2;
  width: 96%;
  height: 23.5%;
  min-height: 21%;
  border-bottom: 2px solid var(--santo-ochre-line);
  border-right: 2px solid var(--santo-ochre-line);
  display: flex;
  align-items: flex-end;
  padding: 0 4% 2.4% 8.5%;
  margin-bottom: 2.2%;
  flex-shrink: 0;
}

.wb-sec-title-row {
  display: flex;
  align-items: flex-end;
  gap: 2.8cqi;
  width: 100%;
}

.wb-roman-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-shrink: 0;
}

.wb-arab-watermark {
  position: absolute;
  left: -1.4cqi;
  bottom: 0.4cqi;
  font-family: 'Times New Roman', Georgia, serif;
  font-weight: 700;
  font-size: 15.5cqi;
  line-height: 0.8;
  color: rgba(196, 154, 44, 0.14);
  pointer-events: none;
  user-select: none;
}

.wb-roman-num {
  position: relative;
  font-family: 'Times New Roman', Georgia, serif;
  font-weight: 700;
  font-size: 9.2cqi;
  line-height: 0.85;
  color: var(--santo-ochre);
  letter-spacing: -0.02em;
  text-shadow: 0.5px 0.5px 0 rgba(120, 88, 12, 0.25);
}

.wb-sec-title {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: 5.1cqi;
  line-height: 0.98;
  color: var(--santo-red);
  letter-spacing: -0.01em;
  text-shadow: 0.5px 0.5px 0 rgba(110, 20, 24, 0.18);
  margin: 0;
}

/* Contenedor interior de las páginas crema */
.wb-page-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 0.5% 5.5% 4.5% 6.5%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.6cqi;
}

.wb-top-pad {
  padding-top: 5.2%;
}

.wb-stack-gap {
  gap: 2.1cqi;
}

/* Bloques de pista interactivos en la propia página */
.wb-track-zone {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.wb-track-p {
  padding: 1.1cqi 1.5cqi;
  margin: -0.6cqi -1.2cqi;
  border: 1px solid transparent;
}

.wb-track-p:hover,
.wb-block-pad:hover {
  background: rgba(168, 50, 56, 0.065);
  border-color: rgba(203, 161, 44, 0.55);
  box-shadow: 0 2px 10px rgba(168, 50, 56, 0.1);
}

.wb-track-zone.is-selected.wb-track-p,
.wb-track-zone.is-selected.wb-block-pad {
  background: rgba(168, 50, 56, 0.055);
  border-left: 3px solid var(--santo-red);
}

.wb-track-zone.is-playing.wb-track-p,
.wb-track-zone.is-playing.wb-block-pad {
  background: rgba(212, 175, 55, 0.13);
  border: 1.5px solid var(--santo-ochre-line);
  border-left: 4px solid var(--santo-red);
  box-shadow: 0 3px 14px rgba(168, 50, 56, 0.16);
}

.wb-play-pill {
  position: absolute;
  top: 3px;
  right: 5px;
  z-index: 8;
  background: linear-gradient(135deg, var(--santo-red), var(--santo-red-deep));
  color: #fff;
  border: 1px solid var(--gold-400);
  font-family: var(--font-sans);
  font-size: clamp(9px, 1.85cqi, 13px);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  white-space: nowrap;
}

.wb-track-zone:hover>.wb-play-pill,
.wb-track-zone.is-playing>.wb-play-pill {
  opacity: 0.96;
  transform: translateY(0);
}

/* En todo el librillo ocultamos cualquier etiqueta flotante (Pista XX / Sonando) para que nunca tape títulos, textos ni letras */
.wb-play-pill,
.hotspot-pill {
  display: none !important;
}

.wb-track-zone.is-playing>.wb-play-pill {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--burgundy-950);
  border-color: #fff;
}

/* Tipografía de números de pista, versalitas, letras y créditos */
.wb-track-num {
  color: var(--santo-red);
  font-weight: 700;
  font-size: 1.18em;
  margin-right: 0.15em;
}

.wb-sc {
  font-variant: small-caps;
  letter-spacing: 0.02em;
}

.wb-sc-lyrics {
  font-variant: small-caps;
  font-size: 0.94em;
  line-height: 1.28;
  letter-spacing: 0.015em;
  color: #1d191a;
}

.wb-poem-dense .wb-sc-lyrics {
  font-size: 0.86em;
  line-height: 1.22;
}

.wb-lyrics-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8cqi;
  align-items: start;
}

.wb-indent {
  padding-left: 2.6cqi;
}

.wb-indent-sm {
  padding-left: 1.6cqi;
}

.wb-subsong-title {
  font-weight: 700;
  font-size: 1.05em;
  margin: 0.9cqi 0 0.5cqi 1.4cqi;
  color: #1a1617;
}

.wb-credits-right {
  text-align: right;
  font-size: 0.92em;
  line-height: 1.26;
  color: #262022;
  margin-top: 0.6cqi;
}

.wb-plain-prose {
  text-align: justify;
  hyphens: auto;
}

.wb-track-p p {
  text-align: justify;
  hyphens: auto;
  margin: 0;
}

/* Marcos de fotografías limpias incrustadas en la maquetación web */
.wb-photo-frame {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  background: #1a1415;
  line-height: 0;
}

.wb-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.wb-photo-caption-inside {
  position: absolute;
  bottom: 4px;
  font-family: 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(8px, 1.85cqi, 13px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.wb-photo-caption-inside.left {
  left: 6px;
}

.wb-photo-caption-inside.right {
  right: 6px;
}

.wb-photo-caption-inside.top-left {
  bottom: auto;
  top: 6px;
  left: 7px;
}

.wb-split-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5cqi;
}

.wb-two-photos-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.6cqi;
}

.wb-two-photos-row .wb-photo-frame img {
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PÁGINAS ESPECIALES (1, 2, 3-6, 7, 8, 9, 10, 13, 14, 18, 25, 30, 35, 36, 37, 38)
   ========================================================================== */

/* PÁGINA 1: PORTADA */
.wb-page-cover {
  background: #c8242b;
  padding: 4.5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-cover-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.wb-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wb-cover-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 22px 10px #c8242b;
  pointer-events: none;
}

/* PÁGINA 2: TAPIZ DE NOLASCO */
.wb-page-tapestry {
  position: relative;
  background: #3a463c;
}

.wb-full-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wb-tapestry-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-tapestry-subtitle {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 800;
  font-size: 3.15cqi;
  color: #f6d342;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.95);
  text-align: center;
  padding: 0 3%;
  transform: translateY(-1.5cqi);
}

.wb-tapestry-sig {
  position: absolute;
  bottom: 4.2%;
  right: 4.8%;
  font-family: 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.5cqi;
  color: #f4f1ea;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* PÁGINAS 3 Y 5: PRÓLOGOS BICOLOR (MITAD ROJA IZQUIERDA / MITAD CREMA DERECHA) */
.wb-page-split-left-red {
  display: flex;
  flex-direction: row;
  background: #fbf9f4;
}

.wb-split-red-half {
  position: relative;
  width: 51.5%;
  height: 100%;
  background: linear-gradient(165deg, #be282e 0%, #a51f24 100%);
  flex-shrink: 0;
  overflow: hidden;
}

.wb-split-vertical-title {
  position: absolute;
  right: -0.6cqi;
  top: 50%;
  transform: translate(50%, -50%) rotate(-90deg);
  transform-origin: center center;
  right: 3.1cqi;
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 800;
  font-size: 5.5cqi;
  letter-spacing: 0.055em;
  color: #fbf9f4;
  white-space: nowrap;
  user-select: none;
}

.wb-split-cream-half {
  width: 48.5%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3.5% 4.5% 4% 3.5%;
}

.wb-prologue-top-box {
  height: 23.5%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3%;
}

.wb-prologue-gold-title {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 5.2cqi;
  line-height: 1.02;
  color: var(--santo-ochre);
  margin: 0;
}

.wb-prologue-body {
  flex: 1;
  padding-top: 4.5%;
  font-size: 2.55cqi;
  line-height: 1.32;
  display: flex;
  flex-direction: column;
  gap: 1.5cqi;
}

.wb-prologue-body p {
  margin: 0;
  text-align: left;
}

.wb-dropcap {
  float: left;
  font-family: 'Times New Roman', Georgia, serif;
  font-weight: 700;
  font-size: 6.4cqi;
  line-height: 0.78;
  color: var(--santo-red);
  padding-right: 0.8cqi;
  padding-top: 0.3cqi;
}

.wb-gold-rule-split {
  position: absolute;
  top: 2.2%;
  left: 0;
  right: 1.8%;
  height: 24.5%;
  border-bottom: 2px solid var(--santo-ochre-line);
  border-right: 2px solid var(--santo-ochre-line);
  pointer-events: none;
}

/* PÁGINAS 4 Y 6: DOS COLUMNAS DE PROSA + FIRMA */
.wb-two-col-prose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5cqi;
  padding: 6.5% 6% 5% 6.5%;
  font-size: 2.55cqi;
  line-height: 1.33;
}

.wb-two-col-prose .wb-col {
  display: flex;
  flex-direction: column;
  gap: 1.2cqi;
}

.wb-two-col-prose p {
  margin: 0;
}

.wb-author-sig {
  margin-top: 3.5cqi;
  text-align: right;
  font-style: italic;
  font-size: 2.7cqi;
  line-height: 1.25;
}

.wb-sig-name {
  color: var(--ink-900);
  margin-bottom: 1.6cqi;
}

.wb-sig-role {
  color: var(--santo-red);
  font-weight: 600;
}

/* PÁGINA 7: RECREACIÓN (MITAD CREMA IZQUIERDA / MITAD ROJA DERECHA + RETABLO) */
.wb-page-split-right-red {
  display: flex;
  flex-direction: row;
  position: relative;
  background: #fbf9f4;
}

.wb-split-cream-left {
  width: 52%;
  height: 100%;
  background: #fbf9f4;
}

.wb-split-red-right {
  width: 48%;
  height: 100%;
  background: linear-gradient(165deg, #c4282e 0%, #a81f25 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15% 4.5% 7% 6%;
}

.wb-recreacion-title {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 6.2cqi;
  color: #f6c834;
  margin: 0;
  text-align: right;
}

.wb-dedication-box {
  text-align: right;
  color: #fff;
}

.wb-dedication-caps {
  font-variant: small-caps;
  font-weight: 700;
  font-size: 2.35cqi;
  line-height: 1.2;
  color: #f6d34a;
  margin-bottom: 0.6cqi;
}

.wb-dedication-author {
  font-style: italic;
  font-weight: 700;
  font-size: 2.75cqi;
  color: #fff;
}

.wb-center-vertical-red-title {
  position: absolute;
  left: 49.2%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 800;
  font-size: 5.5cqi;
  letter-spacing: 0.055em;
  color: #b4262c;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

.wb-gold-rule-page7 {
  position: absolute;
  top: 26%;
  left: 0;
  right: 2.4%;
  bottom: 1.5%;
  border-top: 2.5px solid #e2b92e;
  border-right: 2.5px solid #e2b92e;
  pointer-events: none;
  z-index: 3;
}

.wb-retablo-photo-box {
  position: absolute;
  left: 33%;
  top: 42.5%;
  width: 34.5%;
  height: 43%;
  z-index: 4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  overflow: hidden;
}

.wb-retablo-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PÁGINA 8: MANIFIESTO POÉTICO ROJO */
.wb-page-manifesto {
  background: linear-gradient(160deg, #be262c 0%, #9e1b20 100%);
  color: #fff;
  padding: 4.5% 5.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 2.45cqi;
}

.wb-manifesto-item {
  position: relative;
  z-index: 2;
}

.wb-mf-watermark {
  position: absolute;
  font-family: 'Times New Roman', Georgia, serif;
  font-weight: 700;
  color: rgba(255, 110, 95, 0.22);
  letter-spacing: 0.03em;
  pointer-events: none;
  z-index: -1;
  white-space: nowrap;
  user-select: none;
}

.wb-mf-white {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  line-height: 1.24;
  margin: 0;
}

.wb-manifesto-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2cqi;
}

.wb-manifesto-para {
  text-align: right;
  padding-right: 6%;
  color: #f6cf3f;
  font-weight: 700;
  font-size: 2.5cqi;
  line-height: 1.28;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.wb-manifesto-para p {
  margin: 0;
}

.wb-manifesto-viva {
  text-align: right;
  padding-right: 6%;
  font-variant: small-caps;
  font-weight: 800;
  font-size: 3.15cqi;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

/* PÁGINA 9: PÓRTICO DE OBERTURA (FRANJA ORO + PALMERA) */
.wb-page-p09 {
  display: flex;
  flex-direction: row;
  background: var(--santo-banner-gold);
}

.wb-p09-gold-side {
  position: relative;
  width: 53%;
  height: 100%;
  background: linear-gradient(180deg, #dcb222 0%, #cfa41b 100%);
  flex-shrink: 0;
  overflow: hidden;
}

.wb-p09-vertical-title {
  position: absolute;
  right: 2.9cqi;
  top: 50%;
  transform: translate(50%, -50%) rotate(-90deg);
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 800;
  font-size: 5.5cqi;
  letter-spacing: 0.055em;
  color: #fff;
  white-space: nowrap;
}

.wb-p09-photo-side {
  position: relative;
  width: 47%;
  height: 100%;
  overflow: hidden;
}

.wb-p09-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PÁGINA 10: OBERTURA */
.wb-page-p10 {
  position: relative;
  background: #87b8de;
}

.wb-p10-title-zone {
  position: relative;
  z-index: 3;
  margin-top: 6.5%;
  margin-left: 16%;
  margin-right: 3%;
  padding: 1.5cqi 2cqi;
  text-align: right;
}

.wb-obertura-heading {
  font-family: 'Cinzel', 'Times New Roman', Georgia, serif;
  font-weight: 700;
  font-size: 9.2cqi;
  letter-spacing: 0.03em;
  color: #d4222a;
  text-shadow:
    -1px -1px 0 #f6d54a,
    1px -1px 0 #f6d54a,
    -1px 1px 0 #1a1415,
    2px 2px 3px rgba(0, 0, 0, 0.75);
  margin: 0;
  line-height: 1;
}

.wb-obertura-init {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-size: 1.22em;
}

.wb-p11-photo {
  margin-bottom: 1.6cqi;
}

/* PÁGINA 13: PÓRTICO LA FIESTA (MITAD SUPERIOR ORO + MURAL INFERIOR) */
.wb-page-p13 {
  display: flex;
  flex-direction: column;
}

.wb-p13-gold-top {
  position: relative;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, #dcb222 0%, #cfa41b 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.wb-p13-horiz-title {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 800;
  font-size: 5.2cqi;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 0.82;
  white-space: nowrap;
}

.wb-p13-photo-bottom {
  width: 100%;
  height: 50%;
  overflow: hidden;
}

.wb-p13-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PÁGINA 14: LA FIESTA DE NUESTRO PATRONO SAN ANTONIO ABAD */
.wb-page-p14 {
  position: relative;
  background: #f4efe4;
}

.wb-mural-wash {
  opacity: 0.88;
}

.wb-p14-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6% 4%;
}

.wb-p14-ornate-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Cinzel', 'Times New Roman', Georgia, serif;
  font-weight: 700;
  color: #ce2229;
  text-shadow:
    1.5px 1.5px 0 #1a1213,
    -0.5px -0.5px 0 rgba(255, 255, 255, 0.7),
    2px 3px 5px rgba(0, 0, 0, 0.35);
  line-height: 1.02;
  gap: 0.6cqi;
}

.wb-p14-script {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.32em;
  margin-right: 0.04em;
}

.wb-p14-sm {
  font-size: 0.62em;
  vertical-align: top;
  margin-right: 0.15em;
}

.wb-p14-line1,
.wb-p14-line3,
.wb-p14-line4,
.wb-p14-line5,
.wb-p14-line6 {
  font-size: 9.2cqi;
  letter-spacing: 0.02em;
}

.wb-p14-line2 {
  font-size: 5.5cqi;
  margin: -0.4cqi 0;
}

/* PÁGINA 18: ESTATUA DE SAN ANTONIO ABAD + PISTA 9 */
.wb-page-p18 {
  display: flex;
  flex-direction: row;
}

.wb-p18-left-statue {
  width: 55%;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.wb-p18-left-statue img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wb-p18-right-text {
  width: 45%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8% 5% 8% 4%;
}

/* PÁGINA 25: 18. SEVILLANAS SOBRE BENGALAS */
.wb-page-p25 {
  position: relative;
  background: #1c191a;
  color: #fff;
}

.wb-p25-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 5.5% 5.5% 4.5% 5.5%;
  display: flex;
  flex-direction: column;
}

.wb-p25-header {
  font-size: 3.1cqi;
  margin-bottom: 1.2cqi;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.wb-p25-cols .wb-sc-lyrics {
  color: #fff;
  text-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.95);
  font-weight: 700;
  font-size: 0.9em;
  line-height: 1.24;
}

.wb-p25-num {
  text-align: center;
  font-weight: 800;
  font-size: 1.15em;
  color: #fff;
  margin-bottom: 2px;
}

.wb-p25-credits {
  margin-top: 3.2cqi;
  text-align: right;
  color: #fff;
  font-size: 0.95em;
  line-height: 1.25;
  text-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.95);
}

/* PÁGINA 30: COLLAGE DE 3 FOTOS + GRAN TIRADA */
.wb-p30-collage {
  display: flex;
  gap: 1.8cqi;
  align-items: stretch;
  flex: 1;
}

.wb-p30-img1 {
  width: 44%;
  flex-shrink: 0;
}

.wb-p30-img1 img {
  height: 100%;
  object-fit: cover;
}

.wb-p30-right-col {
  width: 54%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5cqi;
}

.wb-p30-top-pair {
  display: flex;
  gap: 1.4cqi;
  align-items: flex-end;
}

.wb-p30-img2 {
  width: 44%;
}

.wb-p30-img3 {
  width: 54%;
}

/* PÁGINA 35: CRUZ EN TAU DE SAN ANTONIO ABAD */
.wb-cruz-tau-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3.5cqi;
}

.wb-cruz-tau-center img {
  width: 42%;
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

/* PÁGINA 36: REPARTO */
.wb-reparto-heading {
  font-family: 'Times New Roman', Georgia, serif;
  font-weight: 700;
  font-size: 3.3cqi;
  color: var(--santo-red);
  margin: 0 0 1.6cqi 0;
}

.wb-reparto-list {
  display: flex;
  flex-direction: column;
  gap: 1.35cqi;
  font-size: 2.38cqi;
  line-height: 1.26;
}

.wb-reparto-list p {
  margin: 0;
}

.wb-rep-indent {
  display: inline-block;
  padding-left: 1.8em;
}

.wb-inline-track {
  background: rgba(168, 50, 56, 0.12);
  color: var(--santo-red);
  border: 1px solid rgba(168, 50, 56, 0.35);
  border-radius: 4px;
  padding: 0 4px;
  font-family: inherit;
  font-style: italic;
  font-weight: 700;
  font-size: 0.95em;
  cursor: pointer;
}

.wb-inline-track:hover {
  background: var(--santo-red);
  color: #fff;
}

/* PÁGINA 37: ÍNDICE GENERAL DE LAS 31 PISTAS */
.wb-page-index-red {
  background: linear-gradient(160deg, #c2262c 0%, #a31d22 100%);
  color: #fff;
  padding: 4.5% 4.5% 4% 5%;
}

.wb-idx-columns {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqi;
  height: 100%;
}

.wb-idx-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.25cqi;
}

.wb-idx-sec-head {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-variant: small-caps;
  font-weight: 800;
  font-size: 2.55cqi;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 0.3cqi;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.wb-idx-subhead {
  font-weight: 700;
  font-size: 2.2cqi;
  color: #fff;
  padding-left: 2.4cqi;
  margin-top: 0.3cqi;
}

.wb-idx-row {
  display: flex;
  align-items: baseline;
  gap: 0.6cqi;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.15cqi 0.6cqi;
  text-align: left;
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 2.22cqi;
  line-height: 1.15;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.wb-idx-row:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(246, 211, 66, 0.65);
  transform: translateX(2px);
}

.wb-idx-row.is-selected {
  background: rgba(0, 0, 0, 0.24);
  border-color: #f6d342;
}

.wb-idx-row.is-playing {
  background: rgba(246, 211, 66, 0.25);
  border-color: #fff;
  box-shadow: 0 0 8px rgba(246, 211, 66, 0.45);
}

.wb-idx-num {
  color: #f6cf3f;
  font-weight: 700;
  min-width: 2.4cqi;
  flex-shrink: 0;
}

.wb-idx-text {
  color: #fff;
}

.wb-idx-total-dur {
  margin-top: auto;
  text-align: right;
  font-size: 2.35cqi;
  color: #fff;
  padding-right: 1cqi;
}

/* PÁGINA 38: FUNDA CON DISCO COMPACTO INTERACTIVO + CRÉDITOS TÉCNICOS */
.wb-page-p38 {
  display: flex;
  flex-direction: row;
  background: #f5f2ea;
}

.wb-p38-disc-slot {
  position: relative;
  width: 43.5%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, #e4dfd3 0%, #f6f3ec 75%);
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.wb-p38-cd-wrapper {
  position: absolute;
  left: 3%;
  top: 50%;
  width: 196%;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  border-radius: 50%;
  filter: drop-shadow(-4px 6px 14px rgba(0, 0, 0, 0.35));
}

.wb-p38-cd-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: spinDisc 11s linear infinite;
  animation-play-state: paused;
}

.wb-p38-cd-wrapper.is-spinning .wb-p38-cd-img {
  animation-play-state: running;
}

.wb-p38-sleeve-pocket {
  position: relative;
  z-index: 3;
  width: 56.5%;
  height: 100%;
  background: linear-gradient(160deg, #c2282e 0%, #a51e23 100%);
  box-shadow: -5px 0 14px rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 4.5% 4.5% 4.5% 5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wb-p38-credits-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.25cqi;
  line-height: 1.28;
}

.wb-p38-credits-stack p {
  margin: 0;
}

.wb-p38-small-credits {
  font-size: 2.08cqi;
  line-height: 1.25;
}

/* Badge numérico de página en el cajón lateral */
.drawer-page-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--santo-red), var(--santo-red-deep));
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-pill-btn,
.banner-admin-edit-btn {
  display: none !important;
}

/* ==========================================================================
   TRANSICIÓN LIMPIA DE VISOR (SIN EFECTO 3D DE PASO DE PÁGINA DE LIBRILLO)
   ========================================================================== */
.book-spread {
  position: relative;
}

.book-page-card {
  animation: cleanScanReveal 0.16s ease-out;
}

@keyframes cleanScanReveal {
  from {
    opacity: 0.84;
  }

  to {
    opacity: 1;
  }
}

.drawer-page-thumb.is-wide-thumb {
  object-fit: contain;
  background: var(--burgundy-900);
}

/* ==========================================================================
   HOTSPOTS DE CANCIONES VIVOS E INTERACTIVOS (100% TRANSLÚCIDOS Y NÍTIDOS)
   ========================================================================== */
.page-hotspot {
  position: absolute;
  background: transparent;
  border: 1.5px dashed transparent;
  border-radius: 6px;
  cursor: pointer;
  z-index: 20;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

/* El recuadro punteado de selección aparece y desaparece exactamente a la vez que el botón del dedo */
.page-hotspot:not(.is-playing) {
  border-color: transparent;
  background: transparent;
  animation: hotspotBoxIntermittent 10s ease-in-out infinite;
  will-change: border-color, background-color, box-shadow;
}

@keyframes hotspotBoxIntermittent {
  0% {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
  }

  4% {
    border-color: rgba(243, 208, 122, 0.8);
    background-color: rgba(212, 175, 55, 0.045);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.22), inset 0 0 6px rgba(212, 175, 55, 0.05);
  }

  24% {
    border-color: rgba(243, 208, 122, 0.75);
    background-color: rgba(212, 175, 55, 0.035);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.16), inset 0 0 4px rgba(212, 175, 55, 0.04);
  }

  30% {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
  }

  100% {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
  }
}

.page-hotspot:hover,
.page-hotspot:focus-visible {
  background: rgba(212, 175, 55, 0.09) !important;
  border-style: solid !important;
  border-color: var(--gold-300) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35) !important;
  animation: none !important;
}

.page-hotspot.is-playing {
  background: rgba(212, 175, 55, 0.12) !important;
  border: 2px solid var(--gold-300) !important;
  box-shadow: 0 0 18px 2px rgba(212, 175, 55, 0.4) !important;
  animation: hotspotPlayingPulse 1.8s ease-in-out infinite !important;
}

@keyframes hotspotPlayingPulse {

  0%,
  100% {
    box-shadow: 0 0 10px 1px rgba(212, 175, 55, 0.35);
    border-color: var(--gold-300);
    background: rgba(212, 175, 55, 0.1);
  }

  50% {
    box-shadow: 0 0 20px 4px rgba(255, 215, 0, 0.55);
    border-color: #fff;
    background: rgba(212, 175, 55, 0.16);
  }
}

/* Pastilla interactiva: aparece de forma intermitente sugiriendo pulsar y se desvanece para no tapar el texto histórico */
.hotspot-pill-tag {
  position: absolute;
  top: 6px;
  right: 8px;
  transform: none;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 3, 7, 0.96), rgba(74, 10, 18, 0.96));
  color: var(--gold-300);
  border: 1.5px solid rgba(212, 175, 55, 0.85);
  border-radius: 999px;
  padding: 3px 6px;
  min-width: 24px;
  height: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), 0 0 6px rgba(212, 175, 55, 0.35);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
}

/* El botón con el dedo aparece periódicamente sugiriendo pulsar y se oculta para dejar la lectura 100% despejada */
.hotspot-pill-tag:not(.is-playing-tag) {
  opacity: 0;
  animation: hotspotPillIntermittent 10s ease-in-out infinite;
  will-change: opacity, transform;
}

/* Al pasar el ratón por encima del texto, el botón se hace visible de inmediato */
.page-hotspot:hover .hotspot-pill-tag,
.page-hotspot:focus-visible .hotspot-pill-tag {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1.08) !important;
  animation: none !important;
  pointer-events: auto !important;
}

@keyframes hotspotPillIntermittent {
  0% {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
  }

  4% {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  24% {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  30% {
    opacity: 0;
    transform: scale(0.88);
    pointer-events: none;
  }

  100% {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
  }
}

/* Posicionamiento interior inteligente para evitar que la pastilla sobresalga del libro o se superponga con otra */
.hotspot-pill-tag.tag-pos-inside-top {
  top: 6px !important;
  bottom: auto !important;
  transform: none !important;
}

.hotspot-pill-tag.tag-pos-inside-bottom {
  top: auto !important;
  bottom: 6px !important;
  transform: none !important;
}

.hotspot-pill-tag.tag-pos-left {
  right: auto !important;
  left: 8px !important;
}

.hotspot-pill-tag.tag-pos-right {
  left: auto !important;
  right: 8px !important;
}

/* Contenedor del icono de toque táctil */
.hotspot-tap-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mano con animación rítmica de toque */
.tap-hand-icon {
  display: inline-block;
  vertical-align: middle;
  transform-origin: 50% 85%;
  animation: handTapMotion 1.8s ease-in-out infinite;
  color: var(--gold-300);
}

/* Onda expansiva de toque / ripple */
.tap-touch-ripple {
  position: absolute;
  top: -2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-400);
  pointer-events: none;
  animation: tapTouchRipple 1.8s ease-out infinite;
}

/* Nota musical que vibra con el toque */
.tap-music-note {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  animation: musicNotePulse 1.8s ease-in-out infinite;
}

@keyframes handTapMotion {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  30% {
    transform: translateY(2px) scale(0.9);
  }

  50% {
    transform: translateY(-0.5px) scale(1.04);
  }
}

@keyframes tapTouchRipple {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes musicNotePulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 1px rgba(212, 175, 55, 0.4));
  }

  30% {
    transform: scale(1.22) rotate(6deg);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
  }

  50% {
    transform: scale(1);
  }
}

/* Al tocarse y estar reproduciendo: semitransparente con 'Reproduciendo' al borde, dejando toda la letra 100% visible */
.page-hotspot.is-playing .hotspot-pill-tag,
.hotspot-pill-tag.is-playing-tag {
  background: rgba(20, 2, 5, 0.36) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  color: rgba(255, 235, 170, 0.9) !important;
  opacity: 0.5;
  backdrop-filter: blur(2px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.page-hotspot.is-playing:hover .hotspot-pill-tag {
  opacity: 0.95;
}

.hotspot-pill {
  display: none !important;
}

/* Mini barras de ecualizador animadas */
.mini-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.eq-bar {
  width: 2.5px;
  background: currentColor;
  border-radius: 1px;
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) {
  height: 40%;
  animation-delay: 0.0s;
}

.eq-bar:nth-child(2) {
  height: 95%;
  animation-delay: 0.25s;
}

.eq-bar:nth-child(3) {
  height: 60%;
  animation-delay: 0.45s;
}

@keyframes eqBounce {
  0% {
    height: 25%;
  }

  100% {
    height: 100%;
  }
}

/* Efecto Ripple al pulsar un hotspot */
.hotspot-click-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: hotspotRippleAnim 0.6s linear;
  background: rgba(212, 175, 55, 0.55);
  pointer-events: none;
}

@keyframes hotspotRippleAnim {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* ==========================================================================
   MODAL GUÍA VISUAL INTERACTIVA ("¿Cómo funciona?")
   ========================================================================== */
.guide-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 2, 4, 0.82);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.guide-modal-backdrop[hidden] {
  display: none !important;
}

.guide-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.guide-modal-card {
  background: linear-gradient(180deg, #2b050c 0%, #170205 100%);
  border: 1.5px solid var(--gold-400);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  margin: auto;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.guide-modal-backdrop.is-open .guide-modal-card {
  transform: scale(1);
}

.guide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(44, 5, 11, 0.7);
  box-sizing: border-box;
  min-width: 0;
  gap: 12px;
}

.guide-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.guide-main-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.guide-header-title-wrap h3 {
  font-family: var(--font-display);
  color: var(--gold-300);
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.25;
  word-break: break-word;
}

.guide-header-sub {
  color: rgba(250, 246, 238, 0.75);
  font-size: 0.8rem;
  margin: 2px 0 0;
  line-height: 1.35;
}

.guide-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.45) transparent;
}

.guide-modal-body::-webkit-scrollbar {
  width: 6px;
}

.guide-modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.45);
  border-radius: 999px;
}

.guide-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.guide-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.guide-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(30, 3, 7, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  align-items: flex-start;
  transition: transform 0.2s, border-color 0.2s;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.guide-card:hover {
  transform: translateX(3px);
  border-color: var(--gold-400);
}

.guide-card.highlight-card {
  background: linear-gradient(135deg, rgba(80, 10, 20, 0.75), rgba(40, 5, 10, 0.85));
  border-color: var(--gold-400);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

.guide-card-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
}

.guide-badge-num {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 18px;
  height: 18px;
  background: var(--gold-500);
  color: var(--burgundy-950);
  font-size: 0.68rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.guide-icon {
  font-size: 1.35rem;
}

.guide-card-content {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.guide-card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--gold-300);
  margin: 0 0 4px;
  line-height: 1.3;
}

.guide-card-desc {
  font-size: 0.83rem;
  line-height: 1.45;
  color: rgba(250, 246, 238, 0.85);
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.guide-card-desc strong {
  color: #fff;
  font-weight: 700;
}

.guide-mini-demo {
  margin-top: 8px;
}

.demo-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.demo-hotspot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffe57f 0%, #d4af37 55%, #aa820a 100%) !important;
  color: var(--burgundy-950) !important;
  border: 1px solid #fff5cc;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  animation: demoHotspotGoldGlow 2.2s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes demoHotspotGoldGlow {

  0%,
  100% {
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 5px 22px rgba(255, 215, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    transform: scale(1.04);
  }
}

.guide-modal-actions {
  display: flex;
  justify-content: center;
  padding-top: 6px;
  width: 100%;
  box-sizing: border-box;
}

.guide-start-btn {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--burgundy-950);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

.guide-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.55);
}

/* ==========================================================================
   ADAPTACIÓN MÓVIL EXACTA DEL MODAL DE GUÍA INTERACTIVA
   ========================================================================== */
@media (max-width: 640px) {
  .guide-modal-backdrop {
    padding: 12px 10px;
    align-items: center;
  }

  .guide-modal-card {
    border-radius: 14px;
    max-width: 100%;
    margin: auto;
  }

  .guide-modal-header {
    padding: 12px 12px;
    gap: 8px;
  }

  .guide-header-title-wrap {
    gap: 8px;
    min-width: 0;
  }

  .guide-main-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
  }

  .guide-header-title-wrap h3 {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .guide-header-sub {
    font-size: 0.74rem;
  }

  .guide-modal-header .drawer-close-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    flex-shrink: 0;
  }

  .guide-modal-body {
    padding: 14px 10px;
    gap: 12px;
    max-height: calc(85vh - 65px);
  }

  .guide-cards-grid {
    gap: 10px;
  }

  .guide-card {
    padding: 10px 10px;
    gap: 10px;
    border-radius: 10px;
  }

  .guide-card:hover {
    transform: none;
  }

  .guide-card-icon-wrap {
    min-width: 36px;
    height: 36px;
  }

  .guide-badge-num {
    width: 16px;
    height: 16px;
    font-size: 0.62rem;
    top: -4px;
    left: -4px;
  }

  .guide-icon {
    font-size: 1.15rem;
  }

  .guide-card-title {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .guide-card-desc {
    font-size: 0.77rem;
    line-height: 1.4;
  }

  .demo-tag {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  .demo-hotspot-pill {
    padding: 4px 10px;
    font-size: 0.72rem;
    max-width: 100%;
    white-space: normal;
  }

  .guide-modal-actions {
    padding-top: 4px;
    width: 100%;
  }

  .guide-start-btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    padding: 11px 14px;
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: center;
  }

  .guide-modal-credit {
    font-size: 0.76rem;
    padding: 8px 0 0 0;
    margin-top: 8px;
  }
}

@media (max-width: 380px) {
  .guide-modal-backdrop {
    padding: 8px 6px;
  }

  .guide-modal-header {
    padding: 10px 8px;
  }

  .guide-header-title-wrap h3 {
    font-size: 0.96rem;
  }

  .guide-modal-body {
    padding: 10px 8px;
  }

  .guide-card {
    padding: 8px 8px;
    gap: 8px;
  }

  .guide-card-icon-wrap {
    min-width: 32px;
    height: 32px;
  }

  .guide-card-desc {
    font-size: 0.73rem;
  }

  .guide-start-btn {
    font-size: 0.8rem;
    padding: 9px 8px;
  }
}

.guide-pill-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(184, 134, 11, 0.18));
  border-color: var(--gold-400);
  color: var(--gold-300);
  font-weight: 700;
}

.guide-pill-btn:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

.guide-bulb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  text-align: center;
  transform: translateY(-0.5px);
}

.guide-btn-text-short {
  display: none;
}

.hint-guide-link {
  background: none;
  border: none;
  color: var(--gold-300);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  font-weight: 700;
  padding: 0;
  margin-left: 6px;
}

.hint-guide-link:hover {
  color: #fff;
}

/* ==========================================================================
   BOTÓN "VER LIBRO EN HORIZONTAL" (SOLO EN MÓVILES) Y PANTALLA COMPLETA
   ========================================================================== */

/* Botón bajo el libro: oculto por defecto en escritorio */
/* Barra móvil bajo el libro: Anterior · Ver en HORIZONTAL · Siguiente (oculta en escritorio) */
.mobile-landscape-trigger-wrap {
  display: none;
  justify-content: center;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 4px;
  gap: 8px;
  padding: 8px 4px 4px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.mobile-bar-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(92, 13, 25, 0.95), rgba(44, 5, 11, 0.95));
  color: var(--gold-300);
  border: 1.5px solid var(--gold-400);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mobile-bar-nav-btn svg {
  display: block;
}

.mobile-bar-nav-btn:hover:not(:disabled),
.mobile-bar-nav-btn:active:not(:disabled) {
  background: var(--gold-500);
  color: var(--burgundy-950);
  transform: scale(1.06);
}

.mobile-bar-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
}

.mobile-landscape-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(92, 13, 25, 0.95), rgba(44, 5, 11, 0.95));
  color: var(--gold-300);
  border: 1.5px solid var(--gold-400);
  border-radius: 999px;
  padding: 9px 20px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 10px rgba(212, 175, 55, 0.2);
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  letter-spacing: 0.015em;
  white-space: nowrap;
  flex: 1;
  max-width: 270px;
}

.mobile-landscape-btn:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
  transform: translateY(-1px);
}

.landscape-svg-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  width: 18px;
  height: 18px;
  color: var(--gold-300);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-landscape-btn:hover .landscape-svg-icon {
  color: var(--burgundy-950);
  transform: scale(1.08);
}

.landscape-btn-icon {
  font-size: 1.1rem;
}

/* Solo se muestra en pantallas móviles y reducidas */
/* En móvil vertical: ocultar las flechas flotantes sobre la lámina para no tapar nunca el texto y usar la barra inferior integrada */
@media (max-width: 768px) {
  .mobile-landscape-trigger-wrap {
    display: flex;
  }

  body:not(.is-landscape-fullscreen) .page-nav-arrow {
    display: none !important;
  }
}

/* Ocultos en vista normal */
.landscape-fullscreen-header,
.landscape-mini-player {
  display: none;
}

/* ==========================================================================
   ESTADO ACTIVO: PANTALLA COMPLETA HORIZONTAL
   ========================================================================== */
body.is-landscape-fullscreen {
  overflow: hidden !important;
  background: #0d0103 !important;
}

body.is-landscape-fullscreen .app-header,
body.is-landscape-fullscreen .physical-store-banner,
body.is-landscape-fullscreen .always-visible-tracks-bar,
body.is-landscape-fullscreen .book-top-bar,
body.is-landscape-fullscreen .page-scrubber-bar,
body.is-landscape-fullscreen .mobile-landscape-trigger-wrap,
body.is-landscape-fullscreen .mobile-turn-controls,
body.is-landscape-fullscreen .interactive-reading-panel,
body.is-landscape-fullscreen .now-playing-lyrics-section,
body.is-landscape-fullscreen .site-credits-footer,
body.is-landscape-fullscreen .audio-player-dock,
body.is-landscape-fullscreen .guide-modal-backdrop {
  display: none !important;
}

body.is-landscape-fullscreen .book-workspace {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0d0103 !important;
}

body.is-landscape-fullscreen .book-stage-container {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.is-landscape-fullscreen .book-viewport {
  width: 100% !important;
  height: 100% !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.is-landscape-fullscreen .book-spread.is-wide-spread {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: calc(100vw - 24px) !important;
  height: auto !important;
  max-height: calc(100vh - 20px) !important;
  padding: 4px !important;
  background: var(--burgundy-900) !important;
  border-radius: 8px !important;
}

body.is-landscape-fullscreen .book-spread.is-wide-spread .book-page-card {
  width: min(calc(100vw - 36px), calc((100vh - 24px) * 1.92)) !important;
  max-width: min(calc(100vw - 36px), calc((100vh - 24px) * 1.92)) !important;
  width: min(calc(100vw - 96px), calc((100vh - 20px) * 1.92)) !important;
  max-width: min(calc(100vw - 96px), calc((100vh - 20px) * 1.92)) !important;
  height: auto !important;
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100vh - 20px) !important;
}

body.is-landscape-fullscreen .book-spread.is-single {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: calc(100vw - 24px) !important;
  height: auto !important;
  max-height: calc(100vh - 20px) !important;
  padding: 4px !important;
  background: var(--burgundy-900) !important;
  border-radius: 8px !important;
}

body.is-landscape-fullscreen .page-corner-num {
  display: none !important;
}

body.is-landscape-fullscreen .book-spread.is-single .book-page-card {
  width: min(calc(100vw - 44px), calc((100vh - 28px) * 0.95)) !important;
  max-width: min(calc(100vw - 44px), calc((100vh - 28px) * 0.95)) !important;
  height: auto !important;
  max-height: calc(100vh - 28px) !important;
}

/* Flechas de navegación en pantalla completa horizontal */
/* Flechas de navegación en pantalla completa horizontal (siempre fuera del texto) */
body.is-landscape-fullscreen .page-nav-arrow {
  width: 44px;
  height: 44px;
  background: rgba(30, 3, 7, 0.75);
  width: 38px;
  height: 38px;
  background: rgba(30, 3, 7, 0.78);
  border: 1.5px solid var(--gold-400);
  color: var(--gold-300);
  backdrop-filter: blur(8px);
  z-index: 10002;
}

body.is-landscape-fullscreen .prev-arrow {
  left: 10px;
  left: 6px;
}

body.is-landscape-fullscreen .next-arrow {
  right: 10px;
  right: 6px;
}

/* Cabecera superior sutil en modo horizontal */
body.is-landscape-fullscreen .landscape-fullscreen-header {
  display: flex;
  position: fixed;
  top: 8px;
  left: 14px;
  right: 14px;
  justify-content: space-between;
  align-items: center;
  z-index: 10006;
  pointer-events: none;
}

.landscape-fs-badge {
  background: rgba(30, 3, 7, 0.85);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.landscape-exit-btn {
  background: rgba(30, 3, 7, 0.9);
  color: var(--gold-300);
  border: 1.5px solid var(--gold-400);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  transition: all 0.2s ease;
}

.landscape-exit-btn:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

/* ==========================================================================
   MINI-REPRODUCTOR FLOTANTE EN PESTAÑA (POR DEFECTO OCULTO)
   ========================================================================== */
body.is-landscape-fullscreen .landscape-mini-player {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10010;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

/* Pestaña visible por defecto para desplegar el mini reproductor */
.landscape-mini-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(74, 10, 18, 0.96), rgba(30, 3, 7, 0.96));
  border: 1.5px solid var(--gold-400);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  color: var(--gold-300);
  padding: 5px 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.landscape-mini-tab:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

.landscape-mini-player.is-open .landscape-mini-tab {
  display: none;
}

/* Contenido del mini reproductor al desplegarse */
.landscape-mini-content {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(44, 5, 11, 0.98), rgba(20, 2, 5, 0.98));
  border: 1.5px solid var(--gold-400);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 8px 16px;
  width: min(92vw, 440px);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  animation: slideUpMini 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.landscape-mini-player.is-open .landscape-mini-content {
  display: flex;
}

@keyframes slideUpMini {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.landscape-mini-info {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.landscape-mini-num {
  font-weight: 900;
  color: var(--gold-300);
  font-size: 0.78rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.landscape-mini-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  white-space: normal;
  overflow: visible;
  line-height: 1.22;
}

.landscape-mini-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.landscape-ctrl-btn {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.42);
  color: var(--gold-300);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.landscape-ctrl-btn svg {
  display: block;
  flex-shrink: 0;
}

.landscape-nav-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}

.landscape-ctrl-btn:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

.landscape-play-btn {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--burgundy-950);
  border: 1px solid rgba(255, 240, 180, 0.55);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.45);
}

.landscape-play-btn:hover {
  transform: scale(1.07);
  background: linear-gradient(135deg, #ffe79a, var(--gold-400));
  color: var(--burgundy-950);
}

.landscape-hide-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(250, 246, 238, 0.88);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
}

/* ==========================================================================
   SECCIÓN ELEGANTE: LETRA DE LA CANCIÓN EN REPRODUCCIÓN
   ========================================================================== */
.now-playing-lyrics-section {
  width: 100%;
  max-width: 860px;
  margin: 36px auto 20px auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.lyrics-card-wrapper {
  background: linear-gradient(180deg, rgba(46, 6, 13, 0.95) 0%, rgba(24, 3, 7, 0.98) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
}

.lyrics-card-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-400), var(--gold-500), transparent);
}

.lyrics-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lyrics-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 999px;
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lyrics-note-icon {
  font-size: 0.85rem;
}

/* Selector de pistas en la cabecera si la página tiene varias canciones */
.page-tracks-pill-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 6px 0;
  max-width: 720px;
}

.page-track-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--paper-cream);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-track-pill:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-1px);
}

.page-track-pill.is-active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--burgundy-950);
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.page-track-pill.is-playing-pill {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.lyrics-track-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 6px 0;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.lyrics-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.86rem;
  color: rgba(250, 246, 238, 0.8);
}

.lyrics-section-badge {
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-300);
  font-weight: 700;
  font-size: 0.78rem;
}

.lyrics-artists-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(250, 246, 238, 0.85);
  font-size: 0.92rem;
}

.lyrics-page-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-300);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lyrics-page-link:hover {
  background: var(--gold-500);
  color: var(--burgundy-950);
}

.lyrics-play-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--burgundy-950);
  border: 1px solid #fff;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
  margin-top: 10px;
}

.lyrics-play-trigger-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.lyrics-play-trigger-btn.is-playing {
  background: var(--burgundy-700);
  color: var(--gold-300);
  border-color: var(--gold-400);
}

.lyrics-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px 0;
}

.lyrics-divider::before,
.lyrics-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent);
}

.lyrics-divider-tau {
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.lyrics-body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.lyrics-stanza {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--paper-cream);
  margin: 0 auto 22px auto;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lyrics-stanza-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-400);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

/* Párrafos de texto histórico y prosa del libro */
.lyrics-prose-paragraph {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--paper-cream);
  margin: 0 auto 18px auto;
  text-align: justify;
  text-justify: inter-word;
  max-width: 660px;
  letter-spacing: 0.015em;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lyrics-prose-paragraph:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 2.6rem;
  float: left;
  line-height: 0.85;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--gold-400);
  font-weight: 800;
}

.lyrics-block-subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-300);
  margin: 24px auto 10px auto;
  text-align: center;
  max-width: 640px;
}

.lyrics-instrumental-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: center;
  margin: 0 auto;
  max-width: 680px;
}

.instrumental-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.instrumental-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-300);
  font-weight: 700;
  margin: 0 0 14px 0;
}

.instrumental-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(250, 246, 238, 0.92);
  font-style: italic;
  margin: 0 0 16px 0;
  text-align: center;
}

.instrumental-desc-highlight {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: normal;
  color: var(--gold-300);
  margin: 14px 0 14px 0;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
}

.instrumental-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  color: var(--gold-300);
}

.lyrics-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
}

.lyrics-credits-note {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(250, 246, 238, 0.65);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .now-playing-lyrics-section {
    margin: 24px auto 16px auto;
    padding: 0 8px;
  }

  .lyrics-card-wrapper {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .lyrics-track-title {
    font-size: 1.3rem;
  }

  .lyrics-stanza {
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 18px;
  }

  .lyrics-instrumental-card {
    padding: 18px 16px;
  }

  .instrumental-desc {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   CRÉDITOS DE LA PLATAFORMA (PABLO DE LAS TRABAS)
   ========================================================================== */
.site-credits-footer {
  width: 100%;
  margin: 28px auto 95px auto;
  padding: 16px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(50, 6, 14, 0.78) 0%, rgba(26, 3, 7, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.site-credits-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-credits-tau {
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.site-credits-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(250, 246, 238, 0.88);
  letter-spacing: 0.3px;
}

.site-designer-link {
  color: var(--gold-300);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.5);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  display: inline-block;
}

.site-designer-link:hover,
.site-designer-link:focus-visible {
  color: var(--gold-100);
  text-decoration-color: var(--gold-300);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.drawer-footer-credit {
  padding: 14px 18px;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(18, 2, 5, 0.75);
  font-size: 0.84rem;
  color: rgba(250, 246, 238, 0.8);
}

.drawer-footer-credit p {
  margin: 0;
}

.guide-modal-credit {
  text-align: center;
  padding: 12px 0 2px 0;
  font-size: 0.84rem;
  color: rgba(250, 246, 238, 0.8);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  margin-top: 14px;
}

.guide-modal-credit p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-credits-footer {
    margin-bottom: calc(115px + var(--safe-bottom));
    padding: 12px 16px;
  }

  .site-credits-text {
    font-size: 0.82rem;
  }
}