/* ============================================
   AEQUITAS — LANDING PAGE
   Paleta extraída de las portadas reales:
   - Fondo oscuro / noir investigativo
   - Dorado / ámbar (acento principal)
   - Crema (texto sobre fondo oscuro)
   - Verde AEquitas (marca / éxito)
   - Rojo (énfasis puntual, "NEGRO")
   ============================================ */

:root {
  --ink:        #0d1218;
  --ink-2:      #161e27;
  --cream:      #f3ecd9;
  --cream-dim:  #cfc7b2;
  --gold:       #d6a53c;
  --gold-dim:   #b3872f;
  --green:      #2f6b44;
  --green-dark: #1b4d2e;
  --red:        #b23a2e;
  --bg:         #faf7f0;
  --bg-2:       #f0ead9;
  --text:       #201c15;
  --text-dim:   #5c554a;
  --radius:     14px;
  --shadow:     0 10px 30px rgba(13, 18, 24, 0.15);
  --font-head:  'Poppins', sans-serif;
  --font-body:  'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary, .btn--accent { position: relative; overflow: hidden; }
.btn--primary::after, .btn--accent::after {
  content: '';
  position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn--primary:hover::after, .btn--accent:hover::after { left: 130%; }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-dim); box-shadow: 0 8px 20px rgba(214,165,60,.35); }
.btn--accent { background: var(--green); color: var(--cream); }
.btn--accent:hover { background: var(--green-dark); box-shadow: 0 8px 20px rgba(47,107,68,.35); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--sm { padding: 8px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13,18,24,.08);
  transition: background .3s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.logo__mark {
  width: 42px; height: 42px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.footer .logo__mark { margin-right: 4px; }
.logo__text { font-weight: 700; letter-spacing: .08em; font-size: .95rem; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-weight: 500; font-size: .95rem; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--gold-dim); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vh, 160px) 0 clamp(20px, 4vh, 100px);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.hero .container { width: 100%; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 0;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(214,165,60,.16), transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(47,107,68,.16), transparent 50%),
    linear-gradient(rgba(11,11,11,.62), rgba(11,11,11,.85));
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero__title { font-size: clamp(1.9rem, 4.2vh, 3.6rem); font-weight: 800; }
.hero__title .accent { color: var(--gold); }
.hero__subtitle { font-size: clamp(.95rem, 1.9vh, 1.15rem); color: var(--cream-dim); max-width: 620px; margin: 0 auto clamp(16px, 2.5vh, 32px); }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(20px, 4vh, 56px); }
.hero .btn--ghost { border-color: var(--cream); color: var(--cream); }
.hero .btn--ghost:hover { background: var(--cream); color: var(--ink); }
.hero__covers {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 16px);
  perspective: 1000px;
}
.hero__covers img {
  width: clamp(64px, 8vh, 110px);
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  transition: transform .35s ease;
}
.hero__covers img:nth-child(odd) { transform: rotate(-4deg) translateY(10px); }
.hero__covers img:nth-child(even) { transform: rotate(4deg); }
.hero__covers img:hover { transform: translateY(-10px) scale(1.05) rotate(0deg); z-index: 2; }

/* ---------- Sections ---------- */
/* Cada sección apunta a ocupar una pantalla completa (alto y ancho) sin
   depender de scroll-snap: min-height:100vh + centrado vertical, con
   paddings que se reducen solos en pantallas más bajas (clamp con vh). */
.hero, .section, .footer {
  scroll-margin-top: 72px;
}
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(32px, 8vh, 96px) 0;
  position: relative;
}
.section > .container { width: 100%; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .section__lead { color: var(--cream-dim); }
.section--accent { background: var(--green-dark); color: var(--cream); }
.section--accent .section__lead { color: rgba(243,236,217,.8); }
#quienes-somos p { color: rgba(243,236,217,.85); line-height: 1.7; }
#quienes-somos .section__lead { color: rgba(243,236,217,.85); }
#quienes-somos .quienes-somos__closing {
  text-align: center;
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: clamp(20px, 3vh, 32px);
}
.section__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); text-align: center; font-weight: 800; }
.section__lead { text-align: center; max-width: 620px; margin: 0 auto clamp(20px, 3.5vh, 48px); color: var(--text-dim); font-size: 1.05rem; }

