/* ============================================================
   CÓDIGO DIVINO — hoja de estilos única
   Mobile-first · sin dependencias externas
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0e0c09;
  --ink-2:      #16130e;
  --ink-3:      #1f1a13;
  --gold:       #ffc300;
  --gold-2:     #e2a900;
  --gold-soft:  #f6dc8c;
  --cream:      #f4ecdc;
  --cream-dim:  #cfc3ab;
  /* Verde de la marca, ligeramente oscurecido para que el texto blanco
     de los botones cumpla el contraste mínimo WCAG AA. */
  --green:      #08a417;
  --green-2:    #037d12;
  --red:        #ff4d4d;
  --line:       rgba(255, 195, 0, .22);

  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --container: 1140px;
  --radius: 16px;
  --radius-lg: 22px;
  --pad-block: clamp(3.5rem, 8vw, 6.5rem);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .75);
  --shadow-gold: 0 0 0 1px var(--line), 0 20px 45px -25px rgba(255, 195, 0, .55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
s { color: var(--cream-dim); text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #000;
  padding: .75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Utilidades ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, 760px); }

.u-gold { color: var(--gold); }
.u-red  { color: var(--red); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: .7rem 0;
  background: rgba(14, 12, 9, 0);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-stuck {
  background: rgba(14, 12, 9, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: clamp(.9rem, 3vw, 1.05rem);
  color: var(--gold);
}
.brand__mark { font-size: .8em; opacity: .85; }
.site-header__cta { flex: none; }
@media (max-width: 480px) { .site-header__cta { display: none; } }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-bg-2: var(--green-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.25;
  color: #fff;
  background: linear-gradient(180deg, var(--btn-bg), var(--btn-bg-2));
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.75rem;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(7, 186, 25, .8);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 34px -14px rgba(7, 186, 25, .9); }
.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-bg: var(--gold);
  --btn-bg-2: var(--gold-2);
  color: #201a05;
  box-shadow: 0 12px 26px -14px rgba(255, 195, 0, .8);
}
.btn--gold:hover { box-shadow: 0 16px 30px -14px rgba(255, 195, 0, .9); }

.btn--sm { padding: .55rem 1.1rem; font-size: .8rem; }
.btn--lg { font-size: clamp(.95rem, 3.4vw, 1.1rem); padding: 1.1rem 2rem; width: min(100%, 27rem); }
.btn--xl { font-size: clamp(1rem, 3.8vw, 1.25rem); padding: 1.25rem 2.25rem; width: 100%; }

/* Pulso sutil para llamar la atención sin ser agresivo */
.btn--buy.btn--xl { animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 28px -12px rgba(7, 186, 25, .8), 0 0 0 0 rgba(7, 186, 25, .45); }
  50%      { box-shadow: 0 12px 28px -12px rgba(7, 186, 25, .8), 0 0 0 14px rgba(7, 186, 25, 0); }
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.cta-row__note { font-size: .85rem; color: var(--cream-dim); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 6.5rem 0 clamp(3rem, 8vw, 5rem);
  text-align: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 25%, rgba(14, 12, 9, .55), rgba(14, 12, 9, .88) 70%),
    linear-gradient(180deg, rgba(14, 12, 9, .8) 0%, rgba(14, 12, 9, .5) 40%, var(--ink) 100%);
}
.hero__inner { display: grid; justify-items: center; gap: clamp(1rem, 2.5vw, 1.35rem); }

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .28em;
  font-size: clamp(.85rem, 3.2vw, 1.15rem);
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(1.75rem, 1.1rem + 3.4vw, 3.25rem);
  max-width: 20ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}
