/* ============================================================
   Alkimia · Landing "Recupera el control" · stylesheet
   Design system: "El sistema de un billete vintage."
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Marcellus&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Greens (canvas / surfaces) */
  --ink:          #0B1611;
  --forest:       #14352A;
  --bottle:       #1C4636;
  --moss:         #2A5A47;
  --sage:         #4A7861;

  /* Gold (scarce accent) */
  --gold:         #C9A24B;
  --gold-soft:    #D9B96A;
  --gold-deep:    #8F6F2A;

  /* Cream (inverse, aged paper) */
  --bone:         #F1E7CC;
  --paper:        #E6D9B5;
  --paper-line:   #C9B98A;

  /* State */
  --rust:         #B85C3A;
  --leaf:         #6FA86F;

  /* Typography */
  --serif-display: "Cinzel", "Times New Roman", serif;
  --serif-alt:     "Marcellus", "Times New Roman", serif;
  --serif-body:    "Lora", Georgia, serif;
  --mono:          "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ls-display: -0.005em;
  --ls-kicker:   0.22em;
  --ls-micro:    0.16em;
  --ls-mono-sm:  0.14em;

  --r-0:    0px;
  --r-1:    2px;
  --r-2:    4px;
  --r-3:    8px;
  --r-pill: 999px;

  --col-w:      1160px;
  --col-narrow:  820px;
  --announce-h:   44px;

  --shadow-mockup: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-sticky: 0 18px 40px rgba(0, 0, 0, 0.45);

  --ease-button:  0.15s ease;
  --ease-reveal:  0.8s cubic-bezier(.2,.7,.2,1);
  --ease-hairline: 1.2s cubic-bezier(.2,.7,.1,1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--bone);
  font-family: var(--serif-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 96px;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
input { font: inherit; color: inherit; }
input::placeholder { color: var(--sage); opacity: 1; }
img { max-width: 100%; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.t-display {
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: var(--ls-display);
  color: var(--bone);
  margin: 0;
}
.t-alt { font-family: var(--serif-alt); font-weight: 400; line-height: 1.1; color: var(--bone); margin: 0; }
.t-lede { font-family: var(--serif-body); line-height: 1.55; color: var(--bone); opacity: 0.88; margin: 0; }
.t-lede em { font-style: italic; color: var(--gold-soft); }
.t-lede strong { font-weight: 500; opacity: 1; }
.t-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.t-kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.col        { max-width: var(--col-w);      margin: 0 auto; padding: 0 20px; }
.col-narrow { max-width: var(--col-narrow); margin: 0 auto; padding: 0 20px; }
@media (min-width: 600px) {
  .col, .col-narrow { padding: 0 32px; }
}
.section-default { position: relative; padding: 80px 0; background: var(--forest); }
@media (min-width: 960px) { .section-default { padding: 128px 0; } }
section.bone { background: var(--bone); color: var(--ink); }
section.bone .t-kicker,
section.bone .t-kicker::before { color: var(--gold-deep); background: var(--gold-deep); }
section.bone .t-display { color: var(--ink); }
section.bone .t-lede    { color: var(--ink); opacity: 1; }
section.bone .t-lede em { color: var(--gold-deep); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--ease-button), background var(--ease-button),
              color var(--ease-button), border-color var(--ease-button), box-shadow var(--ease-button);
  border-radius: var(--r-2);
  text-decoration: none;
}
.btn .arr { font-family: var(--serif-body); font-size: 16px; line-height: 1; transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-deep);
  box-shadow: inset 0 -2px 0 var(--gold-deep);
}
.btn-primary:hover  { background: var(--gold-soft); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--bone); border-color: var(--moss); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-large { padding: 18px 28px; font-size: 13px; }
@media (min-width: 960px) {
  .btn       { font-size: 13px; padding: 16px 26px; }
  .btn-large { padding: 22px 36px; font-size: 15px; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--ease-reveal), transform var(--ease-reveal); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   CARDS
   ============================================================ */
.card-alkimia { background: var(--bottle); border: 1px solid var(--gold); padding: 32px; position: relative; }
.card-alkimia::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  pointer-events: none;
}
.card-testimonial { background: var(--bone); color: var(--ink); border: 1px solid var(--paper-line); padding: 28px; position: relative; }
.card-testimonial::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--paper-line); pointer-events: none; }
.callout-quote {
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--bottle) 35%, transparent);
  padding: 24px 24px 24px 28px;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.35;
  letter-spacing: var(--ls-display);
  color: var(--bone);
}

/* ============================================================
   ANNOUNCE BAR + NAV
   ============================================================ */
