/* ==========================================================================
   ALQUIMIA EDICIONES — HERO EDITORIAL MULTI-LIBRO & CABECERA PERFECCIONADA
   Inspiración: Penguin Random House + Stripe Press + Ediciones Atalanta
   ========================================================================== */

/* 1. VARIABLES DEL SISTEMA EDITORIAL */
:root {
  --hero-gold-primary: #d4af37;
  --hero-gold-burnished: #c5a059;
  --hero-gold-bright: #f0dba2;
  --hero-gold-glow: rgba(212, 175, 55, 0.16);
  --hero-gold-border: rgba(212, 175, 55, 0.22);
  
  --hero-bg-deep: #0a0b0e;
  --hero-panel-bg: rgba(18, 20, 26, 0.75);
  --hero-card-bg: rgba(24, 27, 36, 0.65);
  
  --hero-paper-bone: #f7f4ee;
  --hero-paper-muted: #abb0bf;
  --hero-paper-caption: #7d8294;

  --hero-font-serif: 'Cormorant Garamond', Georgia, serif;
  --hero-font-sans: 'Plus Jakarta Sans', var(--font-body), sans-serif;

  --hero-ease-snappy: cubic-bezier(0.23, 1, 0.32, 1);
  --hero-ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-transition-fast: 160ms var(--hero-ease-snappy);
  --hero-transition-normal: 260ms var(--hero-ease-smooth);

  --hero-shadow-book: 
    -8px 16px 30px -6px rgba(0, 0, 0, 0.85),
    -2px 4px 10px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(212, 175, 55, 0.08);
  --hero-shadow-panel: 0 16px 40px -10px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   2. CABECERA UNIFICADA (FIX DIMENSIONES & LOGO NUNCA CORTADO)
   ========================================================================== */
.site-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 11, 14, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.site-header-fixed.scrolled {
  background: rgba(10, 11, 14, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Barra superior de anuncio de la sede */
.top-announcement {
  background: linear-gradient(90deg, #0a0b0e, #141720, #0a0b0e);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  font-size: 0.78rem;
  padding: 6px 5%;
}

.announcement-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--hero-gold-bright);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-transform: uppercase;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #55df9b;
  box-shadow: 0 0 6px #55df9b;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.top-announcement p {
  color: var(--hero-paper-muted);
  font-weight: 400;
  margin: 0;
  font-size: 0.78rem;
}

.top-link {
  color: var(--hero-gold-burnished);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: var(--hero-transition-fast);
}

.top-link:hover {
  color: var(--hero-gold-bright);
  transform: translateX(2px);
}

/* Navbar integrado en la cabecera fija */
.site-header-fixed .navbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  padding: 10px 5% !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
}

/* Logo con contención exacta (Cero cortes) */
.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 2px 0;
}

.header-logo-img {
  height: 40px !important;
  width: auto !important;
  max-width: 180px;
  object-fit: contain;
  display: block;
  transition: transform var(--hero-transition-fast);
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

/* ==========================================================================
   3. SECCIÓN HERO REDISEÑADA (CASA EDITORIAL MULTI-LIBRO)
   ========================================================================== */
section.hero.hero-refined-section {
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  position: relative;
  padding: 135px 5% 60px; /* Margen superior suficiente para cabecera fija */
  overflow: hidden;
  background: transparent;
}

/* Luces de ambiente sutiles */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}

.glow-top {
  top: -150px;
  left: 10%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}

.glow-books {
  bottom: 30px;
  right: 5%;
  width: 550px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.14) 0%, transparent 70%);
}

.hero-wrapper {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  box-sizing: border-box;
}

.hero-narrative,
.hero-showcase {
  min-width: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   4. IDENTIDAD EDITORIAL (COLUMNA IZQUIERDA)
   ========================================================================== */
.hero-narrative {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--hero-paper-bone);
}

/* Selector Lector vs Autor */
.audience-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  background: rgba(22, 25, 33, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 6px 4px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.toggle-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--hero-paper-muted);
  letter-spacing: 0.02em;
}

.audience-switch {
  display: flex;
  gap: 3px;
  background: rgba(10, 11, 14, 0.85);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.toggle-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--hero-paper-muted);
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--hero-font-sans);
  transition: var(--hero-transition-fast);
}

