@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/comfortaa.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* Misma paleta, tipografía y botones que la aplicación (styles.css). */
:root {
  --night: #1c1a3d;
  --ink: #1c1a3d;
  --electric: #3d3a8c;
  --electric-dark: #2c2a6b;
  --electric-soft: #ecebfa;
  --lavender: #a99cf0;
  --lavender-soft: #f0edfd;
  --ivory: #f4f2fb;
  --paper: #fdfcff;
  --sun: #f5c451;
  --sun-soft: #fdf3d6;
  --mint: #87dbc5;
  --mint-dark: #287d69;
  --rose: #e27aa6;
  --muted: #7b837f;
  --graphite: #43505f;
  --body: #3f4658;
  --line: rgba(28, 26, 61, .1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --brand: "Comfortaa", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: Inter, ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: #8a7fe0 var(--ivory); }
body { margin: 0; background: var(--ivory); color: var(--night); font-family: var(--text); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--electric); }
h1, h2, h3 { font-family: var(--brand); font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--lavender); color: var(--night); }
input { caret-color: var(--electric); accent-color: var(--electric); }
:focus-visible { outline: 3px solid rgba(61, 58, 140, .38); outline-offset: 3px; }

/* Encabezado: marfil como la app; al bajar se afirma y ofrece el llamado */
.site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px max(20px, calc((100% - 1120px) / 2)); transition: background .35s ease, box-shadow .35s ease; }
.site-header.is-solid { background: rgba(244, 242, 251, .94); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(28, 26, 61, .06); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img:first-child { border-radius: 23%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { min-height: 44px; display: flex; align-items: center; white-space: nowrap; padding: 0 16px; border-radius: 15px; background: var(--electric); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 8px 18px rgba(61, 58, 140, .22); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s ease, transform .35s var(--ease), visibility .3s; }
.is-solid .header-cta { opacity: 1; visibility: visible; transform: none; }
.header-link { min-height: 44px; display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--night); font-weight: 800; font-size: 15px; text-decoration: none; }
.header-link:hover { background: #fff; }

/* Botón principal: el de la app */
.cta { min-height: 58px; display: inline-flex; width: auto; align-items: center; justify-content: center; gap: 12px; padding: 16px 28px; border: 0; border-radius: 19px; background: var(--electric); color: #fff; font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 12px 26px rgba(61, 58, 140, .24); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.cta:hover { background: var(--electric-dark); box-shadow: 0 15px 34px rgba(61, 58, 140, .3); transform: translateY(-2px); }
.cta:active { transform: translateY(1px) scale(.99); }
.cta:disabled { color: rgba(255, 255, 255, .72); background: #abb7c8; box-shadow: none; cursor: not-allowed; }
.link-button { align-self: flex-start; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--electric-dark); font: inherit; font-size: 15px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Hero: la pantalla de bienvenida de la app, ahora con su recorrido real */
.hero { position: relative; overflow: hidden; background: var(--ivory); color: var(--night); padding: 96px 20px 56px; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb--one { top: -150px; right: -130px; width: 420px; height: 420px; background: #e5e1f8; }
.hero-orb--two { bottom: -170px; left: -150px; width: 360px; height: 360px; background: #f3ece6; }
.hero-inner { position: relative; max-width: 1120px; margin: 0 auto; display: grid; gap: 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(38px, 10.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 span { color: var(--electric); }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--graphite); max-width: 33em; }
.hero-action { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-note { font-size: 14px; color: #5f6672; }
.hero-promise { display: flex; align-items: center; gap: 10px; font-family: var(--brand); font-weight: 700; font-size: 16px; color: var(--electric-dark); }
.hero-promise svg { width: 16px; height: 16px; fill: var(--sun); stroke: #c99a1c; stroke-width: 1; flex-shrink: 0; }
.cta--wide { width: 100%; }

/* Secciones */
.section { padding: 72px 20px 0; }
.section--tint { margin-top: 72px; padding: 72px 20px 80px; background: var(--lavender-soft); }
.section-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.section h2 { font-size: clamp(30px, 8vw, 52px); line-height: 1.08; }
.lead { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 36em; }
.punch { font-family: var(--brand); font-weight: 700; font-size: clamp(30px, 7.4vw, 64px); line-height: 1.12; letter-spacing: -0.03em; color: var(--electric); margin-top: 18px; }
.punch em { display: inline-block; font-style: normal; color: #b83b72; filter: blur(calc(var(--p, 0) * 7px)); opacity: calc(1 - var(--p, 0) * .78); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.plan-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--sun-soft); color: #7a5410; font-size: 13px; font-weight: 800; }
.plan-tag b { font-weight: 900; letter-spacing: .02em; }
.concept { font-size: 13px; font-weight: 700; color: #5f6672; }
.demo-foot { display: flex; justify-content: center; }

/* Pasos (los mismos 4 de la guía de inicio de la app) */
.flow { list-style: none; margin: 0; padding: 22px 20px; display: grid; gap: 16px; background: var(--paper); border-block: 1px solid var(--line); }
.flow li { display: flex; gap: 14px; align-items: center; max-width: 1120px; width: 100%; margin: 0 auto; }
.flow li > span { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--electric-soft); color: var(--electric); font-family: var(--brand); font-weight: 700; font-size: 17px; }
.flow strong { display: block; font-size: 16px; }
.flow p { font-size: 14px; color: var(--graphite); }

/* ---- Teléfono con la app real adentro ---- */
.appui, .appui * { box-sizing: border-box; }
.appui h3 { font-family: inherit; letter-spacing: normal; }
.appui .top-three__header h3, .appui .time-group__heading h3 { font-family: var(--brand); letter-spacing: -0.015em; }
.appui .app-h1 { margin: 0 0 14px; font-family: var(--brand); font-size: clamp(34px, 9vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.appui .page-heading .app-h1 { margin-bottom: 10px; }
.appui .plan-header .app-h1 { margin: 2px 0 4px; font-size: clamp(32px, 8vw, 40px); }
.appui .top-three__header h3 { margin: 0; font-size: 17px; }
.appui .time-group__heading h3 { margin: 0 0 2px; font-size: 19px; }
.appui .mini-streak, .appui [data-streak-mini] { display: flex; gap: 3px; }
.appui .mini-streak i { width: 7px; height: 11px; background: #e6d4b8; border-radius: 4px; }
.appui .mini-streak i.is-active { background: linear-gradient(#ffa546, #ee692b); box-shadow: inset 0 1px 0 #ffce70; }
.appui .view { min-height: 0; padding: 20px 20px 28px; }
.appui .topbar { position: relative; min-height: 60px; padding-top: 12px; }
.appui .task-list--flat { margin-left: 0; }
.appui .task-card { cursor: default; }
.appui .space-card { margin: 0; }
.appui .space-add { display: flex; gap: 8px; margin-top: 4px; }
.appui .feed { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--graphite); min-height: 3.6em; }
.appui .feed li:first-child { color: var(--night); font-weight: 900; }
.appui .space-hint { margin: 14px 4px 0; padding: 14px; border: 1.5px dashed #c9c3ee; border-radius: 16px; font-size: 13px; font-weight: 700; color: var(--graphite); }
.appui .space-hint[hidden] { display: none; }
.appui .proof-select { display: flex; align-items: center; justify-content: space-between; }
.appui .proof-when { margin: 0 0 12px; }
.appui .said { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--electric-soft); color: var(--electric-dark); font-size: 14px; font-weight: 700; line-height: 1.45; }
.appui .review-list { display: grid; gap: 10px; margin-bottom: 18px; }
.appui .review-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px; border: 1px solid rgba(28, 26, 61, .08); border-radius: 18px; background: var(--paper); box-shadow: 0 6px 19px rgba(28, 26, 61, .055); animation: pop .45s var(--ease) both; }
.appui .review-task strong { display: block; font-size: 15px; line-height: 1.25; }
.appui .review-task small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.appui .review-actions { display: flex; gap: 6px; flex-shrink: 0; }
.appui .review-icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); color: var(--graphite); cursor: pointer; }
.appui .review-icon-button--delete { border-color: rgba(184, 73, 60, .16); background: #fde9e4; color: #a7483d; }
.appui .top-three__check, .appui .top-three__copy { cursor: pointer; }
.appui .top-three__copy { text-align: left; background: transparent; border: 0; font: inherit; }
.appui .check-button { cursor: pointer; }
.appui .delegate-hint { margin-top: 8px; padding: 6px 11px; border: 1px dashed #d8b45a; border-radius: 999px; background: var(--sun-soft); color: #7a5410; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; text-align: left; }
.appui button.delegate-hint:hover { background: #fbe9b4; }
.appui .delegate-badge { display: inline-block; margin-top: 6px; padding: 4px 9px; border-radius: 8px; background: var(--electric-soft); color: var(--electric); font-size: 11.5px; font-weight: 800; }
.appui .delegate-badge[data-state="pending"] { background: var(--sun-soft); color: #7a5410; }
.appui .delegate-badge[data-state="accepted"], .appui .delegate-badge[data-state="done"] { background: #e3f5ef; color: #185c49; }
.appui .delegate-badge[data-state="ai"] { background: #efe9ff; color: #6a3fc4; }

.device { width: 100%; max-width: 372px; margin-inline: auto; border: 8px solid var(--night); border-radius: 46px; background: var(--night); box-shadow: 0 34px 70px rgba(28, 26, 61, .22); overflow: hidden; }
.device__screen { position: relative; min-height: 590px; border-radius: 36px; overflow: hidden; background: var(--ivory); }
.device--tall .device__screen { min-height: 640px; }
.device--short .device__screen { min-height: 470px; }
.device-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.device-label { text-align: center; font-size: 13px; font-weight: 800; color: #5f6672; }
.demo { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.demo__status { display: flex; align-items: center; gap: 14px; align-self: center; }
.demo__status strong { display: block; font-size: 17px; }
.demo__status small { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: #5f6672; max-width: 22em; }
.demo__foot { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; }
.hero .device__screen { min-height: 650px; }
.sheet-layer { position: absolute; inset: 0; z-index: 6; display: flex; align-items: flex-end; }
.sheet-layer[hidden] { display: none; }
.sheet-layer__scrim { position: absolute; inset: 0; background: rgba(28, 26, 61, .36); animation: fadeIn .25s ease both; }
.sheet-layer .sheet__surface { position: relative; width: calc(100% - 24px); max-height: none; margin: 0 12px 12px; padding: 10px 20px 22px; overflow: visible; border-radius: 29px; background: var(--ivory); box-shadow: var(--shadow, 0 18px 50px rgba(28, 26, 61, .11)); animation: sheetUp .35s var(--ease) both; }
.appui .repeat-sheet { max-height: none; margin: 0; padding: 14px 20px 24px; border-radius: 0; box-shadow: none; overflow: visible; }
.appui .repeat-sheet .sheet__header { margin-bottom: 14px; }
.appui .repeat-sheet .sheet__header h2 { font-size: 26px; margin: 0; }
.appui .repeat-sheet .task-when { margin: 0 0 14px; }
.appui .chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.appui .chip-row button { min-height: 40px; padding: 8px 14px; border: 1.5px solid rgba(61, 58, 140, .16); border-radius: 999px; background: var(--paper); color: var(--night); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.appui .chip-row button[aria-pressed="true"] { border-color: var(--electric); background: var(--electric); color: var(--paper); }
.toast-demo { position: absolute; z-index: 8; left: 50%; bottom: 18px; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; color: #fff; background: var(--night); box-shadow: 0 18px 50px rgba(28, 26, 61, .11); font-size: 13px; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .22s ease, transform .22s ease; }
.toast-demo.is-visible { opacity: 1; transform: translate(-50%, 0); }
.idle { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 150px 28px 0; text-align: center; }
.idle__icon { position: relative; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--electric); box-shadow: 0 8px 22px rgba(28, 26, 61, .08); }
.idle__icon::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--lavender); border-radius: 50%; animation: idleRing 2.4s ease-out infinite; }
.idle__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.idle p { font-size: 14.5px; font-weight: 700; color: var(--graphite); line-height: 1.5; }
.appui .favor-shell { width: 100%; padding: 18px 16px 26px; }
.appui .favor-card { padding: 20px 18px; border-radius: 22px; animation: pop .45s var(--ease); }
.appui .favor-card h2 { font-family: var(--brand); font-size: 27px; line-height: 1.12; margin: 0 0 12px; }
.appui .favor-task { margin: 0 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--electric-soft); font-weight: 800; }
.appui .favor-when { margin: 0 0 10px; color: var(--graphite); font-size: 13px; font-weight: 700; }
.appui .favor-actions { display: grid; gap: 10px; margin: 14px 0 12px; }
.appui .favor-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.appui .favor-card > p { font-size: 15px; color: var(--graphite); }
.appui .sheet-input { width: 100%; }
.fly-ghost { position: fixed; z-index: 50; padding: 10px 12px; border-radius: 16px; background: var(--electric); color: #fff; font-size: 14px; font-weight: 800; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 14px 30px rgba(28, 26, 61, .3); }

/* Sección de frases */
.duo { display: grid; gap: 28px; position: relative; }

/* Presencia */
.section--presence { --p: 0; }
.presence { position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: 28px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 50px rgba(28, 26, 61, .16); }
.presence img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.presence__after { opacity: var(--p); }
.presence__dim { position: absolute; inset: 0; background: var(--ink); opacity: calc(.32 * (1 - var(--p))); pointer-events: none; }
.thought { position: absolute; max-width: 46%; padding: 7px 11px; border-radius: 12px; background: var(--paper); box-shadow: 0 8px 20px rgba(28, 26, 61, .15); font-size: 13px; font-weight: 800; line-height: 1.3; pointer-events: none; opacity: calc(1 - var(--p) * 1.6); scale: calc(1 - var(--p) * .25); animation: floaty 5.5s ease-in-out infinite; }
.thought--1 { top: 12px; left: 12px; --r: -4deg; translate: calc(var(--p) * -60px) calc(var(--p) * -40px); }
.thought--2 { top: 18px; right: 12px; --r: 3deg; animation-delay: .8s; translate: calc(var(--p) * 60px) calc(var(--p) * -40px); }
.thought--3 { bottom: 54px; left: 10px; --r: -2deg; background: #fbe4df; color: #8a3324; animation-delay: 1.6s; translate: calc(var(--p) * -60px) calc(var(--p) * 30px); }
.thought--4 { bottom: 14px; right: 12px; --r: 5deg; animation-delay: .4s; translate: calc(var(--p) * 60px) calc(var(--p) * 30px); }
.presence__tag { position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; border-radius: 12px; background: #fbe4df; color: #8a3324; font-size: 14px; font-weight: 900; opacity: 0; transition: opacity .3s ease; }
.presence[data-state="after"] .presence__tag { opacity: 1; background: #e3f5ef; color: #185c49; }
.presence[data-state="before"] .presence__tag { opacity: 0; }
.when-after { display: none; }
[data-state="after"] .when-before { display: none; }
[data-state="after"] .when-after { display: inline; }
.presence__under { display: grid; gap: 18px; }
.presence__control { display: flex; flex-direction: column; gap: 6px; }
.presence__control label { font-weight: 900; font-size: 15px; color: var(--ink); }
.presence__ends { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: #5f6672; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--rose), var(--sun) 50%, var(--mint)); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--rose), var(--sun) 50%, var(--mint)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border: 4px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 0 4px 12px rgba(28, 26, 61, .3); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 4px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 0 4px 12px rgba(28, 26, 61, .3); }
.presence__copy { min-height: 6.4em; }

/* Lo que hace por ti: una lista editorial con una pantalla real por fila */
.section--assistant .section-inner { gap: 36px; }
.beats { display: grid; }
.beat { display: grid; gap: 16px; padding: 32px 0; border-top: 1px solid var(--line); }
.beat:last-child { border-bottom: 1px solid var(--line); }
.beat h3 { font-size: clamp(23px, 5.5vw, 30px); line-height: 1.15; }
.beat > p { font-size: 16px; color: var(--body); max-width: 30em; }
.proof { width: 100%; max-width: 372px; padding: 4px 0; background: transparent; }
.proof .plan-header { margin-bottom: 14px; }
.proof .first-win { margin: 0; }
.proof .calendar-nudge { margin: 0; }
.proof .streak-week { margin: 14px 0 0; }
.beat.is-in .proof .task-card, .beat.is-in .proof .top-three__item, .beat.is-in .proof .streak-day.is-active span { animation: pop .5s var(--ease) both; }
.beat.is-in .proof .task-card:nth-child(2), .beat.is-in .proof .top-three__item:nth-child(2) { animation-delay: .12s; }
.beat.is-in .proof .top-three__item:nth-child(3) { animation-delay: .24s; }
.beat.is-in .proof .streak-day.is-active:nth-child(6) span { animation-delay: .15s; }
.beat.is-in .proof .streak-day.is-active:nth-child(7) span { animation-delay: .3s; }
.beat.is-in .proof .streak-flame { animation: flameEarn 1.1s var(--ease) .2s both; }

/* Sueño: la escena más humana, a todo el ancho */
.dream-wrap { margin-top: 96px; }
.dream { position: relative; margin: 0; height: 560px; overflow: hidden; background: var(--night); color: var(--paper); }
.dream img, .dream video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dream video { opacity: 0; transition: opacity 1.2s ease; }
.dream video.is-playing { opacity: 1; }
.dream figcaption { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 160px 20px 36px; background: linear-gradient(to top, rgba(28, 26, 61, .95), rgba(28, 26, 61, .55) 55%, rgba(28, 26, 61, 0)); }
.dream h2 { font-size: clamp(30px, 8vw, 64px); line-height: 1.08; max-width: 14em; }
.dream h2 span { color: var(--sun); }
.dream .cta { background: #fff; color: var(--electric-dark); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.dream .cta:hover { background: var(--lavender-soft); }

/* Test y lista de espera: tarjetas de la app */
.quiz { position: relative; overflow: hidden; display: grid; gap: 18px; padding: 30px 20px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); color: var(--night); box-shadow: 0 18px 50px rgba(28, 26, 61, .09); }
.quiz h2 { font-size: clamp(28px, 7vw, 46px); line-height: 1.1; }
.quiz__intro, .quiz__ask, .quiz__done { display: flex; flex-direction: column; gap: 16px; }
.quiz [hidden] { display: none !important; }
.quiz__intro p { color: var(--body); font-size: 18px; }
.quiz__progress { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--electric-dark); }
.quiz__progress > div { flex: 1; height: 6px; border-radius: 3px; background: var(--electric-soft); }
.quiz__progress span:first-child, #quizBar { display: block; height: 6px; border-radius: 3px; background: var(--electric); width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.quiz__question { font-family: var(--brand); font-size: clamp(22px, 5vw, 30px); font-weight: 700; line-height: 1.25; }
.quiz__options { display: grid; gap: 10px; }
.quiz__options button { min-height: 60px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--ivory); color: var(--night); font: inherit; font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .2s var(--ease); animation: pop .5s var(--ease) both; }
.quiz__options button:nth-child(2) { animation-delay: .06s; }
.quiz__options button:nth-child(3) { animation-delay: .12s; }
.quiz__options button:hover { border-color: var(--electric); background: var(--electric-soft); transform: translateX(4px); }
.result { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--ivory); color: var(--ink); }
.result__label { font-size: 13px; font-weight: 900; color: var(--muted); }
.result strong { font-family: var(--brand); font-size: 30px; line-height: 1.1; }
.result p:last-child { font-size: 16px; color: var(--body); }
.result__meter { height: 12px; border-radius: 6px; background: var(--electric-soft); }
.result__meter span { display: block; height: 12px; border-radius: 6px; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.quiz__note { font-size: 13px; color: #5f6672; }
.waitlist { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--ivory); }
.waitlist strong { font-size: 17px; }
.waitlist label { font-size: 14px; font-weight: 700; color: var(--night); }
.waitlist input[type="email"] { min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; font-size: 17px; }
.waitlist__consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 600 !important; line-height: 1.45; color: var(--body) !important; }
.waitlist__consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }
.waitlist__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist__error { font-size: 14px; font-weight: 800; color: #a7483d; }
.waitlist--joined p { color: var(--body); font-size: 15px; }
.waitlist--joined b { color: var(--electric); }
.share-row { display: flex; gap: 8px; align-items: center; }
.share-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--electric-dark); font-family: var(--text); font-size: 14px; font-weight: 800; }
.share-button { min-height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--electric); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.stores h2 { margin-bottom: 12px; }
.stores__copy, .stores__form { display: flex; flex-direction: column; gap: 16px; }
.stores__lead { color: var(--body); font-size: 17px; line-height: 1.5; }
.stores__perks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--body); font-size: 15px; line-height: 1.4; }
.stores__perks li { padding-left: 28px; position: relative; }
.stores__perks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
.stores__perks b { color: var(--night); }
.stores__android { display: block; padding: 13px 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--electric-dark); font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; background: var(--ivory); transition: background .2s ease; }
.stores__android:hover, .stores__android:focus-visible { background: var(--electric-soft); }

/* Preguntas */
.section--faq { padding-bottom: 8px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; border-right: 2.5px solid var(--electric); border-bottom: 2.5px solid var(--electric); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq p { padding: 0 18px 18px; font-size: 15.5px; color: var(--body); max-width: 46em; }
.google-data-note { max-width: 620px; margin: 56px auto 0; padding: 0 20px; font-size: 14px; color: #5f6672; }
.google-data-note h2 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.google-data-note p + p { margin-top: 8px; }

/* Cierre: el círculo se cierra */
.final { position: relative; overflow: hidden; margin-top: 72px; padding: 80px 20px 64px; background: var(--ivory); border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.final > * { position: relative; }
.final .hero-orb--one { top: -190px; left: 50%; right: auto; margin-left: -210px; }
.final h2 { font-size: clamp(30px, 7.6vw, 58px); line-height: 1.1; }
.final h2 span { color: var(--electric); }
.final .cta { width: 100%; max-width: 420px; }
.final .orb--big { width: 124px; height: 124px; }
.final[data-live="on"] .enso__path { animation: ensoDraw 2s var(--ease) .15s both; }
.final[data-live="on"] .enso__dry { animation: ensoDraw 2.2s var(--ease) .35s both; }
.site-footer { display: flex; justify-content: center; gap: 20px; padding: 18px 20px 30px; background: var(--ivory); color: #5f6672; font-size: 14px; }
.site-footer a { color: var(--electric-dark); }

/* Aparecer al hacer scroll: los títulos se enfocan, el resto sube */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease), filter .8s ease; transition-delay: calc(var(--i, 0) * 70ms); animation: revealFallback 0s linear 3s forwards; }
.reveal--title { transform: translateY(10px); filter: blur(8px); }
.reveal.is-in { opacity: 1; transform: none; filter: none; animation: none; }
/* Si el script no carga, el contenido aparece igual a los 3 segundos. */
@keyframes revealFallback { to { opacity: 1; transform: none; filter: none; } }

@keyframes orbBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes ensoSpin { to { transform: rotate(360deg); } }
@keyframes ensoDraw { from { stroke-dashoffset: 100px; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes idleRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes flameEarn { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.12) rotate(3deg); opacity: 1; } 100% { transform: none; } }
[data-live="off"] *, [data-live="off"] *::before, [data-live="off"] *::after { animation-play-state: paused !important; }

/* Ensō: el círculo que se cierra cuando la cabeza se despeja */
.orb { --calm: 0; position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.enso { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-110deg); overflow: visible; }
.enso circle { fill: none; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
.enso__path { stroke: var(--electric); stroke-width: 6; stroke-dasharray: 100px 100px; stroke-dashoffset: calc((100 - var(--calm) * 92) * 1px); transition: stroke-dashoffset .9s var(--ease), stroke .8s ease; }
.enso__dry { stroke: var(--electric); stroke-width: 2.2; opacity: .45; stroke-dasharray: 100px 100px; stroke-dashoffset: calc((100 - var(--calm) * 84) * 1px); transition: stroke-dashoffset 1.2s var(--ease) .1s, stroke .8s ease; }
.enso__noise { stroke: var(--rose); stroke-width: 2.4; stroke-dasharray: 3px 6px 1px 9px 5px 4px 2px 7px; opacity: calc(.95 - var(--calm) * 1.3); animation: ensoSpin calc(.9s + var(--calm) * 6s) linear infinite; }
.orb__core { position: absolute; inset: 21px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fdfcff 0%, #c9c1f7 22%, #7d6ae8 55%, #3d3a8c 100%); animation: orbBreath calc(.9s + var(--calm) * 2.8s) ease-in-out infinite; }
.orb__core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fdfcff 0%, #d6f4ea 24%, #87dbc5 58%, #3f9480 100%); opacity: 0; transition: opacity .9s ease; }
.orb.is-calm .enso__path, .orb.is-calm .enso__dry { stroke: var(--mint-dark); stroke-dashoffset: 0; }
.orb.is-calm .enso__noise { opacity: 0; }
.orb.is-calm .orb__core::after { opacity: 1; }
.orb--big .orb__core { inset: 40px; }

@media (max-width: 520px) {
  .is-solid .brand-wordmark { display: none; }
  .header-actions { gap: 8px; }
  .header-cta, .header-link { padding: 0 13px; font-size: 14px; }
  .hero-action .cta { width: 100%; }
}

/* Escritorio */
@media (min-width: 900px) {
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .hero { padding: 140px 40px 96px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
  .hero h1 { font-size: clamp(50px, 5.1vw, 66px); }
  .hero-action { flex-direction: row; align-items: center; gap: 18px; }
  .section { padding: 120px 40px 0; }
  .section-inner { gap: 28px; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 26px 40px; }
  .presence { aspect-ratio: 21 / 10; }
  .presence__under { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
  .thought { font-size: 14px; }
  .section--tint { padding: 120px 40px; margin-top: 120px; }
  .duo { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
  .duo--thread::before { content: ""; position: absolute; left: calc(50% - 30px); top: 82px; width: 56px; border-top: 2px dashed #b9b2ea; }
  .duo--thread::after { content: ""; position: absolute; left: calc(50% + 20px); top: 76px; width: 10px; height: 10px; border-top: 2px solid #9a92e0; border-right: 2px solid #9a92e0; transform: rotate(45deg); }
  .section--assistant .section-inner { gap: 56px; }
  .beat { grid-template-columns: 4fr 4fr 5fr; gap: 40px; align-items: center; padding: 40px 0; }
  .dream { height: clamp(600px, 88vh, 860px); }
  .dream figcaption { padding: 200px max(40px, calc((100% - 1120px) / 2)) 64px; }
  .dream-wrap { margin-top: 140px; }
  .quiz { padding: 56px; }
  .quiz--test, .stores { grid-template-columns: 5fr 6fr; gap: 24px 64px; align-items: start; }
  .quiz--test > h2 { grid-column: 1; }
  .quiz--test .quiz__intro, .quiz--test .quiz__ask, .quiz--test .quiz__done { grid-column: 2; grid-row: 1; }
  .section--faq .section-inner { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
  .section--faq h2 { position: sticky; top: 100px; }
  .final { padding: 128px 40px 96px; gap: 32px; }
  .final .orb--big { width: 150px; height: 150px; }
  .final .orb--big .orb__core { inset: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

.hero, .final, .quiz { overflow: clip; }

/* Escena «Hábitos y metas»: lo que se dice (fuera del teléfono) */
#metas .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
#metas .chip-row button { min-height: 44px; padding: 8px 16px; border: 1.5px solid rgba(61, 58, 140, .2); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
#metas .chip-row button:hover { border-color: var(--electric); }
#metas .chip-row button[aria-pressed="true"] { border-color: var(--electric); background: var(--electric); color: #fff; }
#metas .rp-say { margin: 4px 0 0; font-size: 19px; font-weight: 800; line-height: 1.4; color: var(--ink); }
#metas .rp-next { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }
