/* ============================================================
   Alkimia · landing.css
   Mobile first: todo lo base es para 375px; los @media min-width
   solo agregan. El lenguaje visual viene de la app: marco dorado
   doble, monedas, Cinzel + Lora + JetBrains Mono.
   ============================================================ */

:root {
  --ink:       #0B1611;
  --forest:    #14352A;
  --bottle:    #1C4636;
  --moss:      #2F6650;
  --gold:      #C9A24B;
  --gold-soft: #DDBF74;
  --gold-deep: #6F5418;
  --gold-edge: #8F6F2A;
  --bone:      #F1E7CC;
  --paper:     #E6D9B5;
  --line:      #C9B98A;

  /* Texto secundario con contraste AA sobre cada fondo */
  --muted-dark:  #BCCBB9;
  --muted-light: #55523F;

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

  --gutter: 20px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--forest);
  color: var(--bone);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* Secciones ------------------------------------------------- */
.sec { padding: 56px 0; }
.sec--bone { background: var(--bone); color: var(--ink); }
.sec--ink { background: var(--ink); }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.label::before { content: ""; flex: none; width: 26px; height: 1px; background: currentColor; }
.sec--bone .label { color: var(--gold-deep); }

h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.14; letter-spacing: -.005em; }
h2 { font-size: clamp(27px, 7.6vw, 46px); }
h1 em, h2 em { font-family: var(--body); font-style: italic; font-weight: 400; color: var(--gold-soft); }
.sec--bone h2 em { color: var(--gold-deep); }

.lede { font-size: 18px; color: var(--muted-dark); margin-top: 14px; }
.sec--bone .lede { color: var(--muted-light); }

/* Botón ----------------------------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 14px 12px;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold-edge);
  border-radius: 4px;
  box-shadow: inset 0 -3px 0 var(--gold-edge);
  font: 500 clamp(13.5px, 4vw, 15px)/1.2 var(--mono);
  letter-spacing: .06em;
  white-space: nowrap;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--gold-soft); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, summary:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.micro {
  margin-top: 12px;
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .04em;
  text-align: center;
  color: var(--muted-dark);
}
.sec--bone .micro { color: var(--muted-light); }

.stars { color: var(--gold); letter-spacing: .08em; font-size: 15px; line-height: 1; }
.sec--bone .stars { color: var(--gold-deep); }
.ratings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 15px;
  color: var(--muted-dark);
}
.ratings b { color: var(--bone); font-weight: 600; }
.sec--bone .ratings { color: var(--muted-light); }
.sec--bone .ratings b { color: var(--ink); }

/* Nav ------------------------------------------------------- */
.nav { background: var(--ink); border-bottom: 1px solid rgba(201, 162, 75, .25); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand span { font: 600 15px/1 var(--display); letter-spacing: .14em; }
.nav-handle { font: 500 12px/1 var(--mono); color: var(--muted-dark); }

/* Hero ------------------------------------------------------ */
.hero { padding: 26px 0 0; overflow: hidden; position: relative; }
.hero h1 { font-size: clamp(31px, 9vw, 60px); margin-top: 16px; }
.hero h1 em { display: block; }
.hero .lede { margin-top: 14px; }
.hero .btn { margin-top: 22px; }

.stage {
  position: relative;
  height: 404px;
  margin-top: 32px;
  /* Corta solo abajo: los teléfonos laterales pueden salirse a los lados */
  clip-path: inset(-40px -100vw 0 -100vw);
}
.stage::after {
  content: "";
  position: absolute;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  bottom: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(20, 53, 42, 0), var(--forest) 92%);
  pointer-events: none;
  z-index: 3;
}
.phone {
  background: #050A07;
  border: 1px solid rgba(201, 162, 75, .45);
  border-radius: 30px;
  padding: 7px;
  box-shadow: var(--shadow);
}
.phone img { width: 100%; border-radius: 23px; }
.stage .phone { position: absolute; top: 0; left: 50%; }
.stage .p-main { width: 216px; margin-left: -108px; z-index: 2; }
.stage .p-side { width: 176px; top: 34px; opacity: .9; z-index: 1; }
.stage .p-left { margin-left: -226px; transform: rotate(-6deg); }
.stage .p-right { margin-left: 50px; transform: rotate(6deg); }