.toggle-tab i {
  font-size: 0.74rem;
  color: var(--hero-gold-burnished);
}

.toggle-tab:hover {
  color: var(--hero-paper-bone);
}

.toggle-tab.active {
  background: linear-gradient(135deg, var(--hero-gold-primary), var(--hero-gold-burnished));
  color: #0a0b0e;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.toggle-tab.active i {
  color: #0a0b0e;
}

.toggle-tab:active {
  transform: scale(0.97);
}

/* Eyebrow Editorial */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--hero-gold-burnished);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-family: var(--hero-font-sans);
}

.gold-symbol {
  color: var(--hero-gold-primary);
  font-size: 0.84rem;
}

/* Titular */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--hero-paper-bone);
  margin: 0 0 16px;
  text-align: left;
  padding: 0;
  text-shadow: none;
}

.title-gold-italic {
  font-family: var(--hero-font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--hero-gold-bright);
  letter-spacing: normal;
  background: linear-gradient(135deg, #fdfbf7 0%, #ecd38a 50%, #c5a059 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Descripción */
.hero-description {
  font-size: clamp(0.96rem, 1.12vw, 1.08rem);
  color: var(--hero-paper-muted);
  max-width: 520px;
  margin: 0 0 28px;
  line-height: 1.72;
  font-weight: 400;
  font-family: var(--hero-font-sans);
  text-align: left;
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #e4c158, #c5a059);
  color: #0c0d11 !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
  font-family: var(--hero-font-sans);
  transition: var(--hero-transition-fast);
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: #f0dba2;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.42);
  transform: translateY(-2px);
  color: #0c0d11 !important;
}

.btn-hero-primary:active {
  transform: scale(0.97);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: rgba(25, 28, 38, 0.6);
  color: var(--hero-paper-bone) !important;
  border: 1px solid rgba(212, 175, 55, 0.28);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  font-family: var(--hero-font-sans);
  transition: var(--hero-transition-fast);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--hero-gold-primary);
  color: var(--hero-gold-bright) !important;
}

/* Sellos de Confianza */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 540px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(20, 22, 29, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transition: var(--hero-transition-fast);
}

.trust-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(25, 28, 38, 0.75);
  transform: translateY(-1px);
}

.trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--hero-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.trust-data {
  display: flex;
  flex-direction: column;
  /* .hero-narrative pasa a text-align:center bajo 1080px y eso se heredaba
     hasta aquí: el título quedaba centrado y el subtítulo desalineado bajo
     él. Se fija a la izquierda para que ambos queden apilados contra el icono. */
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.trust-data strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hero-paper-bone);
  letter-spacing: 0.02em;
}

.trust-data small {
  font-size: 0.7rem;
  color: var(--hero-paper-muted);
}
.hero-showcase-centered {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Ficha técnica del libro activo: 100% LIMPIA, SIN FONDO PESADO */
.active-book-card-clean {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 580px;
  margin-top: 4px;
  padding: 10px 16px;
  background: transparent;
}

.active-book-card-clean .active-book-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hero-gold-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: var(--hero-font-sans);
}

.active-book-card-clean .active-book-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--hero-paper-bone);
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.active-book-card-clean .active-book-author {
  font-size: 0.88rem;
  color: var(--hero-paper-muted);
  margin: 0 0 4px;
  font-family: var(--hero-font-sans);
}

.active-book-card-clean .active-book-format {
  font-size: 0.75rem;
  color: var(--hero-paper-caption);
  margin: 0 0 16px;
  font-family: var(--hero-font-sans);
}

.active-book-card-clean .active-book-actions-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FRANJA HORIZONTAL DE SELLOS DE PRESTIGIO
   ========================================================================== */
.trust-bar-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1060px;
  margin-top: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(18, 20, 27, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-align: left;
  transition: var(--hero-transition-fast);
}

.trust-bar-item:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(25, 28, 38, 0.75);
  transform: translateY(-2px);
}

