/* ============================================================
   El Mapa de Salida — Landing
   Page-specific layout on top of the Alkimia design system
   (assets/css/colors_and_type.css)
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
  background: var(--forest);
}
* { box-sizing: border-box; }

body {
  font-family: var(--serif-body);
  color: var(--bone);
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }

input::placeholder { color: #4A7861; }

img { display: block; width: 100%; height: auto; }

/* ── Announcement bar ───────────────────────────────────────── */
.announce {
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border-bottom: 1px solid var(--moss);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  padding: 0 16px;
}
.announce--confirm { color: var(--leaf); }

/* ── Shared layout primitives ───────────────────────────────── */
.wrap {
  max-width: var(--col-w);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 56px;
  align-items: center;
}
.split--reverse-mobile { }

/* ── Section: Hero ──────────────────────────────────────────── */
.hero { padding: 56px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-areas: "kicker" "h1" "visual" "lede" "form";
}
.hero-grid > .kicker--hero { grid-area: kicker; }
.hero-grid > h1 { grid-area: h1; }
.hero-grid > .hero-visual { grid-area: visual; margin-top: 40px; }
.hero-grid > .lede { grid-area: lede; }
.hero-grid > .signup-form { grid-area: form; }

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "kicker visual"
      "h1 visual"
      "lede visual"
      "form visual";
    gap: 56px;
    align-items: center;
  }
  .hero-grid > .hero-visual { margin-top: 0; }
}

.hero h1 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.02;
  letter-spacing: var(--ls-display);
  color: var(--bone);
  margin: 0;
}
.hero h1 em {
  font-family: var(--serif-body);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}
.hero .lede {
  font-family: var(--serif-body);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--bone);
  opacity: 0.88;
  max-width: 46ch;
  margin: 28px 0 0;
}
.hero .lede strong { font-weight: 500; }

.hero-visual {
  position: relative;
  border: 1px solid var(--gold);
  padding: 10px;
  background: var(--bottle);
  box-shadow: var(--shadow-mockup);
}

/* ── Signup form ─────────────────────────────────────────────── */
.signup-form {
  margin-top: 36px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signup-form .fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.signup-form input[type="email"],
.signup-form input[type="text"] {
  flex: 1 1 240px;
  min-width: 0;
  width: 100%;
  font-family: var(--serif-body);
  font-size: 16px;
  color: var(--bone);
  border: 1px solid var(--moss);
  border-radius: var(--r-1);
  padding: 16px 18px;
  outline: none;
}
.signup-form--on-bottle input { background: var(--bottle); }
.signup-form--on-forest input { background: var(--forest); }
.signup-form input:focus { border-color: var(--gold); }

.signup-form .note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--ls-mono-sm);
  text-transform: uppercase;
  color: var(--sage);
  line-height: 1.7;
}
.signup-form .error {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--ls-mono-sm);
  text-transform: uppercase;
  color: var(--rust);
  line-height: 1.7;
  display: none;
}
.signup-form.has-error .error { display: block; }
.signup-form.has-error input[type="email"] { border-color: var(--rust); }

[hidden] { display: none !important; }

/* Kicker spacing modifiers (t-kicker itself comes from the design system) */
.kicker--hero     { margin-bottom: 28px; }
.kicker--villain,
.kicker--after     { margin-bottom: 24px; }
.kicker--chapters { margin-bottom: 20px; }

/* Signup button — matches the design system's btn-primary look at a fixed size */
.btn-signup {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--ls-mono-sm);
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold-deep);
  box-shadow: inset 0 -2px 0 var(--gold-deep);
  border-radius: var(--r-2);
  padding: 18px 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--ease-button);
}
.btn-signup:hover { background: var(--gold-soft); }
.btn-signup:disabled { opacity: 0.6; cursor: default; }
.btn-signup .arr {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1;
}

/* ── Section: El villano (no tener un plan) ─────────────────── */
.villain { background: var(--ink); padding: 88px 0; border-top: 1px solid var(--moss); }
.villain img { border: 1px solid var(--moss); }
.villain h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  color: var(--bone);
  margin: 0;
}
.villain p {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bone);
  opacity: 0.88;
  max-width: 52ch;
  margin: 24px 0 0;
}
.villain .callout-quote { margin-top: 32px; }

