/* ============================================
   LIBROS — estilos propios de esta página
   (usa las variables y componentes de styles.css)
   ============================================ */

/* HERO — estructura común en .page-hero (styles.css); aquí solo la imagen */
.libros-hero{ --hero-img: url('assets/area-libros.png'); }

/* CATÁLOGO */
.libros-catalogo{ padding: 88px 0 110px; }
.libros-catalogo h2{
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 300;
  margin: 4px 0 14px;
}
.libros-catalogo-sub{
  font-size: 15px;
  color: var(--text-muted-dark);
  max-width: 560px;
  margin-bottom: 48px;
}

.book-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.book-card{
  display:flex;
  gap: 24px;
  background: #ffffff;
  border-left: 4px solid transparent;
  border-image: var(--gradient) 1;
  padding: 28px;
  scroll-margin-top: 100px;
}
.book-cover{
  flex: none;
  width: 130px;
  height: auto;
  align-self: flex-start;
  border-radius: 4px;
  box-shadow: 0 12px 24px rgba(16,13,15,.18);
}
.book-info{ display:flex; flex-direction:column; }
.book-collection{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.book-info h3{
  font-size: 21px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
.book-desc{
  font-size: 14px;
  color: var(--text-muted-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}
.book-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.btn-sm{
  padding: 9px 16px;
  font-size: 13px;
}
.book-links .btn-outline{
  color: var(--text-dark);
}
.book-links .btn-primary{
  background: var(--gradient);
  color: #fff;
}
.book-links .btn-primary::before{ display: none; }

/* Reproductor dentro de la tarjeta */
.book-player{ margin-top: 18px; padding: 14px 16px; background: #f5f0e8; border-left: 3px solid var(--orange); }
.book-player p{ font-size: 13.5px; font-style: italic; color: var(--text-muted-dark); margin-bottom: 10px; }
.book-player audio{ width: 100%; height: 38px; margin-bottom: 10px; }
.book-player .link-arrow{ font-size: 13.5px; color: var(--orange); }

/* CABECERA DEL CATÁLOGO + TIENDAS */
.catalogo-head{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}
.catalogo-head .libros-catalogo-sub{ margin-bottom: 0; }

.libros-tiendas{
  padding-left: 32px;
  border-left: 1px solid rgba(16,13,15,.1);
}
.tiendas-label{
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 16px;
}
.tiendas-logos{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 36px;
}
.tiendas-logos img{
  display: block;
  height: 26px;
  width: auto;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .2s, opacity .2s;
}
.tiendas-logos a:hover img,
.tiendas-logos a:focus-visible img{
  filter: none;
  opacity: 1;
}
.tiendas-logos img[alt="Casa del Libro"],
.tiendas-logos img[alt="Fnac"]{ height: 60px; }
/* CIERRE */
.libros-closing{
  background: var(--bg-dark);
  padding: 40px 0;
}
.closing-tagline{
  color: var(--text-cream);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.closing-tagline .accent{ color: var(--orange); }
.closing-sub{
  color: var(--text-muted-light);
  font-size: 12px;
  margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .book-grid{ grid-template-columns: 1fr; }
  .book-card{ flex-direction: column; }
  .book-cover{ width: 100%; max-width: 220px; }
  .catalogo-head{ grid-template-columns: 1fr; gap: 28px; }
  .libros-tiendas{ padding-left: 0; border-left: none; }
}
