/* Relapse — landing. Misma paleta y tipografías que la app (src/theme). */
:root {
  --bg: #0e1020;
  --bg-2: #13162a;
  --card: #1d2138;
  --card-border: #2a2f4d;
  --text: #f4f1e8;
  --muted: #9a9cb8;
  --faint: #5e6183;
  --gold: #ffc83d;
  --gold-deep: #c98f0a;
  --gold-glow: rgba(255, 200, 61, 0.28);
  --good: #4ade80;
  --panic: #ff5a47;
  --purple: #9b7bff;
  --display: 'Bebas Neue', Impact, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 16, 32, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 47, 77, 0.6);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: var(--display); font-size: 28px; letter-spacing: 4px; color: var(--gold); padding-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang {
  background: none; border: 1.5px solid var(--card-border); color: var(--muted);
  font: 800 12px var(--body); letter-spacing: 1px; border-radius: 999px; padding: 6px 11px; cursor: pointer;
}
.lang:hover { color: var(--text); border-color: var(--faint); }

/* ── Botones ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 15px var(--body); letter-spacing: 0.6px; text-decoration: none; cursor: pointer;
  border: none; border-radius: 14px; padding: 14px 22px; white-space: nowrap;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-gold { background: var(--gold); color: #241a00; box-shadow: 0 5px 0 var(--gold-deep); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn-small { padding: 10px 16px; font-size: 13px; border-radius: 12px; box-shadow: 0 4px 0 var(--gold-deep); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; overflow-x: clip; }
.hero::before {
  content: ''; position: absolute; inset: -120px 0 auto; height: 760px; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 72% 40%, rgba(155, 123, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 45% at 20% 30%, rgba(255, 200, 61, 0.08), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1.5px solid var(--card-border); border-radius: 999px;
  padding: 6px 14px 6px 6px; font-size: 14px; font-weight: 700; color: var(--muted);
}
.badge-faces { display: flex; }
.badge-faces img {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--card); margin-left: -8px;
  object-fit: cover; object-position: top; background: #20243d;
}
.badge-faces img:first-child { margin-left: 0; }
.badge b { color: var(--gold); }
h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: 1px;
  font-size: clamp(52px, 7.2vw, 92px); line-height: 0.94; margin: 22px 0 18px;
}
h1 .gold { color: var(--gold); }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.lead strong { color: var(--text); }

/* Formulario lista de espera */
.waitlist { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.waitlist input {
  flex: 1 1 240px; min-width: 0; font: 600 16px var(--body); color: var(--text);
  background: var(--card); border: 2px solid var(--card-border); border-radius: 14px; padding: 14px 16px; outline: none;
}
.waitlist input:focus { border-color: var(--gold); }
.waitlist input::placeholder { color: var(--faint); }
.form-note { font-size: 13px; color: var(--faint); margin-top: 12px; }
.form-note a { color: var(--muted); }
.form-msg { font-size: 15px; font-weight: 700; margin-top: 12px; min-height: 22px; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--panic); }
.soon { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 700; }
.soon svg { width: 18px; height: 18px; fill: var(--text); }

