/* =====================================================================
   LA ESCALERA DE LOS 33 LIBROS — Gótico · Cósmico · Trascendental
   ===================================================================== */
:root {
  --ink: #05040c;
  --ink-2: #0a0918;
  --indigo: #131133;
  --indigo-2: #1d1a4a;
  --emerald: #0f5c45;
  --emerald-glow: #2fbf8f;
  --violet: #6d4bd8;
  --gold: #e8c872;
  --gold-soft: #f6e3a8;
  --gold-deep: #a8873a;
  --light: #fff8e1;

  --text: #f1eee6;
  --text-dim: #b9b3cc;
  --text-mute: #7d7896;

  --line: rgba(232, 200, 114, 0.22);
  --line-strong: rgba(232, 200, 114, 0.5);

  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Ambientación Dinámica Reactiva por Portada */
  --ambient-primary: #9d6ef8;
  --ambient-primary-rgb: 157, 110, 248;
  --ambient-glow: rgba(157, 110, 248, 0.45);
  --ambient-beam: rgba(180, 140, 255, 0.35);
  --ambient-rune: #d8b4fe;
  --ambient-bg-radial: radial-gradient(circle at 50% 32%, rgba(109, 75, 216, 0.22) 0%, rgba(30, 20, 65, 0.15) 45%, transparent 75%);
  --ambient-card-glow: 0 0 50px rgba(157, 110, 248, 0.5);

  /* Arco ojival (relación 4:5) reutilizable en tarjetas */
  --ogive: polygon(0% 100%, 0% 69.28%, 1.52% 55.39%, 6.03% 41.92%, 13.4% 29.28%, 23.4% 17.86%, 35.72% 8%, 50% 0%,
    64.28% 8%, 76.6% 17.86%, 86.6% 29.28%, 93.97% 41.92%, 98.48% 55.39%, 100% 69.28%, 100% 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(109, 75, 216, 0.10), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 40%, var(--ink) 100%);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

body.modal-open { overflow: hidden; }

/* Grano de película sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold-deep), var(--indigo-2)); border-radius: 6px; }

/* ============================ BOTONES ============================ */
.gold-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.9rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 248, 225, 0.6);
  background: linear-gradient(180deg, #fbe9b0 0%, var(--gold) 45%, #b9933f 100%);
  color: #120e04;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(232, 200, 114, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gold-btn:hover { transform: translateY(-2px); box-shadow: 0 0 46px rgba(255, 236, 170, 0.6), inset 0 1px 0 #fff; }
.gold-btn--sm { padding: 0.6rem 1.05rem; font-size: 0.72rem; }
.gold-btn--fastpay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.7rem;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 9, 24, 0.55);
  backdrop-filter: blur(6px);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ghost-btn:hover { border-color: var(--gold); color: #fff; background: rgba(232, 200, 114, 0.1); }

.pill-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 92, 69, 0.18);
  color: var(--gold-soft);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill-btn:hover { border-color: var(--gold); }

/* =====================================================================
   HEADER — ESTILO DEAN KOONTZ (CLEAN AUTHOR MASTHEAD)
   ===================================================================== */
.koontz-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.koontz-header .header-inner {
  max-width: 1650px;
  width: 100%;
  margin: 0 auto;
  padding: 1.1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.25s ease;
}

.brand:hover .brand-logo-wrap {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.18);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16));
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.author-brand-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #05040a;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

/* Tipografía Apilada Estilo Stephen King (VLADIMIR arriba, BURDMAN abajo) */
.author-brand-title.king-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Línea superior fina y espaciada: "DR. VLADIMIR" */
.title-top {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.52em;
  color: #2b2838;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0.12em;
  margin-bottom: 0.3rem;
}

.title-dr {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #2b2838;
}

/* Apellido monumental: "BURDMAN" */
.title-bottom {
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #05040a;
  line-height: 0.95;
  margin-right: -0.24em;
  position: relative;
  padding-bottom: 0.45rem;
}

/* Filete editorial bajo el apellido */
.title-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 0.24em);
  height: 1px;
  background: linear-gradient(90deg, #05040a 0%, rgba(5, 4, 10, 0.55) 60%, transparent 100%);
}

.author-brand-sub {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
  color: #5b6474;
  letter-spacing: 0.035em;
  margin-top: 0.45rem;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.koontz-header .main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 1.85vw, 2rem);
  flex-wrap: nowrap;
}

.koontz-header .main-nav a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f4654;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  padding: 0.45rem 0;
  transition: color 0.25s ease;
}

.koontz-header .main-nav a:hover {
  color: #05040a;
}

.koontz-header .main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: #b9933f;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.koontz-header .main-nav a:hover::after {
  width: 100%;
}

.nav-search-link {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: #64748b !important;
  padding: 0.1rem 0.3rem !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-search-link:hover {
  color: #05040a !important;
}

.nav-search-link::after {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Badge de Libros Aprendidos limpio y de alto contraste */
.header-learned-badge {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.header-learned-badge:hover {
  border-color: #b9933f;
  background: #fffdf5;
  color: #b9933f;
}

.header-learned-badge .badge-dot {
  color: #b9933f;
  font-size: 0.85rem;
}

/* Botón de Libro del Destino sobrio y elegante */
.header-destiny-btn {
  border: 1.5px solid #05040a;
  background: #05040a;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header-destiny-btn:hover {
  background: #b9933f;
  border-color: #b9933f;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(185, 147, 63, 0.3);
}

/* =====================================================================
   HERO BILLBOARD (ATMÓSFERA EDITORIAL DE LUJO - CERO DISTRACCIÓN)
   ===================================================================== */
.koontz-billboard {
  position: relative;
  width: 100%;
  background-color: #050505;
  background-image:
    /* Viñeta perimetral de estudio que oscurece suavemente los bordes */
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.9) 100%),
    /* Foco de luz ambiental que abraza y hace levitar el libro 3D */
    radial-gradient(circle at 68% 44%, rgba(46, 46, 52, 0.62) 0%, rgba(20, 20, 24, 0.5) 42%, rgba(4, 4, 5, 0.95) 78%),
    /* Micro-textura táctil de papel de encuadernación de lujo (sin figuras ni líneas distractoras) */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.7  0 0 0 0 0.7  0 0 0 0 0.7  0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, 180px 180px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 -12px 35px rgba(0, 0, 0, 0.65);
}

.billboard-slider {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.billboard-track {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.billboard-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  opacity: 0;
  position: absolute;
  inset: 0;
  padding: 2rem 5rem 2.8rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  transform: translateX(30px);
}

.billboard-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  transform: translateX(0);
}

/* Libro 3D Monumental en el Banner con Lomo Visible y Presencia Física Real */
.billboard-book-col {
  flex: 0 0 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  perspective-origin: 50% 45%;
}

.hero-book-3d-stage {
  position: relative;
  width: 300px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  perspective: 1600px;
  perspective-origin: 30% 40%;
}

.hero-book-glow {
  position: absolute;
  width: 330px;
  height: 450px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
  transition: background 0.8s ease, opacity 0.8s ease;
}
.hero-book-glow.cat-ufologia { background: radial-gradient(circle, #38bdf8 0%, #1e1b4b 60%, transparent 80%); }
.hero-book-glow.cat-magia { background: radial-gradient(circle, #2fbf8f 0%, #064e3b 60%, transparent 80%); }
.hero-book-glow.cat-mas-alla { background: radial-gradient(circle, #a855f7 0%, #2e1065 60%, transparent 80%); }
.hero-book-glow.cat-filosofia { background: radial-gradient(circle, #f59e0b 0%, #78350f 60%, transparent 80%); }

.hero-book-3d {
  position: relative;
  width: 250px;
  height: 375px;
  transform-style: preserve-3d;
  /* Lomo al frente-izquierda, portada abierta hacia la derecha. Flotación levitante continua (sin mouse) */
  transform: translateY(0) rotateY(34deg) rotateX(8deg) rotateZ(-2deg);
  animation: heroBookLevitate 6.5s ease-in-out infinite;
  z-index: 5;
}

@keyframes heroBookLevitate {
  0%, 100% { transform: translateY(0) rotateY(34deg) rotateX(8deg) rotateZ(-2deg); }
  25% { transform: translateY(-9px) rotateY(30deg) rotateX(7deg) rotateZ(-1.5deg); }
  50% { transform: translateY(-16px) rotateY(27deg) rotateX(6deg) rotateZ(-1deg); }
  75% { transform: translateY(-8px) rotateY(31deg) rotateX(7.5deg) rotateZ(-1.6deg); }
}

@keyframes heroShadowBreath {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(0.8); opacity: 0.55; }
}

/* 1. Tapa trasera encuadernada acorde al tono de la portada */
.hero-book-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 375px;
  transform: rotateY(180deg) translateZ(26px);
  background: linear-gradient(135deg, var(--spine-mid, #161229) 0%, var(--spine-base, #080612) 100%);
  border: 1px solid var(--spine-border, rgba(232, 200, 114, 0.35));
  border-radius: 0 4px 4px 0;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-book-back-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.32) saturate(1.15);
  transform: scale(1.15);
  pointer-events: none;
}

.hero-book-back-ornament {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.45;
}

.hero-back-seal {
  font-size: 1.8rem;
  color: var(--spine-accent, #e8c872);
}

.hero-back-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--spine-accent, #e8c872);
}

/* 2. Lomo 3D continuo que prolonga el arte y color de la portada (52px de grosor) */
.hero-book-spine {
  position: absolute;
  top: 0;
  left: -26px;
  width: 52px;
  height: 375px;
  /* Centrado en el borde izquierdo y girado mirando hacia el lector */
  transform: rotateY(-90deg);
  /* Borde derecho en 0 para unión hermética con la portada frontal */
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, var(--spine-mid, #1d1736) 0%, var(--spine-base, #0b0918) 50%, var(--spine-mid, #1d1736) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  color: var(--spine-accent, #e8c872);
  font-family: var(--font-display);
  overflow: hidden;
  user-select: none;
}

/* Muestreo real del borde izquierdo de la portada para continuidad cromática perfecta */
.hero-spine-bg {
  position: absolute;
  inset: 0;
  background-size: 650% 100%;
  background-position: 2% center;
  background-repeat: no-repeat;
  filter: blur(5px) brightness(0.62) saturate(1.2) contrast(1.08);
  transform: scale(1.08);
  z-index: 0;
  pointer-events: none;
}

/* Sombreado cilíndrico 3D + tinte armónico de la portada */
.hero-book-spine::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.68) 0%,
      rgba(0, 0, 0, 0.16) 22%,
      rgba(255, 255, 255, 0.15) 54%,
      rgba(0, 0, 0, 0.06) 84%,
      rgba(0, 0, 0, 0.34) 100%
    ),
    var(--spine-tint, rgba(16, 13, 30, 0.52));
  z-index: 1;
  pointer-events: none;
}

/* Cabezada tejida en el lomo acorde al tono del libro */
.hero-spine-headband {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--spine-accent, #e8c872) 0px,
    var(--spine-accent, #e8c872) 3px,
    rgba(0, 0, 0, 0.65) 3px,
    rgba(0, 0, 0, 0.65) 6px
  );
  opacity: 0.8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

/* Nervios en relieve 3D integrados en el color de la cubierta */
.hero-spine-rib {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
  border-top: 1px solid var(--spine-border, rgba(232, 200, 114, 0.45));
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
}

.hero-spine-cap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.15rem 0;
}

.hero-spine-sym {
  font-size: 0.76rem;
  color: var(--spine-accent, #fde68a);
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.hero-spine-num {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--spine-text, #ffffff);
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
}

/* Título vertical limpio sobre el fondo continuo del lomo */
.hero-spine-title-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.2rem;
  width: 100%;
}

.hero-spine-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--spine-text, #ffffff);
  max-height: 205px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.65);
}

.hero-spine-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.15rem 0;
}

.hero-spine-author {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--spine-accent, #fde68a);
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

/* 3. Bloque de páginas (ligeramente hundido respecto a las tapas, como un hardcover real) */
.hero-book-top-edge,
.hero-book-bottom-edge {
  position: absolute;
  left: 0;
  width: 247px;
  height: 48px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, transparent 12%, transparent 88%, rgba(0, 0, 0, 0.25) 100%),
    repeating-linear-gradient(180deg, #fbf7ef 0px, #efe6d4 1px, #e0d2b8 2px, #fbf7ef 3px);
}
.hero-book-top-edge {
  top: -21px;
  transform: rotateX(90deg);
  transform-origin: 50% 50%;
}
.hero-book-bottom-edge {
  top: 348px;
  transform: rotateX(-90deg);
  transform-origin: 50% 50%;
  filter: brightness(0.55);
}

.hero-book-right-edge {
  position: absolute;
  top: 3px;
  left: 223px;
  width: 48px;
  height: 369px;
  transform: rotateY(90deg);
  transform-origin: 50% 50%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.35) 100%),
    repeating-linear-gradient(90deg, #fbf7ef 0px, #efe6d4 1px, #e0d2b8 2px, #fbf7ef 3px);
  filter: brightness(0.7);
}

/* 5. Portada frontal real con hendidura de bisagra continua y reflejo satinado */
.hero-book-cover-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 375px;
  transform: translateZ(26px);
  border-radius: 0 5px 5px 0;
  overflow: hidden;
  background: var(--spine-base, #080612);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset -2px 0 6px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.55);
}
.hero-book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hendidura / bisagra orgánica entre el lomo y la portada */
.hero-book-hinge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(255, 255, 255, 0.16) 22%,
    rgba(0, 0, 0, 0.44) 45%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* Brillo de luz satinada diagonal */
.hero-book-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 235, 170, 0.18) 46%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 235, 170, 0.18) 54%, transparent 78%);
  transform: translateX(-160%);
  animation: esotericSheen 7s infinite ease-in-out;
  z-index: 5;
}

