/* Guía de networking (onbrain.app/networking/). Página suelta, con su propio CSS: no usa
   styles.css. Comparte la estructura de /onboarding/ (cabecera, hilo de pasos con su maqueta,
   cierre) y los tokens de marca están copiados de apps/web/app/globals.css. */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.logo { display: inline-block; justify-self: start; color: inherit; text-decoration: none; }
.close .help a.mail { text-decoration: underline; text-underline-offset: 3px; }

:root {
  --bg: #f6f6f9;
  --paper: #ffffff;
  --ink: #191b23;
  --muted: #63687a;
  --line: #e7e8ef;
  --line-strong: #d5d7e2;
  --brand: #6c4df6;
  --brand-dark: #5636e3;
  --brand-soft: #efecfe;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #d97706;
  --shadow: rgba(25, 27, 35, 0.16);
  --night: #15122b;
  --night-muted: #b3add6;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light; /* la marca es de tema claro único */
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  padding-inline: 20px;
  padding-block: 32px 44px;
}
.sheet { max-width: 1080px; margin-inline: auto; display: grid; gap: 56px; }
.sheet > * { min-width: 0; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
section[id] { scroll-margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Cabecera */
.top { display: grid; gap: 22px; }
/* El logotipo con el anillo haciendo de «o»: mismas medidas que LogoLetter en la app. */
.logo { font-size: 34px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.logo svg { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.206em; margin: 0 -0.129em 0 -0.136em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 800; line-height: 1.06; }
h1 .thin { font-weight: 200; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 52ch; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  font-size: 0.84rem; font-weight: 600; color: var(--ink); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.toc a:hover { border-color: var(--brand); color: var(--brand-dark); }

/* Secciones: una por momento del evento, en el orden en que se vive */
.eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.sec-head { margin-bottom: 20px; }

/* Menciones a secciones de la app: texto normal, o enlace si sabemos cuál es tu OnBrain */
a.app { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.where { font-size: 0.72rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; white-space: nowrap; text-decoration: none; }
a.where:hover { background: var(--brand); color: var(--paper); }
a.where::after { content: " ↗"; }

/* El hilo de pasos, numerados de corrido de «Antes» a «Siempre» */
.rail { position: relative; display: grid; gap: 34px; }
.rail::before {
  content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--brand) 80%, var(--brand-soft));
  border-radius: 2px;
}
.step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.bead {
  width: 28px; height: 28px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--brand); color: var(--brand);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
  font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.step-body { display: grid; gap: 14px; }
.step-body > * { min-width: 0; }
@media (min-width: 880px) {
  .step-body { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: start; }
}
.step-text { max-width: 54ch; }
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 2px; }
.step h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.checks { display: grid; gap: 6px; margin-top: 8px; }
.checks li { position: relative; padding-left: 24px; font-size: 0.94rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9' fill='none' stroke='%236c4df6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
/* Preguntas para Pedir: como se las escribirías, entre comillas. */
.asks { display: grid; gap: 8px; margin-top: 10px; }
.asks li {
  justify-self: start; max-width: 100%; font-size: 0.94rem; font-weight: 600; color: var(--brand-dark);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 6px 12px;
}
.asks li::before { content: "«"; }
.asks li::after { content: "»"; }
.step-foot { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

/* Maquetas de la app (decorativas: lo que cuentan ya lo dice el texto de al lado) */
.mock {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  box-shadow: 0 14px 30px -18px var(--shadow);
  font-size: 12px; line-height: 1.4; display: grid; gap: 10px; align-content: start;
}
/* Pista con mínimo cero: un campo de una línea (nowrap) no puede ensanchar la maqueta. */
.mock, .m-panel, .m-card, .m-list { grid-template-columns: minmax(0, 1fr); }
.mock > *, .m-panel > *, .m-card > *, .m-list > * { min-width: 0; }
.m-names { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.m-title { font-weight: 800; font-size: 13px; display: block; }
.m-strong { font-weight: 700; font-size: 12.5px; display: block; }
.m-sub { color: var(--muted); font-size: 11px; display: block; }
.m-sub b { color: var(--ink); font-weight: 600; }
.m-text { font-size: 12px; display: block; }
.m-muted { color: var(--muted); font-size: 11px; }
.m-link { color: var(--brand); font-weight: 600; }
.m-brand { color: var(--brand); font-weight: 700; }
.m-hot-text { background: var(--brand-soft); border-radius: 4px; padding: 0 4px; }
.m-label { font-size: 10.5px; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* Botones */
.m-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 5px 10px; background: var(--paper);
  font-weight: 600; font-size: 11px; white-space: nowrap; flex: none;
}
.m-btn.primary { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.m-btn.hot, .m-input.hot, .m-sw.hot { box-shadow: 0 0 0 3px var(--brand-soft); }
.m-btn.hot:not(.primary), .m-input.hot { border-color: var(--brand); color: var(--brand-dark); }
.m-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.m-btns.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-btns.two .m-btn { justify-content: center; }
.m-input.ph { color: var(--muted); }
.m-i { width: 13px; height: 13px; flex: none; }
.m-muted-ic { color: var(--muted); }
.m-mic {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--paper); border-radius: 12px; padding: 11px 12px;
  font-weight: 700; font-size: 12.5px; box-shadow: 0 0 0 3px var(--brand-soft);
}
.m-mic svg { width: 16px; height: 16px; flex: none; }

/* Bloques y filas */
.m-panel { background: var(--bg); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.m-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.m-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-line > :first-child { min-width: 0; }
.m-line.start { justify-content: flex-start; }
.m-set { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.m-set-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.m-set-row + .m-set-row { border-top: 1px solid var(--line); }
.m-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.m-ico svg { width: 15px; height: 15px; }
.m-sw { width: 30px; height: 18px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; }
.m-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); }
.m-sw.on { background: var(--brand); }
.m-sw.on::after { left: 14px; }

/* Campos */
.m-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.m-input { border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 9px; background: var(--paper); min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-input.sm { flex: none; }
.m-input.wrap { white-space: normal; overflow-wrap: anywhere; }
.m-add { font-weight: 800; color: var(--brand); font-size: 12px; justify-self: start; }
.m-file { display: flex; align-items: center; gap: 8px; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 6px; }
.m-file-btn { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 7px; padding: 3px 8px; font-weight: 600; font-size: 11px; flex: none; }
.m-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
/* Las pestañas de origen (SourceTabs): tres iguales en una barra. */
.m-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: var(--bg); border-radius: 10px; padding: 3px; }
/* Que «Enlace de Drive» parta en dos líneas en un móvil en vez de cortarse. */
.m-seg span { display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; font-size: 11px; line-height: 1.25; color: var(--muted); padding: 5px 4px; border-radius: 8px; }
.m-seg .on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }
.m-opts { display: grid; gap: 4px; }
.m-opt { display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; }
.m-opt b { font-weight: 700; }
.m-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.m-radio { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper); flex: none; margin-top: 1px; }
.m-opt.on .m-radio { border: 4px solid var(--brand); }
.m-box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); background: var(--paper); flex: none; }
.m-box.on {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6 5.4-5.6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

/* Chips */
.m-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.m-chip {
  display: inline-flex; align-items: center; gap: 3px; vertical-align: 1px;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-size: 10px; font-weight: 600;
  color: var(--muted); background: var(--paper); white-space: nowrap;
}
.m-chip.brand { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.m-chip.ok { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); flex: none; }
.m-chip svg { width: 10px; height: 10px; }
.m-strong .m-chip { margin-left: 3px; }
.m-pick { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 9px; font-weight: 600; font-size: 11px; }
.m-pick b { color: var(--muted); margin-left: 2px; }
.m-pick.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.m-pick.on b { color: var(--brand); }

/* Pestañas de Personas */
.m-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.m-tab { border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-weight: 600; font-size: 11px; color: var(--muted); white-space: nowrap; }
.m-tab b { font-weight: 700; margin-left: 2px; }
.m-tab.on { background: var(--brand); border-color: var(--brand); color: var(--paper); }

/* Personas en una lista */
.m-list { display: grid; gap: 6px; }
.m-person { display: flex; align-items: flex-start; gap: 10px; }
.m-list > .m-person { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.m-av {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 11px; color: var(--av); background: color-mix(in srgb, var(--av) 16%, transparent);
}
/* El color de un avatar en la app sale del nombre; aquí va en clases (sin estilos en línea). */
.av-a { --av: #6c4df6; } .av-b { --av: #0f9d58; } .av-c { --av: #e37400; }
.av-d { --av: #00838f; } .av-e { --av: #7b1fa2; }
.m-star { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; }
.m-star.on { fill: var(--brand); stroke: var(--brand); }
.m-sec { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.m-sec-title { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.m-ok { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 12px; }
.m-ok svg { width: 14px; height: 14px; flex: none; }

/* Seguimiento */
.m-follow { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 7px 9px; }

/* Un aviso en el móvil */
.m-push {
  display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 14px; padding: 9px 10px;
  box-shadow: 0 8px 18px -12px var(--shadow);
}
.m-push-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; flex: none; }
.m-push-ico svg { width: 20px; height: 20px; }

/* La barra de días de Ajustes → Personas */
.m-slider { display: flex; align-items: center; gap: 12px; }
.m-track { flex: 1; height: 6px; border-radius: 999px; background: var(--line-strong); position: relative; }
.m-fill { position: absolute; inset: 0 auto 0 0; width: 16%; border-radius: 999px; background: var(--brand); }
.m-thumb { position: absolute; left: 16%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Tu red: los tres niveles, y la regla al lado de su maqueta */
.levels { display: grid; gap: 12px; }
@media (min-width: 560px) { .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.level { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.level p { font-size: 0.92rem; }
.lv { justify-self: start; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 3px 11px; }
.lv-1 { background: var(--brand); color: var(--paper); }
.lv-2 { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.lv-3 { background: var(--bg); color: var(--muted); border: 1px dashed var(--line-strong); }
.rule-row { display: grid; gap: 14px; margin-top: 26px; }
.rule-row > * { min-width: 0; }
@media (min-width: 880px) { .rule-row { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: start; } }
.rule-row h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }

/* Pedir */
.m-chat-me {
  justify-self: end; max-width: 85%; background: var(--brand-soft); color: var(--ink);
  border-radius: 14px 14px 4px 14px; padding: 7px 11px; font-size: 12px;
}

/* Cierre */
.close {
  background: radial-gradient(120% 140% at 0% 0%, #3a2a8f 0%, var(--night) 55%);
  color: var(--paper); border-radius: 20px; padding: 28px 26px;
  display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between;
}
.close > * { min-width: 0; }
.close .motto { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.close .motto span { display: block; font-size: 0.95rem; font-weight: 400; letter-spacing: 0; color: var(--night-muted); margin-top: 6px; }
.close .help { font-size: 0.92rem; color: var(--night-muted); }
.close .help .app, .close .help .mail { color: var(--paper); font-weight: 600; }
.close .help .mail { user-select: all; }
