/* ============================================================
   Comentarios Expositivos — EBI
   styles.css · CSS compartido para todo el sitio
   ============================================================ */

/* ── Skip link (accesibilidad) ────────────────────────────── */
.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 9999;
  padding: 10px 20px;
  background: var(--gold); color: var(--dark);
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:           #C9A84C;
  --gold-light:     #E8C97A;
  --gold-dim:       #7A6030;
  --dark:           #0E0C0A;
  --dark-2:         #181410;
  --dark-3:         #221D17;
  --dark-4:         #2E2720;
  --surface:        #312A22;
  --surface-2:      #3D3528;
  --text:           #F0EAE0;
  --text-muted:     #A89880;
  --text-dim:       #887870; /* aclarado de #6E6050 para pasar WCAG AA 4.5:1 */
  --amber-glow:     rgba(201,168,76,0.08);
  --amber-glow-md:  rgba(201,168,76,0.13);
  --border:         rgba(201,168,76,0.18);
  --border-strong:  rgba(201,168,76,0.38);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--dark);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Typography ───────────────────────────────────────────── */
.font-cinzel    { font-family: 'Cinzel', serif; }
.font-cormorant { font-family: 'Cormorant Garamond', serif; }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,12,10,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 13px; letter-spacing: 0.12em;
  color: var(--gold); text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--text-muted); text-decoration: none;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }

/* Breadcrumb (páginas de libro) */
.nav-breadcrumb {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 12px; color: var(--text-dim); letter-spacing: 0.06em;
}
.nav-breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.nav-breadcrumb a:hover { color: var(--gold-light); }
.nav-breadcrumb .sep { color: var(--gold-dim); font-size: 10px; }
.nav-breadcrumb .current { color: var(--text-muted); }

.nav-back {
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: transparent; text-decoration: none;
  border: 0.5px solid var(--border-strong);
  padding: 10px 18px;
  display: flex; align-items: center; gap: 0.5rem;
  min-height: 44px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-back:hover { background: var(--amber-glow); border-color: var(--gold); }
.nav-back svg { width: 14px; height: 14px; }

/* ── Shared Section Patterns ──────────────────────────────── */
section { padding: 100px 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.25em;
  color: var(--gold); text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 1rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: block; height: 0.5px; width: 30px;
  background: var(--gold-dim);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--text); margin-bottom: 1rem;
}
.section-title.italic { font-style: italic; }
.section-desc {
  font-size: 15px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
  line-height: 1.8; text-wrap: balance;
}

/* Decorative divider */
.divider {
  display: flex; align-items: center; gap: 1.5rem; margin: 60px 0;
}
.divider-line { flex: 1; height: 0.5px; background: var(--border); }
.divider-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--gold-dim); font-style: italic;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  font-family: 'Cinzel', serif;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark); background: var(--gold);
  border: none; padding: 14px 32px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block; min-height: 44px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  font-family: 'Cinzel', serif;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); background: transparent;
  border: 0.5px solid var(--border-strong);
  padding: 14px 32px; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  display: inline-block; min-height: 44px;
}
.btn-secondary:hover {
  border-color: var(--gold); background: var(--amber-glow);
  transform: translateY(-1px);
}

.btn-sm-primary {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dark); background: var(--gold);
  border: none; padding: 16px 24px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s; flex: 1; text-align: center;
  min-height: 52px; display: flex; align-items: center; justify-content: center;
}
.btn-sm-primary:hover { background: var(--gold-light); }

.btn-sm-ghost {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: transparent;
  border: 0.5px solid var(--border-strong);
  padding: 10px 18px; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  flex: 1; text-align: center;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.btn-sm-ghost:hover { border-color: var(--gold); background: var(--amber-glow); }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-input {
  width: 100%; background: var(--dark-4);
  border: 0.5px solid var(--border);
  color: var(--text); padding: 14px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 14px; font-weight: 300;
  outline: none; transition: border-color 0.2s; min-height: 44px;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--gold-dim); }
