:root {
  --fondo: #f6f3ee;
  --fondo-2: #efe9df;
  --superficie: #ffffff;
  --borde: #e6e0d6;
  --texto: #1f1d1a;
  --sutil: #6f6a62;
  --acento: #1f5c4a;
  --acento-suave: #e3f1e9;
  --acento-texto: #ffffff;
  --calido: #c8693e;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #1b1a18;
    --fondo-2: #23211e;
    --superficie: #2a2825;
    --borde: #3a3733;
    --texto: #f1ede6;
    --sutil: #a39d93;
    --acento: #6fc2a3;
    --acento-suave: #1f3329;
    --acento-texto: #10221b;
    --calido: #e59a72;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

main, .barra, .pie { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ── Barra ── */
.barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: calc(env(safe-area-inset-top) + 16px);
  padding-bottom: 8px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 19px; }
.logo img { border-radius: 7px; }
.entrar {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  border: 1px solid var(--borde);
  border-radius: 99px;
  background: var(--superficie);
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
}
.pre {
  color: var(--calido);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin: 0 0 20px; }
h1 em { font-style: italic; color: var(--acento); font-weight: 500; }
.lead { font-size: 19px; color: var(--sutil); margin: 0 0 28px; max-width: 34em; }

.cta { display: grid; gap: 12px; justify-items: start; }
.boton-google, .boton-primario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 15px 24px;
  border-radius: 14px;
  background: var(--acento);
  color: var(--acento-texto);
  box-shadow: 0 6px 20px rgb(31 92 74 / 0.22);
}
.boton-google svg { background: #fff; border-radius: 50%; padding: 2px; width: 24px; height: 24px; }
.boton-google:active, .boton-primario:active { transform: scale(0.98); }
.regalo {
  margin: 0;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--acento-suave);
  color: var(--acento);
}
.regalo.pequeño { border-radius: 12px; text-align: center; }

/* ── Teléfono ── */
.telefono {
  justify-self: center;
  width: min(320px, 100%);
  border-radius: 44px;
  padding: 12px;
  background: #1f1d1a;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.18);
  rotate: 2deg;
}
.pantalla {
  height: 100%;
  border-radius: 34px;
  background: var(--fondo);
  padding: 28px 18px;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow: hidden;
}
.ticket {
  background: #fffdf8;
  color: #2b2925;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  padding: 16px 14px 20px;
  border-radius: 4px;
  rotate: -3deg;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.08);
  mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 50% 100% / 14px 100% repeat-x;
}
.ticket-encabezado { text-align: center; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.1em; }
.ticket-linea, .ticket-total { display: flex; justify-content: space-between; }
.ticket-total { font-weight: 700; font-size: 15px; border-top: 1px dashed #bbb; margin-top: 8px; padding-top: 8px; }
.ticket-pie { margin-top: 10px; font-size: 10px; color: #777; text-align: center; }
.tarjeta-app {
  background: var(--superficie);
  border: 2px solid var(--acento);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.tarjeta-app .chip {
  justify-self: start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: #fbefd9;
  color: #8a5a12;
}
.tarjeta-app .fila { display: flex; justify-content: space-between; color: var(--sutil); }
.tarjeta-app .fila strong { color: var(--texto); font-weight: 600; }
.boton-falso {
  margin-top: 4px;
  text-align: center;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  background: var(--acento);
  color: var(--acento-texto);
}

/* ── Secciones ── */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 28px; max-width: 20em; }

.dolor { border-top: 1px solid var(--borde); }
.dolores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dolores div {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 18px;
  padding: 22px;
  color: var(--sutil);
}
.dolores strong { display: block; color: var(--texto); margin-bottom: 6px; font-size: 18px; }

.pasos ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pasos li { position: relative; }
.pasos .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--acento);
  color: var(--acento-texto);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
}
.pasos h3 { font-size: 22px; margin: 14px 0 6px; }
.pasos p { margin: 0; color: var(--sutil); }

.precio { display: grid; justify-items: center; text-align: center; }
.precio h2 { margin-left: auto; margin-right: auto; }
.plan {
  width: min(420px, 100%);
  background: var(--superficie);
  border: 2px solid var(--acento);
  border-radius: 24px;
  padding: 32px 28px;
  display: grid;
  gap: 16px;
  text-align: left;
}
.plan-nombre { font-weight: 600; color: var(--sutil); }
.plan-precio { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; }
.plan-precio span { font-family: inherit; font-size: 17px; color: var(--sutil); font-weight: 400; font-family: -apple-system, sans-serif; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--acento); font-weight: 700; }
.plan .boton-primario { width: 100%; }

.autora {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  background: var(--fondo-2);
  border-radius: 28px;
  padding: 36px;
  margin: 24px 0;
}
.autora-marca {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--calido);
  color: #fff;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}
.autora p { margin: 0 0 12px; max-width: 40em; }
.enlace { color: var(--acento); font-weight: 600; text-decoration: none; }

.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--borde); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--acento); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--sutil); margin: 10px 0 0; max-width: 44em; }
.faq a { color: var(--acento); }

.cierre { text-align: center; display: grid; justify-items: center; padding-bottom: 80px; }
.cierre h2 { margin-left: auto; margin-right: auto; }

.pie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 32px);
  border-top: 1px solid var(--borde);
  font-size: 14px;
  color: var(--sutil);
}
.pie nav { display: flex; gap: 20px; flex-wrap: wrap; }
.pie nav a { text-decoration: none; }

/* ── Celular ── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 40px; }
  .lead { font-size: 17px; }
  .cta { justify-items: stretch; }
  .regalo { text-align: center; }
  .telefono { width: min(250px, 75%); }
  section { padding: 40px 0; }
  .dolores, .pasos ol { grid-template-columns: 1fr; gap: 14px; }
  .pasos ol { gap: 24px; }
  .autora { grid-template-columns: 1fr; padding: 24px; border-radius: 22px; }
}