/* ── iPhone (CSS) ────────────────────────────────────── */
.phones { position: relative; height: 640px; }
.iphone {
  --w: 290px;
  position: absolute; width: var(--w); aspect-ratio: 9 / 19.5; border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #8e8d92 0%, #3c3c41 22%, #1d1d21 50%, #5a595e 78%, #9a999e 100%);
  box-shadow: 0 0 0 1.5px #0b0b0d inset, 0 40px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.iphone::before, .iphone::after { /* botones laterales */
  content: ''; position: absolute; width: 3.5px; border-radius: 2px;
  background: linear-gradient(90deg, #6b6a6f, #2c2c30);
}
.iphone::before { left: -3.5px; top: 22%; height: 64px; box-shadow: 0 -52px 0 -16px #4a4a4f; }
.iphone::after { right: -3.5px; top: 27%; height: 92px; }
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--bg); box-shadow: 0 0 0 3px #000;
}
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 92px; height: 27px; border-radius: 20px; background: #000;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 48px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px;
  font: 700 14px -apple-system, 'SF Pro Text', var(--body); color: #fff;
}
.statusbar .icons { display: flex; gap: 5px; align-items: center; }
.statusbar svg { height: 11px; fill: #fff; }
.phone-back { left: 0; top: 34px; transform: rotate(-7deg); z-index: 1; }
.phone-front { right: 6px; top: 0; transform: rotate(5deg); z-index: 2; --w: 300px; }

/* Contenido de las pantallas (réplica de la app) */
.app { position: absolute; inset: 0; padding: 52px 16px 0; display: flex; flex-direction: column; align-items: center; }
.app-head { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.app-name { font-family: var(--display); font-size: 24px; letter-spacing: 1px; }
.chips { display: flex; gap: 5px; }
.chip {
  display: flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; color: var(--muted);
  background: var(--card); border: 1px solid var(--card-border); border-radius: 999px; padding: 3px 7px;
}
.pill {
  margin-top: 8px; font-family: var(--display); font-size: 14px; letter-spacing: 1px; color: var(--gold);
  border: 1.5px solid var(--gold); border-radius: 999px; padding: 1px 10px;
}
.app-line { font-size: 11.5px; font-weight: 800; line-height: 1.35; text-align: center; margin: 7px 6px 0; }
.app-avatar { position: relative; width: 170px; height: 170px; margin-top: 2px; }
.app-avatar::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 68%);
}
.app-avatar img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.big-num { font-family: var(--display); font-size: 62px; line-height: 0.9; margin-top: 2px; }
.num-label { font-size: 9px; font-weight: 800; letter-spacing: 2.5px; color: var(--muted); }
.week { display: flex; justify-content: space-between; width: 100%; margin-top: 10px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8px; font-weight: 800; color: var(--muted); }
.dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; }
.dot.on { background: rgba(255, 200, 61, 0.18); border: 1.5px solid var(--gold); }
.dot.on svg { width: 11px; fill: var(--gold); }
.dot.off { border: 1.5px solid var(--card-border); background: rgba(255, 255, 255, 0.03); }
.bar { width: 100%; height: 7px; border-radius: 6px; background: var(--card); border: 1px solid var(--card-border); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 42%; background: var(--gold); border-radius: 6px; }
.bar-label { font-size: 9px; color: var(--muted); margin-top: 4px; }
.tile {
  width: 100%; margin-top: 9px; border: 1.5px solid var(--card-border); border-bottom-width: 3px; border-radius: 11px;
  background: var(--card); font-size: 11px; font-weight: 800; text-align: center; padding: 8px 0;
}
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: #10132a; border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-around; align-items: center; padding: 0 6px 10px;
}
.tabbar span { width: 18px; height: 18px; border-radius: 5px; background: var(--card-border); }
.tabbar span.on { background: var(--gold); }
.tabbar .sos {
  width: 50px; height: 50px; border-radius: 50%; background: var(--panic); margin-top: -22px;
  box-shadow: 0 4px 0 #c4301f; display: grid; place-items: center;
  font: 800 10px var(--body); color: #fff; letter-spacing: 0.5px;
}

/* Pantalla de check-in */
.checkin { background: #0e1020; }
.checkin .rays {
  position: absolute; inset: -40%; top: -55%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(155, 123, 255, 0.16) 0deg 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 0%, transparent 52%);
  mask: radial-gradient(circle at 50% 50%, #000 0%, transparent 52%);
}
.checkin .app { padding-top: 60px; }
.checkin .num-row { display: flex; align-items: center; gap: 4px; }
.checkin .num-row svg { width: 26px; fill: var(--purple); }
.checkin .num-label { color: var(--purple); }
.card-mini {
  width: 100%; margin-top: 10px; background: rgba(29, 33, 56, 0.88); border: 1.5px solid var(--card-border);
  border-radius: 14px; padding: 10px;
}
.card-mini h5 { margin: 0 0 6px; font-size: 9px; letter-spacing: 1.2px; color: var(--muted); }
.checkin .dot.on { background: rgba(155, 123, 255, 0.2); border-color: var(--purple); }
.checkin .dot.on svg { fill: var(--purple); }
.line-card { display: flex; gap: 8px; align-items: center; font-size: 10.5px; font-weight: 800; line-height: 1.35; border-color: rgba(155, 123, 255, 0.45); }
.line-card svg { width: 14px; flex: none; fill: var(--purple); }
.cta-mini {
  width: 100%; margin-top: 12px; background: var(--gold); color: #241a00; border-radius: 12px;
  box-shadow: 0 4px 0 var(--gold-deep); text-align: center; font: 800 12px var(--body); padding: 10px 0;
}

/* Etiquetas flotantes (como en los mockups de producto) */
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  background: #f4f1e8; color: #14172b; border-radius: 14px; padding: 9px 13px;
  font-size: 13px; font-weight: 800; box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.6); line-height: 1.2;
}
.float small { display: block; font-size: 11px; font-weight: 700; color: #5e6183; }
.float .ico { font-size: 18px; }
.f1 { top: 6px; right: -34px; transform: rotate(4deg); }
.f2 { top: 128px; left: -58px; transform: rotate(-3deg); }
.f3 { bottom: 38px; left: -18px; transform: rotate(-4deg); }
.doodle { position: absolute; left: 150px; top: 196px; width: 110px; z-index: 3; opacity: 0.85; transform: rotate(-8deg); }

/* ── Secciones ──────────────────────────────────────── */
section { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 2.5px; color: var(--gold); text-transform: uppercase; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 0.98; letter-spacing: 0.5px; margin: 10px 0 16px; }
.section-lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0; }
.center { text-align: center; }
.center .section-lead { margin: 0 auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature { background: var(--card); border: 2px solid var(--card-border); border-radius: 22px; padding: 26px; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--gold-glow);
}
.feature .ico svg { width: 22px; fill: var(--gold); }
.feature h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Etapas */
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 48px; align-items: end; }
.stage { text-align: center; }
.stage .fig { position: relative; aspect-ratio: 1; }
.stage .fig::before {
  content: ''; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, var(--c, var(--gold-glow)), transparent 70%);
}
.stage .fig img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.stage .lock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14, 16, 32, 0.8); border: 1.5px solid var(--card-border);
}
.stage .lock svg { width: 18px; fill: var(--gold); }
.stage .lock.q { font-family: var(--display); font-size: 26px; color: var(--gold); padding-top: 2px; }
.stage.locked b { color: var(--muted); }
.stage.final-stage b { letter-spacing: 3px; }
/* Feedback opcional tras apuntarse */
.feedback {
  max-width: 520px; margin-top: 14px; background: var(--card); border: 2px solid var(--card-border);
  border-radius: 18px; padding: 18px; display: grid; gap: 12px; text-align: left;
}
.final .feedback { margin: 16px auto 0; }
.feedback h4 { margin: 0; font-size: 16px; }
.feedback .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback .opt {
  font: 700 14px var(--body); color: var(--text); background: var(--bg-2); cursor: pointer;
  border: 2px solid var(--card-border); border-radius: 12px; padding: 8px 12px;
}
.feedback .opt[aria-pressed='true'] { border-color: var(--gold); color: var(--gold); }
.feedback textarea {
  font: 600 15px var(--body); color: var(--text); background: var(--bg-2); resize: vertical; min-height: 70px;
  border: 2px solid var(--card-border); border-radius: 12px; padding: 10px 12px; outline: none;
}
.feedback textarea:focus { border-color: var(--gold); }
.feedback .row { display: flex; gap: 12px; align-items: center; }
.feedback .skip { background: none; border: none; color: var(--faint); font: 700 14px var(--body); cursor: pointer; text-decoration: underline; }
.stage b { display: block; font-family: var(--display); font-size: 21px; letter-spacing: 0.5px; margin-top: 8px; line-height: 1; }
.stage span { font-size: 13px; color: var(--muted); font-weight: 700; }