.form-submit {
  width: 100%;
  font-family: 'Cinzel', serif;
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dark); background: var(--gold);
  border: none; padding: 16px; cursor: pointer;
  transition: background 0.2s; min-height: 48px;
}
.form-submit:hover { background: var(--gold-light); }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.form-submit:disabled:hover { background: var(--gold); }
.form-note { font-size: 12px; color: var(--text-dim); margin-top: 1rem; }
/* Input error shake */
.input-error {
  border-color: rgba(201,168,76,0.7) !important;
  animation: input-shake 0.35s ease;
}
@keyframes input-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
/* Form success state */
.form-success {
  text-align: center; padding: 0.5rem 0 0.75rem;
  animation: fade-in-up 0.4s ease both;
}
.form-success-icon {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.form-success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400; color: var(--text);
  margin-bottom: 0.4rem;
}
.form-success-sub { font-size: 0.85rem; color: var(--text-muted); }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Popup ────────────────────────────────────────────────── */
.popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 2rem;
}
.popup-overlay.active { display: flex; }
.popup {
  background: var(--dark-3);
  border: 0.5px solid var(--border-strong);
  max-width: 480px; width: 100%; padding: 3rem;
  position: relative;
  animation: popupIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.popup-close {
  position: absolute; top: 1rem; right: 1.25rem;
  color: var(--text-dim); background: none; border: none;
  font-size: 1.25rem; cursor: pointer;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.popup-close:hover { color: var(--text-muted); }
.popup-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.popup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 300; font-style: italic;
  color: var(--text); margin-bottom: 0.6rem; line-height: 1.2;
}
.popup-subtitle {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 1.5rem; line-height: 1.6; text-wrap: balance;
}
.popup-form { display: flex; flex-direction: column; gap: 0.75rem; }
.popup-skip {
  display: block; width: 100%; margin-top: 0.75rem;
  padding: 12px; text-align: center; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); background: none;
  border: 0.5px solid var(--border); transition: border-color 0.2s, color 0.2s;
}
.popup-skip:hover { border-color: var(--border-strong); color: var(--text); }
.form-label {
  font-family: 'Cinzel', serif; font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: -0.25rem;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 0.5px solid var(--border);
  padding: 3rem 2rem; text-align: center;
}
.footer-logo {
  margin-bottom: 1rem;
  display: flex; justify-content: center;
}
.footer-logo img {
  height: 56px; width: auto;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.55;
}
.footer-text { font-size: 12px; color: var(--text-dim); }
.footer-logo-link {
  position: relative; display: inline-block;
}
.footer-logo-link::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--dark-3); border: 0.5px solid var(--border);
  padding: 6px 14px; border-radius: 2px;
  white-space: nowrap; pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.footer-logo-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.footer-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  margin-top: 1.5rem; transition: color 0.2s;
}
.footer-back:hover { color: var(--gold-light); }
.footer-back svg { width: 12px; height: 12px; }

/* ── Capture Strip (shared) ───────────────────────────────── */
.capture-section {
  background: var(--dark-3);
  position: relative; overflow: hidden;
}
.capture-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(201,168,76,0.07), transparent 70%);
  pointer-events: none;
}
.capture-inner {
  max-width: 540px; margin: 0 auto;
  text-align: center; position: relative; z-index: 1;
}
.capture-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300; font-style: italic;
  color: var(--text); margin-bottom: 0.75rem; margin-top: 1rem;
}
.capture-desc {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 2rem; text-wrap: balance;
}
.capture-form { display: flex; flex-direction: column; gap: 0.75rem; }