.stage-bubble {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  width: min(300px, 88%);
  transform: translateX(-50%);
}
.shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #F5F0E6; }
.shot img { width: 100%; }

.hero-note {
  position: relative;
  padding-bottom: 28px;
  font: 500 12px/1.5 var(--mono);
  text-align: center;
  color: var(--muted-dark);
}

/* Banda de números ------------------------------------------- */
.stats { background: var(--ink); padding: 22px 0; }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.stats b { display: block; font: 700 clamp(21px, 6vw, 34px)/1.1 var(--body); color: var(--gold); }
.stats span { display: block; margin-top: 4px; font: 500 11.5px/1.3 var(--mono); color: var(--muted-dark); }

/* Carril deslizable ------------------------------------------ */
.rail {
  display: flex;
  gap: 12px;
  margin: 22px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; scroll-snap-align: start; }
.rail-hint { margin-top: 8px; font: 500 12px/1.4 var(--mono); color: var(--muted-dark); }
.sec--bone .rail-hint { color: var(--muted-light); }

.first-proof { padding: 40px 0 44px; }
.first-proof h2 { font-size: clamp(23px, 6.4vw, 34px); }
.first-proof .rail { align-items: flex-start; }
.first-proof .shot { width: 84%; max-width: 340px; }
.link-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--gold-soft);
  text-underline-offset: 4px;
}

/* Dolor ------------------------------------------------------ */
.pains { margin-top: 22px; border-top: 1px solid var(--line); }
.pains li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.4;
}
.pains svg { flex: none; width: 16px; height: 16px; margin-top: 5px; color: var(--gold-deep); }
.pains strong { font-weight: 600; }

/* Sistema ---------------------------------------------------- */
.copy p + p { margin-top: 12px; }
.copy { margin-top: 16px; color: var(--muted-dark); font-size: 18px; }
.copy strong { color: var(--bone); font-weight: 600; }

.quote {
  margin: 26px 0;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}
.quote blockquote { font: italic 400 20px/1.4 var(--body); color: var(--gold-soft); }
.quote figcaption { margin-top: 8px; font: 500 12px/1.4 var(--mono); color: var(--muted-dark); }

/* Marco dorado doble, igual al de la app */
.frame {
  position: relative;
  padding: 26px 22px;
  background: var(--bottle);
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201, 162, 75, .32);
  outline-offset: -7px;
}
.frame .label { margin-bottom: 12px; }
.ticks li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  font-size: 17px;
  line-height: 1.4;
}
.ticks svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--gold); }

/* Cómo funciona ---------------------------------------------- */
.steps { margin-top: 22px; display: grid; gap: 10px; }
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(201, 162, 75, .24);
}
.coin {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid var(--gold-edge);
  color: var(--ink);
  font: 700 17px/1 var(--body);
  grid-row: span 2;
}
.step h3 { font: 400 21px/1.2 var(--alt); }
.step p { font-size: 16px; line-height: 1.45; color: var(--muted-dark); }

.gallery { margin-top: 30px; }
.gallery figure { width: 214px; }
.gallery figcaption { margin-top: 12px; font-size: 15px; line-height: 1.35; color: var(--muted-dark); }
.gallery figcaption b { display: block; color: var(--bone); font-weight: 600; }
.demo-note { margin-top: 10px; font: 500 12px/1.5 var(--mono); color: var(--muted-dark); }

.perks { margin-top: 30px; display: grid; gap: 14px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk svg { flex: none; width: 24px; height: 24px; color: var(--gold); margin-top: 2px; }
.perk b { display: block; font-weight: 600; }
.perk span { font-size: 16px; color: var(--muted-dark); }

/* 7 decisiones ----------------------------------------------- */
.path { margin-top: 26px; position: relative; }
.path::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 20px;
  width: 1px;
  background: var(--moss);
}
.path li {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding-bottom: 22px;
}
.path li:last-child { padding-bottom: 0; }
.path h3 { font: 400 21px/1.22 var(--alt); color: var(--bone); }
.path p { margin-top: 3px; font-size: 16px; line-height: 1.45; color: var(--muted-dark); }
.path .tool {
  display: block;
  margin-top: 6px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .03em;
  color: var(--gold-soft);
}
.path .coin { position: relative; z-index: 1; }
.after-path { margin-top: 30px; }
.after-path .shot { margin-bottom: 8px; }
.shot-cap { margin-bottom: 22px; font: 500 12px/1.4 var(--mono); color: var(--muted-dark); }
.decisions-phone { display: none; }