/* 6. Sombra en el suelo que respira con la levitación */
.hero-book-floor-shadow {
  position: absolute;
  bottom: -38px;
  left: 20px;
  width: 260px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 2;
  animation: heroShadowBreath 6.5s ease-in-out infinite;
}

/* Columna de Texto Masiva como Dean Koontz */
.billboard-text-col {
  flex: 1;
  max-width: 640px;
  text-align: left;
}

/* Antetítulo con filete dorado */
.billboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #f1d48a;
  margin-bottom: 1.4rem;
}
.billboard-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8c872);
  flex-shrink: 0;
}

/* Titular: nombre de la obra en blanco, subtítulo en oro en su propia línea */
.billboard-headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}

.billboard-headline span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  background: linear-gradient(180deg, #fff4d2 0%, #f1d48a 45%, #c79a3e 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

/* Entradilla editorial en serif */
.billboard-lead {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
  color: #dfe5ee;
  line-height: 1.6;
  letter-spacing: 0.005em;
  margin-bottom: 2.2rem;
  max-width: 560px;
  padding-left: 1.1rem;
  border-left: 1px solid rgba(232, 200, 114, 0.4);
  text-wrap: pretty;
}

.billboard-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.billboard-avail {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8fa3b5;
  font-weight: 600;
}

/* Flechas Laterales Monumentales */
.billboard-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 84px;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #ffffff;
  font-size: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}

.billboard-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  color: #f6d287;
}

.billboard-arrow.prev { left: 0; border-radius: 0 4px 4px 0; }
.billboard-arrow.next { right: 0; border-radius: 4px 0 0 4px; }

/* Pestaña Inferior de Dean Koontz ("FROM THE DESK OF DEAN") */
.billboard-bottom-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #000000;
  color: #ffffff;
  width: max-content;
  margin: 0 auto;
  padding: 0.6rem 2.2rem;
  border-radius: 6px 6px 0 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

.billboard-bottom-tab:hover {
  background: #b45309;
  color: #fff;
}

/* =====================================================================
   SECCIÓN: LAS 4 LÍNEAS DE INVESTIGACIÓN (ARQUITECTURA EDITORIAL PRESTIGIO)
   ===================================================================== */
.pillars-section {
  background: radial-gradient(ellipse at 50% 0%, #062228 0%, #031418 55%, #010a0c 100%);
  padding: 5.5rem 1.5rem 6rem;
  border-top: 1px solid rgba(232, 200, 114, 0.15);
  border-bottom: 1px solid rgba(232, 200, 114, 0.15);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.pillars-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 114, 0.5), transparent);
}

.pillars-container {
  max-width: 1320px;
  margin: 0 auto;
}

.pillars-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.pillars-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f6d287;
  margin-bottom: 0.75rem;
}

.pillars-kicker::before,
.pillars-kicker::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(246, 210, 135, 0.45);
}

.pillars-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.pillars-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

@media (max-width: 1100px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: linear-gradient(180deg, rgba(8, 38, 43, 0.75) 0%, rgba(4, 20, 23, 0.95) 100%);
  border: 1px solid rgba(232, 200, 114, 0.18);
  border-radius: 8px;
  padding: 2.2rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--pillar-glow, #e8c872), transparent);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 200, 114, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(12, 60, 68, 0.4);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pillar-badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(246, 210, 135, 0.12);
  color: #f6d287;
  border: 1px solid rgba(246, 210, 135, 0.28);
}

.pillar-icon-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 114, 0.2) 0%, rgba(5, 25, 29, 0.8) 100%);
  border: 1px solid rgba(232, 200, 114, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #f6d287;
  box-shadow: 0 0 15px rgba(232, 200, 114, 0.2);
}

.pillar-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.pillar-focus {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 1.1rem;
}