/* ── LANDING: Hero ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 2rem 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.06) 0%, transparent 70%);
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hero-ornament {
  position: absolute; top: 80px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim));
}
.hero-content { text-align: center; position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.25em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; height: 0.5px; width: 40px;
  background: var(--gold-dim);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 300;
  line-height: 1.1; color: var(--text); margin-bottom: 0.5rem;
  letter-spacing: -0.01em; text-align: center;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-title .ht-main { display: inline-block; }
.hero-title .ht-sub {
  display: block; font-size: clamp(1.6rem, 3.8vw, 3rem);
  font-weight: 300; color: var(--text);
  letter-spacing: -0.01em; margin-top: 0.15em;
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 300;
  font-style: italic; color: var(--text-muted);
  max-width: 560px; margin: 1.5rem auto 3rem; line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  margin-top: 5rem;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
}
.scroll-line {
  width: 0.5px; height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero intro animation ──────────────────────────────────── */
.hero-bg-enter {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg-enter.is-visible { opacity: 1; }

.hero-enter {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-enter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── LANDING: Value section ───────────────────────────────── */
.value-section { background: var(--dark-2); }
.value-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--border); border: 0.5px solid var(--border);
}
.value-item { background: var(--dark-2); padding: 2.5rem 2rem; position: relative; }
.value-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; font-weight: 300; color: var(--border);
  line-height: 1; margin-bottom: 1rem;
  position: absolute; top: 1.5rem; right: 1.5rem; pointer-events: none;
}
.value-icon {
  width: 32px; height: 32px; border: 0.5px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; color: var(--gold); font-size: 14px;
}
.value-label {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.1em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.75rem;
}
.value-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── LANDING: Books section ───────────────────────────────── */
.books-section { background: var(--dark-3); }
.books-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 3rem; margin-bottom: 4rem;
}
.book-float {
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
  max-width: 240px;
}
.book-float-img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.8)) drop-shadow(0 8px 20px rgba(0,0,0,0.5));
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), filter 0.4s ease;
}
.book-float:hover .book-float-img {
  transform: translateY(-8px);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.9)) drop-shadow(0 8px 24px rgba(201,168,76,0.15));
}
.book-float-meta {
  font-family: 'Cinzel', serif; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dim); text-align: center;
}
.book-float-btn { width: 100%; text-align: center; }
.book-cover {
  flex: 1; background: var(--dark-2);
  position: relative; overflow: hidden;
}
.book-card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block; transition: transform 0.4s ease;
  min-height: 320px;
}
.book-card:hover .book-card-img { transform: scale(1.03); }
.book-cover-inner {
  text-align: center; padding: 2rem;
  background: linear-gradient(135deg, #1a1208 0%, #0e0c0a 100%);
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
}
.book-cover-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(201,168,76,0.12), transparent 60%);
}
.book-cover-title {
  font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300;
  color: var(--text); letter-spacing: -0.01em; position: relative; z-index: 1;
}
.book-cover-subtitle {
  font-family: 'Cinzel', serif; font-size: 8px; letter-spacing: 0.18em;
  color: var(--gold); text-transform: uppercase;
  margin-top: 0.5rem; position: relative; z-index: 1;
}
.book-badge {
  position: absolute; top: 12px; right: 12px;
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px;
  background: var(--gold); color: var(--dark);
}
.book-info { padding: 1.5rem; display: flex; flex-direction: column; }
.book-series {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.15em;
  color: var(--gold-dim); text-transform: uppercase; margin-bottom: 0.5rem;
}
.book-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400;
  color: var(--text); margin-bottom: 0.5rem; line-height: 1.3;
}
.book-author { font-size: 13px; color: var(--text-muted); margin-bottom: 1rem; }
.book-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; flex: 1; }
.book-actions {
  padding: 1rem 1.5rem; border-top: 0.5px solid var(--border);
  display: flex; gap: 0.75rem;
}

/* Coming soon */
.coming-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem;
}
.coming-card {
  border: 0.5px dashed var(--text-dim); padding: 2rem 1.5rem;
  text-align: center; opacity: 0.6;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.coming-placeholder {
  width: 60px; height: 80px; border: 0.5px dashed var(--text-dim);
  display: flex; align-items: center; justify-content: center;
}
.coming-label {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.15em;
  color: var(--text-dim); text-transform: uppercase;
}
.coming-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--text-muted); }

