:root {
  --bg: #F6F1E7;
  --ink: #1B221D;
  --green: #1F3B2D;
  --green-deep: #14291F;
  --gold: #E0AE3E;
  --gold-dark: #CF9C2C;
  --gold-soft: #D9A53A;
  --brown: #8A6A1E;
  --cream: #FFFCF6;
  --line: #E6DDCB;
  --muted: #5A625C;
  --body: #3A443D;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }

img { max-width: 100%; }

a { color: var(--green); }
a:hover { color: var(--green-deep); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--green-deep);
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  text-wrap: balance;
}

.section { padding: clamp(64px, 9vw, 112px) 24px; }
.section-alt {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-green {
  background: var(--green);
  color: var(--bg);
  padding: clamp(64px, 9vw, 112px) 24px;
}

.wrap { max-width: 1100px; margin: 0 auto; }

/* Shared bits */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-line { width: 28px; height: 2px; background: var(--gold-soft); flex: none; }
.eyebrow-dark { color: var(--brown); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(20, 41, 31, 0.25), 0 8px 20px -10px rgba(120, 80, 0, 0.45);
  transition: background 0.15s, transform 0.15s;
  outline: none;
}
.btn:hover { background: var(--gold-dark); transform: translateY(-1px); color: var(--green-deep); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* HERO */
.hero { padding: clamp(40px, 7vw, 96px) 24px clamp(64px, 9vw, 112px); }
.hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--body);
  max-width: 540px;
  text-wrap: pretty;
}
.cta-block { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-top: 4px; }
.cta-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 460px;
  text-wrap: pretty;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0;
}
.book { overflow: hidden; border-radius: 3px 8px 8px 3px; }
.book img { display: block; width: 100%; height: auto; aspect-ratio: 1414 / 2000; object-fit: cover; }
.book-hero {
  position: relative;
  width: min(300px, 68%);
  transform: perspective(1200px) rotateY(-14deg) rotateX(3deg);
  box-shadow: -2px 0 0 rgba(0, 0, 0, 0.25), 24px 30px 50px -16px rgba(0, 0, 0, 0.55);
}

/* IDENTIFICACIÓN */
.wrap-id {
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.id-list { display: flex; flex-direction: column; gap: 24px; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.check-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 1px;
}
.callout {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: #5A3F0E;
  background: #F7EBCB;
  border-radius: 10px;
  padding: 16px 18px;
}

/* MECANISMO */
.wrap-narrow-col { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }
.section-green h2 { color: var(--cream); }
.mechanism-head { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.mechanism-head p { font-size: 18px; line-height: 1.6; color: #D6DDD3; text-wrap: pretty; }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(246, 241, 231, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: rgba(246, 241, 231, 0.28); }
.steps h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--cream); }
.steps p { font-size: 16px; line-height: 1.6; color: #D6DDD3; }
.mechanism-foot {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #F2D38A;
  text-align: center;
  text-wrap: balance;
}

/* PRODUCTO */
.wrap-product {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.product-visual { display: flex; justify-content: center; }
.product-frame {
  width: min(360px, 100%);
  background: #EDE4D2;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  justify-content: center;
}
.book-product {
  width: 100%;
  box-shadow: 18px 24px 40px -18px rgba(20, 41, 31, 0.55), 0 0 0 1px rgba(20, 41, 31, 0.08);
}
.product-info { display: flex; flex-direction: column; gap: 28px; }
.product-head { display: flex; flex-direction: column; gap: 12px; }
.product-head h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.04; }
.product-head p { font-size: 18px; line-height: 1.55; color: var(--body); }
.includes { display: flex; flex-direction: column; gap: 14px; }
.includes ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.includes li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--body); }
.includes strong { color: var(--green-deep); }
.bullet { flex: none; margin-top: 7px; width: 10px; height: 10px; border-radius: 2px; }
.bullet-green { background: var(--green); }
.bullet-gold { background: var(--gold); }
.price-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px -20px rgba(20, 41, 31, 0.35);
}
.price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price-old { font-size: 16px; color: #6B726D; }
.price-now { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1; color: var(--green-deep); }
.price-flat { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1; color: var(--green-deep); }
.btn-block { width: 100%; }
.guarantee { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--body); }
.guarantee svg { flex: none; margin-top: 1px; }

