/* ==========================================================================
   Vende por WhatsApp sin improvisar — página de ventas
   Tokens idénticos a src/styles/tokens.css de la aplicación (modo claro).
   No se han inventado colores nuevos: esta página usa la misma paleta,
   tipografía y radios que la app y la guía, para sentirse parte del mismo
   producto.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url('fonts/inter-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
}

:root {
  /* — paleta: idéntica a src/styles/tokens.css — */
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-soft: #EFF2F6;
  --text: #0F2D4A;
  --text-soft: #55697E;
  --text-muted: #8296A9;
  --border: #DFE5EC;
  --border-strong: #C4CFDB;
  --accent: #1B5FA8;
  --accent-soft: #E7F0F9;
  --accent-text: #14497F;
  --radius: 10px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* — ritmo vertical, en clamp() para que fluya entre 360px y 1440px — */
  --space-section: clamp(48px, 8vw, 112px);
  --space-block: clamp(20px, 4vw, 40px);
  --container: 1120px;
  --container-narrow: 760px;
}

/* ============================== reset base ============================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga";
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3 { color: var(--text); line-height: 1.18; margin: 0; font-weight: 700; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
ol { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* accesibilidad: saltar al contenido */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================== layout base ============================= */

.section { padding: var(--space-section) 20px; }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-inner--narrow { max-width: var(--container-narrow); }
.section--soft { background: var(--surface-soft); }
.section--accent { background: var(--accent-soft); }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

h2.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -.015em;
  max-width: 34ch;
}
.section-lead {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--text-soft);
  max-width: 62ch;
  margin-top: 12px;
}

.rule {
  height: 1px;
  background: var(--border);
  border: none;
  margin: var(--space-block) 0;
}

/* patrón texto + captura, alternable */
.pair {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 860px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .pair--reverse .pair-media { order: -1; }
}
.pair-media { display: flex; justify-content: center; }

/* marco de captura: mismo tratamiento que .fig-frame de la guía */
.shot-frame {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(10px, 2vw, 18px);
  display: inline-flex;
}
.shot-frame img {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.shot-frame--lg img { width: min(440px, 78vw); }
.shot-frame--md img { width: min(300px, 70vw); }
.shot-frame--sm img { width: min(260px, 62vw); }

/* ============================== botones ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-text); }
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-soft); color: var(--text); }

/* ============================== hero ============================= */

.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}
.wordmark {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; display: block;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: -.025em;
  max-width: 16ch;
}
.hero-sub {
  font-size: clamp(16.5px, 1.9vw, 19px);
  color: var(--text-soft);
  max-width: 46ch;
  margin-top: 18px;
}
.hero-cta { margin-top: 30px; }
.hero-price { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--text); }
.hero-access { margin-top: 2px; font-size: 13.5px; color: var(--text-soft); }
.hero-secondary {
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-text);
  background: none; border: none; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  max-height: clamp(320px, 46vw, 480px);
}
.hero-visual img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-visual::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg) 96%);
  pointer-events: none;
}

/* ============================== problema / antes-después ============================= */

.problem-copy { max-width: 62ch; font-size: clamp(16.5px, 1.7vw, 18.5px); }
.problem-copy p { color: var(--text-soft); }
.problem-copy p:last-of-type {
  color: var(--text);
  font-weight: 600;
}

.compare-table {
  width: 100%;
  margin-top: var(--space-block);
  border-collapse: separate;
  border-spacing: 0 10px;
}
.compare-table caption { text-align: left; margin-bottom: 12px; }
.compare-table th {
  font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  text-align: left; padding: 0 16px 8px;
}
.compare-table th.is-before { color: var(--text-soft); }
.compare-table th.is-after { color: var(--accent); }
.compare-table td {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px;
  font-size: 15px;
  vertical-align: top;
}
.compare-table td.is-before { color: var(--text-soft); border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; }
.compare-table td.is-after { color: var(--text); font-weight: 500; background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 1px solid var(--border); }