/* ── LANDING: Promise banner ──────────────────────────────── */
.promise-banner {
  border: 0.5px solid var(--border-strong); padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  display: flex; align-items: flex-start; gap: 2rem;
  background: var(--amber-glow);
}
.promise-icon {
  font-family: 'Cormorant Garamond', serif; font-size: 2.5rem;
  font-style: italic; color: var(--gold); flex-shrink: 0; line-height: 1;
}
.promise-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.promise-text strong { color: var(--text); font-weight: 400; }

/* ── LANDING: Benefits list ───────────────────────────────── */
.benefits-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 2.5rem 0 3rem; text-align: left;
}
.benefit-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 14px; color: var(--text-muted); line-height: 1.5;
}
.benefit-dot {
  width: 6px; height: 6px; background: var(--gold);
  flex-shrink: 0; margin-top: 5px;
}

/* ── BOOK PAGE: Hero ──────────────────────────────────────── */
.book-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 2rem 80px;
  position: relative; overflow: hidden;
}
.book-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px; pointer-events: none;
}
.book-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 55% 70% at 25% 55%, rgba(201,168,76,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 70% 30%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.book-hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 65% 80% at 25% 55%, black 15%, transparent 70%);
  pointer-events: none;
}
.book-hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: auto 1fr;
  gap: 5rem; align-items: center; position: relative; z-index: 1;
}

