/* El Manual del Ahorro para tu Auto — estilos de la landing (LATAM) */

:root {
  --paper: #f1eee7;
  --paper-2: #e8e3d8;
  --paper-3: #faf8f3;
  --ink: #1a222a;
  --ink-soft: #4a5560;
  --muted: #7f8a94;
  --line: #d6cfc1;
  --rust: #cf4b16;
  --rust-dark: #a63a0d;
  --steel: #171f26;
  --steel-text: #ece7dd;
  --steel-accent: #ef8b4c;
  --serif: 'Bitter', Georgia, serif;
  --body: 'Lora', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  text-wrap: pretty;
}
* { box-sizing: border-box; }
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }
img { max-width: 100%; }
::selection { background: #f3d3bf; }

/* ---- layout ---- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.wrap-pad { max-width: 1160px; margin: 0 auto; padding: 96px clamp(20px, 5vw, 72px); }
.section { padding: 70px 0; border-top: 1px solid var(--line); }
.section--last { padding-bottom: 90px; }

/* ---- typography helpers ---- */
.numeral { font-family: var(--serif); font-size: 26px; color: var(--rust); margin: 0 0 10px; }
.kicker {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  margin: 0;
}
.lede {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 22px 0 0;
}
.lede--center { margin-inline: auto; }
.fineprint {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 0;
}
.center { text-align: center; }

/* ---- barra superior + nav ---- */
.topbar { background: var(--steel); color: var(--steel-text); }
.topbar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px clamp(20px, 5vw, 72px);
  text-decoration: none;
  color: var(--steel-text);
  transition: color .15s ease;
}
.topbar__link:hover { color: #fff; }
.topbar__tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-accent);
}
.topbar__text { font-size: 14px; letter-spacing: 0.04em; }
.topbar__clock {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  font-feature-settings: 'tnum' 1;
  color: #fff;
}
.topbar__cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--steel-accent);
  padding-bottom: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.nav__brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.nav__link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--rust); }

/* ---- botones ---- */
.btn {
  text-decoration: none;
  display: inline-block;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn-primary { background: var(--rust); color: #fdf7f1; }
.btn-primary:hover { background: var(--rust-dark); color: #fdf7f1; }
.btn-outline { color: var(--ink); border: 1px solid #b9ae99; }
.btn-outline:hover { border-color: var(--rust); color: var(--rust); }
.btn--sm { font-size: 12.5px; letter-spacing: 0.14em; padding: 12px 22px; }
.btn--lg { font-size: 14px; padding: 16px 28px; }
.btn-outline.btn--lg { padding: 15px 27px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-row--center { justify-content: center; }

/* ---- hero ---- */
.hero { padding: clamp(40px, 6vh, 76px) 0 68px; text-align: center; }
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hero__eyebrow span { display: inline-block; width: 34px; height: 1px; background: var(--rust); }
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 auto;
  max-width: 21ch;
}
.hero__title em { font-style: italic; color: var(--rust); }
.hero__sub {
  font-size: 17px;
  line-height: 1.7;
  max-width: 54ch;
  margin: 20px auto 0;
  color: var(--ink-soft);
}

/* ---- VSL ---- */
.vsl-cue { text-align: center; color: var(--rust); font-size: 26px; line-height: 1; margin: 22px auto 0; }
.vsl-frame {
  max-width: 880px;
  margin: 14px auto 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 12px;
  box-shadow: 0 26px 60px -28px rgba(23, 31, 38, 0.55);
}
.vsl-bar {
  background: var(--rust);
  color: #fdf7f1;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(13.5px, 1.7vw, 18px);
  line-height: 1.4;
  text-align: center;
  padding: 12px 16px;
}
.vsl-stage { position: relative; line-height: 0; }
.vsl-stage > iframe,
.vsl-stage > video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--steel);
}
.vsl-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(23, 31, 38, 0.18);
  transition: opacity .25s ease, visibility .25s ease;
}
.vsl-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.vsl-play {
  width: clamp(74px, 11vw, 116px);
  height: clamp(74px, 11vw, 116px);
  border-radius: 50%;
  background: rgba(207, 75, 22, 0.92);
  border: 4px solid rgba(253, 247, 241, 0.94);
  box-shadow: 0 12px 34px -8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease;
}
.vsl-overlay:hover .vsl-play { transform: scale(1.06); background: var(--rust); }
.vsl-play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 27px;
  border-color: transparent transparent transparent #fdf7f1;
  margin-left: 7px;
}
.vsl-cta-banner {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  background: var(--rust);
  color: #fdf7f1;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(15px, 2.7vw, 30px);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  white-space: nowrap;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.5);
}

/* ---- ornamento ---- */
.rule-orn { display: flex; align-items: center; gap: 18px; }
.rule-orn span:first-child,
.rule-orn span:last-child { flex: 1; height: 1px; background: var(--line); }
.rule-orn__mark { font-family: var(--serif); color: var(--rust); font-size: 16px; letter-spacing: 0.3em; }

/* ---- cifras ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 42px 28px;
  padding: 64px 0 70px;
}
.stats__n {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1;
  color: var(--rust);
  margin: 0;
}
.stats__label {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* ---- las 4 reglas ---- */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.rule { background: var(--paper); padding: 32px 28px; }
.rule__n { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--rust); margin: 0 0 16px; }
.rule__h { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.3; margin: 0; }
.rule__p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); margin: 14px 0 0; }