@media (max-width: 640px) {
  .compare-table, .compare-table thead, .compare-table tbody, .compare-table tr, .compare-table td {
    display: block; width: 100%;
  }
  .compare-table thead { display: none; }
  .compare-table tr { margin-bottom: 12px; }
  .compare-table td { border-radius: var(--radius-sm) !important; border: 1px solid var(--border) !important; margin-bottom: 6px; }
  .compare-table td.is-before::before { content: "Memoria + chat — "; font-weight: 600; color: var(--text-soft); }
  .compare-table td.is-after::before { content: "Sistema organizado — "; font-weight: 600; color: var(--accent-text); }
}

/* ============================== demostración grande ============================= */

.demo-hero { text-align: center; }
.demo-hero .section-inner--narrow { margin: 0 auto; }
.demo-hero .shot-frame { margin: var(--space-block) auto 0; }
.demo-hero-caption {
  max-width: 46ch; margin: 18px auto 0;
  color: var(--text-soft); font-size: 15px;
}
.demo-cta { margin-top: clamp(28px, 4vw, 40px); }
.demo-cta-price { margin-top: 10px; font-size: 13.5px; color: var(--text-soft); }

/* ============================== cómo funciona ============================= */

.steps {
  margin-top: var(--space-block);
  display: grid;
  gap: 18px;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 13.5px; color: var(--text-soft); }

/* ============================== para quién / dos columnas ============================= */

.who-grid {
  display: grid;
  gap: 20px;
  margin-top: var(--space-block);
}
@media (min-width: 720px) { .who-grid { grid-template-columns: 1fr 1fr; } }
.who-card {
  border-radius: var(--radius);
  padding: 24px 26px;
  border: 1px solid var(--border);
}
.who-card--yes { background: var(--accent-soft); border-color: var(--accent-soft); }
.who-card--no { background: var(--surface); }
.who-card h3 { font-size: 15px; margin-bottom: 14px; }
.who-card--yes h3 { color: var(--accent-text); }
.who-card--no h3 { color: var(--text-soft); }
.who-card li {
  font-size: 15px;
  padding: 8px 0 8px 22px;
  position: relative;
  border-top: 1px solid rgba(0,0,0,.06);
}
.who-card li:first-child { border-top: none; }
.who-card--yes li::before { content: "＋"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.who-card--no li::before { content: "－"; position: absolute; left: 0; color: var(--text-muted); font-weight: 700; }

/* ============================== qué incluye ============================= */

.includes-grid {
  display: grid;
  gap: 20px;
  margin-top: var(--space-block);
}
@media (min-width: 720px) { .includes-grid { grid-template-columns: repeat(3, 1fr); } }
.includes-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.includes-card h3 {
  font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.includes-card li {
  font-size: 15px; padding: 6px 0;
  border-top: 1px solid var(--border);
}
.includes-card li:first-child { border-top: none; }

/* ============================== precio / garantía / cta final ============================= */

.price-box {
  margin-top: var(--space-block);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  max-width: 460px;
  text-align: center;
}
.price-guarantee {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.price-guarantee-body { color: var(--text-soft); font-size: 14.5px; margin-bottom: 22px; }
.price-amount { font-size: clamp(32px, 5vw, 42px); font-weight: 700; letter-spacing: -.02em; }
.price-currency { font-size: 16px; font-weight: 600; color: var(--text-soft); vertical-align: top; margin-right: 2px; }
.price-mode { color: var(--text-soft); font-size: 14.5px; margin-top: 4px; margin-bottom: 22px; }
.price-box .btn { width: 100%; }

/* ============================== faq ============================= */

.faq-list { margin-top: var(--space-block); border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: inherit; font-weight: inherit; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-q-icon {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  transition: transform .15s ease;
}
.faq-q[aria-expanded="true"] .faq-q-icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-a {
  padding: 0 4px 18px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 68ch;
}
.faq-a[hidden] { display: none; }

/* ============================== footer ============================= */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 20px 40px;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-inner p {
  font-size: 12.5px;
  color: var(--text-soft);
  max-width: 74ch;
  margin-bottom: 10px;
}
.footer-brand { font-size: 13px; font-weight: 600; color: var(--text-soft); margin-top: 18px; }