.announce {
  position: fixed; top: 0; left: 0; right: 0; min-height: var(--announce-h); z-index: 60;
  background: var(--ink); border-bottom: 1px solid var(--moss);
  display: flex; align-items: center; justify-content: center; padding: 10px 16px;
}
.announce p {
  margin: 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro);
  text-transform: uppercase; color: var(--gold); text-align: center; line-height: 1.5;
}
.site-header { position: absolute; top: var(--announce-h); left: 0; right: 0; z-index: 40; }
.site-header .col { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; object-fit: contain; display: block; }
.brand span { font-family: var(--serif-display); font-weight: 600; font-size: 13px; letter-spacing: 0.24em; color: var(--bone); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: calc(var(--announce-h) + 92px) 0 64px; background: var(--forest); }
.hero-texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(201,162,75,0.16) 0px, rgba(201,162,75,0.16) 1px, transparent 1px, transparent 9px);
  opacity: 0.32;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 50% 18%, #000 0%, transparent 72%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(38px, 5vw, 60px); align-items: center;
}
.hero-h1 { font-size: clamp(36px, 8.5vw, 70px); line-height: 1.06; margin: 20px 0 0; }
.hero-h1 em { font-family: var(--serif-body); font-style: italic; font-weight: 400; color: var(--gold); }
.hero-lede { margin: 22px 0 0; max-width: 46ch; font-size: clamp(16px, 3.6vw, 19px); }
.hero-sub { margin: 14px 0 0; font-family: var(--serif-body); font-size: 15px; line-height: 1.6; color: var(--sage); max-width: 44ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-checks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-checks li { font-family: var(--mono); font-size: 10.5px; letter-spacing: var(--ls-mono-sm); text-transform: uppercase; color: var(--sage); }
.hero-checks li span { color: var(--leaf); margin-right: 7px; }

/* ── Widget ──────────────────────────────────────────────── */
.widget-wrap { position: relative; }
.widget-tag {
  position: absolute; top: -12px; left: 20px; z-index: 2; background: var(--forest); padding: 0 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold);
}
.widget-card { padding: 32px 22px 26px; box-shadow: var(--shadow-mockup); }
.widget-q { margin: 0; font-family: var(--serif-alt); font-size: clamp(19px, 4.6vw, 22px); line-height: 1.3; color: var(--bone); }
.widget-sub { margin: 8px 0 0; font-family: var(--serif-body); font-size: 14px; line-height: 1.6; color: var(--sage); }
.widget-sub em { color: var(--bone); font-style: italic; }
.amount-row {
  margin-top: 22px; display: flex; align-items: baseline; gap: 10px;
  border-bottom: 1px solid var(--moss); padding-bottom: 12px;
}
.amount-row .cur { font-family: var(--serif-display); font-weight: 600; font-size: clamp(26px, 7vw, 32px); color: var(--gold); line-height: 1; }
.amount-row input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font-family: var(--serif-display); font-weight: 600; font-size: clamp(26px, 7vw, 32px); color: var(--bone); padding: 0;
}
.amount-row .unit { font-family: var(--mono); font-size: 10px; letter-spacing: var(--ls-micro); color: var(--sage); }
.cat-label { margin: 18px 0 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--sage); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: var(--ls-micro); text-transform: uppercase;
  padding: 11px 13px; cursor: pointer; min-height: 40px; border-radius: var(--r-pill);
  transition: all .15s ease; line-height: 1;
  border: 1px solid var(--moss); background: transparent; color: var(--sage);
}
.chip.active { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.est-answer { margin-top: 20px; border-left: 2px solid var(--gold); padding: 2px 0 2px 16px; }
.est-answer p:first-child { margin: 0; font-family: var(--serif-alt); font-size: 17px; line-height: 1.4; color: var(--bone); }
.est-answer p:last-child { margin: 8px 0 0; font-family: var(--serif-body); font-size: 14px; line-height: 1.6; color: var(--sage); }
.widget-foot { position: relative; margin-top: 24px; border-top: 1px solid var(--moss); padding-top: 20px; }
.widget-hint { margin: 12px 0 0; text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--sage); }
.widget-hint.ready { color: var(--leaf); }
.widget-switch {
  display: block; width: 100%; margin-top: 14px; background: transparent; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold);
  text-decoration: underline; text-underline-offset: 4px;
}

/* ============================================================
   MIRROR / BALANCE CHART
   ============================================================ */
.balance-card { border: 1px solid var(--moss); background: var(--bottle); padding: 24px 18px 20px; }
.balance-label { margin: 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold); }
.balance-sub { margin: 6px 0 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--sage); }
.balance-bars { display: flex; align-items: flex-end; gap: 4px; height: clamp(110px, 26vw, 150px); margin-top: 22px; }
.balance-bars div { flex: 1; }
.balance-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; border-top: 1px solid var(--moss); padding-top: 12px; }
.balance-foot span { font-family: var(--mono); font-size: 9px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--sage); }
.balance-foot span.warn { color: var(--rust); text-align: right; }
.balance-note { margin: 16px 0 0; font-family: var(--serif-body); font-size: 15px; line-height: 1.6; color: var(--sage); }
.balance-note em { color: var(--bone); font-style: italic; }