/* No vuelves a cero */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bars-card { background: var(--card); border: 2px solid var(--card-border); border-radius: 24px; padding: 28px; }
.bars-card label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 8px; }
.bars-card .bar { height: 16px; margin: 0 0 18px; border-radius: 10px; }
.bars-card .bar i { width: 80%; border-radius: 10px; }
.bars-card .bar.after i { width: 60%; background: #7c86a8; }
.bars-card .bar.saved i { width: 80%; background: var(--good); }
.bullets { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.bullets li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; }
.bullets li b { color: var(--text); }
.bullets .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-glow); color: var(--gold);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}

/* Privacidad */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.privacy-grid div { background: var(--bg-2); border: 1.5px solid var(--card-border); border-radius: 18px; padding: 20px; }
.privacy-grid h4 { margin: 10px 0 6px; font-size: 16px; }
.privacy-grid p { margin: 0; font-size: 14px; color: var(--muted); }
.privacy-grid svg { width: 22px; fill: var(--gold); }

/* CTA final */
.final {
  text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 200, 61, 0.12), transparent 70%);
}
.final .waitlist { margin: 30px auto 0; }
.final .form-note, .final .form-msg { text-align: center; }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 2px solid var(--card-border); border-radius: 16px; padding: 18px 20px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--card-border); padding: 36px 0 48px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; color: var(--muted); font-weight: 700; }
footer a:hover { color: var(--text); }

/* Páginas de texto (privacidad, soporte) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(44px, 6vw, 64px); margin: 0 0 6px; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-family: var(--body); font-size: 20px; font-weight: 800; letter-spacing: 0; margin: 34px 0 10px; line-height: 1.3; }
.doc p { color: var(--muted); margin: 0 0 12px; font-size: 16px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .phones { height: 600px; max-width: 560px; margin: 0 auto; width: 100%; }
  .features { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .lead { font-size: 17px; }
  .phones { height: 520px; }
  .iphone { --w: 236px; border-radius: 44px; padding: 9px; }
  .phone-front { --w: 244px; right: -4px; }
  .phone-back { left: -8px; }
  .screen { border-radius: 36px; }
  .app { transform: scale(0.82); transform-origin: top center; width: 122%; left: -11%; }
  .float { font-size: 11.5px; padding: 7px 10px; }
  .f2, .doodle { display: none; }
  .f1 { right: -4px; }
  .f3 { left: -4px; bottom: 18px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .brand span { font-size: 24px; }
  .btn-small { display: none; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