.pillar-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pillar-books-hint {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.pillar-hint-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.pillar-sample-titles {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: #fdf8ee;
  line-height: 1.45;
}

.pillar-action-btn {
  background: rgba(246, 210, 135, 0.08);
  color: #f6d287;
  border: 1px solid rgba(246, 210, 135, 0.35);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pillar-card:hover .pillar-action-btn {
  background: linear-gradient(135deg, #e8c872 0%, #c4993a 100%);
  color: #031418;
  border-color: #e8c872;
  box-shadow: 0 4px 15px rgba(232, 200, 114, 0.35);
}

/* =====================================================================
   SECCIÓN: LA ESTANTERÍA DE MADERA REAL (SCREENSHOT 3 DEAN KOONTZ)
   ===================================================================== */
.shelf-showcase-section {
  background: radial-gradient(circle at 50% 30%, #152e35 0%, #0a1b20 60%, #030a0d 100%);
  padding: 5rem 1.5rem 5rem;
  color: #ffffff;
  text-align: center;
}

.shelf-showcase-container {
  max-width: 1360px;
  margin: 0 auto;
}

.shelf-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.shelf-showcase-sub {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 3.5rem;
}

.wooden-bookcase {
  max-width: 1280px;
  margin: 0 auto 3rem;
  position: relative;
}

.wood-shelf {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.1rem;
  padding: 1.5rem 0.5rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.wood-shelf::-webkit-scrollbar {
  display: none;
}

/* El Tomo en la Estantería */
.shelf-book-item {
  flex: 0 0 130px;
  height: 200px;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  transform-origin: 50% 100%;
}

.shelf-book-item:hover {
  transform: translateY(-16px) scale(1.08);
  z-index: 15;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9));
}

.shelf-book-cover {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #090818;
}

.shelf-book-cover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 12px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(255, 255, 255, 0.22) 25%,
    rgba(0, 0, 0, 0.48) 55%,
    rgba(255, 255, 255, 0.08) 78%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.shelf-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf-book-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 4, 12, 0.92);
  border: 1px solid #e8c872;
  color: #f6e3a8;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* La Repisa de Madera Real con Bisel y Sombra */
.wood-plank {
  height: 28px;
  background: linear-gradient(180deg, #8a532d 0%, #573319 45%, #2c160a 100%);
  border-top: 2px solid #b87b4a;
  border-bottom: 2px solid #1a0b04;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.95), inset 0 2px 2px rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin-bottom: 3.5rem;
  position: relative;
}

.shelf-bottom-brand {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  color: #f6d287;
  text-transform: uppercase;
}

.layer {
  position: absolute;
  transform: translate3d(calc(var(--mx) * var(--d, 0) * 1px), calc(var(--my) * var(--d, 0) * 1px), 0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Fondo Vectorial Infinito (SVG Cathedral - Cero Pixelación) --- */
.cathedral-vector-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.cathedral-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.85));
}

/* --- Tinte Ambiental Dinámico que adopta el tono de la portada activa --- */
.hero-ambient-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--ambient-bg-radial);
  mix-blend-mode: screen;
  transition: background 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rose-petals,
.runic-medallions,
.rose-window-group circle {
  transition: fill 1s ease, stroke 1s ease, opacity 1s ease;
}

#hero-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* --- Rayos de luz sagrada y haz celestial --- */
.god-rays {
  top: -120px;
  left: 50%;
  width: 1400px;
  height: 1200px;
  margin-left: -700px;
  z-index: 4;
  pointer-events: none;
  background: repeating-conic-gradient(from 168deg at 50% 0%,
    rgba(255, 244, 205, 0.0) 0deg,
    rgba(255, 244, 205, 0.16) 1.6deg,
    rgba(255, 244, 205, 0.0) 3.4deg,
    rgba(255, 244, 205, 0.0) 6deg);
  -webkit-mask-image: radial-gradient(ellipse 34% 75% at 50% 0%, #000 0%, rgba(0,0,0,0.6) 45%, transparent 85%);
          mask-image: radial-gradient(ellipse 34% 75% at 50% 0%, #000 0%, rgba(0,0,0,0.6) 45%, transparent 85%);
  mix-blend-mode: screen;
  animation: raysSway 14s ease-in-out infinite alternate;
}

.light-beam {
  top: 0;
  left: 50%;
  width: 380px;
  height: 94%;
  margin-left: -190px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 252, 240, 0.95) 0%,
    var(--ambient-beam, rgba(180, 140, 255, 0.45)) 30%,
    rgba(232, 200, 114, 0.20) 60%,
    rgba(232, 200, 114, 0.0) 100%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(24px);
  mix-blend-mode: screen;
  animation: beamPulse 6s ease-in-out infinite;
  transition: background 1s ease;
}

/* --- Catedral SVG --- */
.cathedral {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* --- Escalera de caracol 3D con los 33 Tomos --- */
.stair-stage {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 640px;
  height: 720px;
  margin-left: -320px;
  z-index: 4;
  perspective: 1400px;
  perspective-origin: 50% 25%;
  transform-origin: 50% 100%;
  scale: var(--stair-scale, 0.95);
  pointer-events: auto;
}
.stair-tilt {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-14deg);
}
.stair-spiral {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: spiralTurn 70s linear infinite;
}
.step {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.step .tread {
  position: absolute;
  left: 0;
  top: -30px;
  width: 185px;
  height: 60px;
  transform-origin: 0 50%;
  transform: rotateX(90deg);
  clip-path: polygon(0 32%, 100% 0, 100% 100%, 0 68%);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(20, 18, 45, 0.35) 40%, rgba(255, 240, 200, calc(0.18 + var(--t) * 0.6)) 97%, rgba(255, 250, 230, 0.95) 100%),
    color-mix(in srgb, #fff2c8 calc(var(--t) * 92%), #14112e);
  box-shadow: 0 0 calc(var(--t) * 45px) rgba(255, 236, 180, calc(var(--t) * 0.75));
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.step .tread:hover {
  filter: brightness(1.35) drop-shadow(0 0 16px rgba(255, 238, 170, 0.8));
}

/* El Tomo/Grimorio tridimensional sobre el escalón */
.stair-book {
  position: absolute;
  right: 18px;
  top: 10px;
  width: 90px;
  height: 42px;
  transform-style: preserve-3d;
  transform: rotateX(-90deg) rotateY(-18deg) translateZ(8px);
  pointer-events: none;
  transition: transform 0.25s ease;
}
.step .tread:hover .stair-book {
  transform: rotateX(-90deg) rotateY(-18deg) translateZ(16px) scale(1.08);
}
.s-book-front {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(135deg, #1b1638 0%, #0d0a1c 100%);
  border: 1px solid rgba(232, 200, 114, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85), 0 0 14px rgba(232, 200, 114, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2px 4px;
  text-align: center;
  overflow: hidden;
}
.s-book-badge {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  line-height: 1;
}
.s-book-title {
  font-family: var(--font-display);
  font-size: 0.44rem;
  color: #fff;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  line-height: 1.1;
  margin-top: 2px;
}
.s-book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 42px;
  transform-origin: 0 50%;
  transform: rotateY(-90deg);
  background: linear-gradient(180deg, #d4af37 0%, #85651e 50%, #44320b 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.s-spine-num {
  font-family: var(--font-display);
  font-size: 0.45rem;
  font-weight: 700;
  color: #120e04;
}
.s-spine-title { display: none; }
.s-book-pages {
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 42px;
  transform-origin: 100% 50%;
  transform: rotateY(90deg);
  background: repeating-linear-gradient(0deg, #f5ebd2 0px, #f5ebd2 1px, #d4c6a6 2px);
}
.stair-book.cat-mas-alla .s-book-front {
  border-color: rgba(160, 130, 255, 0.75);
  background: linear-gradient(135deg, #2b1f55 0%, #0d0a1c 100%);
}
.stair-book.cat-magia .s-book-front {
  border-color: rgba(47, 191, 143, 0.75);
  background: linear-gradient(135deg, #0f4c39 0%, #061e16 100%);
}
.stair-book.cat-ufologia .s-book-front {
  border-color: rgba(56, 189, 248, 0.75);
  background: linear-gradient(135deg, #0e3752 0%, #061825 100%);
}
.stair-book.cat-filosofia .s-book-front {
  border-color: rgba(232, 200, 114, 0.8);
  background: linear-gradient(135deg, #423214 0%, #171104 100%);
}

.step .riser {
  position: absolute;
  left: 0;
  top: 0;
  width: 185px;
  height: 12px;
  transform-origin: 0 0;
  transform: translateZ(-30px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #04030a 0%, color-mix(in srgb, #c9a24a calc(var(--t) * 80%), #0b0a1c) 100%);
  opacity: 0.95;
}
.stair-column {
  position: absolute;
  left: -10px;
  bottom: 0;
  width: 20px;
  transform-style: preserve-3d;
}
.stair-column::before,
.stair-column::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #07061a 0%, #2a2560 45%, #e8c872 85%, #fff8e1 100%);
  box-shadow: 0 0 20px rgba(232, 200, 114, 0.25);
}
.stair-column::after { transform: rotateY(90deg); }

.stair-base-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 520px;
  height: 120px;
  margin-left: -260px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232, 200, 114, 0.22), rgba(47, 191, 143, 0.08) 45%, transparent 70%);
  filter: blur(10px);
}

.beam-front {
  position: absolute;
  left: 50%;
  top: 0;
  width: 520px;
  height: 58%;
  margin-left: -260px;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(ellipse 45% 70% at 50% 0%, rgba(255, 250, 235, 0.55), rgba(255, 240, 200, 0.12) 50%, transparent 75%);
  mix-blend-mode: screen;
  animation: beamPulse 6s ease-in-out infinite;
}

.floor-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 4, 12, 0) 0%, rgba(5, 4, 12, 0.75) 45%, var(--ink) 92%);
}

/* --- Contenido Unificado del Hero (Todo visible en el 1er Viewport) --- */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.hero-header-box {
  margin-bottom: 0.35rem;
  max-width: 900px;
}
.hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(232, 200, 114, 0.8);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--light);
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.98), 0 0 45px rgba(0, 0, 0, 0.9);
  margin-bottom: 0.25rem;
}
.hero-title span {
  background: linear-gradient(180deg, #ffffff 0%, var(--gold-soft) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 15px rgba(0, 0, 0, 0.9));
}
.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  color: #d8d2ea;
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  line-height: 1.35;
}

/* --- Carrusel dentro del Hero: Tríada Monumental --- */
.hero-carousel-wrap {
  width: min(1180px, 98vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

/* Indicador de Desplazamiento Sutil al final del Hero */
.scroll-cue {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 0.2rem auto 0;
  z-index: 10;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.scroll-cue:hover {
  transform: translateY(-2px);
}
.cue-pill {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(10, 8, 22, 0.75);
  border: 1px solid var(--line);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.scroll-cue:hover .cue-pill {
  border-color: var(--gold);
  color: #ffffff;
  background: rgba(232, 200, 114, 0.15);
}
.cue-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: cue 2s ease-in-out infinite;
}

/* =====================================================================
   SECCIÓN: LOS 33 PELDAÑOS DE LA SABIDURÍA (DOCK COMPLETO)
   ===================================================================== */
.shelf-section {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232, 200, 114, 0.06), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
  padding: 3.5rem 1.4rem 4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.shelf-container {
  max-width: 1360px;
  margin: 0 auto;
}
.hero-shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.shelf-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.shelf-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.shelf-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.shelf-hint {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--text-dim);
}
.hero-shelf {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0.2rem 0.8rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
.hero-shelf::-webkit-scrollbar {
  height: 6px;
}
.hero-shelf::-webkit-scrollbar-thumb {
  background: var(--gold-deep);
  border-radius: 4px;
}
.shelf-btn {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 54px;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(232, 200, 114, 0.25);
  background: rgba(18, 15, 42, 0.75);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shelf-btn .shelf-sym {
  font-size: 0.65rem;
  line-height: 1;
  color: var(--gold-soft);
  opacity: 0.75;
}
.shelf-btn .shelf-num {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1.2;
}
.shelf-btn.learned {
  border-color: rgba(47, 191, 143, 0.6);
  background: rgba(15, 92, 69, 0.25);
}
.shelf-btn .shelf-check {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.55rem;
  color: var(--emerald-glow);
  font-weight: bold;
}
.shelf-btn:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--gold);
  background: rgba(36, 30, 78, 0.95);
  box-shadow: 0 6px 20px rgba(232, 200, 114, 0.35);
  z-index: 15;
}
.shelf-btn .shelf-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  min-width: 170px;
  max-width: 230px;
  padding: 0.5rem 0.7rem;
  background: rgba(6, 5, 16, 0.96);
  border: 1px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
  transition: all 0.2s ease;
  z-index: 30;
}
.shelf-btn .shelf-pop strong {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.shelf-btn .shelf-pop em {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 0.84rem;
  color: #fff;
  line-height: 1.2;
  white-space: normal;
}
.shelf-btn:hover .shelf-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================================
   SECCIONES GENERALES (FLUIDAS A ANCHO COMPLETO - ESTILO STEPHEN KING)
   ===================================================================== */
main section { position: relative; width: 100%; margin: 0; }

.section-head { text-align: center; margin-bottom: 3.2rem; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerald-glow);
  margin-bottom: 0.7rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  letter-spacing: 0.05em;
  color: var(--light);
  position: relative;
  display: inline-block;
  padding: 0 3.2rem;
}
.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title::before { left: 0; }
.section-title::after { right: 0; transform: scaleX(-1); }
.section-title--left { padding: 0; }
.section-title--left::before, .section-title--left::after { display: none; }
.section-sub {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0.8rem auto 0;
}

/* =====================================================================
   CARRUSEL DE OBRAS CUMBRE
   ===================================================================== */
.featured-section::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 90px;
  background: linear-gradient(var(--gold), transparent);
}

/* =====================================================================
   CARRUSEL DE OBRAS CUMBRE (TRÍADA MONUMENTAL ESTILO MOCKUP)
   ===================================================================== */
.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0.5rem;
  position: relative;
}

.carousel-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: clamp(340px, 43vh, 415px);
  margin: 0 auto;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-beam {
  position: absolute;
  left: 50%;
  top: -2.5rem;
  width: 360px;
  height: 115%;
  margin-left: -180px;
  background: linear-gradient(180deg,
    rgba(255, 248, 225, 0.5) 0%,
    var(--ambient-beam, rgba(180, 140, 255, 0.35)) 38%,
    rgba(232, 200, 114, 0.12) 72%,
    transparent 100%);
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
  filter: blur(22px);
  pointer-events: none;
  animation: beamPulse 6s ease-in-out infinite;
  transition: background 1s ease;
}

.carousel-covers {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.cf-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(210px, 22vw, 255px);
  height: clamp(315px, 33vw, 380px);
  margin: calc(-1 * clamp(315px, 33vw, 380px) / 2) 0 0 calc(-1 * clamp(210px, 22vw, 255px) / 2);
  cursor: pointer;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease, opacity 0.8s ease;
  transform-style: preserve-3d;
}

/* Centro (Protagonista Activo: Libro Cumbre) */
.cf-item.pos-0 {
  transform: translateX(0) translateZ(80px) scale(1.08);
  filter: brightness(1.05);
  z-index: 5;
}
.cf-item.pos-0 .tome-book {
  border-color: var(--gold-soft);
  box-shadow:
    var(--ambient-card-glow, 0 0 55px rgba(157, 110, 248, 0.5)),
    0 30px 70px rgba(0, 0, 0, 0.95),
    inset 0 0 20px rgba(232, 200, 114, 0.25);
  transition: box-shadow 0.8s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Izquierda (Flanqueante) */
.cf-item.pos--1 {
  transform: translateX(-108%) translateZ(-50px) rotateY(18deg) scale(0.92);
  filter: brightness(0.68) saturate(0.85);
  z-index: 3;
}
.cf-item.pos--1:hover {
  filter: brightness(0.92) saturate(1);
  transform: translateX(-108%) translateZ(-20px) rotateY(12deg) scale(0.96);
}

/* Derecha (Flanqueante) */
.cf-item.pos-1 {
  transform: translateX(108%) translateZ(-50px) rotateY(-18deg) scale(0.92);
  filter: brightness(0.68) saturate(0.85);
  z-index: 3;
}
.cf-item.pos-1:hover {
  filter: brightness(0.92) saturate(1);
  transform: translateX(108%) translateZ(-20px) rotateY(-12deg) scale(0.96);
}

/* =====================================================================
   DELUXE 3D TOME BOOK (ESTILO MOCKUP ASTRA LUMINA)
   ===================================================================== */
.tome-book {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 3px 5px 5px 3px;
  overflow: hidden;
  background: var(--spine-base, #070512);
  border: 1px solid var(--spine-border, rgba(232, 200, 114, 0.35));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  display: flex;
  transform-style: preserve-3d;
  -webkit-box-reflect: below 14px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.12));
}

/* Lomo 3D en el canto izquierdo acorde al color y textura de cada portada */
.tome-spine-edge {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 13px;
  background: linear-gradient(180deg, var(--spine-mid, #221c38) 0%, var(--spine-base, #0d0a1a) 50%, var(--spine-mid, #221c38) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 2px 0 3px rgba(255, 255, 255, 0.18),
    inset -2px 0 4px rgba(0, 0, 0, 0.65);
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 12px 0;
  overflow: hidden;
}

.tome-spine-bg {
  position: absolute;
  inset: 0;
  background-image: var(--tome-cover);
  background-size: 900% 100%;
  background-position: 2% center;
  background-repeat: no-repeat;
  filter: blur(3px) brightness(0.62) saturate(1.2);
  transform: scale(1.1);
  z-index: 0;
  pointer-events: none;
}

.tome-spine-edge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(255, 255, 255, 0.18) 38%,
    rgba(0, 0, 0, 0.15) 75%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.tome-spine-rib {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(0, 0, 0, 0.7) 100%);
  border-top: 1px solid var(--spine-border, rgba(232, 200, 114, 0.45));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

/* Cara de la portada unida orgánicamente al lomo */
.tome-cover-wrap {
  position: relative;
  width: calc(100% - 13px);
  height: 100%;
  margin-left: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tome-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tome-cover-hinge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(255, 255, 255, 0.14) 35%,
    rgba(0, 0, 0, 0.28) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Portada de imagen completa para Libro 01 (Me lo Contó un Muerto) */
.tome-book.tome-book--fullcover {
  border: 1.5px solid #d4af37;
  background: #05040a;
}

.tome-book.tome-book--fullcover .tome-cover-full-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05040a;
  display: block;
  border-radius: 3px;
}

/* Portada Editorial Canónica de Alta Fidelidad para los 33 libros */
.tome-editorial-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 0.9rem 3.2rem;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.cat-mas-alla .tome-editorial-face,
.cat-mas-alla .tome-grimoire-face {
  background:
    radial-gradient(circle at 50% 25%, rgba(147, 112, 219, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 50% 70%, #201742 0%, #0d091f 65%, #05040e 100%);
}

.cat-magia .tome-editorial-face,
.cat-magia .tome-grimoire-face {
  background:
    radial-gradient(circle at 50% 25%, rgba(47, 191, 143, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 50% 70%, #0d4635 0%, #052119 65%, #03100c 100%);
}

.cat-ufologia .tome-editorial-face,
.cat-ufologia .tome-grimoire-face {
  background:
    radial-gradient(circle at 50% 25%, rgba(56, 189, 248, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 50% 70%, #0c384e 0%, #051a26 65%, #020c13 100%);
}

.cat-filosofia .tome-editorial-face,
.cat-filosofia .tome-grimoire-face {
  background:
    radial-gradient(circle at 50% 25%, rgba(232, 200, 114, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 50% 70%, #42300f 0%, #1f1605 65%, #0d0a02 100%);
}

.tome-editorial-author {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(232, 200, 114, 0.35);
  width: 90%;
}

.tome-editorial-symbol {
  font-size: 1.8rem;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(232, 200, 114, 0.5));
  opacity: 0.8;
  margin: 0.3rem 0;
}

.tome-editorial-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 92%;
}

.tome-editorial-sub {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-style: italic;
  color: #d1cbe0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 88%;
}

/* Marco ornamental dorado con filigrana */
.tome-ornament-frame {
  position: absolute;
  inset: 8px;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(5, 4, 12, 0.6), inset 0 0 20px rgba(232, 200, 114, 0.15);
  z-index: 4;
}
.tome-ornament-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(232, 200, 114, 0.45);
}
.tome-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-style: solid;
  border-color: var(--gold-soft);
}
.tome-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.tome-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.tome-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.tome-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* Contenido del grimorio: Símbolo sagrado */
.tome-symbol-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: var(--gold-soft);
  background: radial-gradient(circle, rgba(232, 200, 114, 0.25) 0%, transparent 70%);
  box-shadow: 0 0 24px rgba(232, 200, 114, 0.35);
  margin-top: 0.5rem;
}

/* Título de altísima legibilidad */
.tome-title-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 25px rgba(232, 200, 114, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.8rem 0;
  max-width: 90%;
}
.tome-author-text {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.9;
}

/* Placa inferior con el número arábigo limpio */
.tome-plate {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 0.35rem 1.3rem;
  background: linear-gradient(180deg, #181408 0%, #080602 100%);
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 16px rgba(232, 200, 114, 0.3);
  z-index: 6;
  white-space: nowrap;
}
.tome-plate-text {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  text-transform: uppercase;
  display: block;
  text-align: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 52px; height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(5, 4, 14, 0.85);
  color: var(--gold-soft);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}
.carousel-arrow:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 25px rgba(232, 200, 114, 0.6);
  transform: scale(1.08);
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* Placa de Control Esotérica del Carrusel (Hero Info Dock) */
.carousel-info,
.carousel-info-dock {
  width: 100%;
  max-width: 920px;
  margin: 0.65rem auto 0;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background:
    radial-gradient(ellipse 65% 90% at 50% 0%, var(--ambient-glow, rgba(157, 110, 248, 0.22)), transparent 75%),
    linear-gradient(180deg, rgba(12, 10, 26, 0.94) 0%, rgba(5, 4, 12, 0.98) 100%);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(232, 200, 114, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  transition: all 0.5s ease;
  z-index: 10;
  position: relative;
}
.cid-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
}
.cid-top-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
}
.cid-badge {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(232, 200, 114, 0.15);
  border: 1px solid var(--line-strong);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}
.cid-category {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ambient-primary, var(--emerald-glow));
  transition: color 0.5s ease;
}
.cid-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cid-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 0.1rem;
}
.cid-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.carousel-dots { display: flex; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }
.cdot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 4, 12, 0.6);
  color: var(--text-mute);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.cdot::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
}
.cdot.active { color: var(--gold-soft); border-color: var(--line-strong); }
.cdot.active::after { animation: dotProgress var(--autoplay, 8s) linear forwards; }
.carousel.paused ~ .carousel-dots .cdot.active::after { animation-play-state: paused; }

/* =====================================================================
   BIBLIOTECA
   ===================================================================== */
/* =====================================================================
   BIBLIOGRAFÍA EDITORIAL COMPLETA — ESTILO STEPHEN KING
   ===================================================================== */
.library-section.king-library-theme {
  width: 100%;
  background: #fbfaf7;
  color: #111827;
  border-top: 1px solid #e7e5e0;
  border-bottom: 1px solid #e7e5e0;
  padding: 5rem 3rem 6.5rem;
}

.king-library-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.king-library-head .kicker {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b45309;
  display: block;
  margin-bottom: 0.5rem;
}

.king-library-head .section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-style: italic;
  font-weight: 600;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.king-library-head .section-sub {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Toolbar Editorial de Búsqueda y Filtros */
.library-toolbar.king-toolbar {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 86px;
  z-index: 30;
}

.king-search-field {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.king-search-field .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.15rem;
}

.king-search-field input {
  width: 100%;
  padding: 0.78rem 1rem 0.78rem 2.8rem;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.king-search-field input:focus {
  outline: none;
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.king-chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.king-chip-row .chip {
  padding: 0.48rem 0.92rem;
  border-radius: 4px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.king-chip-row .chip:hover {
  color: #0f172a;
  border-color: #94a3b8;
  background: #f8fafc;
}

.king-chip-row .chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.king-chip-row .chip.chip--learned.active {
  background: #0f5c45;
  border-color: #0f5c45;
  color: #ffffff;
}

.king-results-counter {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto 2rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Grilla Editorial de Libros Estilo Stephen King (Sin visores, portada nítida y rectangular) */
.king-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2.8rem 2.2rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.king-catalog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  animation: cardIn 0.5s ease both;
}

.king-catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

/* Escaparate de Portada Rectangular de Libro 3D — Tamaño Estándar Uniforme */
.king-catalog-media {
  position: relative;
  background: radial-gradient(circle at 50% 35%, #18152e 0%, #0a0916 70%, #04030a 100%);
  padding: 2.2rem 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  height: 330px;
}

.king-learned-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0f5c45;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.king-catalog-book-wrap {
  width: 195px;
  height: 275px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.85));
}

.king-catalog-card:hover .king-catalog-book-wrap {
  transform: scale(1.05) translateY(-5px);
}

.king-catalog-cover {
  width: 195px !important;
  height: 275px !important;
}

/* Ficha del libro debajo de la portada */
.king-catalog-info {
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

.king-catalog-cat-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.45rem;
}

.king-catalog-cat-badge .cat-pill {
  font-weight: 800;
  color: #111827;
}

.king-catalog-cat-badge .cat-dot {
  color: #94a3b8;
}

.king-catalog-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.king-catalog-title:hover {
  color: #b45309;
}

.king-catalog-sub {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.king-catalog-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.king-btn-details {
  width: 100%;
  padding: 0.68rem 1rem;
  background: #0f172a;
  color: #ffffff;
  border: 1.5px solid #0f172a;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.king-btn-details:hover {
  background: #b9933f;
  border-color: #b9933f;
  transform: translateY(-1px);
}

.king-btn-buy {
  width: 100%;
  padding: 0.62rem 1rem;
  background: #fbfaf7;
  color: #111827;
  border: 1.5px solid #d4af37;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.king-btn-buy:hover {
  color: #ffffff;
  border-color: #0f172a;
  background: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transform: translateY(-2px);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
}

/* =====================================================================
   BOTÓN VER MÁS / CARGAR MÁS LIBROS (DISTRIBUCIÓN LIMPIA DE 33 OBRAS)
   ===================================================================== */
.king-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px dashed #cbd5e1;
}

.king-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 2.2rem;
  background: #0f172a;
  color: #ffffff;
  border: 1.5px solid #0f172a;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.king-load-more-btn:hover {
  background: #b9933f;
  border-color: #b9933f;
  color: #05040a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(185, 147, 63, 0.35);
}

.load-more-icon {
  font-size: 1.15rem;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.king-load-more-btn:hover .load-more-icon {
  transform: translateY(3px);
}

.load-more-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.king-load-more-btn:hover .load-more-pill {
  background: rgba(0, 0, 0, 0.2);
  color: #05040a;
}

.king-load-all-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.king-load-all-btn:hover {
  color: #0f172a;
}

.king-all-loaded-note {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9933f;
  padding: 0.8rem 1.6rem;
  background: #fbfaf7;
  border: 1px solid #e7e5e0;
  border-radius: 4px;
}

.king-collapse-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.35rem 0.8rem;
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.king-collapse-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* =====================================================================
   TALISMANES
   ===================================================================== */
.talismans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.talisman-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(19, 17, 51, 0.6), rgba(5, 4, 12, 0.85));
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.talisman-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.talisman-card .t-img { aspect-ratio: 1; overflow: hidden; background: #0a0918; }
.talisman-card .t-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.talisman-card:hover .t-img img { transform: scale(1.06); }
.t-body { padding: 1.2rem; }
.t-type { font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald-glow); }
.t-title { font-family: var(--font-display); font-size: 1rem; color: var(--light); margin: 0.3rem 0 0.4rem; }
.t-desc { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1rem; }
.t-foot { display: flex; justify-content: space-between; align-items: center; }
.t-price { font-family: var(--font-display); color: var(--gold); font-weight: 600; }

/* =====================================================================
   EL AUTOR — SPOTLIGHT EDITORIAL OFICIAL (ESTILO STEPHEN KING / DEAN KOONTZ)
   ===================================================================== */
.author-spotlight-section {
  position: relative;
  width: 100%;
  background: #0a0914;
  color: #ffffff;
  padding: 6rem 3rem 7rem;
  border-top: 1px solid rgba(232, 200, 114, 0.2);
  border-bottom: 1px solid rgba(232, 200, 114, 0.2);
  overflow: hidden;
}

.author-spotlight-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 20% 40%, rgba(232, 200, 114, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(109, 75, 216, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.author-spotlight-container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 4.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Columna Izquierda: Marco del Retrato */
.author-spotlight-media-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.author-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #b9933f;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), inset 0 0 20px rgba(185, 147, 63, 0.2);
  background: #05040c;
}

.author-portrait-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
  display: block;
  transition: transform 0.5s ease;
}

.author-portrait-frame:hover .author-portrait-full {
  transform: scale(1.03);
}

.author-portrait-shadow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.author-plaque {
  background: rgba(18, 15, 38, 0.85);
  border: 1px solid rgba(232, 200, 114, 0.35);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  text-align: center;
}

.author-plaque-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff8e1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.author-plaque-role {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c872;
  display: block;
  margin-bottom: 0.7rem;
}

.author-plaque-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.94rem;
  color: #b9b3cc;
  line-height: 1.45;
  margin: 0;
}

/* Columna Derecha: Biografía */
.author-spotlight-bio-col {
  display: flex;
  flex-direction: column;
}

.author-bio-kicker {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8c872;
  margin-bottom: 0.6rem;
}

.author-bio-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.author-bio-lead {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 500;
  color: #f1eee6;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.author-bio-body {
  font-size: 0.98rem;
  color: #b9b3cc;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

/* Cuadrícula de Hitos */
.author-milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.4rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(232, 200, 114, 0.2);
  border-bottom: 1px solid rgba(232, 200, 114, 0.2);
}

.milestone-box {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.milestone-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: #e8c872;
  line-height: 1.1;
}

.milestone-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* Botones de Autor */
.author-bio-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.author-btn-amazon {
  padding: 0.75rem 1.6rem;
  background: #e8c872;
  color: #05040a;
  border: 1.5px solid #e8c872;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(232, 200, 114, 0.3);
}

.author-btn-amazon:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
}

.author-btn-store {
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: #f1eee6;
  border: 1.5px solid rgba(232, 200, 114, 0.5);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.author-btn-store:hover {
  border-color: #e8c872;
  color: #e8c872;
  background: rgba(232, 200, 114, 0.08);
}

.author-btn-explore {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9b3cc;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-left: 0.5rem;
}

.author-btn-explore:hover {
  color: #ffffff;
}

/* =====================================================================
   FOOTER EDITORIAL OFICIAL — ESTILO STEPHEN KING & DEAN KOONTZ
   ===================================================================== */
.site-footer {
  background: #06050e;
  color: #94a3b8;
  border-top: 2px solid #1e1b2e;
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 25%, #e8c872 50%, #d4af37 75%, transparent 100%);
  opacity: 0.7;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4.8rem 1.8rem 2.5rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

/* Columna de Marca */
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-crest-wrap {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: radial-gradient(circle, #1a1533 0%, #0d0b1a 100%);
  border: 1px solid rgba(232, 200, 114, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(232, 200, 114, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.footer-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) brightness(1.15);
}

.footer-brand-title {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9933f;
  margin-top: 0.2rem;
}

.footer-bio-summary {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #8f8a9e;
  margin-bottom: 1.8rem;
}

/* Redes Sociales Oficiales */
.footer-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-social-heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  background: #110f1e;
  border: 1px solid #231f38;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.22s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.social-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

/* Colores específicos de hover en Redes */
.social-btn-ig:hover {
  background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  border-color: #c13584;
  color: #ffffff;
}

.social-btn-yt:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}

.social-btn-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.social-btn-tt:hover {
  background: #000000;
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.social-btn-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #052912;
}

.social-btn-amz:hover {
  background: #ff9900;
  border-color: #ff9900;
  color: #111111;
}

/* Columnas de Navegación */
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #b9933f;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.footer-nav-list a:hover {
  color: #e8c872;
  transform: translateX(3px);
}

.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-mas-alla { background: #9370db; box-shadow: 0 0 6px rgba(147, 112, 219, 0.6); }
.dot-magia { background: #2fbf8f; box-shadow: 0 0 6px rgba(47, 191, 143, 0.6); }
.dot-ufologia { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.6); }
.dot-filosofia { background: #e8c872; box-shadow: 0 0 6px rgba(232, 200, 114, 0.6); }

.footer-highlight-link {
  color: #e8c872 !important;
  font-weight: 700;
}

/* Columna de Contacto */
.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.f-contact-icon {
  font-size: 1.15rem;
  line-height: 1.2;
}

.f-contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.f-contact-text strong {
  color: #e2e8f0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.f-contact-text span,
.f-contact-text a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.f-contact-text a:hover {
  color: #e8c872;
  text-decoration: underline;
}

.footer-badge-box {
  background: #110e24;
  border: 1px solid #282142;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.f-badge-kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #b9933f;
  margin-bottom: 0.35rem;
}

.footer-badge-box p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #a49fc0;
  margin: 0;
}

/* Separador y Fila Inferior */
.footer-divider {
  margin: 3.5rem 0 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 200, 114, 0.2) 20%, rgba(232, 200, 114, 0.2) 80%, transparent 100%);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-copyright strong {
  color: #cbd5e1;
  font-weight: 600;
}

.footer-editorial-note {
  font-family: var(--font-serif);
  font-style: italic;
  color: #7d7794;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border: 1px solid #27233d;
  border-radius: 3px;
  background: #0f0d1b;
  transition: all 0.2s ease;
}

.footer-back-to-top:hover {
  background: #b9933f;
  border-color: #b9933f;
  color: #06050e;
  transform: translateY(-2px);
}

/* Responsividad del Footer */
@media (max-width: 1050px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.8rem;
  }
}

@media (max-width: 650px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .footer-inner {
    padding: 3.5rem 1.2rem 2rem;
  }
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* =====================================================================
   MODAL
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(3, 2, 8, 0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(232, 200, 114, 0.12), transparent 70%),
    linear-gradient(180deg, #100e2a 0%, #05040c 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(232, 200, 114, 0.12);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-backdrop.open .modal-dialog { transform: none; }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(5, 4, 12, 0.8);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-grid { display: grid; grid-template-columns: 250px 1fr; gap: 2.2rem; }
.modal-side { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.modal-book-stage {
  width: 210px;
  height: 315px;
  margin: 0 auto;
  position: relative;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.85));
}
.modal-tome-cover {
  width: 100% !important;
  height: 100% !important;
}
.modal-learn-btn {
  padding: 0.7rem;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.modal-learn-btn.done { background: rgba(47, 191, 143, 0.18); border-color: var(--emerald-glow); color: #b6f5dc; }
.modal-meta { font-size: 0.8rem; color: var(--text-mute); text-align: center; }
.modal-teachings { list-style: none; display: grid; gap: 0.6rem; margin: 1rem 0 1.6rem; }
.modal-teachings li {
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(232, 200, 114, 0.06);
  font-size: 0.92rem;
}

/* =====================================================================
   PASARELA STRIPE DIRECTO / GHL (VENTANA EMERGENTE EN EL SITIO)
   ===================================================================== */
.ghl-stripe-dialog {
  max-width: 980px !important;
  background: radial-gradient(circle at 80% 10%, #15112e 0%, #080614 70%, #04030a 100%) !important;
  border: 1.5px solid rgba(232, 200, 114, 0.4) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 60px rgba(232, 200, 114, 0.15) !important;
  padding: 2.2rem 2.4rem !important;
}

.stripe-modal-header {
  border-bottom: 1px solid rgba(232, 200, 114, 0.2);
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
}

.stripe-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c872;
  background: rgba(232, 200, 114, 0.12);
  border: 1px solid rgba(232, 200, 114, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.stripe-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin: 0.2rem 0;
}

.stripe-header-sub {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: #a49fc0;
  font-style: italic;
  margin: 0;
}

.stripe-checkout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.4rem;
  align-items: start;
}

/* Columna Izquierda: Resumen */
.stripe-summary-col {
  background: rgba(10, 8, 22, 0.75);
  border: 1px solid rgba(232, 200, 114, 0.22);
  border-radius: 6px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.stripe-book-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.stripe-book-thumb-wrap {
  width: 70px;
  height: 100px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  background: #000;
}

.stripe-book-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stripe-book-meta {
  display: flex;
  flex-direction: column;
}

.stripe-book-number {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #b9933f;
  text-transform: uppercase;
}

.stripe-book-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0.2rem 0;
}

.stripe-book-pillar {
  font-size: 0.76rem;
  color: #94a3b8;
}

/* Selector de Formato */
.stripe-field-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 0.6rem;
}

.stripe-format-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stripe-format-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stripe-format-option.selected {
  border-color: #e8c872;
  background: rgba(232, 200, 114, 0.1);
  box-shadow: 0 0 12px rgba(232, 200, 114, 0.15);
}

.stripe-format-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stripe-format-info strong {
  font-size: 0.82rem;
  color: #ffffff;
}

.stripe-format-info span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.stripe-format-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #e8c872;
}

/* Desglose */
.stripe-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.stripe-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
}

.stripe-free-tag {
  color: #2fbf8f;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.stripe-divider {
  height: 1px;
  background: rgba(232, 200, 114, 0.2);
  margin: 0.4rem 0;
}

.stripe-total-row {
  color: #ffffff;
  font-size: 0.95rem;
}

.stripe-total-row strong {
  color: #e8c872;
  font-size: 1.25rem;
  font-family: var(--font-display);
}

.stripe-guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: rgba(232, 200, 114, 0.06);
  border: 1px solid rgba(232, 200, 114, 0.18);
  border-radius: 4px;
}

.st-g-icon { font-size: 1.1rem; line-height: 1; }

.stripe-guarantee-box strong {
  display: block;
  font-size: 0.75rem;
  color: #e8c872;
  letter-spacing: 0.04em;
}

.stripe-guarantee-box p {
  font-size: 0.7rem;
  color: #a49fc0;
  margin: 0.2rem 0 0;
  line-height: 1.35;
}

/* Columna Derecha: Formulario */
.stripe-form-col {
  display: flex;
  flex-direction: column;
}

.stripe-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.stripe-cards-badges {
  display: flex;
  gap: 0.35rem;
}

.card-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  color: #cbd5e1;
}

.stripe-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stripe-full {
  grid-column: 1 / -1;
}

.stripe-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stripe-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stripe-input-group label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
}

.stripe-input-group input {
  padding: 0.68rem 0.85rem;
  background: #0f0d1d;
  border: 1.5px solid #292445;
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.stripe-input-group input:focus {
  outline: none;
  border-color: #e8c872;
  box-shadow: 0 0 0 3px rgba(232, 200, 114, 0.15);
  background: #141126;
}

.stripe-card-container {
  background: #0d0a1a;
  border: 1.5px solid #282142;
  border-radius: 5px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stripe-card-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.st-card-icon {
  position: absolute;
  left: 0.75rem;
  font-size: 1rem;
}

.stripe-card-field-wrap input {
  width: 100%;
  padding-left: 2.4rem;
  letter-spacing: 0.08em;
}

.stripe-trust-bar {
  display: flex;
  justify-content: space-around;
  margin: 1.2rem 0 1rem;
  font-size: 0.72rem;
  color: #2fbf8f;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stripe-submit-btn {
  width: 100%;
  padding: 0.95rem 1.4rem;
  background: #e8c872;
  color: #05040a;
  border: 1.5px solid #e8c872;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 6px 20px rgba(232, 200, 114, 0.35);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stripe-submit-btn:hover:not(:disabled) {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.stripe-submit-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.stripe-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #05040a;
  border-top-color: transparent;
  border-radius: 50%;
  animation: stripeSpin 0.7s linear infinite;
  display: inline-block;
  margin-right: 0.4rem;
}

@keyframes stripeSpin {
  to { transform: rotate(360deg); }
}

.stripe-legal-note {
  font-size: 0.72rem;
  color: #7d7794;
  text-align: center;
  margin-top: 0.8rem;
  line-height: 1.4;
}

/* Pantalla de Éxito en Modal */
.stripe-success-screen {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stripe-success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0f5c45;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.1rem;
  box-shadow: 0 0 25px rgba(47, 191, 143, 0.45);
}

.stripe-success-kicker {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #2fbf8f;
  text-transform: uppercase;
}

.stripe-success-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: #ffffff;
  margin: 0.3rem 0 0.5rem;
}

.stripe-success-sub {
  font-size: 0.92rem;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 1.6rem;
  line-height: 1.5;
}

.stripe-receipt-box {
  background: #0d0a1b;
  border: 1px solid rgba(232, 200, 114, 0.25);
  border-radius: 5px;
  padding: 1.2rem 1.6rem;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  font-size: 0.86rem;
}

.stripe-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #94a3b8;
}

.stripe-receipt-row strong {
  color: #ffffff;
  text-align: right;
}

.stripe-success-info {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: #a49fc0;
  max-width: 520px;
  line-height: 1.5;
}

/* Responsividad de la Pasarela */
@media (max-width: 860px) {
  .stripe-checkout-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .stripe-inputs-grid {
    grid-template-columns: 1fr;
  }
  .stripe-two-cols {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   ANIMACIONES
   ===================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spiralTurn { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
@keyframes nebulaBreath { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes corePulse { 0%, 100% { transform: scale(1); opacity: 0.92; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes beamPulse { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }
@keyframes raysSway { from { transform: translate3d(calc(var(--mx) * var(--d, 0) * 1px), 0, 0) rotate(-2.5deg); } to { transform: translate3d(calc(var(--mx) * var(--d, 0) * 1px), 0, 0) rotate(2.5deg); } }
@keyframes glassGlow { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes infoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dotProgress { from { width: 0; } to { width: 100%; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   MÓDULO OBRAS CUMBRE — ESTILO STEPHEN KING (SHOWCASE 3D + FICHA EDITORIAL)
   ===================================================================== */
.king-releases-section {
  position: relative;
  width: 100%;
  background: #fbfaf7;
  color: #1a1a24;
  border-top: 1px solid #e7e5e0;
  border-bottom: 1px solid #e7e5e0;
  padding: 5rem 3rem 6rem;
}

.king-releases-container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Header al estilo Stephen King (Título con serif / filtros a la derecha) */
.king-releases-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e2ded5;
}

.king-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.king-releases-title {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-style: italic;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1;
}

.king-releases-sub {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #71717a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.king-category-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.king-cat-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  cursor: pointer;
  padding: 0.4rem 0.1rem;
  position: relative;
  transition: color 0.2s ease;
}

.king-cat-btn:hover {
  color: #0f172a;
}

.king-cat-btn.active {
  color: #0f172a;
}

.king-cat-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #111827;
}

/* Tarjeta Principal Dividida (Stage Místico + Ficha Editorial Blanca) */
.king-showcase-card {
  display: grid;
  grid-template-columns: 42% 58%;
  background: #ffffff;
  border: 1px solid #e7e5e0;
  border-radius: 4px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 560px;
}

.king-showcase-card.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

/* -------------------------------------------------------------
   Columna Izquierda: Escenario Místico con Libro 3D
   ------------------------------------------------------------- */
.king-stage {
  position: relative;
  background: #0a0914;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2.8rem 2.4rem;
}

/* Fondo expandido nítido/difuso DEL MISMO LIBRO (Idéntico a Stephen King) */
.king-stage-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(12px) brightness(0.85) saturate(1.2);
  transform: scale(1.15);
  opacity: 0.94;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Sombra y viñeta sutil en los bordes para resaltar el libro sin apagar la portada de fondo */
.king-stage-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.25) 0%, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Borde rasgado orgánico de papel (estilo Stephen King, no festoneado) */
.king-stage-torn {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
  width: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 60' preserveAspectRatio='none'><polygon points='18,0 4,5 14,11 2,17 15,24 5,30 16,37 3,43 14,50 4,56 18,60 18,0' fill='%23ffffff'/></svg>");
  background-repeat: repeat-y;
  background-size: 18px 60px;
  pointer-events: none;
  z-index: 6;
}

/* ANIMACIÓN ESOTÉRICA 1: Sello Sagrado Geométrico Flotante */
.esoteric-seal-watermark {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 200, 114, 0.18);
  box-shadow: inset 0 0 40px rgba(232, 200, 114, 0.05);
  pointer-events: none;
  animation: esotericSealSpin 80s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.esoteric-seal-watermark::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 114, 0.12);
  transform: rotate(45deg);
}

.esoteric-seal-watermark::after {
  content: "✦";
  font-size: 1.5rem;
  color: rgba(232, 200, 114, 0.22);
}

/* ANIMACIÓN ESOTÉRICA 2: Partículas de Polvo Cósmico / Resplandor Astral */
.esoteric-particles-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.esoteric-speck {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 6px #e8c872, 0 0 12px rgba(232, 200, 114, 0.8);
  opacity: 0;
  animation: esotericDustFloat var(--dust-dur, 6s) infinite ease-in-out var(--dust-delay, 0s);
}

/* -------------------------------------------------------------
   EL LIBRO 3D HARDCOVER (ESTILO STEPHEN KING)
   Lomo grueso visible, páginas superiores teñidas y sombra real
   ------------------------------------------------------------- */
.king-book-3d-wrap {
  position: relative;
  perspective: 1200px;
  z-index: 10;
  margin: 1.5rem auto;
  cursor: pointer;
  user-select: none;
}

.king-book-3d {
  position: relative;
  width: 250px;
  height: 375px;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(3deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.5s ease;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.55));
}

.king-book-3d:hover {
  transform: translateY(-12px) rotateY(-14deg) rotateX(1deg);
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.7));
}

/* Lomo grueso a la izquierda con letras en oro */
.king-book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 100%;
  transform-origin: left;
  transform: rotateY(-90deg) translateX(-44px);
  background: linear-gradient(90deg, #100d1e 0%, #221c38 45%, #141124 100%);
  border-left: 2px solid rgba(232, 200, 114, 0.45);
  box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  color: #e8c872;
  font-family: var(--font-display);
  overflow: hidden;
}

.king-spine-num {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #fbe9b0;
  font-weight: 700;
}

.king-spine-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff8e1;
  max-height: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.king-spine-author {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #a8873a;
  text-transform: uppercase;
}

/* Canto superior de las páginas teñido (Stained Edges) */
.king-book-top-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  transform-origin: top;
  transform: rotateX(90deg) translateY(-44px);
  background: linear-gradient(180deg, #8a1524 0%, #4a0d14 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55);
}

/* Portada frontal con relieve y destello esotérico */
.king-book-cover {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0 4px 4px 0;
  overflow: hidden;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
  background: #0f0d1a;
}

.king-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ANIMACIÓN ESOTÉRICA 3: Destello Dorado de Reflejo Místico */
.king-book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 235, 170, 0.25) 45%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 235, 170, 0.25) 55%,
    transparent 80%
  );
  transform: translateX(-160%);
  animation: esotericSheen 7.5s infinite ease-in-out;
}