/* ============================================================
   STEPS (3 pasos)
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(28px, 4vw, 36px); margin-top: 48px; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step-num { font-family: var(--serif-display); font-weight: 600; font-size: 40px; line-height: 1; color: var(--gold); }
.step h3 { font-size: clamp(20px, 4.4vw, 23px); }
.step p { margin: 0; font-family: var(--serif-body); font-size: 15px; line-height: 1.65; color: var(--sage); }
.phone-frame { margin-top: auto; max-width: 290px; width: 100%; padding: 7px; background: #0C0C0C; border-radius: 38px; box-shadow: var(--shadow-mockup); }
.phone-frame .screen { overflow: hidden; border-radius: 32px; aspect-ratio: 739/1460; background: var(--ink); }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.phone-frame.small { max-width: 300px; }
.phone-frame.small .screen { border-radius: 34px; }
.phone-caption { margin: 16px 0 0; text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--sage); }

/* ============================================================
   HERRAMIENTAS / DECISIONES
   ============================================================ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 44px; align-items: start; }
.tools-box { border: 1px solid var(--moss); background: var(--bottle); padding: 26px 22px; }
.tools-box p.eyebrow { margin: 0 0 20px; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold); }
.tools-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tools-list li { display: flex; gap: 12px; align-items: flex-start; }
.tools-list li .ck { color: var(--leaf); font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.tools-list li span:last-child { font-family: var(--serif-body); font-size: 16px; line-height: 1.5; color: var(--bone); }
.decision-card { padding: 24px 22px; }
.decision-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.decision-head .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold); }
.decision-head .meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--sage); }
.decision-card h3 { margin: 12px 0 0; font-size: clamp(21px, 4.8vw, 26px); position: relative; }
.decision-card p { margin: 8px 0 0; font-family: var(--serif-body); font-size: 15px; line-height: 1.65; color: var(--sage); position: relative; }

/* ============================================================
   SCREENSHOTS GRID
   ============================================================ */
.shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(24px, 4vw, 34px); margin-top: 48px; justify-items: center; }
.shots-grid figure { margin: 0; max-width: 300px; width: 100%; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 44px; }
.card-testimonial p { margin: 0; position: relative; font-family: var(--serif-body); font-size: 16px; line-height: 1.7; color: var(--ink); }
.card-testimonial cite { margin: 18px 0 0; display: block; position: relative; font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold-deep); }

/* ============================================================
   SYSTEM GRID (Herramientas/Hábitos/Decisiones/Progreso)
   ============================================================ */
.system-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--moss); border: 1px solid var(--moss); margin-top: 44px; }
.system-grid > div { background: var(--forest); padding: 28px 22px; }
.system-grid .n { font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold); }
.system-grid h3 { margin: 14px 0 8px; font-size: 23px; }
.system-grid p { margin: 0; font-family: var(--serif-body); font-size: 15px; line-height: 1.6; color: var(--sage); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 36px; border-top: 1px solid var(--paper-line); }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: transparent; border: 0; padding: 20px 0; cursor: pointer; text-align: left; min-height: 56px;
}
.faq-q .q-text { font-family: var(--serif-alt); font-size: clamp(17px, 4vw, 20px); line-height: 1.3; color: var(--ink); }
.faq-q .sign { font-family: var(--mono); font-size: 18px; color: var(--gold-deep); flex-shrink: 0; }
.faq-a { margin: 0; padding: 0 0 22px; max-width: 62ch; font-family: var(--serif-body); font-size: 16px; line-height: 1.7; color: var(--ink); opacity: 0.82; }
.faq-a[hidden] { display: none; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { padding: clamp(72px, 12vw, 120px) 0; background: var(--ink); border-top: 1px solid var(--moss); }
.final-cta .col-narrow { text-align: center; }
.final-cta img { width: 70px; height: 70px; object-fit: contain; display: block; margin: 0 auto 26px; }
.final-cta h2 { font-size: clamp(30px, 7.5vw, 56px); line-height: 1.08; }
.final-cta .lede { margin: 20px auto 0; max-width: 52ch; font-size: clamp(16px, 3.6vw, 19px); }
.final-cta .cta-row { display: flex; justify-content: center; margin-top: 32px; }
.final-cta .micro { margin: 16px 0 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--sage); line-height: 1.7; }
.timeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--moss); border: 1px solid var(--moss); margin-top: 48px; text-align: left; }
.timeline-grid > div { background: var(--ink); padding: 20px 18px; }
.timeline-grid .t { font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold); }
.timeline-grid p { margin: 8px 0 0; font-family: var(--serif-body); font-size: 14px; line-height: 1.6; color: var(--sage); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); border-top: 1px solid var(--moss); padding: 32px 0 44px; }
.site-footer .col { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 24px; object-fit: contain; display: block; opacity: 0.8; }
.footer-brand span { font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--sage); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--sage); }

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 12px; z-index: 50;
  pointer-events: none; opacity: 0; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.sticky-bar.visible { pointer-events: auto; opacity: 1; transform: translateY(0); }
.sticky-bar .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--bottle); border: 1px solid var(--gold); border-radius: var(--r-3);
  box-shadow: var(--shadow-sticky); padding: 14px 16px;
}
.sticky-bar p { margin: 0; flex: 1 1 160px; font-family: var(--serif-alt); font-size: clamp(15px, 3.4vw, 19px); line-height: 1.3; color: var(--bone); }
.sticky-bar .btn { flex: 0 1 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .site-header .col { height: 62px; }
}