/* Variaciones de textura para que las secciones oscuras consecutivas no se vean idénticas */
.section--glow-gold, .section--glow-green { overflow: hidden; }
.section--glow-gold::before, .section--glow-green::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.section--glow-gold::before {
  background: radial-gradient(circle at 12% 0%, rgba(214,165,60,.14), transparent 45%),
              radial-gradient(circle at 100% 100%, rgba(214,165,60,.08), transparent 55%);
}
.section--glow-green::before {
  background: radial-gradient(circle at 100% 0%, rgba(47,107,68,.22), transparent 45%),
              radial-gradient(circle at 0% 100%, rgba(214,165,60,.08), transparent 50%);
}
.section--glow-gold > .container, .section--glow-green > .container { position: relative; z-index: 1; }

/* ---------- Book grid ---------- */
/* Fila horizontal (no grid de 2 renglones) para que las 6 tarjetas quepan
   en el alto de una sola pantalla; se recorre deslizando hacia los lados. */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  align-items: start;
}
.book-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.book-card:hover,
.book-card.is-visible:hover { transform: translateY(-10px); box-shadow: 0 28px 55px rgba(13,18,24,.28); }
.book-card__cover {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.book-card__cover img { display: block; width: 100%; height: auto; cursor: pointer; transition: transform .5s ease; }
.book-card:hover .book-card__cover img { transform: scale(1.08); }
.book-card__preview {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 14px);
  display: flex; align-items: center; gap: 6px;
  background: rgba(13,18,24,.85);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.book-card:hover .book-card__preview { opacity: 1; transform: translate(-50%, 0); }
.book-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.book-card__body h3 { font-size: .92rem; line-height: 1.25; }
.book-card__body p {
  color: var(--text-dim); font-size: .85rem; line-height: 1.5;
}
.book-card__body .btn { padding: 10px 18px; font-size: .82rem; }
.book-card__price { color: var(--gold-dim); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin: 0; }

.bundle-details {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.bundle-details.is-expanded { display: flex; }
.book-card__more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin: -4px 0 0;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-dim);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.book-card__more:hover { color: var(--gold); }

.book-card--bundle { background: var(--gold); }
.book-card__cover--bundle { aspect-ratio: 1/1; }
.book-card__cover--bundle img { width: 100%; height: 100%; object-fit: cover; }
.book-card__body--bundle { justify-content: center; }
.book-card__body--bundle p { flex: 0; }
.book-card__body--bundle h3 { text-align: center; }
.book-card--bundle h3, .book-card--bundle p { color: var(--ink); }
.book-card--bundle .book-card__more { color: var(--ink); opacity: .75; }
.book-card--bundle .book-card__more:hover { opacity: 1; }

.badge-offer {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--ink); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.bundle-includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.bundle-includes li { padding-left: 24px; position: relative; }
.bundle-includes li::before { content: '✓'; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--green-dark); }
.bundle-bonus { font-size: .82rem; background: rgba(13,18,24,.08); border-radius: 10px; padding: 10px 14px; }
.bundle-price { background: rgba(13,18,24,.06); border-radius: 12px; padding: 14px 16px; flex: 0; }
.bundle-price__individual { display: block; font-size: .78rem; color: var(--ink); opacity: .7; text-decoration: line-through; margin-bottom: 4px; }
.bundle-price__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bundle-price__regular { text-decoration: line-through; opacity: .65; font-size: .95rem; }
.bundle-price__launch { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.bundle-price__savings {
  display: inline-block; margin-top: 8px;
  background: var(--green-dark); color: var(--cream);
  font-family: var(--font-head); font-weight: 700; font-size: .75rem;
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Benefits ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: clamp(24px, 4vh, 48px);
}
.benefit { text-align: center; }
.benefit__icon {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--gold);
  width: 44px; height: 44px;
  line-height: 44px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.benefit h3 { color: var(--gold); }

/* ---------- Counter ---------- */
.counter { text-align: center; }
.counter__number, .counter__plus {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vh, 3rem);
  color: var(--cream);
}
.counter__plus { color: var(--gold); }
.counter p { color: var(--cream-dim); }