.hero__sub {
  max-width: 52ch;
  color: #e7e9ee;
  font-size: clamp(.95rem, 3.4vw, 1.1rem);
}
.hero__mockup {
  width: min(88vw, 520px);
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, .65));
  margin-block: clamp(.5rem, 2vw, 1rem);
}
.hero__note {
  font-size: clamp(.72rem, 2.8vw, .85rem);
  color: var(--cream-dim);
  letter-spacing: .01em;
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--pad-block); }
.section--dark { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.section--quote {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 195, 0, .09), transparent 70%),
    var(--ink);
}
.section--parchment {
  position: relative;
  isolation: isolate;
  color: #2a2013;
  background: #e8dec1 url('/img/pergamino.webp') center / cover;
}
.section--parchment::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(240, 232, 210, .86), rgba(226, 214, 182, .92));
}
.section--parchment .section__title { color: #4a3413; text-shadow: none; }
.section--parchment .section__title::after { background: linear-gradient(90deg, transparent, #8a6a2a, transparent); }

.section__title {
  font-size: clamp(1.55rem, 1.1rem + 2.4vw, 2.5rem);
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}
.section__title::after {
  content: "";
  display: block;
  width: 74px;
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section__lead {
  max-width: 62ch;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--cream-dim);
}
.section--parchment .section__lead { color: #57452c; }

/* ---------- Tarjeta + checklist ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin-inline: auto;
}
.card__title {
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 1.25rem;
  text-align: center;
}
.checklist { display: grid; gap: .9rem; }
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--green);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 16.8 4.8 12l1.7-1.7 3.1 3.1 7.9-7.9L19.2 7z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 16.8 4.8 12l1.7-1.7 3.1 3.1 7.9-7.9L19.2 7z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Rejillas ---------- */
.grid { display: grid; gap: clamp(1rem, 3vw, 1.75rem); }
.grid--books,
.grid--bonus { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--advantages { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid--audience { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Libros */
.book {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.book > img { width: 100%; aspect-ratio: 800 / 737; object-fit: cover; }
.book__body { padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: .5rem; }
.book__title { font-size: 1.1rem; color: var(--gold); }
.book__body p { font-size: .92rem; color: var(--cream-dim); }

/* Ventajas */
.advantage {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
}
.advantage__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: rgba(7, 186, 25, .14);
  border: 1px solid rgba(7, 186, 25, .4);
}
.advantage h3 { font-size: 1.08rem; color: var(--gold); margin-bottom: .3rem; }
.advantage p { font-size: .92rem; color: var(--cream-dim); }

/* Público */
.audience {
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(122, 92, 40, .3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px -20px rgba(60, 40, 10, .8);
  transition: transform .25s ease;
}
.audience:hover { transform: translateY(-4px); }
.audience > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.audience__body { padding: 1.1rem 1.15rem 1.4rem; }
.audience h3 { font-size: 1.02rem; color: #5a3f13; margin-bottom: .35rem; }
.audience p { font-size: .9rem; color: #5c4a30; }

/* Bonos */
.bonus {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 195, 0, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 195, 0, .35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bonus:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.bonus__tag {
  position: absolute;
  top: .8rem;
  left: .8rem;
  z-index: 1;
  background: var(--gold);
  color: #201a05;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
}
.bonus > img { width: 100%; aspect-ratio: 800 / 737; object-fit: cover; }
.bonus__body { padding: 1.2rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.bonus h3 { font-size: 1.02rem; color: var(--gold); }
.bonus p { font-size: .9rem; color: var(--cream-dim); }
.price-swap {
  margin-top: auto;
  padding-top: .4rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .03em;
}
.price-swap strong { color: var(--green); font-size: 1.15em; }

.bonus-total {
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed rgba(255, 195, 0, .45);
  border-radius: var(--radius-lg);
  background: rgba(255, 195, 0, .05);
}
.bonus-total__line { font-size: clamp(1.05rem, 3.6vw, 1.35rem); font-weight: 700; max-width: 40ch; }
.bonus-total__sub { color: var(--cream-dim); font-size: .95rem; max-width: 52ch; }

/* ---------- Estadísticas ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.stat {
  display: grid;
  gap: .25rem;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.stat__num { font-family: var(--font-display); font-size: clamp(1.4rem, 5vw, 1.9rem); color: var(--gold); font-weight: 700; }
.stat__label { font-size: .82rem; color: var(--cream-dim); line-height: 1.45; }

/* Testimonios (listos para cuando haya reales) */
.grid--testimonials {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: clamp(2rem, 5vw, 3rem);
}
.testimonial {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}
.testimonial__text { font-style: italic; margin-bottom: .9rem; }
.testimonial__author { font-size: .85rem; color: var(--gold); font-weight: 700; }

/* ---------- Oferta ---------- */
.section--offer {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 195, 0, .14), transparent 65%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  text-align: center;
}
.offer__eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem 1rem;
  margin-bottom: 1.25rem;
}
.offer__currency { color: var(--cream-dim); font-size: .9rem; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }

.offer-card {
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 195, 0, .4);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-gold);
  display: grid;
  gap: 1.25rem;
}
.offer-card__intro { text-align: center; color: var(--cream-dim); }
.offer-list { display: grid; gap: .65rem; }
.offer-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .5rem;
  align-items: start;
  font-size: clamp(.9rem, 3.2vw, 1rem);
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.offer-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.offer-card__price { display: grid; justify-items: center; gap: .3rem; padding-top: .5rem; }
.offer-card__from { font-size: .85rem; color: var(--cream-dim); }
.offer-card__now {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 12vw, 4.25rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 6px 30px rgba(255, 195, 0, .3);
}
.offer-card__currency { font-size: .5em; vertical-align: super; }
.offer-card__unit { font-size: .3em; letter-spacing: .1em; vertical-align: middle; }
.offer-card__once { font-size: .85rem; color: var(--cream-dim); letter-spacing: .04em; }
.offer-card__scarcity { text-align: center; font-size: .9rem; }

.trust {
  display: grid;
  gap: .5rem;
  justify-content: center;
  text-align: center;
  font-size: .85rem;
  color: var(--cream-dim);
}

/* ---------- Garantía ---------- */
.guarantee {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  justify-items: center;
  text-align: center;
}
.guarantee__seal { width: clamp(150px, 40vw, 240px); filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .6)); }
.guarantee__body { display: grid; gap: .85rem; max-width: 60ch; }
.guarantee__body h2 { font-size: clamp(1.4rem, 1.1rem + 2vw, 2.1rem); color: var(--gold); }
.guarantee__body p { color: var(--cream-dim); }
.guarantee__body strong { color: var(--cream); }

@media (min-width: 820px) {
  .guarantee { grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
  .guarantee__body { justify-items: start; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq__item[open] { border-color: rgba(255, 195, 0, .5); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: clamp(.95rem, 3.3vw, 1.05rem);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 195, 0, .14);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform .25s ease;
}
.faq__item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq__answer { padding: 0 1.25rem 1.25rem; color: var(--cream-dim); font-size: .95rem; }

/* ---------- Pie ---------- */
.site-footer {
  background: #080705;
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 calc(clamp(2.5rem, 6vw, 3.5rem) + env(safe-area-inset-bottom));
  text-align: center;
  font-size: .85rem;
  color: var(--cream-dim);
}
.site-footer > .container { display: grid; gap: .9rem; justify-items: center; }
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--gold);
  font-size: 1rem;
}
.site-footer__text { max-width: 55ch; }
.site-footer__legal { max-width: 68ch; font-size: .75rem; opacity: .72; line-height: 1.6; }
.site-footer__copy { font-size: .75rem; opacity: .6; }

/* ---------- Barra fija de compra ---------- */
.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 9, 6, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta[hidden] { display: none; }
.sticky-cta__info { display: grid; line-height: 1.2; }
.sticky-cta__price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--gold); }
.sticky-cta__price small { font-size: .55em; letter-spacing: .08em; }
.sticky-cta__note { font-size: .7rem; color: var(--cream-dim); }
.sticky-cta .btn { flex: 1; padding: .85rem 1rem; font-size: .9rem; animation: none; }

@media (min-width: 900px) {
  .sticky-cta { justify-content: center; gap: 1.75rem; }
  .sticky-cta .btn { flex: none; min-width: 16rem; }
}

/* ---------- Animación de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .sticky-cta, .hero__bg { display: none !important; }
  body { background: #fff; color: #000; }
}