/* Muro de mensajes ------------------------------------------- */
.wall-head .ratings { margin-top: 14px; }
.wall { margin-top: 24px; display: grid; gap: 12px; }
.wall > * { break-inside: avoid; }
.wall .shot { box-shadow: 0 6px 18px -8px rgba(40, 30, 0, .4); border: 1px solid rgba(143, 111, 42, .25); }
.review {
  padding: 18px;
  background: #FBF6E7;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.review blockquote { font-size: 17px; line-height: 1.45; }
.review figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; }
.review figcaption span { font-weight: 400; color: var(--muted-light); }
.review .stars { display: block; margin-bottom: 8px; }
mark { background: linear-gradient(transparent 55%, #F5E58A 55%); color: inherit; }

.is-collapsed .wall-more { display: none; }
.wall-toggle {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  background: transparent;
  border: 1px solid var(--gold-deep);
  border-radius: 4px;
  color: var(--gold-deep);
  font: 500 14px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.wall-note { margin-top: 14px; font: 500 12px/1.5 var(--mono); color: var(--muted-light); }

.shift { margin-top: 34px; }
.shift h3 { font: 400 23px/1.25 var(--alt); margin-bottom: 12px; }
.shift li { padding: 12px 0; border-top: 1px solid var(--line); }
.shift s { display: block; color: var(--muted-light); font-size: 16px; text-decoration-color: rgba(85, 82, 63, .6); }
.shift b { display: block; font-size: 18px; font-weight: 600; }

/* Precio ----------------------------------------------------- */
.price-card {
  margin-top: 24px;
  padding: 30px 24px 26px;
  background: var(--forest);
  color: var(--bone);
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201, 162, 75, .32);
  outline-offset: -7px;
  box-shadow: var(--shadow);
}
.price-card .brand-line { font: 500 13px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-align: center; }
.price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--gold);
  font-family: var(--body);
  font-weight: 700;
}
.price .cur { font-size: 38px; line-height: 1.5; }
.price .num { font-size: 104px; line-height: 1; letter-spacing: -.02em; }
.price .usd { font: 500 15px/1 var(--mono); align-self: flex-end; margin: 0 0 16px 6px; color: var(--bone); }
.price-sub { text-align: center; font-size: 16px; color: var(--muted-dark); }
.price-card .btn { display: flex; width: 100%; }
.price-card .ticks { margin: 20px 0 22px; padding-top: 14px; border-top: 1px solid rgba(201, 162, 75, .28); }
.pay-note { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; color: var(--muted-dark); }
.pay-note svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.price-proof { margin-top: 18px; justify-content: center; text-align: center; }

/* Garantía --------------------------------------------------- */
.guarantee { display: grid; gap: 20px; justify-items: start; }
.seal {
  display: grid;
  place-items: center;
  align-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201, 162, 75, .4);
  outline-offset: -7px;
  color: var(--gold);
}
.seal b { font: 700 38px/1 var(--body); }
.seal span { font: 500 11.5px/1 var(--mono); letter-spacing: .16em; margin-top: 4px; }
.guarantee h2 { font-size: clamp(25px, 7vw, 38px); }

