/* ============================================================
   libros.css — Sebastián Satke
   Estilos específicos para páginas de libros individuales.
   Se carga junto con styles.css.
   ============================================================ */


/* ── Fondo del libro: imagen fija con overlay oscuro ── */
body.libro-page {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.libro-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .50);
  z-index: 0;
  pointer-events: none;
}
body.libro-page .wrap,
body.libro-page .footer-contacto {
  position: relative;
  z-index: 1;
}


/* ── Cards en páginas de libro: fondo gris claro, texto oscuro ── */
body.libro-page .card {
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(180, 160, 140, .35);
  color: rgba(15, 10, 5, .95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body.libro-page .card p,
body.libro-page .card h1,
body.libro-page .card h2,
body.libro-page .card h3 {
  color: rgb(40, 35, 30);
}
body.libro-page .card p em {
  color: rgb(40, 35, 30);
}
body.libro-page .libro-data h1 {
  color: rgb(30, 25, 20);
}
body.libro-page .libro-subtitulo {
  color: rgba(40, 35, 30, .7);
}
body.libro-page .libro-meta {
  color: rgba(40, 35, 30, .75);
}
body.libro-page .libro-meta strong {
  color: rgba(40, 35, 30, .95);
}
body.libro-page .libro-meta a {
  color: rgba(40, 35, 30, .9);
  border-bottom-color: rgba(40, 35, 30, .35);
}
body.libro-page .libro-meta a:hover {
  border-bottom-color: rgba(40, 35, 30, .8);
}
body.libro-page .compra-label {
  color: rgba(40, 35, 30, .65);
}
body.libro-page .compra-label-oscuro {
  color: rgba(40, 35, 30, .9);
}
body.libro-page .aviso-audio {
  color: rgba(40, 35, 30, .55);
}
body.libro-page .audio-label {
  color: rgba(40, 35, 30, .9);
}
body.libro-page .dia-titulo {
  color: rgba(40, 35, 30, .9);
}
body.libro-page .dia-titulo.flotante {
  color: rgba(232, 232, 234, .85);
  border-top-color: rgba(232, 232, 234, .15) !important;
}
body.libro-page .cita-autor blockquote {
  color: rgb(40, 35, 30);
  border-left-color: rgba(40, 35, 30, .3);
}
body.libro-page .firma {
  color: rgba(40, 35, 30, .7);
}
body.libro-page .sobre-autor-wrap {
  border-top-color: rgba(40, 35, 30, .12);
}

/* Botones .share-btn dentro de cards claras */
body.libro-page .card .share-btn {
  color: rgba(40, 35, 30, .9);
  border-color: rgba(40, 35, 30, .3);
  background: rgba(255, 255, 255, .25);
}
body.libro-page .card .share-btn:hover {
  background: rgba(40, 35, 30, .12);
  border-color: rgba(40, 35, 30, .55);
}

/* Audio player dentro de cards claras: sin filtro invertido */
body.libro-page .card audio {
  filter: none;
}

/* Blockquote dentro de cards claras (manifiestos, citas) */
body.libro-page .card blockquote {
  font-size: 17px;
  line-height: 1.7;
  color: rgb(40, 35, 30);
  font-style: italic;
  margin: 14px 0;
  padding-left: 20px;
  border-left: 2px solid rgba(40, 35, 30, .3);
}

/* Strong dentro de cards claras */
body.libro-page .card strong {
  color: rgb(30, 25, 20);
  font-weight: 700;
}

/* Card del manifiesto: párrafos más grandes para lectura cómoda */
body.libro-page .card.manifiesto p {
  font-size: 18px;
  text-align: justify;
}
body.libro-page .card.manifiesto blockquote {
  font-size: 18px;
  font-weight: 900 !important;
  font-style: italic !important;
  color: rgb(0, 0, 0) !important;
}


/* ── Bloque perfil: foto + nombre + profesión ── */
/* ── Bloque perfil: foto edge-to-edge + nombre + profesión ── */
.card.card-perfil {
  padding: 0;
  overflow: hidden;
}
.perfil-fila {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.perfil-foto {
  width: 220px;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border-radius: 0;
  border: 0;
}
.perfil-datos {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.perfil-datos h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: rgb(30, 25, 20);
  margin: 0 0 8px;
  letter-spacing: .01em;
}
.perfil-profesion {
  font-size: 15px;
  color: rgba(40, 35, 30, .75);
  font-style: italic;
  margin: 0;
  letter-spacing: .02em;
}


/* ── Firma al final del manifiesto ── */
body.libro-page .card .firma {
  text-align: right;
  font-style: italic;
  font-size: 15px;
  color: rgba(40, 35, 30, .8);
  margin-top: 8px;
}


/* ── Móvil: perfil-fila apilado ── */
@media (max-width: 600px) {
  .perfil-fila {
    flex-direction: column;
  }
  .perfil-foto { width: 100%; height: 240px; }
  .perfil-datos { text-align: center; padding: 24px; }
}


/* ── Botón volver ── */
.volver {
  display: inline-block;
  color: rgba(232, 232, 234, .85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid rgba(232, 232, 234, .3);
  background: rgba(8, 6, 4, .4);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: .02em;
  transition: background .2s, border-color .2s, transform .2s;
}
.volver:hover {
  background: rgba(232, 232, 234, .1);
  border-color: rgba(232, 232, 234, .55);
  transform: translateY(-1px);
}


/* ── Bloque libro-top: portada grande + datos al costado ── */
.libro-top {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.libro-img-grande {
  width: 280px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
  display: block;
}
.libro-data { flex: 1; min-width: 0; }
.libro-data h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: rgb(232, 232, 234);
  margin: 0 0 12px;
  letter-spacing: .01em;
}

.libro-subtitulo {
  font-size: 16px;
  color: rgba(232, 232, 234, .65);
  font-style: italic;
  margin: 0 0 20px;
  letter-spacing: .02em;
}

.libro-meta {
  font-size: 14px;
  color: rgba(232, 232, 234, .65);
  margin: 0 0 6px;
  letter-spacing: .02em;
}
.libro-meta strong {
  color: rgba(232, 232, 234, .85);
  font-weight: 600;
}
.libro-meta a {
  color: rgba(232, 232, 234, .85);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 232, 234, .25);
  transition: border-color .2s;
}
.libro-meta a:hover { border-bottom-color: rgba(232, 232, 234, .7); }


/* ── Etiqueta "Para leer en papel:" / "Para escuchar:" ── */
.compra-label {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(232, 232, 234, .55);
  margin: 20px 0 10px;
}
.compra-label-oscuro {
  font-size: 14px;
  color: rgba(232, 232, 234, .85);
  margin: 0 0 12px;
  letter-spacing: .02em;
  font-weight: 600;
}


/* ── Fila de botones de compra (Amazon, Kobo, etc.) ── */
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn {
  text-decoration: none;
  color: rgba(232, 232, 234, .85);
  border: 1px solid rgba(232, 232, 234, .3);
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(8, 6, 4, .4);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, border-color .2s, transform .2s;
}
.share-btn:hover {
  background: rgba(232, 232, 234, .1);
  border-color: rgba(232, 232, 234, .55);
  transform: translateY(-1px);
}


/* ── Aviso (texto chico en gris) ── */
.aviso-audio {
  font-size: 16px;
  color: rgba(232, 232, 234, .4);
  font-style: italic;
  margin: 14px 0 0;
  line-height: 1.5;
}


/* ── Audio preview ── */
.audio-label {
  font-size: 14px;
  color: rgba(232, 232, 234, .85);
  margin: 0 0 14px;
  letter-spacing: .02em;
}
audio {
  width: 100%;
  max-width: 480px;
  filter: invert(.85) hue-rotate(180deg);
}


/* ── Cita del autor (blockquote) ── */
.cita-autor blockquote {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(232, 232, 234, .85);
  font-style: italic;
  margin: 0 0 14px;
  padding-left: 20px;
  border-left: 2px solid rgba(232, 232, 234, .25);
}
.firma {
  font-size: 14px;
  color: rgba(232, 232, 234, .65);
  margin: 0;
  text-align: right;
  letter-spacing: .02em;
}


/* ── Título de sección flotante (sobre línea) ── */
.dia-titulo.flotante {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  color: rgba(232, 232, 234, .85);
  margin: 32px 0 24px;
  letter-spacing: .01em;
}


/* ── Sub-títulos dentro de card (ej: editoriales en reseñas) ── */
.dia-titulo {
  font-size: 17px;
  font-weight: 700;
  color: rgba(232, 232, 234, .85);
  margin: 18px 0 10px;
  letter-spacing: .02em;
}
.dia-titulo:first-child { margin-top: 0; }


/* ── Párrafos dentro de cards de libro ── */
.card p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(232, 232, 234, .75);
  margin: 0 0 14px;
}
.card p:last-of-type { margin-bottom: 0; }
.card p em {
  color: rgba(232, 232, 234, .9);
  font-style: italic;
}


/* ── Wrap del botón "Sobre el autor" al final de las cards ── */
.sobre-autor-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 232, 234, .08);
}


/* ── Compartir ── */
.share-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(232, 232, 234, .5);
}


/* ── Móvil ── */
@media (max-width: 760px) {
  .libro-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .libro-img-grande { width: 200px; }
  .libro-data h1 { font-size: 1.8rem; }
  .share { justify-content: center; }
  .cita-autor blockquote { font-size: 15px; }
}