/* ── Section: Chapters ───────────────────────────────────────── */
.chapters { background: var(--bone); color: var(--ink); padding: 88px 0; }
.chapters-head {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.chapters-head h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  max-width: 24ch;
}
.chapters-head p {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.8;
  max-width: 34ch;
  margin: 0;
}
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
}
.chapter-card {
  background: var(--bone);
  padding: 28px 26px;
  box-shadow: 0 0 0 1px var(--paper-line);
}
.chapter-card .num {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--gold-deep);
  line-height: 1;
}
.chapter-card .title {
  font-family: var(--serif-alt);
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 14px;
}
.chapter-card .func {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 12px;
}
.chapter-card--opening {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chapter-card--opening .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--gold-deep);
}
.chapter-card--opening .quote {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 12px;
}

/* ── Section: La fecha ──────────────────────────────────────── */
.after { padding: 88px 0; }
.after h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  color: var(--bone);
  margin: 0;
}
.after h2 em {
  font-family: var(--serif-body);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}
.after ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  max-width: 52ch;
  list-style: none;
  padding: 0;
}
.after li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.after li::before {
  content: "✦";
  color: var(--gold);
  font-size: 13px;
  line-height: 1.7;
}
.after li span {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bone);
  opacity: 0.9;
}
.after img { border: 1px solid var(--moss); }

/* ── Section: CTA final ─────────────────────────────────────── */
.cta-final { background: var(--bottle); padding: 88px 0; border-top: 1px solid var(--moss); border-bottom: 1px solid var(--moss); }
.cta-final h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
  color: var(--bone);
  margin: 0;
}
.cta-final p {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--bone);
  opacity: 0.88;
  max-width: 44ch;
  margin: 20px 0 0;
}
.cta-final img { border: 1px solid var(--moss); }

/* ── Social proof ───────────────────────────────────────────── */
.social-proof {
  background: var(--forest);
  padding: 40px 20px;
  text-align: center;
}
.social-proof p {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--bone);
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--ink); border-top: 1px solid var(--moss); padding: 36px 20px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .mark {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--bone);
}
.site-footer .legal {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--sage);
}

/* ============================================================
   Gracias — El Mapa de Salida
   ============================================================ */

.announce--confirm { color: var(--leaf); }

/* ── Section: Gracias hero ──────────────────────────────────── */
.thanks-hero { padding: 64px 0 56px; }
.thanks-hero .split { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.thanks-hero h1 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: var(--ls-display);
  color: var(--bone);
  margin: 0;
}
.thanks-hero h1 em {
  font-family: var(--serif-body);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}
.thanks-hero .lede {
  font-family: var(--serif-body);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--bone);
  opacity: 0.88;
  max-width: 44ch;
  margin: 24px 0 0;
}
.thanks-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 34px;
}
.thanks-hero .cta-row .note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--ls-mono-sm);
  text-transform: uppercase;
  color: var(--sage);
  line-height: 1.7;
}
.thanks-hero .tip {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--bone);
  opacity: 0.75;
  max-width: 46ch;
  margin: 30px 0 0;
}
.thanks-hero-visual {
  border: 1px solid var(--gold);
  padding: 10px;
  background: var(--bottle);
  box-shadow: var(--shadow-mockup);
  max-width: 420px;
  justify-self: center;
}

/* ── Section: Oferta suave · Plan de Salida ─────────────────── */
.offer { background: var(--ink); border-top: 1px solid var(--moss); padding: 72px 0; }
.offer-wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.offer-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 26px;
}
.offer-card {
  background: var(--bottle);
  border: 1px solid var(--moss);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}
.offer-card .t-kicker { margin-bottom: 16px; }
.offer-card h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  color: var(--bone);
  margin: 0;
}
.offer-card p {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bone);
  opacity: 0.85;
  margin: 18px 0 0;
  max-width: 46ch;
}
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}
.offer-list li { display: flex; gap: 12px; align-items: flex-start; }
.offer-list li::before {
  content: "✦";
  color: var(--gold);
  font-size: 12px;
  line-height: 1.7;
}
.offer-list li span {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone);
  opacity: 0.88;
}
.offer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
}
.offer-cta-row .hint {
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--sage);
  max-width: 32ch;
}
.btn-outline {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: var(--ls-mono-sm);
  text-transform: uppercase;
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--moss);
  border-radius: var(--r-2);
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color var(--ease-button), color var(--ease-button);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-outline .arr {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1;
}
.offer-card img { border: 1px solid var(--moss); }