.trust-bar-item .trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--hero-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.trust-bar-item .trust-data {
  display: flex;
  flex-direction: column;
  /* .hero-narrative pasa a text-align:center bajo 1080px y eso se heredaba
     hasta aquí: el título quedaba centrado y el subtítulo desalineado bajo
     él. Se fija a la izquierda para que ambos queden apilados contra el icono. */
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.trust-bar-item .trust-data strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hero-paper-bone);
  letter-spacing: 0.02em;
}

.trust-bar-item .trust-data small {
  font-size: 0.7rem;
  color: var(--hero-paper-muted);
}

/* ==========================================================================
   5. COLUMNA DERECHA: ESCAPARATE MULTI-LIBRO CURADO (100% SIN FONDO / FLOTANTE)
   ========================================================================== */
.hero-showcase {
  position: relative;
  width: 100%;
}

.showcase-open-gallery {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cabecera del escaparate editorial */
.showcase-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.showcase-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--hero-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--hero-font-sans);
}

.gold-accent {
  color: var(--hero-gold-primary);
}

.showcase-catalog-stat {
  font-size: 0.72rem;
  color: var(--hero-paper-caption);
  letter-spacing: 0.03em;
  font-family: var(--hero-font-sans);
}

/* Filtros de género editorial centrados */
.genre-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 16px;
}

.genre-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--hero-paper-muted);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--hero-font-sans);
  transition: var(--hero-transition-fast);
}

.genre-pill:hover {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--hero-paper-bone);
  background: rgba(212, 175, 55, 0.08);
}

.genre-pill.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--hero-gold-primary);
  color: var(--hero-gold-bright);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* ESCENARIO DEL ABANICO MULTI-LIBRO FLOTANTE */
.multi-book-stage {
  position: relative;
  width: 100%;
  min-height: 290px;
  margin: 10px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  padding: 10px 0;
}

/* Pedestal de luz radial suave bajo los libros */
.books-pedestal-glow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.06) 40%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 1;
}

/* Flechas de navegación interactiva */
.stage-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(18, 21, 30, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--hero-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  backdrop-filter: blur(10px);
  transition: var(--hero-transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.stage-nav-arrow:hover {
  background: var(--hero-gold-primary);
  color: #0a0b0e;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}

.stage-nav-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.stage-nav-arrow.arrow-prev {
  left: 2px;
}

.stage-nav-arrow.arrow-next {
  right: 2px;
}

/* Contenedor del abanico */
.books-fan-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 270px;
  width: 100%;
}

/* Tarjeta individual de libro en el abanico (100% SIN FONDO) */
.book-fan-item {
  position: absolute;
  width: 146px;
  height: 220px;
  cursor: pointer;
  transition: transform 320ms var(--hero-ease-snappy), z-index 10ms, opacity 250ms ease;
  transform-origin: center bottom;
  transform-style: preserve-3d;
  background: transparent !important;
  user-select: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Imagen limpia del libro 3D con sombra natural sin bordes artificiales */
.book-fan-item img.book-cover-clean {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  display: block;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.78)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: filter 300ms ease, transform 300ms ease;
}

/* Badge de género flotante sobre el libro */
.book-fan-genre {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 14, 18, 0.92);
  border: 1px solid var(--hero-gold-border);
  color: var(--hero-gold-bright);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* POSICIONAMIENTO EN ABANICO (DESKTOP) */
.book-fan-item[data-pos="0"] {
  transform: translate3d(-150px, 16px, -40px) rotateY(16deg) rotateZ(-3.5deg) scale(0.92);
  z-index: 2;
  opacity: 0.84;
}

.book-fan-item[data-pos="1"] {
  transform: translate3d(-75px, 8px, -20px) rotateY(8deg) rotateZ(-1.5deg) scale(0.96);
  z-index: 4;
  opacity: 0.92;
}

.book-fan-item[data-pos="2"] {
  transform: translate3d(0, 0, 15px) rotateY(0deg) scale(1.08);
  z-index: 8;
  opacity: 1;
}

.book-fan-item[data-pos="3"] {
  transform: translate3d(75px, 8px, -20px) rotateY(-8deg) rotateZ(1.5deg) scale(0.96);
  z-index: 4;
  opacity: 0.92;
}

.book-fan-item[data-pos="4"] {
  transform: translate3d(150px, 16px, -40px) rotateY(-16deg) rotateZ(3.5deg) scale(0.92);
  z-index: 2;
  opacity: 0.84;
}

/* ESTADO HOVER / ACTIVO EN ABANICO */
.book-fan-item:hover,
.book-fan-item.active {
  transform: translate3d(var(--tx, 0), -24px, 45px) rotateY(0deg) scale(1.18) !important;
  z-index: 20 !important;
  opacity: 1 !important;
}

.book-fan-item:hover img.book-cover-clean,
.book-fan-item.active img.book-cover-clean {
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 24px rgba(212, 175, 55, 0.38)) !important;
}

/* Indicadores de libro (Dots) */
.stage-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 14px;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.stage-dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--hero-gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* FICHA TÉCNICA DEL LIBRO ACTIVO: 100% CENTRADA, SIMÉTRICA Y ELEGANTE */
.active-book-card-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 500px;
  background: rgba(18, 21, 30, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 16px 20px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  transition: border-color var(--hero-transition-fast);
}

.active-book-card-centered:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.active-book-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--hero-gold-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: var(--hero-font-sans);
}

