/* Knivchit — sitio de promoción. CSS plano, sin dependencias.
   Los tokens son copia de app/src/styles/theme.css (fuente única de verdad de
   la identidad); si allí cambia un valor, se cambia aquí. Claro y oscuro viven
   en cada variable con light-dark(): lo decide color-scheme, que fija el
   atributo data-theme (ver theme-init.js); sin él, oscuro. */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: dark;

	--color-bg: light-dark(#f4f6fb, #0a0e1a);
	--color-bg-alt: light-dark(#e8ecf5, #0a0c13);
	--color-fg: light-dark(#0e1220, #eef0f5);
	--color-fg-muted: light-dark(#4a5570, #8f9bb3);
	--color-accent: #4c82ff;
	/* Marca (logo y wordmark): la madera es solo de la marca, no de la interfaz. */
	--color-brand-blade: light-dark(#2f63e0, #4c82ff);
	--color-brand-wood: light-dark(#6e4527, #b0764a);
	--color-accent-ink: light-dark(#2559d6, #4c82ff);
	--color-accent-fill: #3a69ea;
	--color-accent-warm: light-dark(#9a5b00, #e8a33d);
	--color-card: light-dark(#ffffff, rgba(238, 240, 245, 0.04));
	--color-card-border: light-dark(rgba(14, 18, 32, 0.12), rgba(238, 240, 245, 0.1));
	--color-ok: light-dark(#11783a, #3ddc84);
	--color-badge: light-dark(rgba(232, 163, 61, 0.22), rgba(232, 163, 61, 0.16));
	--color-badge-ink: light-dark(#7a4b00, #f0bd6a);
	--color-side: light-dark(#e8ecf5, #080a12);
	--color-chrome: light-dark(#d9dfee, #05070d);
	--color-on-accent: #ffffff;

	/* Superficies que no cambian con el tema (el overlay siempre es oscuro). */
	--color-scrim: rgba(4, 5, 8, 0.5);
	--color-accent-warm-dark: #e8a33d;
	--color-pill: rgba(238, 240, 245, 0.94);
	--color-pill-border: rgba(10, 14, 26, 0.13);
	--color-pill-divider: rgba(10, 14, 26, 0.13);
	--color-pill-ink: #3a3d48;
	--color-pill-ink-disabled: #a3a8b5;
	--color-glass: rgba(27, 32, 48, 0.72);
	--color-glass-solid: rgba(14, 16, 24, 0.92);
	--color-shot: #0e1424;
	--color-ann-red: #ff4d4f;
	--color-ann-amber: #e8a33d;
	--color-ann-blue: #4c82ff;
	--color-ann-green: #3ddc84;

	--radius-capture: 24px;
	--radius-sharp: 3px;
	--radius-ui: 14px;
	--duration-ui: 180ms;

	--font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--font-body: "Inter", "Adwaita Sans", "Cantarell", system-ui, sans-serif;
	--font-mono: "Adwaita Mono", "DejaVu Sans Mono", ui-monospace, monospace;

	--max: 1180px;
	--gutter: clamp(20px, 4.5vw, 56px);
	--hair: var(--color-card-border);
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-fg);
	font: 400 1.0625rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.g { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: 3px; border-radius: var(--radius-sharp); }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-ui); background: var(--color-accent-fill); color: var(--color-on-accent); font-weight: 600; text-decoration: none; transition: transform var(--duration-ui) ease-out; }
.skip:focus { transform: translateY(76px); }

kbd, .tk, code, .rd { font-family: var(--font-mono); }
kbd {
	font-size: 0.82em; padding: 1px 6px; border: 1px solid var(--hair); border-bottom-width: 2px;
	border-radius: 6px; background: var(--color-card); color: var(--color-fg); white-space: nowrap;
}
code { font-size: 0.92em; }

/* ---------- cabecera ---------- */
.top {
	display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
	max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
	padding: 18px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 1.85rem/1 var(--font-display); letter-spacing: -0.02em; margin-right: auto; }
.logo { width: 60px; height: 45px; }
.lg-blade { fill: var(--color-brand-blade); }
.lg-wood { fill: var(--color-brand-wood); }
.wm-ch { color: var(--color-brand-wood); }
.menu ul { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.menu a { display: block; padding: 8px 0; color: var(--color-fg-muted); font-size: 0.94rem; text-decoration: none; transition: color var(--duration-ui) ease-out; }
.menu a:hover { color: var(--color-fg); }
.theme { display: none; padding: 3px; gap: 2px; border: 1px solid var(--hair); border-radius: 999px; }
html.js .theme { display: flex; }
.theme button {
	display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 999px;
	background: transparent; color: var(--color-fg-muted); cursor: pointer;
	transition: background-color var(--duration-ui) ease-out, color var(--duration-ui) ease-out;
}
.theme button .g { width: 18px; height: 18px; }
.theme button:hover { color: var(--color-fg); }
.theme button[aria-pressed="true"] { background: var(--color-accent-fill); color: var(--color-on-accent); }
@media (max-width: 820px) {
	.menu { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
	.menu ul { width: max-content; }
}

/* ---------- botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
	border-radius: 999px; font: 600 0.97rem/1 var(--font-body); text-decoration: none; cursor: pointer;
	transition: opacity var(--duration-ui) ease-out, transform var(--duration-ui) ease-out;
}
.btn-main { background: var(--color-accent-fill); color: var(--color-on-accent); border: 0; }
.btn-main:hover { opacity: 0.9; }
.btn-ghost { color: var(--color-pill-ink); border: 1px solid transparent; }
.btn-ghost:hover { background: rgba(10, 14, 26, 0.07); }
.btn-off { cursor: default; color: #4b5060; border: 1px dashed #8b90a0; }
.btn-off:hover { background: transparent; }
.btn:active { transform: translateY(1px); }

/* ---------- el «escritorio congelado» (héroe y demostración) ---------- */
.dw { position: absolute; display: block; border: 1px solid rgba(238, 240, 245, 0.18); border-radius: 12px; background: rgba(238, 240, 245, 0.1); overflow: hidden; }
.dw i { display: block; height: 3.2%; min-height: 5px; margin: 5% 6% 0; border-radius: 3px; background: rgba(238, 240, 245, 0.2); }
.dw i:nth-child(2n) { width: 52%; background: rgba(76, 130, 255, 0.55); }
.dw i:nth-child(3n) { width: 74%; }
.dw b { display: block; height: 9%; background: rgba(238, 240, 245, 0.07); }
.dw-code { left: 3%; top: 9%; width: 30%; height: 46%; }
.dw-web { right: 3%; top: 14%; width: 34%; height: 50%; }
.dw-web i:first-of-type { margin-top: 8%; }
.dw-term { left: 12%; bottom: 7%; width: 26%; height: 30%; background: rgba(0, 0, 0, 0.35); }

/* ---------- héroe: la propia página es el overlay de captura ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	margin: 6px clamp(10px, 2vw, 24px) 6px; border-radius: var(--radius-capture);
	background: radial-gradient(circle at 16% 24%, color-mix(in srgb, var(--color-accent) 46%, transparent), transparent 42%),
		radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--color-accent-warm-dark) 30%, transparent), transparent 38%),
		radial-gradient(circle at 60% 94%, color-mix(in srgb, var(--color-accent) 30%, transparent), transparent 48%),
		linear-gradient(160deg, #151d36, var(--color-shot) 60%, #0a0e1a);
	padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 88px);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-scrim); }
.hero-screen { position: absolute; inset: 0; z-index: 0; }
.hero-frame { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; }
.hero-sel {
	position: relative; padding: clamp(30px, 5.4vw, 72px) clamp(24px, 5vw, 72px);
	border: 2px solid var(--color-accent); border-radius: var(--radius-capture);
	background: var(--color-bg);
}
.rd { position: absolute; left: 4px; bottom: calc(100% + 8px); font-size: 0.8rem; color: #8fb0ff; letter-spacing: 0.02em; }
html:not(.js) .rd { display: none; }
.hd { position: absolute; width: 12px; height: 12px; background: var(--color-accent); border: 2px solid var(--color-bg); border-radius: 3px; transform: translate(-50%, -50%); }
.hd.nw { left: 0; top: 0; } .hd.n { left: 50%; top: 0; } .hd.ne { left: 100%; top: 0; } .hd.e { left: 100%; top: 50%; }
.hd.se { left: 100%; top: 100%; } .hd.s { left: 50%; top: 100%; } .hd.sw { left: 0; top: 100%; } .hd.w { left: 0; top: 50%; }
.hero h1 {
	max-width: 17ch; font: 700 clamp(2.4rem, 5.6vw, 4.7rem)/1 var(--font-display);
	letter-spacing: -0.035em; text-wrap: balance;
}
.hero .lead { max-width: 54ch; margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--color-fg-muted); }
.hero .meta { margin-top: 18px; font-size: 0.9rem; color: var(--color-fg-muted); }
.hero-pill {
	position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px;
	width: fit-content; max-width: 100%; margin: 26px auto 0; padding: 6px;
	border: 1px solid var(--color-pill-border); border-radius: 999px; background: var(--color-pill);
}
.soon-note { padding: 0 14px 0 4px; font-size: 0.85rem; color: var(--color-pill-ink); }

/* ---------- secciones ---------- */
.sec { padding: clamp(64px, 8.5vw, 120px) max(var(--gutter), calc((100% - var(--max)) / 2)); }
.sec-head { display: grid; gap: 16px 56px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font: 700 clamp(2rem, 4.4vw, 3.5rem)/1.04 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; max-width: 17ch; }
.sec-head p { max-width: 58ch; color: var(--color-fg-muted); font-size: 1.1rem; align-self: end; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.1fr 1fr; } }
.fine { max-width: 66ch; margin-top: 28px; font-size: 0.93rem; color: var(--color-fg-muted); }
.plain li + li { margin-top: 8px; }
.mock-tag { position: absolute; right: 12px; bottom: 10px; padding: 2px 9px; border-radius: 999px; background: var(--color-glass-solid); color: #eef0f5; font-size: 0.72rem; letter-spacing: 0.02em; }

/* ---------- cómo funciona ---------- */
.how { background: var(--color-bg-alt); }
.how-grid { display: grid; gap: 28px 56px; align-items: start; }
@media (min-width: 980px) { .how-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); } }
@media (max-width: 979px) { .stage-panel { order: -1; } .hint, .toast { font-size: 2.6cqw; } .pb { width: 3.5cqw; height: 3.5cqw; } }
.steps { display: grid; gap: 8px; }
.step {
	display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 18px 18px 18px 16px; text-align: left;
	border: 1px solid transparent; border-left: 2px solid var(--hair); border-radius: 0 var(--radius-ui) var(--radius-ui) 0;
	background: transparent; color: inherit; font: inherit; cursor: pointer;
	transition: background-color var(--duration-ui) ease-out, border-color var(--duration-ui) ease-out;
}
.step:hover { background: var(--color-card); }
.step[aria-selected="true"] { background: var(--color-card); border-color: var(--color-card-border); border-left-color: var(--color-accent); }
.step-n { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--hair); font: 600 0.88rem/1 var(--font-display); color: var(--color-fg-muted); }
.step[aria-selected="true"] .step-n { background: var(--color-accent-fill); border-color: transparent; color: var(--color-on-accent); }
.step-t { font: 650 1.12rem/1.3 var(--font-display); }
.step-d { color: var(--color-fg-muted); font-size: 0.97rem; line-height: 1.55; }

.stage-panel { min-width: 0; }
.stage { container-type: inline-size; position: relative; }
.stage-screen {
	position: relative; overflow: hidden; aspect-ratio: 8 / 5; border-radius: var(--radius-capture);
	background: radial-gradient(circle at 16% 24%, color-mix(in srgb, var(--color-accent) 46%, transparent), transparent 42%),
		radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--color-accent-warm-dark) 30%, transparent), transparent 38%),
		radial-gradient(circle at 60% 94%, color-mix(in srgb, var(--color-accent) 30%, transparent), transparent 48%),
		linear-gradient(160deg, #151d36, var(--color-shot) 60%, #0a0e1a); border: 1px solid var(--hair);
}
.stage-screen > * { position: absolute; }
.stage .desk { inset: 0; }
.stage .dim { inset: 0; background: var(--color-scrim); transition: opacity var(--duration-ui) ease-out; }
.sel { border: 0.28cqw solid var(--color-accent); border-radius: 2.4cqw; transition: opacity var(--duration-ui) ease-out; }
.sel .rd { font-size: 1.35cqw; bottom: calc(100% + 0.7cqw); left: 0; }
.sel-a { left: 15.6%; top: 15%; width: 42.9%; height: 39.3%; background: rgba(76, 130, 255, 0.05); }
.sel-b { left: 15.6%; top: 15%; width: 68.75%; height: 55%; }
.sel-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 2.1cqw; }
.sel .hd { width: 1.25cqw; height: 1.25cqw; border-width: 0.2cqw; border-radius: 0.3cqw; border-color: #0a0e1a; }
.hint {
	left: 50%; bottom: 7%; transform: translateX(-50%); padding: 0.9cqw 1.9cqw; border-radius: 999px; white-space: nowrap;
	background: var(--color-glass); border: 1px solid rgba(238, 240, 245, 0.14); backdrop-filter: blur(20px) saturate(150%);
	color: #eef0f5; font-size: 1.5cqw; transition: opacity var(--duration-ui) ease-out;
}
.bar-wrap { left: 50%; top: 74%; transform: translateX(-50%); width: max-content; max-width: 96%; transition: opacity var(--duration-ui) ease-out; }

.pill-bar {
	display: flex; align-items: center; gap: 0.35cqw; padding: 0.7cqw 1.1cqw; border-radius: 999px;
	background: var(--color-pill); border: 1px solid var(--color-pill-border); color: var(--color-pill-ink);
}
.pb { display: grid; place-items: center; width: 3.2cqw; height: 3.2cqw; border-radius: 999px; }
.pb .g { width: 1.9cqw; height: 1.9cqw; }
.pb.on { background: var(--color-accent-fill); color: #fff; }
.pb.ok { background: var(--color-accent-fill); color: #fff; }
.pb.off { color: var(--color-pill-ink-disabled); }
.pd { width: 1px; height: 2.1cqw; margin: 0 0.45cqw; background: var(--color-pill-divider); }

/* la captura recortada: ventana de un formulario con sus anotaciones */
.shot { position: absolute; inset: 0; container-type: size; overflow: hidden; background: #11172a; }
.shot-win { position: absolute; inset: 0; }
.shot-bar { height: 10%; display: flex; align-items: center; gap: 1.2cqw; padding-left: 3%; background: rgba(238, 240, 245, 0.07); }
.shot-bar i { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: rgba(238, 240, 245, 0.22); }
.shot-win > span { position: absolute; display: block; border-radius: 1cqw; }
.s-title { left: 8%; top: 20%; width: 34%; height: 6%; background: rgba(238, 240, 245, 0.34); }
.s-lbl { left: 8%; width: 14%; height: 3.6%; background: rgba(238, 240, 245, 0.2); }
.s-fld { left: 28%; width: 62%; height: 8%; background: rgba(238, 240, 245, 0.09); border: 1px solid rgba(238, 240, 245, 0.16); }
.l1 { top: 37%; } .f1 { top: 34%; } .l2 { top: 53%; } .f2 { top: 50%; } .l3 { top: 69%; } .f3 { top: 66%; width: 40%; }
.s-btn { left: 28%; top: 83%; width: 22%; height: 9%; background: var(--color-accent-fill); }
.s-mosaic { position: absolute; left: 28%; top: 50%; width: 62%; height: 8%; border-radius: 1cqw; background: repeating-conic-gradient(#8a93ad 0 25%, #4a536d 0 50%) 0 0 / 3.4cqw 3.4cqw; }
.s-ann { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.pin { right: 7%; top: 14%; width: 50%; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 2cqw; border: 1px solid rgba(238, 240, 245, 0.3); transition: opacity var(--duration-ui) ease-out, transform var(--duration-ui) ease-out; }
.pin .shot { border-radius: 0; }
.toast {
	left: 50%; bottom: 8%; transform: translateX(-50%); display: flex; align-items: center; gap: 1cqw; white-space: nowrap;
	padding: 1.1cqw 2.2cqw; border-radius: 999px; border: 1px solid rgba(238, 240, 245, 0.14);
	background: var(--color-glass); backdrop-filter: blur(20px) saturate(150%); color: #eef0f5; font-size: 1.55cqw;
	transition: opacity var(--duration-ui) ease-out;
}
.toast .g { width: 2cqw; height: 2cqw; color: var(--color-ann-green); stroke-width: 2.2; }

/* estados: 1 atajo · 2 anotar · 3 salida. Sin JS se ve el 2. */
.stage[data-step="1"] :is(.sel-b, .bar-wrap, .pin, .toast) { opacity: 0; }
.stage[data-step="2"] :is(.sel-a, .hint, .pin, .toast) { opacity: 0; }
.stage[data-step="3"] :is(.sel-a, .sel-b, .hint, .bar-wrap, .dim, .toast) { opacity: 0; }
.stage[data-step="3"] .toast { opacity: 1; }
.stage[data-step="1"] .pin, .stage[data-step="2"] .pin { transform: translateY(1.2cqw); }
html:not(.js) .stage :is(.sel-a, .hint, .pin, .toast) { opacity: 0; }
html:not(.js) .stage :is(.sel-b, .bar-wrap) { opacity: 1; }

/* ---------- herramientas ---------- */
.toolist { display: grid; gap: 0 56px; border-top: 1px solid var(--hair); }
@media (min-width: 900px) { .toolist { grid-template-columns: 1fr 1fr; } }
.toolist li, .road li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.ti { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--color-pill); color: var(--color-pill-ink); border: 1px solid var(--color-pill-border); }
.ti .g { width: 22px; height: 22px; }
.toolist h3, .road h3 { font: 650 1.1rem/1.3 var(--font-display); }
.toolist p, .road p { color: var(--color-fg-muted); font-size: 0.95rem; line-height: 1.5; margin-top: 2px; }
.tk { font-size: 0.78rem; color: var(--color-fg-muted); white-space: nowrap; }
@media (max-width: 560px) {
	.toolist li { grid-template-columns: 44px 1fr; }
	.toolist .tk { grid-column: 2; }
}

/* ---------- edición ---------- */
.edit-grid { display: grid; gap: 48px 72px; }
@media (min-width: 900px) { .edit-grid { grid-template-columns: 1.4fr 1fr; } }
.points { display: grid; gap: 28px; }
.points dt { font: 650 1.2rem/1.3 var(--font-display); }
.points dd { margin-top: 6px; color: var(--color-fg-muted); max-width: 58ch; }
.outs { align-self: start; padding: 26px 26px 24px; border: 1px solid var(--color-card-border); border-radius: var(--radius-ui); background: var(--color-card); }
.outs h3 { font: 650 1.1rem/1.3 var(--font-display); margin-bottom: 8px; }
.outs li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 0.97rem; }
.outs li:last-child { border-bottom: 0; }
.outs .fine { margin-top: 16px; }

/* ---------- ajustes (atajos y ventana principal) ---------- */
.settings { background: var(--color-bg-alt); }
.settings .sec-head { display: block; }
.settings .sec-head p { margin-top: 18px; }
.shots-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 40px 48px; margin-top: clamp(40px, 5vw, 64px); }
.shots-row .slot { flex: 1 1 300px; }
.shots-row .slot-2x3 { flex: 0 1 340px; }
.shots-row .slot-3x2 { flex: 1 1 420px; max-width: 560px; }

/* ---------- ranuras de capturas reales ---------- */
.see { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(24px, 4vw, 56px); }
.slot { margin: 0 auto; }
.slot-8x5 { max-width: 1100px; }
.slot picture, .slot img { display: block; width: 100%; height: auto; }
.slot img { border: 1px solid var(--color-card-border); border-radius: var(--radius-capture); background: var(--color-shot); }
.slot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--color-fg-muted); text-align: center; }
.slot-box {
	display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; padding: 24px; text-align: center;
	border: 2px dashed var(--color-accent-warm); border-radius: var(--radius-capture); background: var(--color-badge); color: var(--color-fg);
}
.slot-box strong { font: 700 1rem/1.2 var(--font-display); letter-spacing: 0.04em; color: var(--color-badge-ink); }
.slot-box code { font-size: 0.85rem; color: var(--color-fg-muted); }
.slot-8x5 .slot-box { aspect-ratio: 8 / 5; }
.slot-2x3 .slot-box { aspect-ratio: 2 / 3; }
.slot-3x2 .slot-box { aspect-ratio: 3 / 2; }

/* ---------- privacidad ---------- */
.priv-list { display: grid; gap: 0 56px; border-top: 1px solid var(--hair); }
@media (min-width: 820px) { .priv-list { grid-template-columns: 1fr 1fr; } }
.priv-list li { padding: 28px 0 30px; border-bottom: 1px solid var(--hair); }
.priv-list h3 { font: 650 1.3rem/1.25 var(--font-display); }
.priv-list p { margin-top: 8px; color: var(--color-fg-muted); max-width: 52ch; }

/* ---------- lo que viene ---------- */
.soon { background: var(--color-bg-alt); }
.road-grid { display: grid; gap: 40px 64px; align-items: center; }
@media (min-width: 980px) { .road-grid { grid-template-columns: 1.25fr 0.75fr; } }
.road-visual { position: relative; display: grid; justify-items: center; gap: 14px; padding: 40px 20px; border: 1px dashed var(--color-fg-muted); border-radius: var(--radius-capture); }
.road-visual .pill-bar { padding: 8px 12px; gap: 6px; }
.road-visual .pb { width: 44px; height: 44px; }
.road-visual .pb .g { width: 24px; height: 24px; }
.road-visual p { max-width: 30ch; text-align: center; color: var(--color-fg-muted); font-size: 0.9rem; }
.road li { border-bottom-style: dashed; }
.road .ti { background: transparent; border-style: dashed; border-color: var(--color-fg-muted); color: var(--color-fg-muted); }
.road h3 { color: var(--color-fg); }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--color-badge); color: var(--color-badge-ink); font-size: 0.82rem; font-weight: 600; }

/* ---------- instalar ---------- */
.alpha-strip { margin: 0 0 28px; padding: 9px 16px; border-left: 3px solid var(--color-accent-warm); background: var(--color-badge); border-radius: 0 var(--radius-ui) var(--radius-ui) 0; font-size: 0.93rem; }
.inst-cols { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 1040px) { .inst-cols { grid-template-columns: 0.8fr 1.25fr 1fr; } }
.inst-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px 22px 24px; font-size: 0.95rem; line-height: 1.55; border: 1px solid var(--color-card-border); border-radius: var(--radius-ui); background: var(--color-card); }
.inst-col h3 { font: 650 1.3rem/1.25 var(--font-display); }
.inst-col p, .inst-col li { color: var(--color-fg-muted); }
.inst-col .fine { margin-top: 0; font-size: 0.85rem; }
.inst-col .inst-steps h4 { font-size: 1rem; }
.inst-col .code { font-size: 0.82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.state { align-self: flex-start; padding: 3px 12px; border: 1px dashed var(--color-accent-warm); border-radius: 999px; font-size: 0.85rem; background: var(--color-badge); }
.inst-col p.state { color: var(--color-badge-ink); }
.cmd { display: flex; flex-direction: column; gap: 8px; }
.cmd .code { margin: 0; }
.copy { align-self: flex-end; min-height: 32px; padding: 0 12px; border: 1px solid var(--color-card-border); border-radius: 999px; background: var(--color-bg); color: var(--color-fg); font: 600 0.8rem/1 var(--font-body); cursor: pointer; }
.copy:hover { border-color: var(--color-accent-ink); }
html:not(.js) .copy { display: none; }
.callout { margin-bottom: 24px; padding: 14px 18px; border-left: 3px solid var(--color-accent-warm); background: var(--color-badge); border-radius: 0 var(--radius-ui) var(--radius-ui) 0; font-size: 0.97rem; }
.inst-steps li { min-width: 0; }
.code { white-space: pre; }
.inst-steps { counter-reset: s; display: grid; gap: 22px; }
.inst-steps li { position: relative; padding-left: 52px; counter-increment: s; }
.inst-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--hair); font: 600 0.95rem/1 var(--font-display); }
.inst-steps h4 { font: 650 1.15rem/1.3 var(--font-display); }
.inst-steps p { margin-top: 4px; color: var(--color-fg-muted); max-width: 56ch; }
.code { margin-top: 12px; padding: 12px 16px; overflow-x: auto; border: 1px solid var(--color-card-border); border-radius: var(--radius-ui); background: var(--color-card); font: 0.92rem/1.5 var(--font-mono); }

/* ---------- preguntas ---------- */
details { border-bottom: 1px solid var(--hair); }
summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 1.1rem/1.4 var(--font-display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--font-body); color: var(--color-fg-muted); transition: transform var(--duration-ui) ease-out; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; max-width: 64ch; color: var(--color-fg-muted); }
details a { color: var(--color-accent-ink); }

/* ---------- pie ---------- */
.foot { display: grid; gap: 8px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 64px; border-top: 1px solid var(--hair); color: var(--color-fg-muted); font-size: 0.93rem; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--color-fg); font: 700 1.6rem/1 var(--font-display); letter-spacing: -0.02em; }
.foot-brand .logo { width: 52px; height: 39px; }
.foot a { color: var(--color-accent-ink); }
.soon-text { border-bottom: 1px dashed var(--color-fg-muted); }

/* ---------- 404 ---------- */
.nf-main { display: grid; justify-items: start; gap: 18px; max-width: 560px; margin: 0 auto; padding: 18vh var(--gutter) 10vh; }
.nf-main .logo { width: 64px; height: 48px; }
.nf-main h1 { font: 700 clamp(2.2rem, 6vw, 3.4rem)/1.05 var(--font-display); letter-spacing: -0.03em; }
.nf-main p { color: var(--color-fg-muted); }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- porqué, contribuir ---------- */
.points-3 { gap: 32px 48px; }
@media (min-width: 820px) { .points-3 { grid-template-columns: repeat(3, 1fr); } }
.contribute { background: var(--color-bg-alt); }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn-line { color: var(--color-fg); border: 1px solid var(--color-card-border); }
.btn-line:hover { background: var(--color-card); }

/* ---------- estado: vista previa temprana ---------- */
.status { display: inline-block; margin-bottom: 18px; padding: 4px 12px; border: 1px solid var(--color-accent-warm); border-radius: 999px; background: var(--color-badge); color: var(--color-badge-ink); font: 600 0.78rem/1.4 var(--font-body); letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- marca en el héroe ---------- */
.hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font: 700 clamp(1.6rem, 3.4vw, 2.4rem)/1 var(--font-display); letter-spacing: -0.02em; }
.hero-brand .logo { width: clamp(64px, 8vw, 92px); height: auto; aspect-ratio: 4 / 3; }
@media (max-width: 560px) { .brand { font-size: 1.5rem; } .logo { width: 48px; height: 36px; } }

.legal { font-size: 0.8rem; color: var(--color-fg-muted); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- preguntas frecuentes en dos columnas ---------- */
.faq-cols { display: grid; gap: 0 56px; align-items: start; }
@media (min-width: 900px) { .faq-cols { grid-template-columns: 1fr 1fr; } }
.faq-col { border-top: 1px solid var(--hair); }
@media (max-width: 899px) { .faq-col + .faq-col { border-top: 0; } }