/* AUTOR */
.wrap-author {
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.author-copy { display: flex; flex-direction: column; gap: 22px; }
.author-copy p { font-size: 17px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.author-copy strong { color: var(--green-deep); }
.author-quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.4;
  color: var(--green);
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  text-wrap: pretty;
}
.author-visual { display: flex; justify-content: center; }
.author-photo {
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #E9E1CF;
  box-shadow: 0 20px 40px -24px rgba(20, 41, 31, 0.45);
}
.author-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* PRUEBA SOCIAL */
.wrap-social { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.social-head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin: 0 auto; text-align: center; align-items: center; }
.social-head p { font-size: 18px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.reviews {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}
.reviews li {
  border-radius: 16px;
  overflow: hidden;
  background: #0C0D10;
  box-shadow: 0 14px 30px -18px rgba(20, 41, 31, 0.5);
  display: flex;
  align-items: center;
}
.reviews img { display: block; width: 100%; height: auto; }
.social-foot {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--green);
  text-align: center;
  text-wrap: balance;
}

/* OFERTA */
.offer-section { padding: 0 16px clamp(64px, 9vw, 112px); }
.offer-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--green);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(44px, 7vw, 80px) clamp(22px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  box-shadow: 0 30px 60px -36px rgba(20, 41, 31, 0.8);
}
.offer-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.offer-card h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; color: var(--cream); max-width: 620px; }
.offer-price { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.offer-old { font-size: 17px; color: #B9C4BB; }
.offer-big { font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 10vw, 104px); line-height: 1; letter-spacing: -0.02em; color: var(--cream); }
.offer-big span { color: var(--gold); }
.offer-flat-big { font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 10vw, 104px); line-height: 1; letter-spacing: -0.02em; color: var(--gold); }
.offer-timer { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.offer-timer h3 { font-size: 15px; font-weight: 600; color: var(--bg); }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 460px; }
.timer > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 0;
  background: rgba(255, 252, 246, 0.07);
  border: 1px solid rgba(246, 241, 231, 0.16);
  border-radius: 12px;
}
.timer > div > span:first-child {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}
.timer-label { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: #B9C4BB; }
.offer-after { font-size: 15px; color: #D6DDD3; }
.btn-wide {
  min-height: 62px;
  width: 100%;
  max-width: 460px;
  padding: 0 24px;
  font-size: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}
.btn-wide:hover { background: #EDC25E; }
.btn-wide:focus-visible { outline: 3px solid var(--cream); }
.guarantee-offer { justify-content: center; color: #D6DDD3; max-width: 460px; text-align: left; }
.guarantee-offer strong { color: var(--cream); }

/* FAQ */
.wrap-faq { max-width: 780px; display: flex; flex-direction: column; gap: 36px; }
.faq-title { text-align: center; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--green-deep);
  border-radius: 6px;
}
.faq-q:hover { color: #2E5641; }
.faq-q:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.faq-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1E8D5;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.faq-q[aria-expanded="true"] .faq-icon { background: var(--green); color: var(--bg); transform: rotate(45deg); }
.faq-panel { padding: 0 52px 24px 4px; }
.faq-panel p { font-size: 16px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.faq-panel[hidden] { display: none; }

/* CIERRE */
.closing { padding: clamp(72px, 10vw, 128px) 24px clamp(48px, 6vw, 72px); }
.wrap-closing {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.wrap-closing h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.015em; }
.closing-lead { font-size: 18px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.closing-quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--green);
  text-wrap: pretty;
}
.closing-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 12px; width: 100%; }
.closing-cta h3 { font-size: 16px; font-weight: 700; color: var(--green-deep); }
.btn-closing { min-height: 60px; width: 100%; max-width: 420px; padding: 0 28px; font-size: 18px; border-radius: 12px; }
.guarantee-inline { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--body); justify-content: center; }
.guarantee-inline strong { color: var(--green-deep); }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 28px 24px 40px; }
.footer p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: #6B726D;
  text-align: center;
  text-wrap: pretty;
}

/* ESTADO EXPIRADO */
.when-expired { display: none; }
body.is-expired .when-active { display: none !important; }
body.is-expired .when-expired { display: block; }

/* MOBILE CTA */
.mobile-cta { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--green-deep);
    border-top: 1px solid rgba(246, 241, 231, 0.14);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.4);
  }
  .mobile-price { display: flex; flex-direction: column; line-height: 1.15; flex: none; }
  .mobile-price s { font-size: 12px; color: #B9C4BB; }
  .mobile-price .js-price { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--cream); }
  .mobile-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 16px;
    background: var(--gold);
    color: var(--green-deep);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 10px;
  }
  .mobile-cta a:active { background: var(--gold-dark); }
  .mobile-cta a:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
