/* German Buchszer · portafolio
   El nombre como monumento al abrir y al cerrar; en medio, una página tranquila que primero explica y luego demuestra.
   Tinta clara sobre negro y un solo acento lima (el mismo de sus sitios). Una familia: Archivo, autohospedada.
   Archivo condensada solo para el nombre; el resto en ancho normal y en minúscula de oración. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0c0b;
  --surface: #161615;
  --surface-2: #20201e;
  --surface-3: #2b2b28;
  --ink: #ededea;
  --ink-soft: #d2d2cc;
  --muted: #a3a39d;
  --accent: #d4ff33;
  --accent-ink: #0c0c0b;

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(12px, 1.4vw, 20px);
  --bar-h: 64px;
  --radius: 24px;
  --radius-s: 16px;
  --section: clamp(96px, 10vw, 160px);

  /* Cinco tamaños: small, body, lead (también h3), h2 y el nombre (que se ajusta al ancho) */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  --step-h2: clamp(2.25rem, 1.3rem + 3vw, 4rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 200ms;
  --t-ui: 260ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--m); top: -80px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Títulos de sección: negrita, ancho normal, minúscula de oración */
.h2 { font-size: var(--step-h2); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; }
.h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
/* Las palabras de un título entran una a una */
.w { display: inline-block; }
.wl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Botones: píldora plana, un solo relleno ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--step-body);
  line-height: 1.1;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: var(--step-small); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--wide { width: 100%; min-height: 60px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); color: var(--bg); }
  .btn--ghost:hover { background: var(--surface-3); color: var(--ink); }
}
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; transition: text-decoration-color var(--t-hover) ease; white-space: nowrap; }
.link--out::after { content: " ↗"; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- Barra ---------- */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  padding: 0 calc(var(--m) + 130px) 0 var(--m);
  color: var(--ink);
  font-size: var(--step-small);
  transition: transform 360ms var(--ease-out), background-color 300ms ease;
}
.bar.is-solid { background: var(--bg); }
.bar__mark { font-weight: 700; text-decoration: none; white-space: nowrap; margin-right: auto; }
.bar__nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.bar__nav a { position: relative; text-decoration: none; }
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.lang { display: flex; gap: 2px; }
.lang button, .bar__menu { background: none; border: 0; padding: 6px 7px; font-size: var(--step-small); color: var(--muted); transition: color var(--t-hover) ease; }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .lang button:hover { color: var(--ink); } }
.bar__menu { display: none; color: var(--ink); font-weight: 700; }
.bar__cta { position: fixed; top: 12px; right: var(--m); z-index: 51; transition: transform 360ms var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.bar.is-hidden, .bar__cta.is-hidden { transform: translateY(-140%); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--bar-h) + 24px) var(--m) 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 520ms var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-size: 12vw; text-decoration: none; }
.menu__foot a { font-weight: 600; font-size: var(--step-body); }
body.menu-open .bar { background: transparent; color: var(--accent-ink); }
body.menu-open .lang button { color: rgba(12, 12, 11, 0.6); }
body.menu-open .lang button[aria-pressed="true"], body.menu-open .bar__menu { color: var(--accent-ink); }
body.menu-open .fab { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Inicio: el nombre y una pantalla que crece y recorre los sitios ---------- */
.hero { position: relative; }
.js .hero { height: 480svh; }
.hero__pin {
  --name-bottom: calc(96px + 12.4vw);
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: #0c0c0b;
}
.js .hero__pin { position: sticky; top: 0; }

.name {
  position: absolute;
  left: var(--m);
  right: var(--m);
  top: 96px;
  z-index: 1;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.86;
  font-size: 14vw;
  pointer-events: none;
}
.js:not(.ready) .name { opacity: 0; }
.name__line { display: inline-block; white-space: nowrap; overflow: hidden; padding: 0.04em 0.02em 0.06em; margin: -0.04em 0 -0.06em; vertical-align: top; }
.name__word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
@media (hover: hover) and (pointer: fine) { .name { pointer-events: auto; } }

.hero__foot {
  position: absolute;
  left: var(--m);
  bottom: 32px;
  width: calc(30vw - var(--m) - 32px);
  z-index: 2;
}
.hero__lead { font-size: var(--step-body); line-height: 1.4; }
.hero__lead strong { font-weight: 700; color: var(--accent); }
.hero__cta { margin-top: 20px; }

.hero__slot { position: absolute; left: 30vw; right: var(--m); top: calc(var(--name-bottom) + 28px); bottom: 24px; display: flex; justify-content: flex-end; visibility: hidden; pointer-events: none; }

.screen {
  position: absolute;
  left: var(--m);
  right: var(--m);
  top: 76px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: #1d1d1b;
  border-radius: 16px;
  overflow: hidden;
  transform-origin: 0 0;
}
html:not(.js) .screen { left: 30vw; top: calc(var(--name-bottom) + 28px); bottom: 24px; }
.screen__bar { flex: none; height: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 14px; background: #232321; color: #d7d7d0; font-size: 13px; }
.screen__labels, .screen__urls { position: relative; height: 24px; min-width: 0; }
.screen__labels > span, .screen__urls > span { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity 260ms ease, transform 360ms var(--ease-out); }
.screen__labels > span.is-on, .screen__urls > span.is-on { opacity: 1; transform: none; }
.screen__labels b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.screen__labels i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #31312e; color: #c7c7c0; flex: none; }
.screen__urls { width: min(380px, 34vw); }
.screen__urls > span { justify-content: center; background: #31312e; border-radius: 6px; padding: 0 12px; color: #b6b6af; font-size: 12px; overflow: hidden; }
.screen__win { position: relative; flex: 1; overflow: hidden; background: #0d0e10; }
.shot { position: absolute; inset: 0; overflow: hidden; }
.shot:not(:first-child) { display: none; }
.js .shot:not(:first-child) { display: block; clip-path: inset(100% 0 0 0); }
.shot img { display: block; width: 100%; height: auto; }
/* El sistema de ejemplo se ve completo dentro de la ventana, sin cortar su borde de abajo */
.shot--tabs { background: #0c0c0b; }
.shot--tabs picture { position: absolute; inset: 0; background: #0c0c0b; }
.shot--tabs img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; }
.js .shot--tabs picture:not(:first-child) { opacity: 0; }
.shot--tabs picture:not(:first-child) { display: none; }
.js .shot--tabs picture:not(:first-child) { display: block; }

/* ---------- Secciones: ritmo común ---------- */
.section { padding: var(--section) var(--m); }
.section__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.section__head .h2 { grid-column: 1 / 8; }
.section__head .lead { grid-column: 8 / 13; max-width: 34ch; color: var(--ink-soft); }

/* ---------- Sobre mí: dos ideas, una al lado de la otra ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-bottom: 0; }
.intro__card { background: var(--surface); border-radius: var(--radius); padding: clamp(26px, 3.2vw, 48px); }
.intro__card p { font-size: var(--step-lead); line-height: 1.28; letter-spacing: -0.01em; }
.intro__card strong { font-weight: 700; }
.intro__card--accent p strong { color: var(--accent); }
.intro__facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 20px; font-size: var(--step-small); color: var(--muted); }
.intro__facts strong { color: var(--ink); font-weight: 600; margin-right: 6px; }
.intro__facts a { color: var(--ink); }

/* ---------- Qué hago: tres columnas, cada una con su prueba pequeña ---------- */
.what__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 5vw, 72px); }
.svc { display: flex; flex-direction: column; min-width: 0; }
.svc .h3 { position: relative; padding-left: 18px; }
.svc .h3::before { content: ""; position: absolute; left: 0; top: 0.12em; bottom: 0.12em; width: 4px; border-radius: 4px; background: var(--accent); }
.svc p { margin-top: 12px; max-width: 40ch; }
.svc__try { color: var(--muted); font-size: var(--step-small); margin-top: 18px !important; }
.svc__panel { margin-top: 10px; background: var(--surface); border-radius: var(--radius-s); padding: 14px; flex: 1; min-height: 196px; }
.what__more { margin-top: clamp(40px, 4vw, 56px); max-width: 62ch; color: var(--ink-soft); }
.what__more a { color: var(--accent); }

/* Fragmentos de interfaz reales (data-ui): conservan sus propias convenciones */
.ui-web { background: #fff; color: #111; border-radius: 10px; overflow: hidden; padding: 0 0 16px; font-size: 14px; }
.ui-web__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; background: #ececea; }
.ui-web__url { font-size: 13px; color: #555; }
.ui-web__url b { color: #111; }
.ui-web__langs { display: flex; gap: 2px; background: #dcdcd8; border-radius: 999px; padding: 2px; }
.ui-web__langs button { border: 0; background: none; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 600; color: #444; }
.ui-web__langs button[aria-pressed="true"] { background: #111; color: #fff; }
.ui-web__h { padding: 16px 14px 12px; font-size: 21px; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; min-height: 2.24em; }
.ui-web__btn { display: inline-block; margin-left: 14px; background: #25d366; color: #06371c; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 999px; }

.ui-search input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
  background: #0f1012; color: #f2f0ea; border: 1px solid #2c2d30; font: inherit; font-size: 16px;
}
.ui-search input::placeholder { color: #8d8b85; }
.ui-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ui-search ul { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.ui-search li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: #1f2023; border-radius: 8px; font-size: 14px; min-width: 0; }
.ui-search li > div { min-width: 0; }
.ui-search li b { font-weight: 600; }
.ui-search .sku { color: #a3a19a; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-search li span { color: #c9c7c0; font-variant-numeric: tabular-nums; flex: none; }
.ui-search li em { font-style: normal; color: var(--accent); }
.ui-search .ui-empty { background: none; color: #b9b7b0; }

.ui-bcv { background: #f4f4f1; color: #161615; border-radius: 10px; overflow: hidden; font-size: 14px; }
.ui-bcv__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: #161615; color: #f4f4f1; font-size: 13px; }
.ui-bcv__top b { font-weight: 700; }
.ui-bcv__top span { color: #b9b9b2; }
.ui-bcv__top span b { color: #f4f4f1; font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-bcv li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 12px; border-top: 1px solid #e6e6e0; } /* taste-skill-ignore: interfaz real del sistema de ejemplo (data-ui) */
.ui-bcv li:first-child { border-top: 0; }
.ui-bcv li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-bcv li b { font-variant-numeric: tabular-nums; text-align: right; }
.ui-bcv li small { grid-column: 2; text-align: right; color: #5f5f59; font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- Por qué conmigo: el visor 3D a un lado, cuatro razones al otro ---------- */
.why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
/* En el HTML las razones van primero (se leen antes que la prueba); en escritorio el video se ve a la izquierda */
.why__media { grid-column: 1 / 7; grid-row: 1; }
.why__media video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #1c1f22; border-radius: var(--radius); }
.why__cap { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.why__body { grid-column: 8 / 13; grid-row: 1; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.reason { background: var(--surface); border-radius: var(--radius-s); padding: 22px 20px; transition: background-color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
.reason h3 { font-size: var(--step-body); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.reason p { margin-top: 8px; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .reason:hover { background: var(--surface-2); transform: translateY(-3px); } }

/* ---------- Trabajo: primero qué es, luego las capturas completas ---------- */
.work { background: var(--bg); }
.project { margin-top: clamp(72px, 8vw, 128px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.project__info { grid-column: 1 / 6; }
.project__info .h3 { font-size: var(--step-lead); }
.project__by { margin-top: 6px; color: var(--muted); }
.project__text { grid-column: 7 / 13; align-self: end; }
.project__text p { max-width: 50ch; }
.project__text p + p { margin-top: 12px; }
.project__stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 20px; }
.project__stat b { font-size: var(--step-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.project__stat span { color: var(--ink-soft); max-width: 22ch; line-height: 1.3; }
.project__media { grid-column: 1 / 13; margin-top: clamp(32px, 3.4vw, 48px); display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.project__media a { display: block; text-decoration: none; border-radius: var(--radius-s); }
.project__media figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

.browser { margin: 0; background: #1d1d1b; border-radius: var(--radius-s); overflow: hidden; transition: transform 500ms var(--ease-out); }
.browser__bar { height: 34px; display: flex; align-items: center; justify-content: center; padding: 0 12px; background: #232321; }
.browser__url { max-width: min(420px, 90%); height: 22px; padding: 0 12px; display: flex; align-items: center; background: #31312e; color: #b6b6af; border-radius: 6px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; height: auto; }
.phone { margin: 0; padding: 6px; background: #050505; border-radius: 34px; transition: transform 500ms var(--ease-out); }
.phone img { width: 100%; height: auto; border-radius: 28px; }
@media (hover: hover) and (pointer: fine) {
  .project__media a:hover .browser, .project__media a:hover .phone { transform: translateY(-6px); }
}

/* ---------- Sistemas a medida ---------- */
.systems { background: var(--surface); }
/* El texto fijo acompaña solo al sistema: su fila termina antes de la calculadora */
.systems__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.systems__intro { grid-column: 1 / 5; position: sticky; top: 96px; }
.systems__lead { margin-top: 24px; max-width: 36ch; }
.systems__list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-soft); max-width: 38ch; }
.systems__list b { color: var(--ink); font-weight: 600; }
.systems__acts { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.systems__full { font-size: var(--step-small); color: var(--ink); text-underline-offset: 0.2em; }
.systems__full::after { content: " ↗"; }
.systems__demo { grid-column: 5 / 13; }

/* Calculadora de ahorro, dentro de Sistemas */
.savings { margin-top: clamp(56px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); background: var(--bg); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 52px); }
.savings__out { grid-column: 1 / 7; }
.savings__figure { margin-top: 18px; font-size: var(--step-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.savings__per { margin-top: 10px; font-size: var(--step-body); max-width: 30ch; }
.savings__more { margin-top: 10px; font-size: var(--step-body); color: var(--ink-soft); max-width: 44ch; }
.savings__out .btn { margin-top: 26px; }
.savings__in { grid-column: 8 / 13; align-self: center; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 1rem; line-height: 1.3; }
.field output { font-weight: 700; font-size: var(--step-lead); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.savings__note { font-size: var(--step-small); color: var(--muted); }

input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 8px 0 0; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--surface-3); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--accent); border: 0; transition: transform var(--t-press) var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

/* El sistema de ejemplo (data-ui): interfaz de aplicación clara, con sus propias convenciones */
.sys {
  position: relative;
  background: #f4f4f1; color: #161615;
  border-radius: var(--radius-s); overflow: hidden;
  font-size: 14px; line-height: 1.4;
  font-stretch: 100%;
}
.sys button, .sys select { font: inherit; }
.sys__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #161615; color: #f4f4f1; }
.sys__brand { font-weight: 700; font-size: 15px; }
.sys__demo { background: var(--accent); color: #161615; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.sys__rate { margin-left: auto; font-size: 12px; color: #b9b9b2; }
.sys__rate b { color: #f4f4f1; font-weight: 600; }
.sys__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 520px; }
.sys__nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: #e9e9e4; }
.sys__nav button { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 8px; color: #4d4d48; font-weight: 500; transition: background-color 160ms ease, color 160ms ease; }
.sys__nav button[aria-selected="true"] { background: #161615; color: #f4f4f1; }
@media (hover: hover) and (pointer: fine) { .sys__nav button:not([aria-selected="true"]):hover { background: #dcdcd6; } }
.sys__badge { background: #d93a2f; color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; }
.sys__main { padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sys__main:focus { outline: none; }
.sys__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sys__kpis > div { background: #fff; border: 1px solid #e3e3dd; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; } /* taste-skill-ignore: interfaz real del sistema de ejemplo (data-ui) */
.sys__kpis span { font-size: 12px; color: #5f5f59; }
.sys__kpis b { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sys__kpis small { font-size: 12px; color: #5f5f59; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys__cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.sys__card { background: #fff; border: 1px solid #e3e3dd; border-radius: 10px; padding: 12px; min-width: 0; } /* taste-skill-ignore: interfaz real del sistema de ejemplo (data-ui) */
.sys__h { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.sys__chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 170px; }
.sys__bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.sys__bar i { display: block; width: 100%; height: 118px; background: #cfcfc8; border-radius: 4px 4px 0 0; transform-origin: bottom; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.sys__bar.is-today i { background: #161615; }
.sys__bar.is-bump i { background: var(--accent); }
.sys__val { font-size: 11px; color: #5f5f59; font-variant-numeric: tabular-nums; }
.sys__day { font-size: 11px; color: #5f5f59; }
.sys__form { display: flex; flex-direction: column; gap: 9px; }
.sys__form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #5f5f59; min-width: 0; }
.sys__form select { height: 36px; border: 1px solid #d8d8d2; border-radius: 8px; background: #fff; color: #161615; padding: 0 8px; font-size: 13px; min-width: 0; width: 100%; } /* taste-skill-ignore: interfaz real del sistema de ejemplo (data-ui) */
.sys__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.sys__step { display: flex; align-items: center; height: 36px; border: 1px solid #d8d8d2; border-radius: 8px; overflow: hidden; background: #fff; } /* taste-skill-ignore: interfaz real del sistema de ejemplo (data-ui) */
.sys__step button { width: 32px; height: 100%; border: 0; background: #f1f1ed; color: #161615; font-size: 16px; }
.sys__step output { min-width: 34px; text-align: center; color: #161615; font-weight: 600; font-size: 14px; }
.sys__total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.sys__total span { font-size: 12px; color: #5f5f59; }
.sys__total b { font-size: 20px; font-variant-numeric: tabular-nums; }
.sys__total small { font-size: 12px; color: #5f5f59; font-variant-numeric: tabular-nums; }
.sys__go { height: 40px; border: 0; border-radius: 8px; background: #161615; color: #f4f4f1; font-weight: 600; transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms ease, color 160ms ease; }
.sys__go:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .sys__go:hover { background: var(--accent); color: #161615; } }
.sys__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-top: 1px solid #ecece7; font-size: 13px; } /* taste-skill-ignore: interfaz real del sistema de ejemplo (data-ui) */
.sys__list li:first-child { border-top: 0; }
.sys__list li span:first-child { color: #5f5f59; font-variant-numeric: tabular-nums; }
.sys__list li span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys__alert { background: #ffe9e7; color: #8c1d14; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 13px; }
.sys__alert.is-fine { background: #eef7d6; color: #2f4a06; }
.sys__tablewrap { padding: 4px 12px; overflow-x: auto; }
.sys__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sys__table th { text-align: left; font-weight: 500; color: #5f5f59; padding: 8px 6px; border-bottom: 1px solid #e3e3dd; white-space: nowrap; } /* taste-skill-ignore: interfaz real del sistema de ejemplo (data-ui) */
.sys__table td { padding: 9px 6px; border-bottom: 1px solid #ecece7; font-variant-numeric: tabular-nums; } /* taste-skill-ignore: interfaz real del sistema de ejemplo (data-ui) */
.sys__table tr:last-child td { border-bottom: 0; }
.sys__tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sys__tag--ok { background: #eef7d6; color: #2f4a06; }
.sys__tag--low { background: #fff1c2; color: #6a4b00; }
.sys__tag--out { background: #ffe0dd; color: #8c1d14; }
.sys__mini { border: 0; border-radius: 8px; background: #161615; color: #f4f4f1; padding: 6px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1); }
.sys__mini:active { transform: scale(0.95); }
.sys__mini--ghost { background: #ececE7; color: #161615; }
.sys__clients li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #ecece7; flex-wrap: wrap; } /* taste-skill-ignore: interfaz real del sistema de ejemplo (data-ui) */
.sys__clients li:first-child { border-top: 0; }
.sys__clients li > div:first-child { display: flex; flex-direction: column; }
.sys__clients li span { font-size: 12px; color: #5f5f59; }
.sys__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.sys__toast {
  position: absolute; left: 50%; bottom: 14px; z-index: 2;
  max-width: calc(100% - 28px); width: max-content;
  background: #161615; color: #f4f4f1; border-radius: 10px; padding: 10px 14px; font-size: 13px;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sys__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .sys__body { grid-template-columns: 1fr; min-height: 0; }
  .sys__nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .sys__nav button { flex: none; }
  .sys__cols { grid-template-columns: 1fr; }
  .sys__kpis { grid-template-columns: 1fr 1fr; }
  .sys__kpis > div:last-child { grid-column: 1 / -1; }
  .sys__kpis b { font-size: 19px; }
  .sys__chart { height: 140px; }
  .sys__bar i { height: 92px; }
  .sys__rate { display: none; }
}

/* ---------- Cotizador ---------- */
.quote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.quote__left { grid-column: 1 / 7; align-self: start; position: sticky; top: 88px; }
.quote__hint { margin-top: 18px; max-width: 40ch; color: var(--ink-soft); }
.plans { display: flex; flex-direction: column; align-items: flex-start; margin-top: clamp(28px, 3vw, 40px); }
.plan {
  position: relative;
  background: none; border: 0; padding: 0.08em 0 0.08em 0.9em; margin: 0;
  text-align: left;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  white-space: nowrap;
  color: #8a8a84;
  transition: color var(--t-hover) ease;
}
.plan::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0.36em; height: 0.36em; margin-top: -0.18em;
  border-radius: 50%; background: var(--accent);
  opacity: 0; transform: scale(0.4); transition: transform 320ms var(--ease-out), opacity 200ms ease;
}
.plan[aria-pressed="true"] { color: var(--ink); }
.plan[aria-pressed="true"]::before { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .plan:hover { color: #b5b5ae; }
  .plan[aria-pressed="true"]:hover { color: var(--ink); }
}

.bubble-wrap { margin-top: clamp(36px, 4vw, 56px); max-width: 440px; }
.bubble-wrap__label { font-size: var(--step-small); color: var(--muted); margin-bottom: 10px; }
.bubble {
  position: relative;
  background: #005c4b; color: #e9edef;
  border-radius: 10px 0 10px 10px;
  padding: 10px 12px 22px;
  font-size: 15px; line-height: 1.42;
  white-space: pre-wrap;
  min-height: 120px;
}
.bubble::after { content: ""; position: absolute; top: 0; right: -9px; border-left: 10px solid #005c4b; border-bottom: 10px solid transparent; }
.bubble__time { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: rgba(233, 237, 239, 0.7); }
.bubble .caret { display: inline-block; width: 2px; height: 1em; background: #e9edef; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.stage { grid-column: 8 / 13; }
.stage__plan { font-size: var(--step-lead); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--accent); }
.seg button, .chip, .stepper button {
  border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink);
  padding: 9px 14px; font-size: var(--step-small); line-height: 1.15;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.seg button:active, .chip:active, .stepper button:active { transform: scale(0.95); }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .seg button:hover, .chip:hover, .stepper button:hover { background: var(--surface-3); }
  .seg button[aria-pressed="true"]:hover, .chip[aria-pressed="true"]:hover { background: var(--accent); }
}
.chip[data-included="true"] { background: var(--surface); color: var(--muted); cursor: default; }
.chip[data-included="true"]::after { content: " · " attr(data-inc-label); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stage__desc { margin-top: 12px; line-height: 1.45; max-width: 44ch; }
.opts { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: 22px; background: var(--surface); border-radius: var(--radius); }
.opt { display: flex; flex-direction: column; gap: 10px; }
.opt--wide { grid-column: 1 / -1; }
.opt__label { font-size: var(--step-small); color: var(--muted); }
.stepper { display: flex; align-items: stretch; gap: 4px; }
.stepper button { width: 46px; height: 46px; padding: 0; font-size: var(--step-body); }
.stepper output { min-width: 96px; padding: 0 10px; display: grid; place-items: center; background: var(--bg); border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seg { display: flex; gap: 4px; }
.seg button { min-width: 52px; height: 46px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background-color var(--t-hover) ease; }
.switch input::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform var(--t-ui) var(--ease-out); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); background: var(--accent-ink); }
.text-in { width: 100%; height: 50px; padding: 0 18px; background: var(--bg); color: var(--ink); border: 0; border-radius: 999px; font: inherit; }
.text-in::placeholder { color: #8d8d87; }
.stage .btn--wide { margin-top: 24px; }
.stage__note { margin-top: 14px; font-size: var(--step-small); color: var(--muted); max-width: 52ch; }

/* ---------- Cierre: un mensaje, un botón y el horizonte encendido ---------- */
.cta { position: relative; padding: var(--section) var(--m) 0; text-align: center; overflow: hidden; }
.cta .h2 { margin: 0 auto; max-width: 16ch; }
.cta__lead { margin: 20px auto 0; max-width: 40ch; color: var(--ink-soft); }
.cta__acts { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta__mail { font-size: var(--step-small); color: var(--muted); }
.cta__mail a { color: var(--ink); }
/* El horizonte: un planeta del color del fondo con el borde encendido (como el cierre de la referencia, en lima) */
.horizon { position: relative; height: clamp(200px, 26vw, 380px); margin-top: clamp(56px, 6vw, 96px); pointer-events: none; }
.horizon__planet {
  position: absolute; left: 50%; top: 0;
  width: max(1100px, 118vw); aspect-ratio: 1; margin-left: calc(max(1100px, 118vw) / -2);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 -2px 0 rgba(212, 255, 51, 0.75), 0 -24px 70px rgba(212, 255, 51, 0.28), 0 -90px 200px rgba(212, 255, 51, 0.14); /* taste-skill-ignore: el brillo del horizonte es la referencia que pidió el cliente */
}

/* ---------- Footer ---------- */
.foot { position: relative; padding: 0 var(--m) 20px; background: var(--bg); color: var(--ink); }
.foot__mark { padding-top: 8px; }
.foot__mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.foot__mark text { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 62%; letter-spacing: -0.01em; fill: var(--surface-3); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); font-size: 1rem; }
.foot__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.foot__cols a, .foot__cols button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; font-size: 1rem; transition: color var(--t-hover) ease; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .foot__cols a:hover, .foot__cols button:hover { color: var(--ink); } }
.foot__h { font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.foot__h--gap { margin-top: 14px; }
.lang--foot { gap: 14px; }
.foot__legal { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--step-small); color: var(--muted); }
.foot__legal > span:last-child { max-width: 70ch; }

/* Marca de agua del desarrollador: siempre la última línea */
.watermark { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--surface-3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 12px; line-height: 1.4; color: var(--muted); } /* taste-skill-ignore: la línea fina la pide la especificación de la marca de agua */
.watermark strong { color: var(--ink); font-weight: 700; }
.watermark a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; transition: color var(--t-hover) ease; }
.watermark svg { width: 13px; height: 13px; flex: none; }
@media (hover: hover) and (pointer: fine) { .watermark a:hover { color: var(--ink); } }

/* ---------- Aviso de cookies (informativo: no hay nada que rechazar) ---------- */
.notice {
  position: fixed; right: var(--m); bottom: 16px; z-index: 60;
  width: min(420px, calc(100vw - 2 * var(--m)));
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 18px 16px;
  background: var(--surface-2); color: var(--ink);
  border-radius: var(--radius-s);
  font-size: var(--step-small); line-height: 1.45;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); /* taste-skill-ignore: el aviso flota sobre la página */
  opacity: 0; transform: translateY(16px);
  transition: opacity 320ms ease, transform 420ms var(--ease-out);
}
.notice.is-on { opacity: 1; transform: none; }
.notice__acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.notice__acts a { color: var(--ink); }
.notice .btn { margin-left: auto; }

.fab { display: none; }

/* ---------- Tableta ---------- */
@media (max-width: 1080px) {
  .bar__nav { display: none; }
  .hero__slot { left: var(--m); bottom: 130px; justify-content: center; }
  .screen { top: 72px; bottom: 16px; }
  .hero__foot { width: auto; right: var(--m); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .hero__lead { max-width: 40ch; }
  .hero__cta { margin-top: 0; flex: none; }

  .section__head .h2, .section__head .lead { grid-column: 1 / 13; }
  .section__head .lead { margin-top: 18px; }
  .what__cols { grid-template-columns: 1fr 1fr; }
  .why__media, .why__body { grid-column: 1 / 13; grid-row: auto; }
  .why__media { margin-top: 48px; }
  .project__info, .project__text { grid-column: 1 / 13; }
  .project__text { margin-top: 16px; }
  .systems__intro { grid-column: 1 / 13; position: static; }
  .systems__demo { grid-column: 1 / 13; margin-top: 48px; }
  .savings__out, .savings__in { grid-column: 1 / 13; }
  .savings__in { margin-top: 36px; }
  .quote__left { grid-column: 1 / 13; position: static; }
  .stage { grid-column: 1 / 13; margin-top: 48px; }
  .foot__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* ---------- Teléfono ---------- */
@media (max-width: 760px) {
  :root { --bar-h: 58px; --radius: 20px; }
  .bar { padding-right: calc(var(--m) + 118px); gap: 10px; }
  .bar__mark { font-size: 0; }
  .bar__mark::before { content: "GB"; font-size: var(--step-body); font-weight: 800; }
  .bar__menu { display: block; }
  .bar__cta { top: 9px; }
  .js .hero { height: 420svh; }

  .name { top: 72px; font-size: 26vw; line-height: 0.84; white-space: normal; }
  .name__line { display: block; }
  .hero__slot { top: calc(var(--name-bottom) + 16px); bottom: 176px; }
  .screen { left: 12px; right: 12px; top: 66px; bottom: 12px; border-radius: 22px; }
  .screen__bar { grid-template-columns: 1fr; height: 36px; }
  .screen__urls { display: none; }
  .hero__foot { display: block; bottom: 20px; }
  .hero__lead { max-width: none; }
  .hero__cta { margin-top: 12px; }

  .intro { grid-template-columns: 1fr; }
  .what__cols { grid-template-columns: 1fr; gap: 56px; }
  .svc__panel { min-height: 0; }
  .why__grid { grid-template-columns: 1fr; }
  .project__media { grid-template-columns: 1fr; row-gap: 24px; }
  .project__media .phone-wrap { width: 72%; margin-left: auto; }

  .savings { padding: 24px 20px; }
  .opts { grid-template-columns: 1fr; padding: 16px; }
  .stage { margin-top: 0; padding: 24px 0 36px; }
  .bubble-wrap { margin-top: 40px; }

  .foot__legal { flex-direction: column; }
  .notice { bottom: 12px; }

  .fab { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 40; transition: transform 360ms var(--ease-out), opacity 300ms ease, background-color var(--t-hover) ease; }
  .fab.is-hidden, body.notice-open .fab { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .plan, .menu, .notice, .reason, .browser, .phone, .screen__labels > span, .screen__urls > span { transition: none !important; }
}

/* ---------- Páginas legales y de apoyo ---------- */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--m); font-size: var(--step-small); }
.page__bar a { color: var(--ink); text-decoration: none; font-weight: 600; }
.page__bar a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.page__main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--m) clamp(72px, 8vw, 120px); }
.page__main h1 { font-size: var(--step-h2); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; }
.page__updated { margin-top: 14px; color: var(--muted); font-size: var(--step-small); }
.page__intro { margin-top: 28px; font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.01em; color: var(--ink-soft); }
.legal h2 { margin-top: 48px; font-size: var(--step-lead); font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; }
.legal p, .legal ul { margin-top: 14px; max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--accent); }
.legal strong { font-weight: 650; }
.legal table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 1rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--surface-3); }
.legal th { color: var(--muted); font-weight: 500; font-size: var(--step-small); }
.legal td:first-child { font-weight: 600; white-space: nowrap; }
.legal__toc { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.legal__toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: var(--step-small); }
.legal__toc a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.page__foot { padding: 0 var(--m) 20px; }
.page__foot .foot__legal { margin-top: 0; padding-top: 24px; }
@media (max-width: 760px) {
  .legal td:first-child { white-space: normal; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--surface-3); }
  .legal td { border: 0; padding: 2px 0; }
}

/* Página del sistema de ejemplo a pantalla completa */
.demo-page { min-height: 100svh; padding: 20px var(--m) 32px; display: flex; flex-direction: column; gap: 18px; max-width: 1180px; margin: 0 auto; }
.demo-page__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; font-size: var(--step-small); }
.demo-page__top a { color: var(--ink); text-underline-offset: 0.2em; }
.demo-page__top p { color: var(--muted); }
.demo-page .sys__body { min-height: calc(100svh - 160px); }
@media (max-width: 760px) { .demo-page .sys__body { min-height: 0; } }

/* Página 404 */
.lost { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: var(--section) var(--m); }
.lost__code { font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.01em; font-size: clamp(7rem, 30vw, 22rem); color: var(--surface-3); }
.lost h1 { margin-top: 24px; font-size: var(--step-h2); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; max-width: 16ch; }
.lost p { margin-top: 16px; max-width: 46ch; color: var(--ink-soft); }
.lost__acts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
