/* ══════════════════════════════════════════════════════
   BOOK PAGE — book.css
   Prefix: bk-
   Requires: global.css, header.css
   ══════════════════════════════════════════════════════ */
body { background: var(--bg-dark); }
/* ── Tokens locales ── */
.bk-hero, .bk-section, .bk-authority, .bk-final {
  --bk-red:    #C0392B;
  --bk-cream:  #F5F0E8;
}

/* ── Layout helpers ── */
.bk-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.bk-container--narrow { max-width: 720px; }
.bk-text-center { text-align: center; }

/* ── Sections ── */
.bk-section { padding: 96px 0; }
.bk-section--cream  { background: #F5F0E8; }
.bk-section--harp   { background: #F5F0E8; }
.bk-section--white  { background: #FAFAF7; }
.bk-section--dark   { background: #021C10; }
.bk-section--teal   { background: #014425; }

/* ── Typography ── */
.bk-eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B43000;
  display: block;
  margin-bottom: 0.75rem;
}
.bk-section--dark .bk-eyebrow,
.bk-section--teal .bk-eyebrow,
.bk-hero .bk-eyebrow,
.bk-final .bk-eyebrow { color: #FB7A02; }

.bk-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1A2B1E;
  margin-bottom: 1.5rem;
}
.bk-section--dark .bk-h2,
.bk-section--teal .bk-h2,
.bk-final .bk-h2 { color: #F5F0E8; }
.bk-h2 em { font-style: italic; color: #005859; }
.bk-section--dark .bk-h2 em { color: #FB7A02; }
.bk-section--teal .bk-h2 em,
.bk-final .bk-h2 em { color: #FB7A02; }

.bk-section-header { margin-bottom: 56px; }
.bk-section-lead {
  font-size: 1.05rem;
  color: #3D5244;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}
.bk-section--dark .bk-section-lead,
.bk-section--teal .bk-section-lead { color: rgba(245,240,232,0.72); }

.bk-prose p {
  font-size: 1rem;
  color: #3D5244;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.bk-prose p:last-child { margin-bottom: 0; }

.bk-blockquote {
  border-left: 3px solid #B43000;
  padding: 1.25rem 1.75rem;
  margin: 2.5rem 0;
  background: rgba(180,48,0,0.04);
  border-radius: 0 6px 6px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #1A2B1E;
  line-height: 1.5;
}

/* ── Buttons ── */
.bk-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #B43000;
  color: #F5F0E8;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.bk-btn-primary:hover { background: #8C2400; transform: translateY(-1px); }

.bk-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid rgba(245,240,232,0.35);
  color: rgba(245,240,232,0.88);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.bk-btn-ghost:hover { border-color: rgba(245,240,232,0.75); color: #F5F0E8; }

.bk-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid #005859;
  color: #005859;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.bk-btn-outline:hover { background: #014425; color: #F5F0E8; }

.bk-cta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */
.bk-hero {
  position: relative;
  background: #021C10;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 0;
}

/* Fondo atmosférico con grano sutil */
.bk-hero-bg {
  position: absolute;
  inset: 0;
  background:
    /* Spotlight central sobre el libro */
    radial-gradient(ellipse 65% 70% at 50% 52%, rgba(15,48,32,0.0) 0%, rgba(2,28,16,0.0) 100%),
    /* Halo verde forestal que resalta el libro */
    radial-gradient(ellipse 55% 55% at 50% 50%, rgba(10,40,24,0.85) 0%, transparent 65%),
    /* Bordes más oscuros para vignette */
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%),
    /* Acento cálido sutil abajo */
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(180,48,0,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* Línea naranja superior */
.bk-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #B43000 35%, #FB7A02 50%, #B43000 65%, transparent 100%);
  z-index: 10;
}

.bk-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  justify-content: space-between;
  padding-top: 56px;
  padding-bottom: 48px;
}

/* Copy superior */
.bk-hero-top {
  text-align: center;
  animation: bkFadeUp 0.6s ease both;
}
.bk-hero-top .bk-eyebrow { margin-bottom: 0.4rem; }
.bk-hero-author {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  color: rgba(245,240,232,0.40);
  letter-spacing: 0.05em;
}

/* Libro al centro — protagonista */
.bk-hero-book {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 32px 0;
  animation: bkFadeUp 0.7s 0.1s ease both;
}
.bk-book-shadow {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55) 0%, transparent 70%);
  filter: blur(12px);
  z-index: 0;
}
.bk-book-cover {
  position: relative;
  z-index: 1;
  width: clamp(200px, 38vw, 360px);
  height: auto;
  display: block;
  border-radius: 3px 6px 6px 3px;
  box-shadow:
    -8px 16px 40px rgba(0,0,0,0.60),
    -2px  4px 12px rgba(0,0,0,0.40),
     4px  8px 24px rgba(192,57,43,0.10);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease;
}
.bk-hero-book:hover .bk-book-cover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    -12px 24px 56px rgba(0,0,0,0.65),
    -2px   4px 12px rgba(0,0,0,0.40),
     4px  12px 28px rgba(192,57,43,0.12);
}

/* Copy inferior */
.bk-hero-bottom {
  text-align: center;
  animation: bkFadeUp 0.7s 0.2s ease both;
}
.bk-hero-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-style: italic;
  color: rgba(245,240,232,0.70);
  margin-bottom: 1.5rem;
  line-height: 1.35;
}
.bk-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.bk-hero-formats {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.bk-hero-formats span {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.65rem;
  color: rgba(251,122,2,0.75);
  background: rgba(180,48,0,0.10);
  border: 1px solid rgba(180,48,0,0.20);
  border-radius: 100px;
  padding: 4px 12px;
  letter-spacing: 0.04em;
}

/* Scroll hint */
.bk-scroll-hint { display: none; }
.bk-scroll-line { display: none; }

/* ════════════════════════════════════════════════════
   AUTHORITY BAR
   ════════════════════════════════════════════════════ */
.bk-authority {
  background: #014425;
  padding: 28px 32px;
}
.bk-authority-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.bk-stat { text-align: center; }
.bk-stat strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #F5F0E8;
  line-height: 1;
  margin-bottom: 3px;
}
.bk-stat span {
  font-size: 0.65rem;
  color: rgba(245,240,232,0.62);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bk-divider-v {
  width: 1px; height: 32px;
  background: rgba(245,240,232,0.18);
}

/* ════════════════════════════════════════════════════
   ABOUT THE BOOK (feature)
   ════════════════════════════════════════════════════ */
.bk-feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 72px;
  align-items: start;
}
.bk-feature-cover {
  width: 100%;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.08);
  display: block;
}
.bk-feature-copy .bk-h2 { margin-bottom: 0.5rem; }
.bk-feature-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #B43000;
  margin-bottom: 1.5rem;
  display: block;
}
.bk-feature-copy p {
  font-size: 0.97rem;
  color: #3D5244;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.bk-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.bk-badge {
  border: 1.5px solid rgba(0,88,89,0.22);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  color: #005859;
  letter-spacing: 0.03em;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* ════════════════════════════════════════════════════
   HARP GRID
   ════════════════════════════════════════════════════ */
.bk-harp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bk-harp-card {
  background: #FAFAF7;
  border: 1px solid rgba(0,88,89,0.10);
  border-radius: 10px;
  padding: 28px 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.bk-harp-card:hover {
  border-color: rgba(0,88,89,0.22);
  box-shadow: 0 6px 20px rgba(0,88,89,0.08);
  transform: translateY(-3px);
}
.bk-harp-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: #B43000;
  line-height: 1;
  margin-bottom: 2px;
}
.bk-harp-label { display: none; }
.bk-harp-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #005859;
  margin-bottom: 0.6rem;
}
.bk-harp-card p {
  font-size: 0.83rem;
  color: #3D5244;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════
   HARP SECTION — overrides para fondo claro
   ════════════════════════════════════════════════════ */
.bk-section--harp .bk-h2     { color: #1A2B1E; }
.bk-section--harp .bk-eyebrow { color: #B43000; }
.bk-section--harp .bk-section-lead { color: #3D5244; }

/* ════════════════════════════════════════════════════
   NSRI SECTION
   ════════════════════════════════════════════════════ */
/* En fondo teal: btn-primary → blanco con texto teal */
.bk-section--teal .bk-btn-primary {
  background: #F5F0E8;
  color: #005859;
}
.bk-section--teal .bk-btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}
.bk-section--teal .bk-section-lead { max-width: 560px; }
.bk-section--teal p {
  font-size: 0.97rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.bk-divider-h {
  width: 40px; height: 2px;
  background: #B43000;
  margin: 2rem auto;
}

/* ════════════════════════════════════════════════════
   WHO IT'S FOR
   ════════════════════════════════════════════════════ */
.bk-who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.bk-who-copy .bk-h2 { margin-bottom: 1rem; }
.bk-who-copy p { font-size: 0.97rem; color: #3D5244; line-height: 1.8; }
.bk-who-copy .bk-btn-primary { margin-top: 1.75rem; }
.bk-checklist {
  list-style: none;
  padding: 0; margin: 0;
}
.bk-checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,88,89,0.10);
  font-size: 0.9rem;
  color: #3D5244;
  line-height: 1.6;
}
.bk-checklist li:last-child { border-bottom: none; }
.bk-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #014425;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk-check::after {
  content: '';
  width: 8px; height: 5px;
  border-left: 1.5px solid #F5F0E8;
  border-bottom: 1.5px solid #F5F0E8;
  transform: rotate(-45deg) translateY(-1px);
}

/* ════════════════════════════════════════════════════
   ABOUT AUTHOR
   ════════════════════════════════════════════════════ */
.bk-author {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: center;
}
.bk-author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  display: block;
}
.bk-author-photo {
  width: 240px;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.bk-author-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #005859;
  margin-bottom: 4px;
}
.bk-author-creds {
  font-size: 0.75rem;
  color: #B43000;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 1.25rem;
}
.bk-author-copy p {
  font-size: 0.95rem;
  color: #3D5244;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ════════════════════════════════════════════════════
   BONUS GRID
   ════════════════════════════════════════════════════ */
.bk-bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bk-bonus-card {
  background: #FAFAF7;
  border: 1px solid rgba(0,88,89,0.12);
  border-radius: 12px;
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bk-bonus-card:hover {
  border-color: rgba(0,88,89,0.28);
  box-shadow: 0 6px 24px rgba(0,88,89,0.08);
}
.bk-bonus-n {
  position: absolute;
  top: 14px; left: 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 600;
  color: rgba(0,88,89,0.07);
  line-height: 1;
  user-select: none;
}
.bk-bonus-card h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1A2B1E;
  margin: 2rem 0 0.4rem;
  line-height: 1.4;
}
.bk-bonus-card p {
  font-size: 0.83rem;
  color: #506860;
  line-height: 1.65;
  margin: 0;
}
.bk-bonus-card--cta {
  background: #014425;
  border-color: #005859;
  display: flex;
  flex-direction: column;
}
.bk-bonus-card--cta:hover { box-shadow: 0 6px 24px rgba(0,88,89,0.28); }
.bk-bonus-card--cta .bk-bonus-n { color: rgba(245,240,232,0.08); }
.bk-bonus-card--cta h3 { color: #F5F0E8; }
.bk-bonus-card--cta p  { color: rgba(245,240,232,0.65); }
.bk-bonus-card--cta .bk-btn-outline {
  border-color: rgba(245,240,232,0.35);
  color: rgba(245,240,232,0.85);
  align-self: flex-start;
}
.bk-bonus-card--cta .bk-btn-outline:hover {
  background: rgba(245,240,232,0.10);
  color: #F5F0E8;
}

/* ════════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════════ */
.bk-final {
  background: #021C10;
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}
.bk-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,88,89,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.bk-final .bk-container { position: relative; }
.bk-final .bk-h2 { margin-bottom: 1rem; }
.bk-final p {
  color: rgba(245,240,232,0.65);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════ */
@keyframes bkFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bkFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bkScrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 0.70; transform: scaleY(1.15); }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .bk-container { padding: 0 24px; }
  .bk-section { padding: 72px 0; }
  .bk-feature {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* Imagen centrada — único elemento que se centra */
  .bk-feature-img { display: flex; justify-content: center; }
  .bk-feature-cover { max-width: 200px; }
  /* Todo el copy siempre left-aligned */
  .bk-feature-copy { text-align: left; }
  .bk-badges { justify-content: flex-start; }
  .bk-feature-copy .bk-btn-primary { width: 100%; justify-content: center; }
  .bk-harp-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-who { grid-template-columns: 1fr; gap: 40px; }
  .bk-who-copy { text-align: left; }
  .bk-who-copy .bk-btn-primary { width: 100%; justify-content: center; }
  .bk-author { grid-template-columns: 1fr; gap: 32px; }
  .bk-author-placeholder { max-width: 240px; aspect-ratio: 4/3; }
  .bk-author-copy { text-align: left; }
  .bk-bonus-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-authority-inner { gap: 28px; }
  .bk-divider-v { display: none; }
  .bk-cta-group { flex-direction: column; align-items: center; }
  .bk-cta-group .bk-btn-primary,
  .bk-cta-group .bk-btn-ghost { width: 100%; max-width: 340px; justify-content: center; }
  /* Botón outline en secciones de contenido */
  .bk-feature-copy .bk-btn-outline,
  .bk-author-copy .bk-btn-outline { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .bk-hero-inner { padding: 40px 20px 36px; }
  .bk-book-cover { width: clamp(180px, 55vw, 260px); }
  .bk-harp-grid { grid-template-columns: 1fr; }
  .bk-bonus-grid { grid-template-columns: 1fr; }
  .bk-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .bk-hero-actions .bk-btn-primary,
  .bk-hero-actions .bk-btn-ghost { justify-content: center; }
  .bk-section { padding: 56px 0; }
  .bk-authority { padding: 24px 20px; }
  .bk-scroll-hint { display: none; }
}