/* Sombra de contacto realista en el piso */
.king-book-shadow {
  position: absolute;
  bottom: -28px;
  left: 12px;
  width: 235px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 48%, transparent 72%);
  filter: blur(8px);
  transform: rotateX(75deg);
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
}

.king-book-3d-wrap:hover .king-book-shadow {
  transform: rotateX(75deg) scale(1.12);
  filter: blur(12px);
  opacity: 0.6;
}

/* -------------------------------------------------------------
   Columna Derecha: Ficha Editorial Estilo Coleccionista
   ------------------------------------------------------------- */
.king-dossier {
  padding: 3.2rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  color: #1a1a24;
}

.king-dossier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.king-edition-badge {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8873a;
}

.king-release-date {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #71717a;
  font-weight: 500;
  margin-bottom: 1.3rem;
}

.king-book-title {
  font-family: var(--font-sans);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.king-synopsis {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1.6rem;
}

.king-features-heading {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.king-features-list {
  list-style: none;
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.king-features-list li {
  font-size: 0.92rem;
  color: #374151;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  line-height: 1.5;
}

.king-features-list li::before {
  content: "•";
  color: #111827;
  font-size: 1.15rem;
  font-weight: bold;
}

.king-book-callout {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.king-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.king-specs-list strong {
  color: #111827;
  font-weight: 700;
}

/* Enlaces editoriales de acción apilados al estilo Stephen King */
.king-actions-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 0.5rem;
}

.king-action-order {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.king-action-order:hover {
  color: #b9933f;
}

.king-action-more {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
}

.king-action-more:hover {
  color: #111827;
  text-decoration: underline;
}

/* -------------------------------------------------------------
   Miniaturas Inferiores para Navegar entre Obras Cumbre
   ------------------------------------------------------------- */
.king-thumbs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.king-thumb-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  text-align: left;
}

.king-thumb-btn:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.king-thumb-btn.active {
  border-color: #b9933f;
  background: #fffdf7;
  box-shadow: 0 6px 16px rgba(185, 147, 63, 0.18);
  transform: translateY(-3px);
}

.king-thumb-img {
  width: 36px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.king-thumb-meta {
  display: flex;
  flex-direction: column;
}

.king-thumb-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #b9933f;
  text-transform: uppercase;
}

.king-thumb-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------------
   ANIMACIONES ESOTÉRICAS SUTILES
   ------------------------------------------------------------- */
@keyframes esotericSheen {
  0% { transform: translateX(-160%); }
  22%, 100% { transform: translateX(200%); }
}

@keyframes esotericSealSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes esotericDustFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  25% { opacity: 0.65; }
  75% { opacity: 0.45; }
  100% { transform: translateY(-75px) translateX(14px); opacity: 0; }
}

@keyframes esotericAuraBreath {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.12); opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* =====================================================================
   RESPONSIVE — ESTILO DEAN KOONTZ & STEPHEN KING
   ===================================================================== */
@media (max-width: 1050px) {
  .koontz-header .main-nav { display: none; }
  .billboard-slide { gap: 2.5rem; padding: 2rem 3rem; }
  .billboard-headline { font-size: 2.4rem; }
  .desk-grid { grid-template-columns: repeat(2, 1fr); }
  .king-releases-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .king-showcase-card { grid-template-columns: 44% 56%; }
  .king-dossier { padding: 2.4rem 2.2rem; }
}

@media (max-width: 820px) {
  .koontz-header .header-inner { padding: 0.8rem 1.2rem; }
  .brand { gap: 1.1rem; }
  .brand-logo-wrap { width: 68px; height: 68px; }
  .title-top { font-size: 0.72rem; letter-spacing: 0.42em; }
  .title-bottom { font-size: 1.85rem; letter-spacing: 0.2em; }
  .billboard-slide { flex-direction: column; text-align: center; gap: 1.8rem; padding: 2.5rem 1.2rem; }
  .billboard-text-col { text-align: center; }
  .billboard-kicker { justify-content: center; letter-spacing: 0.24em; }
  .billboard-kicker::after { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, #e8c872, transparent); flex-shrink: 0; }
  .billboard-lead { border-left: none; padding-left: 0; }
  .billboard-actions { justify-content: center; }
  .billboard-lead { margin-left: auto; margin-right: auto; }
  .desk-grid { grid-template-columns: 1fr; }
  .desk-banners-row { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  
  /* Author Spotlight Mobile Stack */
  .author-spotlight-container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .author-portrait-frame { max-width: 320px; margin: 0 auto; }
  .author-bio-actions { justify-content: center; }
  .author-milestones-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  
  /* Stephen King Showcase Responsive Stack */
  .king-showcase-card { grid-template-columns: 1fr; }
  .king-stage { min-height: 400px; padding: 2rem 1rem; }
  .king-stage-torn { display: none; }
  .king-dossier { padding: 2rem 1.5rem; }
  .king-book-title { font-size: 1.85rem; }
  .king-specs-box { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .author-brand-sub, #learned-pill { display: none; }
  .brand { gap: 0.85rem; }
  .brand-logo-wrap { width: 56px; height: 56px; }
  .title-top { font-size: 0.6rem; letter-spacing: 0.36em; }
  .title-bottom { font-size: 1.45rem; letter-spacing: 0.18em; }
  .billboard-arrow { width: 36px; height: 56px; font-size: 1.9rem; }
  .billboard-headline { font-size: 1.7rem; }
  .billboard-lead { font-size: 1.15rem; }
  .billboard-book-col { flex: 0 0 auto; width: 100%; }
  .hero-book-3d-stage { width: 220px; height: 320px; }
  .hero-book-3d { width: 190px; height: 285px; }
  .hero-book-back { width: 190px; height: 285px; transform: rotateY(180deg) translateZ(21px); }
  .hero-book-cover-wrap { width: 190px; height: 285px; transform: translateZ(21px); }
  .hero-book-spine { left: -21px; width: 42px; height: 285px; transform: rotateY(-90deg); padding: 0.3rem 0; }
  .hero-spine-headband { width: 38px; }
  .hero-spine-rib { width: 36px; }
  .hero-spine-title-wrap { width: 36px; }
  .hero-spine-title { max-height: 130px; font-size: 0.62rem; }
  .hero-book-top-edge, .hero-book-bottom-edge { width: 187px; height: 38px; }
  .hero-book-top-edge { top: -16px; }
  .hero-book-bottom-edge { top: 263px; }
  .hero-book-right-edge { top: 3px; left: 168px; width: 38px; height: 279px; }
  .hero-book-hinge { width: 20px; }
  .hero-book-floor-shadow { width: 200px; height: 46px; bottom: -28px; left: 10px; }
  .shelf-book-item { flex: 0 0 95px; height: 145px; }
  .wood-shelf { gap: 0.6rem; }
  .library-toolbar { position: static; }

  /* Stephen King Showcase Mobile Adjustments */
  .king-releases-title { font-size: 1.75rem; }
  .king-book-3d { width: 190px; height: 285px; }
  .king-book-spine { width: 36px; transform: rotateY(-90deg) translateX(-36px); }
  .king-book-top-edge { height: 36px; transform: rotateX(90deg) translateY(-36px); }
  .king-actions-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* =====================================================================
   EMBUDO DE VENTA — RITMO VISUAL UNIFICADO (OSCURO / MARFIL / OSCURO)
   Hero oscuro → Obras (marfil) → Autor (oscuro) → E-Books (pergamino)
   → Biblioteca (marfil) → Tienda (oscuro) → Footer
   ===================================================================== */
.king-releases-section,
.library-section.king-library-theme,
.ebook-offer-section,
.author-spotlight-section,
.talismans-section {
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
}

/* Cadencia vertical consistente */
.king-releases-section,
.library-section.king-library-theme { padding-top: 5rem; padding-bottom: 5.5rem; }
.author-spotlight-section { padding-top: 5.5rem; padding-bottom: 6rem; }

/* ---- E-BOOKS (entrada de bajo riesgo) ---- */
.ebook-offer-section {
  background: #f1ece0;
  color: #1a1a24;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  border-top: 1px solid #e0d8c4;
  border-bottom: 1px solid #e0d8c4;
}
.ebook-offer-container { max-width: 1280px; margin: 0 auto; }
.ebook-offer-head { text-align: center; margin-bottom: 2.6rem; }
.ebook-offer-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a6d1f;
  margin-bottom: 0.6rem;
}
.ebook-offer-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}
.ebook-offer-sub { font-family: var(--font-serif); font-size: 1.12rem; color: #4b5563; margin: 0; }
.ebook-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.ebook-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.3rem;
  align-items: center;
  background: #fbfaf7;
  border: 1px solid #ddd5bf;
  border-radius: 6px;
  padding: 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ebook-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); }
.ebook-card-cover {
  width: 110px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.ebook-card-title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; color: #0f172a; margin: 0 0 0.3rem; }
.ebook-card-sub { font-size: 0.84rem; color: #4b5563; margin: 0 0 0.9rem; line-height: 1.45; }
.ebook-card-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  background: #0f172a;
  color: #fff;
  border: 1.5px solid #0f172a;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}
.ebook-card-buy:hover { background: #b9933f; border-color: #b9933f; }
@media (max-width: 520px) {
  .ebook-card { grid-template-columns: 84px 1fr; }
  .ebook-card-cover { width: 84px; }
}

/* ---- TIENDA / PROTECCIONES (cierre oscuro coherente con el autor) ---- */
.talismans-section {
  background: #0a0914;
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 6rem;
  border-top: 1px solid rgba(232, 200, 114, 0.2);
}
.talismans-section .section-head,
.talismans-section .talismans-grid { max-width: 1600px; margin-left: auto; margin-right: auto; }
.talismans-section .kicker { color: #e8c872; }
.talismans-section .section-head { margin-bottom: 2.6rem; }
.talismans-section .section-sub { color: #aab2c5; }

.talismans-section .section-head .kicker { display: block; }

/* =====================================================================
   VERSIÓN MÓVIL — CENTRADA, ORDENADA Y SIN DESBORDES
   ===================================================================== */
.nav-toggle, .mobile-nav { display: none; }

@media (max-width: 1050px) {
  /* ---- Botón hamburguesa ("cuadrito" de opciones) ---- */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    background: #05040a;
    border: 1.5px solid #05040a;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] { background: #b9933f; border-color: #b9933f; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
    padding: 0.4rem 1.2rem 1.1rem;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 1rem 0.4rem;
    border-bottom: 1px solid #eef0f4;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #0f172a;
    text-decoration: none;
    text-align: center;
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:active { background: #f6f1e2; }
}

@media (max-width: 820px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  main, main section, .site-footer { max-width: 100vw; }
  img { max-width: 100%; }

  /* ---- Cabecera compacta ---- */
  .koontz-header .header-inner { padding: 0.55rem 0.9rem; gap: 0.8rem; }
  .brand { gap: 0.7rem; min-width: 0; }
  .brand-logo-wrap { width: 50px; height: 50px; flex-shrink: 0; }
  .title-top { font-size: 0.56rem; letter-spacing: 0.3em; }
  .title-bottom { font-size: 1.3rem; letter-spacing: 0.16em; margin-right: 0; padding-bottom: 0.25rem; }
  .author-brand-sub, #learned-pill { display: none; }

  /* ---- Hero: libro arriba, texto centrado debajo ---- */
  .billboard-slider { min-height: 0; }
  .billboard-track { padding: 1.6rem 1rem 4.2rem; min-height: 0; }
  .billboard-slide, .billboard-slide.active {
    flex-direction: column;
    gap: 1.4rem;
    padding: 0.5rem 0.5rem 0;
    text-align: center;
    transform: none;
  }
  .billboard-slide { position: absolute; left: 0; right: 0; top: 0; }
  .billboard-slide.active { position: relative; }
  .billboard-book-col { display: flex; justify-content: center; width: 100%; }
  .hero-book-3d-stage { transform: scale(0.78); transform-origin: center top; margin-bottom: -5rem; }
  .billboard-text-col { width: 100%; align-items: center; text-align: center; }
  .billboard-kicker { font-size: 0.64rem; letter-spacing: 0.16em; justify-content: center; }
  .billboard-kicker::before { display: none; }
  .billboard-headline { font-size: clamp(1.7rem, 8vw, 2.3rem); text-align: center; }
  .billboard-headline span { font-size: 0.7em; letter-spacing: 0.1em; }
  .billboard-lead { font-size: 1.02rem; text-align: center; border-left: none; padding-left: 0; max-width: 34rem; margin-left: auto; margin-right: auto; }
  .billboard-actions { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin: 0 auto; gap: 0.7rem; }
  .billboard-actions .gold-btn, .billboard-actions .ghost-btn { width: 100%; justify-content: center; text-align: center; padding: 0.95rem 1rem; font-size: 0.72rem; }
  .billboard-avail { display: block; text-align: center; margin-top: 0.4rem; }
  .billboard-arrow { display: none; }
  .billboard-dots { bottom: 3.4rem; }
  .billboard-bottom-tab { font-size: 0.66rem; padding: 0.7rem 1.1rem; }

  /* ---- Secciones: márgenes parejos ---- */
  .king-releases-section,
  .library-section.king-library-theme,
  .ebook-offer-section,
  .author-spotlight-section,
  .talismans-section {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .king-releases-section, .library-section.king-library-theme { padding-top: 3rem; padding-bottom: 3.5rem; }
  .author-spotlight-section { padding-top: 3.2rem; padding-bottom: 3.6rem; }
  .ebook-offer-section { padding-top: 3rem; padding-bottom: 3.4rem; }
  .talismans-section { padding-top: 3.2rem; padding-bottom: 3.6rem; }
  .king-releases-container { padding: 0; }

  /* ---- Obras Cumbre ---- */
  .king-releases-header { flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; margin-bottom: 1.6rem; }
  .king-title-wrap { text-align: center; }
  .king-releases-title { font-size: 1.9rem; }
  .king-releases-sub { display: block; font-size: 0.95rem; }
  .king-category-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .king-cat-btn { padding: 0.55rem 0.9rem; font-size: 0.68rem; }
  .king-showcase-card { grid-template-columns: 1fr; }
  .king-stage { min-height: 380px; }
  .king-dossier { padding: 1.5rem 1.2rem 1.8rem; text-align: left; }
  .king-book-title { font-size: 1.5rem; text-align: center; }
  .king-release-date { text-align: center; }
  .king-actions-row { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .king-actions-row > * { width: 100%; justify-content: center; text-align: center; }
  .king-thumbs-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; padding: 0; overflow: visible; }
  .king-thumb-btn { min-width: 0; width: 100%; }

  /* ---- El Autor ---- */
  .author-spotlight-container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .author-spotlight-media-col { max-width: 340px; margin: 0 auto; width: 100%; }
  .author-bio-title { font-size: 1.7rem; }
  .author-milestones-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .author-bio-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .author-bio-actions > a { text-align: center; justify-content: center; }
  .author-bio-body p { text-align: left; }

  /* ---- E-Books ---- */
  .ebook-offer-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .ebook-offer-title { font-size: 1.6rem; }

  /* ---- Biblioteca ---- */
  .section-head { margin-bottom: 1.8rem; }
  .section-title { padding: 0; font-size: 1.7rem; }
  .section-title::before, .section-title::after { display: none; }
  .section-sub { font-size: 1.02rem; }
  .library-toolbar, .library-toolbar.king-toolbar { position: static; display: flex; flex-direction: column; gap: 0.9rem; padding: 1rem; }
  .king-search-field, .search-field { width: 100%; }
  .king-chip-row, .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .king-results-counter, .results-counter { text-align: center; }
  .king-books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; padding: 0; }
  .king-load-more-wrap { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .king-load-more-btn, .king-load-all-btn { width: 100%; justify-content: center; }

  /* ---- Tienda ---- */
  .talismans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }

  /* ---- Modales ---- */
  .modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .title-bottom { font-size: 1.12rem; letter-spacing: 0.12em; }
  .brand-logo-wrap { width: 44px; height: 44px; }
  .hero-book-3d-stage { transform: scale(0.68); margin-bottom: -7rem; }
  .king-books-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .talismans-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .king-stage { min-height: 340px; }
  .author-milestones-grid { gap: 0.6rem; }
  .footer-inner { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* ---- Ajustes finos móvil ---- */
@media (max-width: 820px) {
  .billboard-kicker::after { display: none; }
  .billboard-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 3.6rem;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 0.55rem;
  }
  .billboard-dots .cdot {
    width: 10px; height: 10px; min-width: 10px;
    padding: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: none;
  }
  .billboard-dots .cdot.active { background: #e8c872; }
  .billboard-dots .cdot::after { display: none; }

  .king-category-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; width: 100%; }
  .king-cat-btn { width: 100%; text-align: center; border: 1px solid #d9d4c5; border-radius: 4px; background: #fff; }
  .king-cat-btn.active { background: #0f172a; color: #fff; border-color: #0f172a; }
  .king-cat-btn.active::after, .king-cat-btn::after { display: none; }

  .king-action-order {
    display: flex; align-items: center; justify-content: center;
    background: #0f172a; color: #fff !important;
    text-decoration: none; border-radius: 4px;
    padding: 1rem 0.8rem; font-size: 0.78rem; line-height: 1.35;
  }
  .king-action-more {
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #0f172a; border-radius: 4px; padding: 0.9rem 0.8rem; font-size: 0.74rem;
  }

  .king-thumbs-row { grid-template-columns: 1fr 1fr; }
  .king-thumb-btn { align-items: center; padding: 0.55rem; gap: 0.5rem; }
  .king-thumb-img { width: 34px; flex-shrink: 0; }
  .king-thumb-meta { min-width: 0; }
  .king-thumb-title { max-width: 100%; white-space: normal; font-size: 0.7rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  .king-catalog-media { height: 270px; padding: 1.4rem 1rem 1.2rem; }
  .king-catalog-book-wrap { width: 160px; height: 226px; }

  .talismans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; max-width: none; }
  .talisman-card .t-body { padding: 0.8rem 0.7rem 0.9rem; }
  .t-type { font-size: 0.56rem; letter-spacing: 0.12em; }
  .t-title { font-size: 0.82rem; line-height: 1.25; }
  .t-desc { display: none; }
  .t-foot { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .t-foot .ghost-btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .talismans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

@media (max-width: 820px) { .billboard-dots { display: flex; align-items: center; z-index: 5; } }
