:root {
  --bg: #f6f5ff;
  --card: #ffffff;
  --text: #16161d;
  --muted: #62626f;
  --accent: #0a84ff;
  --accent-2: #7c5cff;
  --border: #e6e5f2;
  --radius: 26px;
  --green: #34c759;
  --red: #ff3b30;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% -10%, #ffffff 0%, var(--bg) 55%, #ebe8ff 100%) fixed;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- header / footer (shared by every page) ---------- */
/* Liquid Glass: floating pill navbar instead of a full-width bar — the bar
   itself (header.site) stays transparent and just centers the glass capsule. */
header.site { position: sticky; top: 14px; z-index: 50; padding: 18px 0 8px; }
.navbar-glass {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 10px 34px rgba(60, 40, 160, .14), inset 0 1px 0 rgba(255, 255, 255, .5);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar-glass { background: rgba(246, 245, 255, .96); }
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
nav a { margin-left: 20px; color: var(--muted); font-weight: 500; }
footer.site { padding: 30px 0 50px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--border); }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); margin-right: 16px; }

/* ---------- Liquid Glass CTA pills ---------- */
.btn-glass-cta, .btn-primary-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 84%, transparent), color-mix(in srgb, var(--accent-2) 84%, transparent));
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 12px 28px rgba(60, 40, 160, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-glass-cta:hover, .btn-primary-cta:hover { filter: brightness(1.06); box-shadow: 0 16px 34px rgba(60, 40, 160, .34), inset 0 1px 0 rgba(255, 255, 255, .5); text-decoration: none; }
.btn-glass-cta:active, .btn-primary-cta:active { transform: scale(.97); }
.btn-glass-cta { padding: 10px 20px; font-size: .92rem; flex: none; }
.btn-primary-cta { padding: 16px 30px; font-size: 1.04rem; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-glass-cta, .btn-primary-cta { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
}

/* ---------- text pages ---------- */
main.doc { padding: 20px 0 80px; }
.doc .paper { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: clamp(24px, 5vw, 52px); box-shadow: 0 6px 24px rgba(60, 40, 160, .06); }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-top: 0; }
.doc h2 { margin-top: 2em; font-size: 1.3rem; }
.doc p, .doc li { color: #33333e; }
.doc .meta { color: var(--muted); }
.todo { background: #fff3a8; padding: 0 4px; border-radius: 4px; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 56px 0 80px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 600; font-size: .9rem; color: #3b3b48; box-shadow: 0 4px 14px rgba(60,40,160,.07); }
.pill img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
h1.big { font-size: clamp(2.5rem, 6.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.03em; margin: 22px 0 18px; }
h1.big .grad { background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, #ff5fa2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; background: #0b0b0f; color: #fff; padding: 10px 22px 10px 16px; border-radius: 14px; border: 1px solid #3a3a44; cursor: not-allowed; position: relative; box-shadow: 0 10px 26px rgba(15,15,30,.25); }
.store-badge svg { width: 30px; height: 30px; flex: none; opacity: .95; }
.store-badge small { display: block; font-size: .68rem; letter-spacing: .02em; opacity: .8; line-height: 1.1; }
.store-badge strong { display: block; font-size: 1.32rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.store-badge .soon { position: absolute; top: -10px; right: -10px; background: #ffcc00; color: #3a2b00; font-weight: 800; font-size: .66rem; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }

/* Insignia de la App Store degradada a CTA secundaria — la prioridad ahora es
   apuntarse a la lista de espera (.btn-primary-cta), que va siempre delante. */
.store-badge.subtle { background: transparent; border: 1px solid var(--border); box-shadow: none; color: var(--muted); padding: 8px 16px 8px 12px; cursor: default; }
.store-badge.subtle svg { width: 22px; height: 22px; opacity: .55; }
.store-badge.subtle strong { font-size: 1rem; color: var(--text); }
.store-badge.subtle small { font-size: .62rem; }
.trust { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: .95rem; }
.trust span::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 7px; }

section.block { padding: 40px 0 70px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }
h2.title { font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 14px; }
.sub { color: var(--muted); max-width: 620px; font-size: 1.1rem; margin: 0 0 34px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 8px 28px rgba(60,40,160,.07); }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }

.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 30px 20px; justify-items: center; }
.showcase figure { margin: 0; text-align: center; }
.showcase figcaption { margin-top: 20px; }
.showcase figcaption strong { display: block; font-size: 1.15rem; }
.showcase figcaption span { color: var(--muted); }
.note { text-align: center; color: #8a8a99; font-size: .85rem; margin-top: 26px; }

.moods { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.mood { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: 0 8px 28px rgba(60,40,160,.07); }
.mood img { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 12px 30px rgba(60,40,160,.2); }
.mood .range { display: inline-block; margin-top: 16px; font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: .9rem; }
.mood.a .range { background: #ffe6d6; color: #b5490a; }
.mood.b .range { background: #fff3c4; color: #8a6a00; }
.mood.c .range { background: #d9f7e2; color: #157a3a; }
.mood h3 { margin: 10px 0 4px; }
.mood p { margin: 0; color: var(--muted); }

.privacy { background: linear-gradient(135deg, #16161f, #2a2450); color: #fff; border-radius: 36px; padding: clamp(28px, 6vw, 60px); display: flex; gap: 36px; align-items: center; flex-wrap: wrap; box-shadow: 0 30px 60px rgba(30,20,80,.3); }
.privacy .lock { font-size: 3rem; }
.privacy h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.02em; }
.privacy p { margin: 0; color: #cfcdea; max-width: 640px; font-size: 1.08rem; }
.privacy a { color: #9ccbff; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 4px 22px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(60,40,160,.05); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--muted); }

.waitlist { background: var(--card); border: 1px solid var(--border); border-radius: 36px; padding: clamp(28px, 6vw, 52px); text-align: center; box-shadow: 0 20px 50px rgba(60,40,160,.1); max-width: 640px; margin: 0 auto; }
.waitlist img { border-radius: 50%; margin-bottom: 14px; box-shadow: 0 10px 24px rgba(60,40,160,.18); }
.waitlist .sub { margin-left: auto; margin-right: auto; }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.waitlist-form input { flex: 1 1 240px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border); font-size: 1rem; font-family: inherit; background: #fbfbff; color: var(--text); }
.waitlist-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist-form button { flex: 0 0 auto; padding: 14px 26px; border-radius: 999px; border: 0; font-weight: 700; font-size: 1rem; font-family: inherit; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); cursor: pointer; box-shadow: 0 10px 24px rgba(60,40,160,.22); }
.waitlist-form button:disabled { opacity: .6; cursor: default; }
.waitlist-msg { min-height: 1.4em; margin: 14px 0 0; font-weight: 600; font-size: .95rem; }
.waitlist-msg.is-success { color: var(--green); }
.waitlist-msg.is-error { color: var(--red); }
.waitlist-legal { margin: 4px 0 0; font-size: .78rem; color: #9d9da8; }

/* ---------- éxito al apuntarse: sustituye la tarjeta entera, con el check
   dibujándose y un pequeño rebote — nada de aviso pequeño que pase desapercibido ---------- */
.waitlist-success { padding: 20px 0 8px; text-align: center; animation: waitlist-pop .5s cubic-bezier(.175,.885,.32,1.275) both; }
.waitlist-success .title { margin: 14px 0 8px; }
.waitlist-success .sub { margin: 0 auto; }
.success-check { width: 84px; height: 84px; margin: 0 auto; display: block; }
.success-check-ring { fill: none; stroke: var(--green); stroke-width: 4; opacity: .18; }
.success-check-mark {
  fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: waitlist-draw-check .45s .35s cubic-bezier(.65,0,.35,1) forwards;
}
@keyframes waitlist-pop {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes waitlist-draw-check {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .waitlist-success { animation: none; }
  .success-check-mark { animation: none; stroke-dashoffset: 0; }
}

.final { text-align: center; padding: 30px 0 90px; }
.final img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 14px 34px rgba(60,40,160,.22); }
.final h2 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); margin: 20px 0 22px; letter-spacing: -0.02em; }
.final .cta-row { justify-content: center; }

/* ---------- phone frame (real app screenshots) ---------- */
.phone { position: relative; width: 290px; aspect-ratio: 1206 / 2622; border-radius: 54px; background: #0e0e12; padding: 10px; box-shadow: 0 40px 80px rgba(60,40,160,.3), inset 0 0 0 2px #2b2b34; flex: none; }
.hero .phone { margin: 0 auto; transform: rotate(2deg); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #f4f2ff; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.screen video::-webkit-media-controls, .screen video::-webkit-media-controls-start-playback-button, .screen video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 34px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero .phone { transform: none; }
}
nav a { white-space: nowrap; }
/* Móvil: la píldora del header no tiene sitio para logo + nav + botón "Únete"
   — se prioriza el botón (la lista de espera), que queda fuera de <nav> y no
   se ve afectado por esto. Privacidad/Términos siguen accesibles en el pie. */
@media (max-width: 640px) { .navbar-glass nav { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