/* FAQ -------------------------------------------------------- */
.faq-list { margin-top: 22px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; width: 18px; height: 18px; color: var(--gold-deep); transition: transform .2s ease; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-a { padding: 0 0 18px; color: var(--muted-light); font-size: 16.5px; }
.faq-a p + p { margin-top: 10px; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* Cierre ----------------------------------------------------- */
.final { text-align: center; padding-bottom: 64px; }
.final h2 { font-size: clamp(32px, 9.6vw, 62px); }
.final .lede { margin: 14px auto 24px; max-width: 30em; }
.final .ratings { justify-content: center; margin-top: 18px; }

/* Footer ----------------------------------------------------- */
.ftr {
  background: var(--ink);
  border-top: 1px solid rgba(201, 162, 75, .2);
  padding: 30px 0 100px;
  font-size: 14px;
  color: var(--muted-dark);
}
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; }
.ftr-links a { padding: 4px 0; text-underline-offset: 3px; }
.ftr p + p { margin-top: 6px; }

/* Barra fija de compra --------------------------------------- */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--ink);
  border-top: 1px solid var(--gold-edge);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .25s ease;
}
.buybar.is-visible { transform: translateY(0); }
.buybar-in { display: flex; align-items: center; gap: 14px; max-width: 1120px; margin: 0 auto; }
.buybar-price { flex: none; font: 700 26px/1 var(--body); color: var(--gold); }
.buybar-price small { display: block; margin-top: 3px; font: 500 11px/1 var(--mono); color: var(--muted-dark); }
.buybar .btn { min-height: 50px; font-size: 14px; padding: 10px 12px; }
.buybar-name { display: none; }

/* Aparición al hacer scroll (solo con JS y sin reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buybar, .btn { transition: none; }
}

/* ============================================================
   Tablet
   ============================================================ */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .sec { padding: 80px 0; }
  .btn { width: auto; display: inline-flex; padding: 16px 34px; }
  .micro { text-align: left; }
  .final .micro, .price-card .micro { text-align: center; }
  .hero-text { max-width: 620px; }

  .stage { height: 500px; }
  .stage .p-main { width: 260px; margin-left: -130px; }
  .stage .p-side { width: 214px; }
  .stage .p-left { margin-left: -300px; }
  .stage .p-right { margin-left: 86px; }

  .stats span { font-size: 12.5px; }

  .first-proof .rail { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .first-proof .shot { width: 100%; max-width: none; }
  .rail-hint { display: none; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; gap: 10px; align-content: start; }
  .step .coin { grid-row: auto; }

  .perks { grid-template-columns: repeat(3, 1fr); }

  .wall { display: block; columns: 2; column-gap: 14px; }
  .wall > * { margin-bottom: 14px; }
  .is-collapsed .wall-more { display: block; }
  .wall-toggle { display: none; }

  .shift ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }

  #precio h2 { text-align: center; }
  #precio .label { justify-content: center; }
  .price-card { max-width: 520px; margin-left: auto; margin-right: auto; }
  .guarantee { grid-template-columns: auto 1fr; gap: 32px; align-items: start; }

  .buybar-name { display: block; flex: 1; font: 500 15px/1.3 var(--mono); }
  .buybar-name small { display: block; font-size: 12px; color: var(--muted-dark); }
  .buybar .btn { flex: none; width: auto; }
  .buybar-in { justify-content: space-between; }
}

/* ============================================================
   Escritorio
   ============================================================ */
@media (min-width: 1040px) {
  .sec { padding: 104px 0; }
  body { font-size: 18px; }
  .lede, .copy { font-size: 20px; }

  .hero { padding-top: 56px; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .hero h1 { font-size: 56px; }
  .stage { height: 640px; margin-top: 0; }
  .stage .p-main { width: 280px; margin-left: -140px; }
  .stage .p-side { width: 226px; }
  .stage .p-left { margin-left: -280px; }
  .stage .p-right { margin-left: 56px; }
  .stage::after { left: 0; right: 0; }
  .stage-bubble { bottom: 40px; width: 340px; }
  .hero-note { text-align: right; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

  .gallery { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .gallery figure { width: auto; }
  .gallery .phone { border-radius: 24px; padding: 5px; }
  .gallery .phone img { border-radius: 19px; }

  .decisions-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: start; }
  .decisions-phone { display: block; position: sticky; top: 32px; width: 300px; margin: 0 auto; }

  .wall { columns: 3; }
  .shift ul { grid-template-columns: repeat(4, 1fr); }
  .shift li { border-top: 1px solid var(--line); }
}