/* 3D Book */
.book-scene {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 3.5rem 2rem 1rem; position: relative;
}
.book-scene > div {
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(201,168,76,0.06));
}
.book-3d-wrapper {
  --book-w: 290px; --book-h: 400px; --book-depth: 46px;
  position: relative; width: var(--book-w); height: var(--book-h);
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateY(-22deg);
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}
.book-scene:hover .book-3d-wrapper {
  transform: perspective(1400px) rotateY(-28deg) scale(1.04);
}
.book-face {
  position: absolute; width: var(--book-w); height: var(--book-h); top: 0; left: 0;
}
.book-face-front {
  background: linear-gradient(150deg, #221a0a 0%, #0e0c0a 55%, #1a1208 100%);
  border: 0.5px solid rgba(0,0,0,0.8); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: translateZ(calc(var(--book-depth) / 2));
}
.book-cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; z-index: 0;
}
.book-face-front::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 22px;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.05));
  pointer-events: none;
}
.book-face-front::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 38% 28%, rgba(201,168,76,0.18), transparent 52%),
    radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.06), transparent 40%);
  pointer-events: none;
}
.book-cover-content {
  text-align: center; position: relative; z-index: 1;
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.book-cover-ornament {
  width: 48px; height: 0.5px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.book-cover-big-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; font-weight: 300; color: var(--text);
  line-height: 1; letter-spacing: -0.01em;
  text-shadow: 0 0 60px rgba(201,168,76,0.15);
}
.book-cover-series-label {
  font-family: 'Cinzel', serif; font-size: 7.5px; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase; line-height: 1.8;
}
.book-face-spine {
  width: var(--book-depth); height: var(--book-h);
  position: absolute; top: 0; left: 0;
  background: linear-gradient(to bottom, #0a0703, #100d06, #0a0703);
  transform-origin: left center; transform: rotateY(-90deg) translateZ(0px);
  display: flex; align-items: center; justify-content: center;
  border-right: 0.5px solid rgba(201,168,76,0.1);
}
.book-spine-text {
  writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
  font-family: 'Cinzel', serif; font-size: 7px; letter-spacing: 0.22em;
  color: var(--gold-dim); text-transform: uppercase; white-space: nowrap;
}
.book-face-pages {
  width: var(--book-depth); height: calc(var(--book-h) - 8px);
  position: absolute; top: 4px; left: var(--book-w);
  background: repeating-linear-gradient(
    to right, #b8a882 0px, #b8a882 0.5px,
    #e0d4b4 0.5px, #e0d4b4 3px,
    #d4c89e 3px, #d4c89e 3.5px, #ebe0c2 3.5px, #ebe0c2 7px
  );
  transform-origin: left center; transform: rotateY(90deg);
}
.book-face-back {
  transform: translateZ(calc(-1 * var(--book-depth) / 2)) rotateY(180deg);
  background: #060402; border: 0.5px solid rgba(201,168,76,0.08);
}

/* Mobile scroll hint */
.scroll-hint {
  display: none; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 2rem; color: var(--text-dim);
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-hint-line {
  width: 0.5px; height: 36px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-hint-arrow {
  width: 10px; height: 10px;
  border-right: 0.5px solid var(--gold-dim); border-bottom: 0.5px solid var(--gold-dim);
  transform: rotate(45deg); animation: scrollPulse 2s ease-in-out infinite 0.3s;
}

/* Book hero info */
.book-hero-info {}
.book-hero-eyebrow {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.book-hero-eyebrow::before {
  content: ''; display: block; height: 0.5px; width: 30px; background: var(--gold-dim);
}
.book-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 300;
  line-height: 1.05; color: var(--text); margin-bottom: 0.4rem; letter-spacing: -0.01em;
}
.book-hero-title em { font-style: italic; color: var(--gold-light); }
.book-hero-series {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.15em;
  color: var(--gold-dim); text-transform: uppercase; margin-bottom: 1.5rem;
}
.book-hero-author {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  font-style: italic; color: var(--text-muted); margin-bottom: 2rem;
}
.book-hero-quote {
  border-left: 2px solid var(--gold-dim); padding-left: 1.25rem;
  font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
  font-style: italic; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 2.5rem; max-width: 480px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  border: 0.5px solid var(--border-strong); background: var(--amber-glow-md); padding: 14px 20px;
}
.trust-badge-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
.trust-badge-text {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.12em;
  color: var(--text-muted); text-transform: uppercase; line-height: 1.5;
}
.trust-badge-text strong { color: var(--gold); font-weight: 400; }

/* ── BOOK PAGE: Resource cards ────────────────────────────── */
.resources-section {
  background: var(--dark-2); position: relative;
}
.resources-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}
.resources-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5px; background: var(--border); border: 0.5px solid var(--border);
}
.resource-card {
  background: var(--dark-3); padding: 0;
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  opacity: 0; transform: translateY(28px);
  transition: background 0.25s ease, opacity 0.55s ease-out, transform 0.55s ease-out;
}
.resource-card.visible { opacity: 1; transform: translateY(0); }
.resource-card:hover { background: var(--dark-4); }
.resource-card:hover .card-glow { opacity: 1; }
.resource-card:hover .resource-preview-thumb { opacity: 0.9; transform: scale(1.03); }
.resource-card:hover .resource-download-btn {
  background: var(--gold-light); border-color: var(--gold-light);
}
.card-glow {
  position: absolute; top: 0; right: 0; width: 160px; height: 160px;
  background: radial-gradient(ellipse at top right, rgba(201,168,76,0.09), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}

/* Resource preview thumbnail */
.resource-preview {
  width: 100%; height: 160px; background: var(--dark-2);
  border-bottom: 0.5px solid var(--border);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.preview-pdf  { background: linear-gradient(160deg, #1a1408 0%, #0e0c0a 100%); }
.preview-pptx { background: linear-gradient(160deg, #0e0c14 0%, #0a0a0e 100%); }
.resource-preview-thumb {
  position: relative; z-index: 1; opacity: 1;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
/* PDF mock — paper document on dark */
.thumb-pdf {
  width: 90px; height: 116px;
  background: #d6cec0;
  border: none; position: relative;
  box-shadow: 0 8px 28px rgba(0,0,0,0.75), 0 2px 6px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; padding: 12px 10px; gap: 5px;
}
.thumb-pdf::before {
  content: ''; position: absolute; top: 0; right: 0; width: 16px; height: 16px;
  background: #b8b0a0;
  border-left: 0.5px solid rgba(0,0,0,0.12);
  border-bottom: 0.5px solid rgba(0,0,0,0.12);
}
.thumb-line { height: 2px; border-radius: 1px; background: rgba(0,0,0,0.16); }
.thumb-line.gold { background: rgba(150,100,15,0.6); width: 60%; }
.thumb-line.wide { width: 100%; }
.thumb-line.med  { width: 78%; }
.thumb-line.short { width: 50%; }
.thumb-line.xshort { width: 35%; }
.thumb-divider { height: 0.5px; background: rgba(0,0,0,0.1); margin: 3px 0; }
/* Slide mock */
.thumb-slide {
  width: 142px; height: 80px;
  background: #1e1a2a;
  border: 0.5px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 28px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.5);
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-end; padding: 10px; overflow: hidden;
}
.thumb-slide::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 36px;
  background: rgba(201,168,76,0.11); border-bottom: 0.5px solid rgba(201,168,76,0.18);
}
.thumb-slide-title { height: 3px; width: 50%; border-radius: 1px; background: rgba(201,168,76,0.65); margin-bottom: 4px; }
.thumb-slide-sub   { height: 2px; width: 35%; border-radius: 1px; background: rgba(255,255,255,0.25); }
/* Infographic mock — paper grid */
.thumb-infographic {
  width: 90px; height: 116px;
  background: #d6cec0;
  border: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.75), 0 2px 6px rgba(0,0,0,0.5);
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.5fr 1fr 1fr; gap: 5px; padding: 10px;
}
.thumb-cell { background: rgba(0,0,0,0.1); border-radius: 1px; }
.thumb-cell.gold { background: rgba(150,100,15,0.45); }
.thumb-cell.span2 { grid-column: span 2; }

/* Resource number ornament */
.resource-number {
  font-family: 'Cormorant Garamond', serif; font-size: 5.5rem; font-weight: 300;
  color: var(--border); line-height: 1;
  position: absolute; top: 168px; right: 1.5rem;
  pointer-events: none; letter-spacing: -0.02em; transition: color 0.25s ease;
}
.resource-card:hover .resource-number { color: rgba(201,168,76,0.12); }

/* Resource card body */
.resource-body-wrap {
  padding: 1.75rem 2rem 0; flex: 1; display: flex; flex-direction: column;
  gap: 1rem; position: relative; z-index: 1;
}
.resource-header { display: flex; align-items: flex-start; justify-content: space-between; }
.resource-icon {
  width: 44px; height: 44px; border: 0.5px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0; transition: border-color 0.25s, background 0.25s;
}
.resource-card:hover .resource-icon { border-color: var(--gold); background: rgba(201,168,76,0.06); }
.resource-icon svg { width: 20px; height: 20px; }
.resource-format-badge {
  font-family: 'Lato', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 4px 9px; border: 0.5px solid; align-self: flex-start;
}
.resource-format-badge.pdf  { color: #d97070; border-color: rgba(217,112,112,0.35); }
.resource-format-badge.pptx { color: #d4924a; border-color: rgba(212,146,74,0.35); }
.resource-format-badge.png  { color: #7ab8d4; border-color: rgba(122,184,212,0.35); }
.resource-type-label {
  font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.18em;
  color: var(--gold-dim); text-transform: uppercase; margin-bottom: 0.25rem;
}
.resource-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400;
  color: var(--text); line-height: 1.2; margin-bottom: 0.5rem;
}
.resource-desc { font-size: 13px; color: var(--text-muted); line-height: 1.75; text-wrap: balance; }
.resource-footer {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 2rem; border-top: 0.5px solid var(--border); margin-top: 1.25rem;
}
.resource-meta { font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em; flex: 1; }
/* Primary CTA — gold-filled */
.resource-download-btn {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark); background: var(--gold); border: 0.5px solid var(--gold);
  padding: 12px 22px; cursor: pointer; text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap; min-height: 44px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.resource-download-btn:hover {
  background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px);
}
.resource-download-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .book-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .book-scene { padding: 1.5rem 1.5rem 0; justify-content: center; }
  .book-3d-wrapper { --book-w: 260px; --book-h: 360px; --book-depth: 40px; }
  .book-hero-info { padding: 2rem 0 0; }
  .book-hero-eyebrow { justify-content: center; }
  .book-hero-quote { margin-left: auto; margin-right: auto; }
  .trust-badge { width: 100%; justify-content: center; }
  .nav-breadcrumb { display: none; }
  .scroll-hint { display: flex; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .benefits-list { grid-template-columns: 1fr; }
  .promise-banner { flex-direction: column; gap: 1rem; }
}
@media (max-width: 640px) {
  .book-3d-wrapper { --book-w: 240px; --book-h: 330px; --book-depth: 36px; }
  .book-hero { min-height: 100svh; padding: 80px 1.25rem 60px; align-items: flex-start; }
  .book-scene { min-height: 65svh; align-items: center; }
  /* Jerarquía limpia: título → autor → quote → badge (en recursos) */
  .book-hero-eyebrow { display: none; }
  .book-hero-title { font-size: clamp(1.75rem, 6.5vw, 4.5rem); }
  .book-hero-series { display: none; }
  .book-hero-quote { font-size: 1rem; line-height: 1.7; margin: 1.25rem auto 1rem; border-left: none; padding-left: 0; }
  .book-hero-author { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--gold-dim); margin: 0; }
  .book-hero-author::before { content: '— '; }
  .trust-badge { padding: 10px 18px; justify-content: center; margin-top: 2rem; }
  .trust-badge-text { font-size: 9px; }
  .scroll-hint { display: none; }
  .resources-grid { grid-template-columns: 1fr; }
  .resource-preview { height: 160px; }
  .resource-number { top: 168px; font-size: 4.5rem; }
  .resource-body-wrap { padding: 1.5rem 1.5rem 0; }
  .resource-footer { padding: 1rem 1.5rem; }
  nav { padding: 0 1.25rem; }
}
/* ── Resource cards v2 (compact grid) ───────────────────── */
.trust-badge { margin-top: 2rem; }

.resources-grid-v2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.res-card {
  background: transparent;
  border: none;
  border-top: 0.5px solid var(--border);
  border-radius: 0;
  padding: 2rem 0.25rem 0.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.res-card::before {
  content: ''; position: absolute; top: -0.5px; left: 0;
  width: 32px; height: 0.5px;
  background: var(--gold-dim);
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.res-card.visible { opacity: 1; transform: translateY(0); }
.res-card.visible:hover::before { width: 64px; }
.res-card.visible:hover .res-card-icon { color: var(--gold); transform: translateY(-2px); }

.res-card-icon {
  color: var(--gold-dim);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.35s ease, transform 0.35s ease;
}
.res-card-icon svg { width: 100%; height: 100%; stroke-width: 1.25; }

.res-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem; font-weight: 300;
  color: var(--text); line-height: 1.2;
  letter-spacing: 0.01em;
}
.res-card-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -0.25rem;
}
.res-card-format {
  font-family: 'Cinzel', serif;
  font-size: 8px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: auto;
  padding-top: 0.5rem;
}

.resources-grid-v2 + .chapters-part { margin-top: 6rem; }

.resources-footer {
  display: flex; justify-content: center;
  margin-top: 4rem;
}
.trust-badge--footer {
  margin-top: 0;
  background: transparent;
  border: 0.5px solid var(--border);
}

/* Divider between resources intro and chapters list */
.chapters-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem;
  margin: 6rem auto 4rem;
  max-width: 520px;
}
.chapters-divider-line {
  flex: 1; height: 0.5px; background: var(--border-strong);
}
.chapters-divider-label {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.28em;
  color: var(--gold); text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .resources-grid-v2 { grid-template-columns: repeat(3, 1fr); }
  .res-card:nth-child(4) { grid-column: 1; }
  .res-card:nth-child(5) { grid-column: 2; }
}
@media (max-width: 600px) {
  .resources-grid-v2 { grid-template-columns: 1fr 1fr; }
  .res-card:nth-child(4),
  .res-card:nth-child(5) { grid-column: auto; }
}

/* ── Chapters section ─────────────────────────────────────── */
.chapters-section {
  padding: 100px 2rem;
  background: var(--dark);
}
.chapters-legend {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  justify-content: center;
  margin: 0 auto 3.5rem;
  max-width: 700px;
}
.legend-item {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--text-dim); text-transform: uppercase;
}
.legend-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot--video,
.legend-dot--alumno,
.legend-dot--maestro,
.legend-dot--infografia,
.legend-dot--slides { background: var(--gold); }

.chapters-part { margin-bottom: 3rem; }
.chapters-part:last-child { margin-bottom: 0; }

.chapters-part-header {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0.6rem 1rem;
  opacity: 0; transform: translateX(-14px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 0.5px solid var(--border);
}
.chapters-part-header.visible { opacity: 1; transform: translateX(0); }
.chapters-part-label {
  font-family: 'Cinzel', serif;
  font-size: 9px; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase;
  flex-shrink: 0;
}
.chapters-part-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--text);
}
.chapters-part-ref {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--text-dim); margin-left: auto;
}

.chapters-list { display: flex; flex-direction: column; }

.chapter-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
  position: relative;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.26s ease-out, transform 0.26s ease-out, background 0.18s ease;
}
.chapter-row.visible {
  opacity: 1;
  transform: translateX(0);
}
.chapter-row::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.16s ease-out;
}
.chapter-row.visible:hover { background: rgba(201,168,76,0.04); }
.chapter-row.visible:hover::before { transform: scaleY(1); }