.active-book-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--hero-paper-bone);
  line-height: 1.3;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.active-book-author {
  font-size: 0.82rem;
  color: var(--hero-paper-muted);
  margin: 0 0 2px;
  font-family: var(--hero-font-sans);
}

.author-name-nowrap {
  white-space: nowrap;
  color: var(--hero-gold-bright);
  font-weight: 600;
}

.active-book-format {
  font-size: 0.72rem;
  color: var(--hero-paper-caption);
  margin: 0 0 12px;
  font-family: var(--hero-font-sans);
}

.active-book-actions-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-book-quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #d4af37, #c5a059);
  color: #0c0d11 !important;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-family: var(--hero-font-sans);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: var(--hero-transition-fast);
}

.btn-book-quick:hover {
  background: #f0dba2;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.btn-book-quick:active {
  transform: scale(0.97);
}

.btn-book-catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--hero-gold-burnished);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--hero-font-sans);
  transition: var(--hero-transition-fast);
}

.btn-book-catalog-link:hover {
  color: var(--hero-gold-bright);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.btn-book-catalog-link:active {
  transform: scale(0.97);
}

/* ==========================================================================
   6. FRANJA INFERIOR DEL HERO
   ========================================================================== */
.hero-footer-strip {
  position: relative;
  z-index: 10;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.strip-content {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.strip-quote {
  font-family: var(--hero-font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--hero-gold-burnished);
  letter-spacing: 0.02em;
}

.strip-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--hero-paper-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--hero-font-sans);
}

/* ==========================================================================
   7. OPTIMIZACIÓN 100% PARA MÓVIL Y TABLET
   ========================================================================== */
@media (max-width: 1080px) {
  section.hero.hero-refined-section {
    padding-top: 130px;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-narrative {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .trust-grid,
  .trust-bar-horizontal {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-showcase,
  .hero-showcase-centered {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* Cabecera ultra-limpia en móvil sin cortes */
  .top-announcement {
    display: none; /* Ahorra espacio vertical para priorizar el contenido */
  }

  .site-header-fixed .navbar {
    padding: 10px 16px !important;
  }

  .header-logo-img {
    height: 34px !important;
    max-width: 140px;
  }

  section.hero.hero-refined-section {
    padding: 85px 16px 40px;
    overflow-x: hidden;
  }

  .ambient-glow {
    display: none;
  }

  .hero-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-narrative {
    width: 100%;
    max-width: 100%;
  }

  .audience-toggle-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 6px 12px;
  }

  /* El rótulo era una píldora con un simbolo delante. En movil el texto
     (hasta 48 caracteres, y cambia con el toggle lector/autor) no cabia en
     una linea: el simbolo se iba solo a un renglon y el texto se partia
     dentro del borde redondeado. Se quita la pildora y el simbolo, y queda
     un rotulo centrado con un filete dorado debajo, que aguanta cualquier largo. */
  .hero-eyebrow {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    line-height: 1.55;
    text-align: center;
    text-wrap: balance;
    max-width: 30ch;
    margin: 0 auto 16px;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
  }

  .hero-eyebrow .gold-symbol {
    display: none;
  }

  .hero-eyebrow::after {
    content: '';
    display: block;
    width: 54px;
    height: 1px;
    margin: 9px auto 0;
    background: linear-gradient(90deg, transparent,
      var(--hero-gold-primary) 35%, var(--hero-gold-primary) 65%, transparent);
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 100%;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .trust-grid,
  .trust-bar-horizontal {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .showcase-open-gallery {
    width: 100%;
    padding: 0;
  }

  .stage-nav-arrow {
    display: none; /* En móvil se navega deslizando horizontalmente */
  }

  /* Carrusel horizontal táctil con scroll-snap en móvil */
  .multi-book-stage {
    min-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 18px 0 14px;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .multi-book-stage::-webkit-scrollbar { display: none; }

  /* Antes cada libro media 130px y cabian ~2,5 en pantalla: los vecinos
     quedaban cortados por los bordes y varios no se alcanzaban a ver.
     Ahora cada libro ocupa una diapositiva del ancho del viewport, asi se
     ve UNO completo y centrado. El swipe sigue funcionando porque el JS
     calcula el activo con offsetLeft/offsetWidth, no con anchos fijos. */
  .books-fan-wrapper {
    display: flex;
    position: static;
    height: auto;
    width: max-content;
    gap: 0;
    padding: 0;
  }

  .book-fan-item {
    position: static;
    flex: 0 0 calc(100vw - 32px);
    width: calc(100vw - 32px);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    transform: none !important;
    opacity: 1 !important;
  }

  /* El activo llevaba scale(1.18) !important con especificidad 0,2,0, que le
     ganaba a `.book-fan-item { transform: none !important }`. Ya no hace falta
     agrandarlo (ocupa toda la diapositiva) y ademas se salia 14px por lado. */
  .book-fan-item:hover,
  .book-fan-item.active {
    transform: none !important;
  }

  .book-fan-item img.book-cover-clean {
    width: auto;
    max-width: 58%;
    height: 100%;
    object-fit: contain;
  }

  .book-fan-genre {
    top: -10px;
    font-size: 0.58rem;
  }

  .active-book-card-clean,
  .active-book-card-centered {
    width: 100%;
    padding: 14px 12px;
    margin-top: 10px;
  }

  .active-book-title {
    font-size: 1.05rem;
  }

  .active-book-actions-centered {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-book-quick,
  .btn-book-catalog-link {
    width: 100%;
    justify-content: center;
  }

  .strip-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Los filtros por genero se envolvian en dos renglones desordenados y solo
     median 24px de alto (imposibles de acertar con el dedo). En movil el
     escaparate ya se recorre deslizando y con los puntos, asi que sobran. */
  .genre-filter-row {
    display: none;
  }

  /* La cabecera del escaparate se solapaba: el titulo y el contador competian
     por la misma linea. Se apilan centrados. */
  .showcase-header-bar {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  .showcase-catalog-stat {
    font-size: 0.75rem;
  }

  /* Objetivo tactil minimo de 44px (guia de accesibilidad WCAG 2.2).
     Las pestanas median 26px y el enlace al catalogo 40px. */
  .toggle-tab,
  .btn-book-quick,
  .btn-book-catalog-link,
  .btn-hero-primary,
  .btn-hero-secondary {
    min-height: 44px;
  }

  .toggle-tab {
    padding: 11px 16px;
    font-size: 0.78rem;
  }

  .toggle-label {
    font-size: 0.78rem;
  }

  .stage-dot {
    min-width: 22px;
    min-height: 22px;
  }

  /* Nada de texto por debajo de 12px: en pantallas densas se vuelve ilegible. */
  .active-book-card-clean .active-book-tag,
  .active-book-card-centered .active-book-tag,
  .active-book-tag,
  .active-book-format,
  .book-fan-genre {
    font-size: 0.75rem;
  }

  .hero-eyebrow,
  .hero-eyebrow .eyebrow-text {
    font-size: 0.75rem;
  }

  .trust-data small,
  .trust-bar-item .trust-data small {
    font-size: 0.75rem;
  }
}