/* ---------- Quiz ---------- */
.quiz {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(13,18,24,.3);
  padding: clamp(22px, 4vh, 40px);
  position: relative;
  overflow: hidden;
}
.quiz::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(214,165,60,.14), transparent 50%),
              radial-gradient(circle at 0% 100%, rgba(47,107,68,.16), transparent 50%);
}
.quiz > * { position: relative; z-index: 1; }
.quiz__progress { height: 6px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; margin-bottom: 32px; }
.quiz__progress-bar { height: 100%; width: 20%; background: linear-gradient(90deg, var(--gold), var(--green)); transition: width .4s ease; }
.quiz__question h3 { font-size: 1.15rem; margin-bottom: 20px; color: var(--cream); }
.quiz__options { display: flex; flex-wrap: wrap; gap: 12px; }
.quiz__option {
  padding: 12px 22px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.quiz__option:hover { border-color: var(--gold); background: rgba(214,165,60,.14); color: var(--gold); transform: translateY(-2px); }
.quiz__result { text-align: center; }
.quiz__result h3 { color: var(--gold); font-size: 1.4rem; }
.quiz__result p { color: var(--cream-dim); }
.quiz .btn--ghost { border-color: var(--cream); color: var(--cream); }
.quiz .btn--ghost:hover { background: var(--cream); color: var(--ink); }
.quiz__result .btn--ghost { margin-top: 12px; display: block; margin-left: auto; margin-right: auto; }

/* ---------- Resources ---------- */
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.resource-card h3 { color: var(--gold); margin-bottom: 20px; }
.hint { font-size: .8rem; color: var(--cream-dim); margin-top: 10px; }
.hint code { background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 4px; }

.resource-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.carousel__counter { font-size: .75rem; font-weight: 500; color: var(--cream-dim); background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 999px; }
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel__viewport { border-radius: var(--radius); overflow: hidden; flex: 1; background: rgba(255,255,255,.04); height: 40vh; display: flex; align-items: center; justify-content: center; }
.carousel__viewport img { width: auto; height: 100%; max-width: 100%; cursor: zoom-in; object-fit: contain; display: block; margin: 0 auto; }
.carousel__caption { padding: 10px 14px; font-size: .82rem; color: var(--cream-dim); background: rgba(255,255,255,.04); margin: 0; }
.carousel__arrow {
  background: var(--gold);
  color: var(--ink);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
}
.carousel__arrow:hover { background: var(--gold-dim); }

.audio-player {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.audio-player__toggle {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.audio-player__toggle:hover { background: var(--gold-dim); }
#waveform { flex: 1; width: 100%; height: 60px; min-width: 0; }
.audio-player__time { font-family: var(--font-head); font-size: .85rem; color: var(--cream-dim); flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.testimonial {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border-left: 4px solid var(--gold);
}
.testimonial p { font-style: italic; }
.testimonial cite { font-weight: 700; font-style: normal; color: var(--gold-dim); }

/* ---------- Newsletter ---------- */
.newsletter-form__note { text-align: center; color: var(--gold); font-weight: 600; }

/* ---------- Formatos de reclamo ---------- */
.formatos-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.formatos-form select,
.formatos-form input,
.formatos-form textarea {
  width: 100%;
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.formatos-form select:focus,
.formatos-form input:focus,
.formatos-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(214,165,60,.3);
}
.formatos-form select { appearance: none; cursor: pointer; }
.formatos-form textarea { border-radius: var(--radius); resize: vertical; min-height: 100px; }
.formatos-form__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  color: var(--cream-dim);
  font-size: .92rem;
  cursor: pointer;
}
.formatos-form__checkbox input { width: auto; accent-color: var(--gold); cursor: pointer; }
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
#formatosPrivacyNote { text-align: center; margin-bottom: 12px; }
#formatosError { color: var(--red); text-align: center; font-weight: 600; }

.file-input {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 2px dashed rgba(255,255,255,.35);
  color: var(--cream-dim);
  font-size: .92rem;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.file-input:hover { border-color: var(--gold); color: var(--cream); }
.file-input input[type="file"] {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
}
#auditoriaError { color: var(--red); text-align: center; font-weight: 600; }
.formatos-form__result {
  text-align: center;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px;
}
.formatos-form__note { color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-top: 32px; }
.social-links a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  transition: background .2s ease, transform .2s ease;
}
.social-links a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.social-links a.hotmart-badge {
  width: auto;
  display: flex; align-items: center; gap: 7px;
  height: 46px; padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: var(--cream);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .01em;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.hotmart-badge svg { color: #f05a28; flex-shrink: 0; transition: color .2s ease; }
.hotmart-badge:hover { background: #f05a28; color: #fff; transform: translateY(-3px); }
.hotmart-badge:hover svg { color: #fff; }

/* ---------- FAQ / Accordion ---------- */
.accordion__item { border-bottom: 1px solid var(--bg-2); }
.accordion__trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.accordion__trigger::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold-dim);
  transition: transform .25s ease;
}
.accordion__item.is-open .accordion__trigger::after { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion__panel p { padding-bottom: 20px; color: var(--text-dim); }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(13,18,24,.85); }
.modal__panel {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
}
.modal__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-dim);
}
.flipbook img { border-radius: 8px; box-shadow: var(--shadow); max-height: 80vh; max-width: 100%; margin: 0 auto; }
.flipbook__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.modal--zoom { padding: 40px; }
.modal--zoom img { max-height: 90vh; max-width: 90vw; border-radius: 8px; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream-dim); padding: 56px 0 24px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand p { margin-top: 8px; color: var(--gold); font-weight: 600; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { text-align: center; font-size: .8rem; margin-top: 24px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.34,1.56,.64,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Animación escalonada en grillas: cada tarjeta aparece un poco después que la anterior */
.book-grid > .book-card:nth-child(1) { transition-delay: 0ms; }
.book-grid > .book-card:nth-child(2) { transition-delay: 70ms; }
.book-grid > .book-card:nth-child(3) { transition-delay: 140ms; }
.book-grid > .book-card:nth-child(4) { transition-delay: 210ms; }
.book-grid > .book-card:nth-child(5) { transition-delay: 280ms; }
.book-grid > .book-card:nth-child(6) { transition-delay: 350ms; }
.benefits > .benefit:nth-child(1) { transition-delay: 0ms; }
.benefits > .benefit:nth-child(2) { transition-delay: 80ms; }
.benefits > .benefit:nth-child(3) { transition-delay: 160ms; }
.benefits > .benefit:nth-child(4) { transition-delay: 240ms; }
.testimonials > .testimonial:nth-child(1) { transition-delay: 0ms; }
.testimonials > .testimonial:nth-child(2) { transition-delay: 90ms; }
.testimonials > .testimonial:nth-child(3) { transition-delay: 180ms; }

/* ---------- Legal pages ---------- */
.legal { padding: 160px 0 100px; }
.legal__updated { text-align: center; color: var(--text-dim); font-size: .9rem; margin-bottom: 48px; }
.legal__content { text-align: left; }
.legal__content h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal__content h2:first-child { margin-top: 0; }
.legal__content h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal__content p, .legal__content li { color: var(--text-dim); }
.legal__content ul, .legal__content ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal__content li { margin-bottom: .4em; }
.legal__content strong { color: var(--text); }
.legal__back { display: inline-block; margin-bottom: 32px; font-weight: 600; color: var(--gold-dim); }
.legal__back:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px 24px; gap: 18px; box-shadow: var(--shadow); transform: translateY(-150%); transition: transform .3s ease; }
  .nav.is-open { transform: translateY(0); }
  .nav__toggle { display: block; }
  .header .btn--sm { display: none; }
  .hero { padding: 130px 0 70px; }
  .hero__covers img { width: 70px; }
}