.chapter-num {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--gold-dim);
  flex-shrink: 0;
}
.chapter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.4;
}

.chapter-actions {
  display: flex; gap: 0.4rem; flex-wrap: nowrap;
  flex-shrink: 0;
}

.ch-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.18s ease, background 0.18s ease;
}
.ch-btn svg { width: 11px; height: 11px; flex-shrink: 0; }
.ch-btn--soon { opacity: 0.3; pointer-events: none; }
.ch-btn:not(.ch-btn--soon):active { transform: scale(0.93); transition: transform 0.08s ease-in; }

.ch-btn--video,
.ch-btn--alumno,
.ch-btn--maestro,
.ch-btn--infografia,
.ch-btn--slides {
  background: rgba(201,168,76,0.05);
  color: var(--text-muted);
  border: 0.5px solid var(--border);
}

.ch-btn--video:not(.ch-btn--soon):hover,
.ch-btn--alumno:not(.ch-btn--soon):hover,
.ch-btn--maestro:not(.ch-btn--soon):hover,
.ch-btn--infografia:not(.ch-btn--soon):hover,
.ch-btn--slides:not(.ch-btn--soon):hover {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border-color: var(--border-strong);
}

@media (max-width: 768px) {
  .chapter-row {
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 0.75rem;
  }
  .chapter-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
  .chapters-part-ref { margin-left: 0; }
  .ch-btn span { display: none; }
  .ch-btn { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .ch-btn svg { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .resource-card, .res-card, .chapter-row, .chapters-part-header {
    opacity: 1; transform: none; transition: none;
  }
  .book-3d-wrapper { transition: none; }
  .popup { animation: none; }
  .scroll-hint-line, .scroll-hint-arrow { animation: none; opacity: 0.6; }
  .resource-preview-thumb { transition: none; }
  .scroll-line { animation: none; }
}
