/* ============================================================
   PÁGINAS DE LIBROS — Blasco Schneider
   ============================================================ */

.book-body { background: var(--cream-white); }

/* ============ HERO ============ */
.book-hero {
  position: relative;
  padding: 180px 0 110px;
  background: var(--navy);
  color: var(--cream-white);
  overflow: hidden;
}
.book-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 25%, rgba(184, 144, 96, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(36, 71, 115, 0.5) 0%, transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.book-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184, 144, 96, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 144, 96, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.book-hero .container { position: relative; z-index: 1; }

.book-back {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--brand);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 56px;
  transition: color 0.3s var(--ease), gap 0.4s var(--ease);
}
.book-back svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.book-back:hover { color: var(--silver-light); gap: 18px; }
.book-back:hover svg { transform: translateX(-4px); }

.book-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
}

/* Book cover 3D */
.book-cover-3d {
  position: relative;
  perspective: 1500px;
}
.book-cover-3d-inner {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-15deg);
  transition: transform 0.8s var(--ease);
}
.book-cover-3d:hover .book-cover-3d-inner { transform: rotateY(0deg); }

.book-cover-front {
  width: 100%;
  aspect-ratio: 5/7;
  background: var(--cream-dim);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    -10px 0 30px -10px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateZ(8px);
}
.book-cover-front img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.book-cover-front::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

.book-cover-spine {
  position: absolute;
  left: -8px; top: 0; bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--gold-deep), var(--gold), var(--gold-deep));
  transform: translateZ(0) rotateY(90deg);
  transform-origin: right center;
}

.book-cover-meta {
  margin-top: 32px;
  text-align: center;
  font-family: var(--brand);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gold-light);
  text-transform: uppercase;
}

/* Hero text */
.book-intro {
  padding-top: 16px;
}
.book-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.book-eyebrow .num {
  font-family: var(--display);
  font-size: 13px;
  color: var(--gold-light);
  font-style: italic;
}
.book-eyebrow .label {
  font-family: var(--brand);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--cream-dim);
  text-transform: uppercase;
}
.book-award-flag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--navy-deep);
  font-family: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.book-award-flag svg { width: 14px; height: 14px; }

.book-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cream-white);
  margin-bottom: 18px;
}
.book-title em { font-style: italic; color: var(--gold-light); font-weight: 300; }
.book-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--cream-dim);
  margin-bottom: 32px;
  font-weight: 300;
}
.book-author-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.book-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.book-author-info { flex: 1; }
.book-author-info .label {
  display: block;
  font-family: var(--brand);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.book-author-info .name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream-white);
}
.book-author-info .name a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.book-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.book-meta-row .item {
  display: flex; flex-direction: column; gap: 6px;
}
.book-meta-row .item-label {
  font-family: var(--brand);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.book-meta-row .item-value {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--cream-white);
}

/* ============ CONTENT ============ */
.book-content {
  padding: 110px 0;
  background: var(--cream-white);
}
.book-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 100px;
  align-items: start;
}

/* Sidebar */
.book-aside { position: sticky; top: 120px; }
.aside-block { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line-strong); }
.aside-block:last-child { border-bottom: none; }
.aside-block h5 {
  font-family: var(--brand);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.aside-block ul { list-style: none; }
.aside-block li {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--slate);
  padding: 6px 0;
  line-height: 1.5;
}
.aside-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  text-transform: uppercase;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.aside-cta:hover { background: var(--navy); color: var(--cream-white); border-color: var(--navy); }
.aside-cta svg { width: 12px; height: 12px; }

/* Main */
.book-main { display: flex; flex-direction: column; gap: 64px; }

.book-section h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}
.book-section h2 em { font-style: italic; color: var(--gold-deep); }
.book-section p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-weight: 400;
}
.book-section p strong { color: var(--gold-deep); font-weight: 500; }
.book-section p:last-child { margin-bottom: 0; }

/* Índice */
.book-toc {
  display: flex; flex-direction: column;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.toc-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.toc-num {
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.toc-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.4;
}
.toc-sub {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--slate);
  margin-top: 4px;
  font-style: italic;
}

/* Quote / callout */
.book-callout {
  background: var(--navy);
  color: var(--cream-white);
  padding: 44px 50px;
  position: relative;
  margin: 8px 0;
  overflow: hidden;
}
.book-callout::before {
  content: '"';
  position: absolute; top: 10px; right: 30px;
  font-family: var(--serif);
  font-size: 140px;
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
}
.book-callout p {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 22px !important;
  line-height: 1.5 !important;
  color: var(--cream-dim) !important;
  margin: 0 !important;
}
.book-callout cite {
  display: block;
  margin-top: 16px;
  font-family: var(--brand);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  font-style: normal;
  text-transform: uppercase;
}

/* Recognition / Premio destacado */
.book-recognition {
  background: linear-gradient(135deg, rgba(184, 144, 96, 0.12), rgba(184, 144, 96, 0.04));
  border: 1px solid rgba(184, 144, 96, 0.35);
  border-left: 3px solid var(--gold);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}
.book-recognition-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.book-recognition-icon svg { width: 28px; height: 28px; }
.book-recognition-text h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.book-recognition-text p {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--slate) !important;
  margin: 0 !important;
}

/* ============ CTA ============ */
.book-cta {
  background: var(--navy-deep);
  color: var(--cream-white);
  padding: 90px 0;
}
.book-cta-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.book-cta h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream-white);
  margin-bottom: 14px;
}
.book-cta h2 em { font-style: italic; color: var(--gold-light); }
.book-cta p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 580px;
  font-weight: 300;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .book-hero-grid { grid-template-columns: 280px 1fr; gap: 56px; }
  .book-grid { grid-template-columns: 1fr; gap: 56px; }
  .book-aside { position: static; }
  .book-meta-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .book-hero { padding: 140px 0 80px; }
  .book-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .book-cover-3d { max-width: 280px; margin: 0 auto; }
  .book-callout { padding: 32px 26px; }
  .book-cta-content { grid-template-columns: 1fr; }
  .book-recognition { grid-template-columns: 1fr; text-align: center; }
  .book-recognition-icon { margin: 0 auto; }
}
