/* QUARE · getquare.com
   Tokens literales de QUARE (docs/design/quare-atlas/implementation-contract/tokens.json y
   Packages/QuareMarkup/Sources/QuareMarkup/Style/Style.swift). Reglas de la marca: tres grises y un filete,
   sin gradientes, el rojo solo para anotaciones y la marca, la acción principal en tinta neutra invertida. */

:root {
  color-scheme: light dark;
  --shell: #E8E4E9;
  --page: #FBF9FA;          /* bg */
  --card: #F2EFF2;          /* surface */
  --raised: #E8E4E9;
  --line: #DAD4DC;
  --line-strong: #B9B0BC;
  --text: #211E24;
  --text2: #5C555F;
  --text3: #66606A;
  --mark: #B8302A;          /* accent claro */
  --on-mark: #FFFFFF;
  --success: #2F6B33;
  --stage: #ECE8ED;
  --glass: rgba(255, 255, 255, .72);
  --glass-rim: rgba(0, 0, 0, .10);
  --shadow-device: 0 10px 30px rgba(20, 16, 24, .22);
  --shadow-panel: 0 4px 18px rgba(20, 16, 24, .12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --nav-h: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.45, 0, .55, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --shell: #141317;
    --page: #141317;        /* shell: el fondo de la página */
    --card: #1C1A1F;        /* bg */
    --raised: #232026;      /* surface */
    --line: #38333D;
    --line-strong: #4A4450;
    --text: #F5F2F6;
    --text2: #B4ACB8;
    --text3: #9A92A0;
    --mark: #FF5247;
    --on-mark: #1C1A1F;
    --success: #8FBF8A;
    --stage: #111014;
    --glass: rgba(44, 40, 47, .72);
    --glass-rim: rgba(255, 255, 255, .16);
    --shadow-device: 0 10px 30px rgba(0, 0, 0, .5);
    --shadow-panel: 0 4px 18px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid Highlight; outline: 2px solid -webkit-focus-ring-color; outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--page); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── Tipografía ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text3);
}
.display {
  font-size: clamp(44px, 8.6vw, 112px); line-height: .98; font-weight: 700; letter-spacing: -.048em;
  text-wrap: balance;
}
.title {
  font-size: clamp(38px, 6.2vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -.043em;
  text-wrap: balance;
}
.title-m { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.lead {
  font-size: clamp(19px, 1.7vw, 25px); line-height: 1.42; font-weight: 500; letter-spacing: -.012em; color: var(--text2);
  text-wrap: pretty;
}
.lead strong, .body strong { color: var(--text); font-weight: 600; }
.body { font-size: 17px; line-height: 1.55; color: var(--text2); text-wrap: pretty; }
.fine { font-size: 14px; line-height: 20px; color: var(--text3); }
.dot { color: var(--mark); }
.kbd, code { font-family: var(--mono); font-size: .9em; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); white-space: nowrap; }

/* ── Botones ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: background-color .12s, color .12s, transform .12s, opacity .12s;
}
.btn:active { transform: scale(.98); }
.btn svg, .agent svg { width: 20px; height: 20px; flex: none; }
.btn-ink { background: var(--text); color: var(--page); }
.btn-ink:hover { background: color-mix(in srgb, var(--text) 86%, var(--page)); }
.btn-quiet { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-quiet:hover { background: var(--raised); }
.btn-s { height: 36px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }

/* ── Navegación ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--page) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark { width: 30px; height: 28px; }
.wordmark {
  display: inline-block; width: 60px; height: 16px; background: currentColor;
  -webkit-mask: url(/media/brand/wordmark.webp) center / contain no-repeat; mask: url(/media/brand/wordmark.webp) center / contain no-repeat;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a, .nav-lang { font-size: 14px; color: var(--text2); text-decoration: none; transition: color .12s; }
.nav-links a:hover, .nav-lang:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 380px) { .nav .btn-s { padding: 0 12px; font-size: 14px; } .nav .wrap { gap: 14px; } }

/* ── Secciones ──────────────────────────────────────────────── */
.section { padding: clamp(96px, 13vw, 184px) 0; position: relative; }
.section-head { max-width: 900px; }
.section-head.center { margin: 0 auto; }
.section-head .eyebrow + .title, .section-head .eyebrow + .title-m { margin-top: 16px; }
.section-head .title + .lead, .section-head .title-m + .lead { margin-top: 24px; }
.band { background: var(--card); }

/* ── Dispositivo ────────────────────────────────────────────── */
.device {
  --w: 300px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .165);
  background: #0B0B0D;
  box-shadow: inset 0 0 0 1.5px #3A3A3F, inset 0 0 0 calc(var(--w) * .012) #1A1A1D, var(--shadow-device);
}
.screen {
  position: relative; aspect-ratio: 440 / 956; overflow: hidden; background: #000;
  border-radius: calc(var(--w) * .135);
  isolation: isolate;
}
.screen > img, .screen > picture, .screen > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island {
  position: absolute; z-index: 5; left: 50%; top: 2.4%; width: 30%; height: 3.3%;
  transform: translateX(-50%); background: #000; border-radius: 999px;
}
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; }
.qbox { pointer-events: none; }
.pin circle { fill: var(--pin, #B8302A); stroke: #fff; stroke-width: 1.5; }
.pin text { fill: #fff; font: 700 13px var(--font); text-anchor: middle; dominant-baseline: central; }

/* Cristal del widget (Liquid Glass del widget de QUARE) */
.glass {
  background: var(--glass); color: var(--text);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 0 0 .5px var(--glass-rim), var(--shadow-panel);
}

/* ── Héroe ──────────────────────────────────────────────────── */
.hero { padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 0; text-align: center; }
.hero .eyebrow { margin-bottom: 20px; }
.hero .lead { max-width: 760px; margin: 28px auto 0; }
.hero-form { margin: 40px auto 0; }
.hero-form .waitlist, .final .waitlist { margin-left: auto; margin-right: auto; }
.hero-stage {
  position: relative; margin: clamp(56px, 8vw, 104px) auto 0; max-width: 1100px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.hero-stage .device { --w: clamp(270px, 30vw, 380px); grid-column: 2; }
.notes { position: relative; align-self: stretch; }
.notes-l { grid-column: 1; } .notes-r { grid-column: 3; }
.notes .note { position: absolute; }
.notes-l .note { right: 0; } .notes-r .note { left: 0; }
.note.n1 { top: 11%; } .note.n2 { top: 33%; } .note.n3 { top: 69%; }
.note {
  position: relative; width: min(100%, 300px); text-align: left; border-radius: 18px; padding: 14px 16px 15px 46px;
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.note.on { opacity: 1; transform: none; }
.note b { position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: #B8302A; color: #fff; font: 700 12px/22px var(--font); text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.note span { display: block; font-size: 15px; line-height: 21px; font-weight: 500; letter-spacing: -.01em; }
.note small { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--text3); }
.send-pill {
  position: absolute; left: 50%; bottom: clamp(24px, 3vw, 44px); transform: translate(-50%, 12px);
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 18px; border-radius: 999px;
  opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease); white-space: nowrap;
}
.send-pill.on { opacity: 1; transform: translate(-50%, 0); }
.send-pill .count { font-size: 15px; font-weight: 600; }
.send-pill .btn { height: 38px; font-size: 15px; padding: 0 16px; pointer-events: none; }
@media (max-width: 900px) {
  .hero-stage { grid-template-columns: 1fr; justify-items: center; gap: 28px; padding-bottom: 40px; }
  .hero-stage .device { grid-column: 1; grid-row: 1; --w: min(76vw, 330px); }
  .notes-l, .notes-r { grid-column: 1; width: min(100%, 380px); display: grid; gap: 10px; }
  .notes .note { position: relative; top: auto; left: auto; right: auto; }
  .notes-l { grid-row: 2; } .notes-r { grid-row: 3; margin-top: -18px; }
  .note { width: 100%; }
  .send-pill { position: static; transform: none; grid-row: 4; }
  .send-pill.on { transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
    .hero-stage .device { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes rise { from { transform: translateY(80px) scale(.92); } to { transform: none; } }
  }
}

/* ── Formulario de la lista ─────────────────────────────────── */
.waitlist { width: 100%; max-width: 500px; }
.waitlist-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .15s; }
.waitlist-row:focus-within { box-shadow: inset 0 0 0 1.5px var(--text2); }
.waitlist input[type=email] {
  flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; padding: 0 8px 0 18px; font-size: 17px; outline: none;
}
.waitlist input::placeholder { color: var(--text3); }
.waitlist .btn { height: 48px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-msg { min-height: 20px; margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--text3); }
.waitlist-msg.ok { color: var(--success); font-weight: 600; }
.waitlist-msg.err { color: var(--mark); }
.waitlist.done .waitlist-row { opacity: .55; pointer-events: none; }
@media (max-width: 480px) {
  .waitlist-row { flex-direction: column; border-radius: 24px; padding: 6px; }
  .waitlist input[type=email] { flex: none; height: 52px; text-align: center; padding: 0 12px; }
  .waitlist .btn { width: 100%; height: 50px; }
}

/* ── El problema ────────────────────────────────────────────── */
.loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1120px; }
.loop li { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 24px; border-radius: 22px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
.loop li svg { width: 28px; height: 28px; color: var(--text); }
.loop .n { font: 600 13px/1 var(--mono); color: var(--text3); }
.loop .t { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.loop li + li::before { content: ""; position: absolute; left: -12px; top: 50%; width: 12px; height: 1px; background: var(--line-strong); }
.again { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; font-size: 16px; font-weight: 500; color: var(--text3); }
.again svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .loop { grid-template-columns: 1fr; max-width: 420px; gap: 8px; }
  .loop li { flex-direction: row; align-items: center; padding: 16px 18px; gap: 14px; border-radius: 18px; }
  .loop li svg { width: 24px; height: 24px; }
  .loop .t { font-size: 16px; }
  .loop li + li::before { left: 50%; top: -8px; width: 1px; height: 8px; }
}
.problem-close { margin: clamp(64px, 9vw, 112px) auto 0; max-width: 920px; text-align: center; }
.problem-close .title-m span { color: var(--text3); }

/* ── Cómo funciona (escena fija con el scroll) ──────────────── */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 96px); }
.steps { display: flex; flex-direction: column; }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; opacity: .28; transition: opacity .45s var(--ease); }
.step.on { opacity: 1; }
.step-n { font: 600 15px/20px var(--mono); color: var(--text3); letter-spacing: .04em; }
.step h3 { margin-top: 14px; font-size: clamp(40px, 5vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.step p { margin-top: 20px; max-width: 460px; }
.step ul { margin-top: 24px; display: grid; gap: 10px; max-width: 460px; }
.step li { display: flex; gap: 12px; font-size: 16px; line-height: 22px; color: var(--text2); }
.step li svg { width: 22px; height: 22px; flex: none; color: var(--text); }
.how-stage { position: sticky; top: calc(var(--nav-h) + 4vh); height: calc(100vh - var(--nav-h) - 8vh); display: grid; place-items: center; }
.scene { grid-area: 1 / 1; display: grid; place-items: center; width: 100%; height: 100%; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.how-stage[data-step="1"] .scene-1, .how-stage[data-step="2"] .scene-2, .how-stage[data-step="3"] .scene-3 { opacity: 1; transform: none; }
.scene .device { --w: min(32vh, 330px); --w: min(34svh, 330px); }
.how-stage .progress { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.how-stage .progress i { width: 4px; height: 28px; border-radius: 2px; background: var(--line); transition: background .3s; }
.how-stage[data-step="1"] .progress i:nth-child(1), .how-stage[data-step="2"] .progress i:nth-child(2), .how-stage[data-step="3"] .progress i:nth-child(3) { background: var(--text); }

/* Terminal (Claude Code o Codex CLI) */
.term {
  width: min(100%, 520px); border-radius: 14px; overflow: hidden; background: #1C1A1F; color: #F5F2F6;
  box-shadow: inset 0 0 0 1px #38333D, var(--shadow-device); text-align: left;
}
.term-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid #38333D; background: #232026; }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #4A4450; }
.term-bar span { flex: 1; text-align: center; margin-right: 52px; font-size: 13px; color: #B4ACB8; }
.term pre { margin: 0; padding: 18px 20px 22px; font: 13.5px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; }
.term .l { display: block; opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.term .on, .scene-2.play .term .l { opacity: 1; transform: none; }
.term .p { color: #9A92A0; }
.term .c { color: #F5F2F6; font-weight: 600; }
.term .ok { color: #8FBF8A; }
.term .q { color: #FF5247; }
.term .d { color: #B4ACB8; }
.scene-2 .term .l:nth-child(1) { transition-delay: .1s; } .scene-2 .term .l:nth-child(2) { transition-delay: .45s; }
.scene-2 .term .l:nth-child(3) { transition-delay: .8s; } .scene-2 .term .l:nth-child(4) { transition-delay: 1.15s; }
.scene-2 .term .l:nth-child(5) { transition-delay: 1.5s; } .scene-2 .term .l:nth-child(6) { transition-delay: 1.85s; }
.scene-2 .term .l:nth-child(7) { transition-delay: 2.2s; } .scene-2 .term .l:nth-child(8) { transition-delay: 2.55s; }
.scene-2 { gap: 18px; align-content: center; }
.agents { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.agent { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.mac-shot { width: min(100%, 560px); border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-device); }
.mac-shot img { width: 100%; }

.step-visual { display: none; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-stage { display: none; }
  .step { min-height: 0; padding: 40px 0 24px; justify-content: flex-start; }
  .step h3 { font-size: 40px; }
  .step-visual { display: grid; justify-items: center; gap: 14px; margin: 28px 0 8px; padding: 28px 16px; border-radius: 28px; background: var(--stage); }
  .step-visual .device { --w: min(62vw, 250px); }
  .step-visual .term { width: 100%; }
  .step-visual .term pre { font-size: 11.5px; padding: 12px 14px 14px; line-height: 1.6; }
}

/* ── Demo ───────────────────────────────────────────────────── */
.demo {
  margin-top: clamp(48px, 6vw, 80px); border-radius: clamp(24px, 3vw, 36px); background: var(--stage);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 5vw, 72px);
}
.demo-left { display: grid; place-items: center; min-height: 560px; }
.demo .device { --w: min(300px, 74vw); touch-action: none; }
.demo .screen { cursor: crosshair; }
.demo[data-state="note"] .screen, .demo[data-state="working"] .screen, .demo[data-state="review"] .screen, .demo[data-state="done"] .screen { cursor: default; }
.demo .hint {
  position: absolute; z-index: 4; left: 50%; bottom: 7%; transform: translateX(-50%);
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity .3s;
}
.demo:not([data-state="annotate"]) .hint { opacity: 0; }
.draft { fill: none; stroke: #FF5247; stroke-width: 2; stroke-dasharray: 6 5; }
.compare { display: grid; grid-template-columns: auto auto; gap: 16px; align-items: start; }
.compare figure { display: grid; gap: 10px; justify-items: center; }
.compare figcaption { font-size: 13px; font-weight: 600; color: var(--text3); letter-spacing: .02em; }
.compare .device { --w: min(220px, 38vw); }
.compare[data-mode="wipe"] { grid-template-columns: auto; }
.compare[data-mode="wipe"] figure + figure { display: none; }
.wipe { position: absolute; inset: 0; z-index: 4; }
.wipe .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.wipe .after img { width: 100%; height: 100%; object-fit: cover; }
.wipe .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; display: grid; place-items: center; border-radius: 0; }
.wipe .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.25); }
.wipe .handle span { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); display: grid; place-items: center; color: #211E24; }
.wipe .handle span svg { width: 18px; height: 18px; }
.wipe .tag { position: absolute; bottom: 5%; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(28,26,31,.78); color: #F5F2F6; }
.wipe .tag.a { left: 5%; } .wipe .tag.b { right: 5%; }
.compare[data-mode="side"] .wipe { display: none; }
.demo .device.small { --w: min(220px, 38vw); }

.demo-panel { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.demo-panel .state { display: none; flex-direction: column; gap: 18px; }
.demo[data-state="annotate"] .s-annotate, .demo[data-state="note"] .s-note, .demo[data-state="working"] .s-working,
.demo[data-state="review"] .s-review, .demo[data-state="done"] .s-done { display: flex; animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-panel h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.demo-panel .row { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.field textarea, .field input {
  width: 100%; border-radius: 16px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong);
  padding: 14px 16px; font-size: 17px; line-height: 1.4; resize: none; outline: none;
}
.field textarea:focus, .field input:focus { box-shadow: inset 0 0 0 1.5px var(--text2); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); align-self: flex-start; }
.seg button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 600; color: var(--text2); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--page); }
.log { margin: 0; border-radius: 16px; background: #1C1A1F; color: #F5F2F6; box-shadow: inset 0 0 0 1px #38333D; padding: 16px 18px; font: 13px/1.8 var(--mono); min-height: 168px; white-space: pre-wrap; }
.log .p { color: #9A92A0; } .log .ok { color: #8FBF8A; } .log .q { color: #FF5247; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); align-self: flex-start; }
.chip.back { background: color-mix(in srgb, var(--mark) 14%, transparent); color: var(--mark); }
.back-reason { display: none; }
.demo.returning .back-reason { display: grid; }
.demo-note { margin-top: 18px; text-align: center; }
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; padding: 24px 16px 28px; }
  .demo-left { min-height: 0; }
  .demo-panel { max-width: none; }
}

/* ── Vídeo ──────────────────────────────────────────────────── */
.film { margin-top: clamp(40px, 6vw, 72px); position: relative; aspect-ratio: 1600 / 1091; border-radius: clamp(20px, 2.5vw, 32px); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.film img, .film video, .film picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-badge { position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 10px; border-radius: 999px; font-size: 16px; font-weight: 600; }
.film-badge i { width: 38px; height: 38px; border-radius: 50%; background: var(--text); color: var(--page); display: grid; place-items: center; }
.film-badge i svg { width: 14px; height: 14px; margin-left: 2px; }

/* ── Funciones (rejilla) ────────────────────────────────────── */
.bento { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 32px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.tile.w2 { grid-column: span 2; }
.tile .ico { width: 40px; height: 40px; color: var(--text); margin-bottom: 8px; }
.tile h3 { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.tile p { font-size: 16px; line-height: 1.5; color: var(--text2); text-wrap: pretty; }
.tile .media { margin-top: auto; }
.tile-zoom { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.zoom { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 760 / 570; box-shadow: inset 0 0 0 1px var(--line); background: #F4F2EE; }
.zoom img { width: 100%; height: 100%; object-fit: cover; }
.mini-compare { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 804 / 610; box-shadow: inset 0 0 0 1px var(--line); background: #F2F2F7; }
.mini-compare img { width: 100%; height: 100%; object-fit: cover; }
.mini-compare .after img { position: absolute; inset: 0; }
.mini-compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 54%); }
.mini-compare .rule { position: absolute; top: 0; bottom: 0; left: 54%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.2); }
.mini-compare .rule::after { content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.tile .mac { border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); margin: 8px -8px -8px; }
.tile .cmd { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tile .cmd code { font-size: 15px; padding: 6px 12px; border-radius: 10px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.w2 { grid-column: span 2; } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; } .tile.w2 { grid-column: auto; }
  .tile { padding: 26px 22px; min-height: 0; }
  .tile-zoom { grid-template-columns: 1fr; }
}

/* ── Privacidad (franja) ────────────────────────────────────── */
.private { text-align: center; }
.private .title { max-width: 980px; margin: 16px auto 0; }
.private .lead { max-width: 720px; margin: 28px auto 0; }
.facts { margin: clamp(48px, 6vw, 72px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; text-align: left; }
.fact { padding: 24px; border-top: 1px solid var(--line-strong); }
.fact h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.fact p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text2); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 0; } .fact { padding: 20px 0; } }

/* ── Requisitos y FAQ ───────────────────────────────────────── */
.needs { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.needs li { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; }
.needs svg { width: 22px; height: 22px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--text3); border-bottom: 2px solid var(--text3); transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq .answer { padding: 0 40px 26px 0; color: var(--text2); font-size: 17px; line-height: 1.6; }
.faq .answer p + p { margin-top: 12px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ── CTA final ──────────────────────────────────────────────── */
.final { text-align: center; }
.final .big-mark { width: clamp(120px, 16vw, 200px); margin: 0 auto clamp(32px, 4vw, 48px); aspect-ratio: 930 / 854; }
.final .lead { max-width: 640px; margin: 24px auto 0; }
.final .waitlist { margin: 40px auto 0; }

/* ── Pie ────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--text3); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--text2); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer button { background: none; border: 0; padding: 0; color: var(--text2); font-size: 14px; }
.footer button:hover { color: var(--text); }
.footer .brand { margin-right: 0; }

/* ── Páginas de texto (privacidad, cookies, 404) ────────────── */
.doc { padding: calc(var(--nav-h) + clamp(48px, 8vw, 104px)) 0 clamp(80px, 10vw, 140px); }
.doc .wrap { max-width: calc(760px + var(--gutter) * 2); }
.doc h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.doc .updated { margin-top: 14px; }
.doc h2 { margin-top: 48px; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.doc p, .doc li { margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--text2); }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); color: var(--text2); }
.doc th { color: var(--text); font-weight: 600; }
.doc .table-wrap { overflow-x: auto; }
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.notfound .big-mark { width: 120px; margin: 0 auto 32px; aspect-ratio: 930 / 854; }

/* ── Consentimiento ─────────────────────────────────────────── */
.consent {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 720px;
  border-radius: 24px; padding: 22px 22px 20px; display: grid; gap: 16px;
  animation: fadein .35s var(--ease);
}
.consent h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.consent p { font-size: 14px; line-height: 1.5; color: var(--text2); margin-top: 4px; }
.consent .row { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .row .btn { flex: 1 1 140px; height: 44px; font-size: 15px; }
.consent .opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.consent .opt b { display: block; font-size: 15px; }
.consent .opt span { display: block; font-size: 13px; line-height: 1.45; color: var(--text2); margin-top: 2px; }
.switch { position: relative; flex: none; width: 51px; height: 31px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--success); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .6; }
.switch input:focus-visible + i { outline: 2px solid Highlight; outline: 2px solid -webkit-focus-ring-color; outline-offset: 2px; }

/* ── Movimiento reducido ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .step { opacity: 1; }
}
.compare[data-mode="wipe"] figcaption { display: none; }
.needs-title { margin-top: 48px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.needs-title + .needs { margin-top: 16px; }
@media (max-width: 600px) {
  .film-badge { height: 40px; padding: 0 14px 0 6px; gap: 8px; font-size: 13px; }
  .film-badge i { width: 28px; height: 28px; }
}