/* ---- qué incluye ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 52px;
}
.card { background: var(--paper-2); border: 1px solid var(--line); padding: 28px 26px; }
.card--bonus { background: var(--paper-3); border-color: #d8b39b; }
.card__tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 12px;
}
.card__h { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.35; margin: 0 0 14px; }
.card__list { display: grid; gap: 9px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---- cita ---- */
.quote { margin: 0; text-align: center; max-width: 740px; margin-inline: auto; padding: 0 0 90px; }
.quote__mark { font-family: var(--serif); color: var(--rust); font-size: 18px; letter-spacing: 0.3em; margin: 0 0 18px; }
.quote blockquote {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.5;
  margin: 0;
}
.quote figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 0;
}

/* ---- oferta ---- */
.offer {
  display: flex;
  flex-wrap: wrap;
  gap: 56px clamp(32px, 5vw, 88px);
  align-items: flex-start;
  padding: 76px 0 84px;
  border-top: 1px solid var(--line);
}
.offer__figure {
  flex: 1 1 300px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(23, 31, 38, 0.45);
  position: sticky;
  top: 28px;
}
.offer__body { flex: 1 1 480px; min-width: 0; }

/* portada real del libro */
.offer__cover { width: 100%; display: block; }

.stack { border-top: 1px solid var(--line); }
.stack__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.stack__row span:last-child { white-space: nowrap; font-style: italic; }
.stack__row--core span:last-child { color: var(--rust); }
.stack__row--total {
  align-items: baseline;
  padding: 18px 0;
  background: linear-gradient(to right, rgba(207, 75, 22, 0.07), transparent);
}
.stack__total-label { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); }
.stack__total-price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--rust);
  white-space: nowrap;
  font-style: normal !important;
}

/* ---- garantía ---- */
.guarantee {
  margin-top: 30px;
  border: 1px solid #d8b39b;
  background: var(--paper-3);
  padding: 24px 26px;
}
.guarantee__h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 10px;
}
.guarantee__p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* ---- las cuentas ---- */
.math-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  text-align: left;
  margin-top: 52px;
}
.math-card {
  flex: 1 1 320px;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
}
.math-card--win { background: var(--paper-3); border-color: #d8b39b; }
.math-vs {
  align-self: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.math-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.math-label--dim { color: var(--muted); }
.math-label--win { color: var(--rust); }
.math-line {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 11px 0;
  border-top: 1px solid #ded6c6;
}
.math-card--win .math-line { border-top-color: #ecdcce; }
.math-line strong { color: var(--ink); }
.math-foot { margin-top: auto; }
.math-payoff { margin: 24px 0 6px; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.25; }
.math-payoff--ink { color: var(--ink); }
.math-payoff--win { color: var(--rust); }
.math-cap { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); margin: 0; }

/* ---- autor ---- */
.author { display: flex; flex-wrap: wrap; gap: 44px clamp(32px, 5vw, 80px); align-items: center; }
.author__figure {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 360px;
  margin: 0;
  padding: 14px 14px 8px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  box-shadow: 0 22px 46px -24px rgba(23, 31, 38, 0.5);
  transform: rotate(-1.6deg);
}
.author__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.author__caption {
  font-family: var(--body);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
  padding: 14px 6px 4px;
}
.author__body { flex: 1 1 420px; min-width: 0; }
.author__text {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 56ch;
}
.author__text p { margin: 0; }

/* ---- FAQ ---- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rust); }
.faq__sign { color: var(--rust); font-size: 20px; }
.faq__sign::after { content: "+"; }
.faq details[open] .faq__sign::after { content: "\2013"; }
.faq__a { font-size: 15px; line-height: 1.75; color: var(--ink-soft); max-width: 62ch; margin: 0 0 26px; }

/* ---- último llamado + footer ---- */
.lastcall { background: var(--steel); color: var(--steel-text); text-align: center; }
.lastcall__kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--steel-accent);
  margin: 0 0 24px;
}
.lastcall__h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.2;
  margin: 0 auto;
  max-width: 20ch;
}
.lastcall__p {
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(236, 231, 221, 0.72);
  max-width: 54ch;
  margin: 22px auto 0;
}
.footer {
  background: var(--steel);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(236, 231, 221, 0.45);
  text-align: center;
}
.footer__inner { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px) 42px; line-height: 1.9; }

/* ---- popup ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 31, 38, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -24px rgba(23, 31, 38, 0.6);
  padding: 40px 44px 36px;
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.is-open .modal__card { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  transition: color .15s ease, background .15s ease;
}
.modal__close:hover { color: var(--rust); background: rgba(207, 75, 22, 0.08); }
.modal__badge {
  display: block;
  width: 138px;
  height: auto;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(23, 31, 38, 0.5);
}
.modal__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 14px;
}
.modal__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
}
.modal__title em { font-style: italic; color: var(--rust); }
.modal__text { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 26px; }
.modal__cta {
  display: block;
  width: 100%;
  background: var(--rust);
  color: #fdf7f1;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 17px 20px;
  border-radius: 2px;
  transition: background .16s ease;
}
.modal__cta:hover { background: var(--rust-dark); color: #fdf7f1; }
.modal__alt {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.modal__alt a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .offer__figure { position: static; top: auto; }
}
/* el nombre del producto es largo: los enlaces se ocultan antes que el nav se parta en dos filas */
@media (max-width: 1020px) {
  .nav__link { display: none; }
}
@media (max-width: 720px) {
  .wrap-pad { padding-block: 68px; }
}
@media (max-width: 620px) {
  /* las rayitas del eyebrow quedan sueltas cuando el texto se parte en dos líneas */
  .hero__eyebrow span { display: none; }
  .rules-grid { grid-template-columns: 1fr; }
  .math-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .modal__card { padding: 36px 26px 30px; }
  .modal__title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav__link, .topbar__link, .faq summary,
  .modal, .modal__card, .modal__close, .modal__cta { transition: none; }
}
