/* VOICE: privado, seguro y claro, como una banca personal
   IDEA: el tablero del proceso de cada cliente, producto por producto
   PICTURE: avance por fases, portafolio, contrato y próxima sesión en tarjetas
   COLOUR/TYPE: negro SebasWealth, verde #65A603 y lima de acento; Poppins 800 + Inter
   LAYOUT: barra superior, riel de productos, menú de sección y contenido; se apila en móvil */
:root{
  --bg:#0B0D09; --bg2:#0F120C; --card:#14170F; --card2:#191D13; --line:var(--track); --line2:#323A27;
  --text:#F2F4EE; --muted:#A3AA96; --faint:#6F7766;
  --green:#65A603; --green2:#7BC40A; --lime:#D9F2A2; --on:#0B0D09;
  --warn:#E0B341; --bad:#E2725B; --s-alc:#65A603; --s-lat:#C9B458; --s-baj:#D9735F;
  --acc-line:#3B5A12; --acc-bg:#14200A; --acc-bg2:#17240A; --hl1:#17260A; --hl2:#101A07; --track:#262C1E; --warn-line:#5A4A12; --warn-bg:#201A0A; --bad-line:#5A2412; --bad-bg:#200F0A;
  --top:rgba(11,13,9,.94); --q:#8FB8FF; --q-line:#2A3C5E; --v:#C9A8FF; --v-line:#45305E;
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#F5F6F1; --bg2:#EEF1E7; --card:#FFFFFF; --card2:#F4F6EF; --line:#E1E6D7; --line2:#CBD3BC;
  --text:#121A08; --muted:#5A6350; --faint:#9AA28E; --green:#5A9A02; --green2:#3F7300; --lime:#3B6600; --on:#0B0D09;
  --warn:#8A6100; --bad:#B03E26; --s-alc:#4E8A00; --s-lat:#8A7A2A; --s-baj:#9A3D2E;
  --acc-line:#A9CC6E; --acc-bg:#EEF7DD; --acc-bg2:#E5F1CF; --hl1:#EEF7DD; --hl2:#FFFFFF; --track:#E3E8D8; --warn-line:#E3C77A; --warn-bg:#FBF4DF; --bad-line:#E8B3A6; --bad-bg:#FBEDEA;
  --top:rgba(245,246,241,.94); --q:#2D5BA8; --q-line:#B9CBEA; --v:#6B3FA8; --v-line:#D3C1EC;
  color-scheme:light;
}
:root[data-theme="light"] .cta{ box-shadow:0 10px 30px rgba(90,154,2,.22); }
*,*::before,*::after{ box-sizing:border-box; min-width:0; }
html{ scroll-padding-top:80px; }
body{ margin:0; background:var(--bg); color:var(--text); font:16px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif; overflow-x:clip; }
h1,h2,h3,h4{ font-family:Poppins,Inter,system-ui,sans-serif; margin:0; line-height:1.12; text-wrap:balance; }
h1{ font-weight:800; font-size:clamp(30px,4vw,46px); letter-spacing:-.01em; }
h2{ font-weight:800; font-size:22px; } h3{ font-weight:700; font-size:18px; } h4{ font-weight:600; font-size:15px; }
p{ margin:0; }
a{ color:var(--lime); }
button,input,textarea,select{ font:inherit; color:inherit; }
button{ cursor:pointer; }
:focus-visible{ outline:3px solid var(--green2); outline-offset:2px; }
svg.ic{ width:20px; height:20px; flex:none; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- Barra superior ---------- */
.top{ position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:16px; padding:12px 22px; background:var(--top); border-bottom:1px solid var(--line); backdrop-filter:blur(8px); padding-top:max(12px, env(safe-area-inset-top)); }
.logo{ font-family:Poppins,sans-serif; font-weight:800; letter-spacing:.22em; font-size:17px; white-space:nowrap; }
.logo b{ color:var(--green); } .logo span{ color:var(--text); font-weight:600; }
.top .where{ color:var(--muted); padding-left:16px; border-left:1px solid var(--line2); white-space:nowrap; }
.top .sp{ flex:1; }
.seg{ flex:none; display:inline-flex; border:1px solid var(--line2); border-radius:999px; padding:3px; background:var(--card); }
.seg button{ border:0; background:transparent; color:var(--muted); font-weight:600; font-size:14px; padding:7px 14px; border-radius:999px; min-height:36px; white-space:nowrap; }
.seg button[aria-pressed="true"]{ background:var(--green); color:var(--on); }
.pill-demo{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--lime); border:1px solid var(--acc-line); background:var(--acc-bg); border-radius:999px; padding:6px 12px; white-space:nowrap; }
.pill-demo::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--green2); }
.btn-help{ display:inline-flex; align-items:center; gap:8px; background:var(--text); color:var(--bg); border:0; border-radius:999px; padding:9px 16px; font-weight:700; min-height:40px; }
.icon-btn{ width:42px; height:42px; display:grid; place-items:center; border:1px solid var(--line2); border-radius:50%; background:transparent; color:var(--text); position:relative; }
.icon-btn .dot{ position:absolute; top:8px; right:9px; width:8px; height:8px; border-radius:50%; background:var(--green2); }
.me{ display:flex; align-items:center; gap:10px; font-weight:700; white-space:nowrap; }
.avatar{ width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:var(--acc-bg2); color:var(--lime); font-family:Poppins,sans-serif; font-weight:800; border:1px solid var(--acc-line); }
.top select{ flex:0 1 220px; background:var(--card); border:1px solid var(--line2); border-radius:10px; padding:8px 10px; min-height:40px; max-width:240px; }

/* ---------- Portal del cliente ---------- */
.portal{ display:grid; grid-template-columns:112px 300px minmax(0,1fr); min-height:calc(100vh - 67px); }
.portal.nosub{ grid-template-columns:112px minmax(0,1fr); }
.rail{ border-right:1px solid var(--line); background:var(--bg); padding:22px 10px; display:flex; flex-direction:column; gap:8px; position:sticky; top:67px; height:calc(100vh - 67px); overflow-y:auto; }
.rail button{ border:1px solid transparent; background:transparent; color:var(--text); border-radius:16px; padding:12px 4px; display:grid; justify-items:center; gap:6px; font-size:13px; font-weight:600; text-align:center; min-height:72px; }
.rail button svg{ width:24px; height:24px; }
.rail button:hover{ background:var(--card); }
.rail button[aria-current="true"]{ background:var(--acc-bg2); border-color:var(--acc-line); color:var(--lime); }
.rail .bottom{ margin-top:auto; }
.subnav{ border-right:1px solid var(--line); background:var(--bg2); padding:28px 20px; position:sticky; top:67px; height:calc(100vh - 67px); overflow-y:auto; }
.eyebrow{ font-size:13px; font-weight:700; letter-spacing:.18em; color:var(--green2); text-transform:uppercase; }
.subnav .sec-title{ font-family:Poppins,sans-serif; font-weight:800; font-size:22px; margin:6px 0 20px; line-height:1.2; }
.subnav .grp{ font-size:13px; font-weight:700; letter-spacing:.16em; color:var(--muted); text-transform:uppercase; margin:26px 18px 10px; }
.nav-i{ width:100%; display:flex; align-items:center; gap:14px; border:1px solid transparent; background:transparent; border-radius:14px; padding:12px 18px; font-size:17px; font-weight:600; color:var(--text); text-align:left; min-height:50px; }
.nav-i:hover{ background:var(--card); }
.nav-i[aria-current="true"]{ background:var(--card2); border-color:var(--line2); }
.nav-i.ph{ font-size:17px; }
.nav-i.ph small{ margin-left:auto; font-size:14px; font-weight:500; color:var(--muted); }
.nav-i.ph.now{ border-color:var(--acc-line); background:var(--acc-bg2); }
.nav-i.ph.now small{ color:var(--lime); font-weight:700; }
.st{ width:22px; height:22px; border-radius:50%; border:2px solid var(--faint); flex:none; display:grid; place-items:center; }
.st.done{ border-color:var(--green2); color:var(--green2); }
.st.done::after{ content:""; width:9px; height:5px; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg) translate(1px,-1px); }
.st.now{ border-color:var(--lime); }
.st.now::after{ content:""; width:10px; height:10px; border-radius:50%; background:var(--lime); }
.main{ padding:34px clamp(18px,3.4vw,52px) 64px; max-width:1240px; width:100%; }
.hero{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:18px; margin-bottom:28px; }
.hero .welcome{ color:var(--muted); font-size:18px; margin-top:8px; }
.hero .welcome b{ color:var(--lime); }
.cta{ display:inline-flex; align-items:center; gap:12px; background:var(--green); color:var(--on); border:0; border-radius:12px; padding:16px 24px; font-family:Poppins,sans-serif; font-weight:700; font-size:18px; box-shadow:0 10px 40px rgba(101,166,3,.28); min-height:56px; text-decoration:none; }
.card{ background:var(--card); border:1px solid var(--line); border-radius:22px; padding:26px 28px; }
.card.hl{ background:linear-gradient(160deg,var(--hl1),var(--hl2) 70%); border-color:var(--acc-line); }
.card h3{ margin-bottom:4px; }
.card-head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin-bottom:20px; }
.chip{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--acc-line); background:var(--acc-bg); color:var(--lime); border-radius:999px; padding:6px 14px; font-weight:700; font-size:14px; white-space:nowrap; }
.chip.gray{ border-color:var(--line2); background:var(--card2); color:var(--muted); }
.chip.warn{ border-color:var(--warn-line); background:var(--warn-bg); color:var(--warn); }
.chip.bad{ border-color:var(--bad-line); background:var(--bad-bg); color:var(--bad); }
.grid3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:20px; }
.grid2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:20px; }
.phbars{ display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:18px; }
.phbar .bar{ height:8px; border-radius:999px; background:var(--track); overflow:hidden; margin-bottom:14px; }
.phbar .bar i{ display:block; height:100%; background:var(--green); border-radius:999px; }
.phbar b{ display:block; font-family:Poppins,sans-serif; font-size:18px; }
.phbar span{ color:var(--muted); font-size:15px; }
.phbar.now b,.phbar.now span{ color:var(--lime); font-weight:700; }
.big{ font-family:Poppins,sans-serif; font-weight:800; font-size:clamp(34px,3.6vw,48px); line-height:1.05; margin:14px 0 8px; font-variant-numeric:tabular-nums; }
.up{ color:var(--green2); font-weight:700; } .down{ color:var(--bad); font-weight:700; }
.alloc-row{ margin-top:16px; }
.alloc-row .lbl{ display:flex; justify-content:space-between; font-size:16px; margin-bottom:8px; }
.alloc-row .bar{ height:7px; border-radius:999px; background:var(--track); overflow:hidden; }
.alloc-row .bar i{ display:block; height:100%; border-radius:999px; }
.kv{ display:flex; justify-content:space-between; gap:12px; padding:6px 0; color:var(--muted); font-size:16px; }
.kv b{ color:var(--text); text-align:right; }
.when-big{ font-family:Poppins,sans-serif; font-weight:800; font-size:30px; margin-top:12px; }
.when-time{ color:var(--lime); font-weight:700; font-size:20px; margin:6px 0 14px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:12px; padding:11px 18px; font-weight:700; background:var(--green); color:var(--on); min-height:46px; text-decoration:none; font-size:15px; }
.btn.white{ background:var(--text); color:var(--bg); }
.btn.ghost{ background:transparent; color:var(--text); border:1px solid var(--line2); }
.btn.sm{ padding:6px 12px; min-height:36px; font-size:14px; border-radius:10px; }
.btn.danger{ background:transparent; color:var(--bad); border:1px solid var(--bad-line); }
.btn:disabled{ opacity:.5; cursor:default; }
.linkish{ border:0; background:transparent; color:var(--lime); font-weight:700; padding:0; font-size:16px; display:inline-flex; gap:6px; align-items:center; }
.checks-list{ list-style:none; margin:0; padding:0; }
.checks-list li{ display:flex; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--line); font-size:17px; font-weight:600; }
.checks-list li:first-child{ border-top:0; padding-top:4px; }
.box{ width:28px; height:28px; border-radius:8px; border:2px solid var(--line2); flex:none; display:grid; place-items:center; }
.box-b{ background:transparent; padding:0; cursor:pointer; } .box-b:hover{ border-color:var(--green); } .box-b:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }
.box.on{ background:var(--green); border-color:var(--green); color:var(--on); }
.box.on::after{ content:""; width:11px; height:6px; border-left:2.5px solid currentColor; border-bottom:2.5px solid currentColor; transform:rotate(-45deg) translate(1px,-1px); }
.done-t{ text-decoration:line-through; color:var(--muted); }
.feed{ list-style:none; margin:0; padding:0; }
.feed li{ display:grid; grid-template-columns:14px minmax(0,1fr); gap:14px; padding:14px 0; border-top:1px solid var(--line); }
.feed li:first-child{ border-top:0; padding-top:4px; }
.feed li::before{ content:""; width:10px; height:10px; border-radius:50%; background:var(--green2); margin-top:8px; }
.feed b{ display:block; font-size:17px; } .feed span{ color:var(--muted); font-size:15px; }
.muted{ color:var(--muted); } .hint{ font-size:14px; color:var(--muted); } .err{ font-size:14px; color:var(--bad); font-weight:600; }
.empty{ color:var(--muted); font-size:16px; padding:6px 0; }
.items{ list-style:none; margin:0; padding:0; }
.items > li{ display:grid; grid-template-columns:28px minmax(0,1fr) auto; gap:14px 16px; padding:18px 0; border-top:1px solid var(--line); align-items:start; }
.items > li:first-child{ border-top:0; }
.items .it-t{ font-weight:700; font-size:17px; }
.items .it-d{ color:var(--muted); font-size:15px; margin-top:4px; white-space:pre-wrap; }
.items .acts{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; align-items:center; }
.items .answer{ margin-top:8px; font-size:15px; color:var(--lime); }
.items .ans-form{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.items .ans-form input{ max-width:320px; }
.tagt{ display:inline-block; font-size:12px; font-weight:700; letter-spacing:.04em; padding:2px 9px; border-radius:999px; border:1px solid var(--line2); color:var(--muted); margin-right:8px; vertical-align:2px; white-space:nowrap; }
.tagt.recurso{ color:var(--green2); border-color:var(--acc-line); } .tagt.pregunta{ color:var(--q); border-color:var(--q-line); } .tagt.tarea{ color:var(--warn); border-color:var(--warn-line); }
.tagt.documento,.tagt.formulario,.tagt.llamada{ color:var(--v); border-color:var(--v-line); }
.sec-lbl{ font-size:13px; font-weight:700; letter-spacing:.14em; color:var(--muted); text-transform:uppercase; padding:18px 0 4px; border-top:1px solid var(--line); }
.locked{ opacity:.65; }
.rows{ list-style:none; margin:0; padding:0; }
.rows li{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:14px; align-items:center; padding:14px 0; border-top:1px solid var(--line); }
.rows li:first-child{ border-top:0; }
.rows .t{ font-weight:700; } .rows .d{ color:var(--muted); font-size:14px; }
.ses-d{ display:grid; text-align:center; line-height:1.1; width:54px; } .ses-d b{ font-family:Poppins,sans-serif; font-size:24px; } .ses-d span{ font-size:13px; color:var(--muted); }
.rows li.past{ opacity:.5; }
table{ width:100%; border-collapse:collapse; font-size:15px; }
th,td{ text-align:left; padding:12px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th{ font-size:13px; color:var(--muted); font-weight:600; }
td.num,th.num{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.msgs{ list-style:none; margin:0 0 16px; padding:0; display:grid; gap:14px; max-height:56vh; overflow-y:auto; }
.msg{ display:grid; gap:4px; justify-items:start; max-width:78%; }
.msg.mine{ justify-self:end; justify-items:end; }
.bubble{ padding:12px 16px; border-radius:16px; background:var(--card2); border:1px solid var(--line2); white-space:pre-wrap; overflow-wrap:anywhere; }
.msg.mine .bubble{ background:var(--green); border-color:var(--green); color:var(--on); }
.by{ font-size:13px; color:var(--muted); }
.notice{ margin:14px 0; padding:12px 16px; border-radius:12px; background:var(--card2); border:1px solid var(--line2); color:var(--muted); font-size:15px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; }
.notice.ok{ border-color:var(--acc-line); color:var(--lime); }

/* ---------- Formularios ---------- */
label{ display:grid; gap:6px; font-size:14px; font-weight:600; color:var(--muted); }
label.inline{ display:flex; align-items:center; gap:8px; color:var(--text); font-weight:500; font-size:15px; }
input,textarea,select{ width:100%; background:var(--bg2); border:1px solid var(--line2); border-radius:10px; padding:10px 12px; font-size:16px; min-height:44px; color:var(--text); }
input[type="checkbox"]{ width:20px; height:20px; min-height:0; accent-color:var(--green); }
textarea{ min-height:96px; resize:vertical; }
.form{ display:grid; gap:14px; }
.fgrid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.row{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.edit-box{ margin-top:14px; padding:16px; border:1px dashed var(--acc-line); border-radius:14px; background:var(--bg2); display:grid; gap:12px; }
.ed-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)) auto; gap:10px; align-items:end; padding-bottom:12px; border-bottom:1px solid var(--line); }
.typesel{ display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:8px; }
.typesel button{ border:1px solid var(--line2); background:var(--card); border-radius:12px; padding:12px 8px; font-weight:600; color:var(--text); min-height:52px; }
.typesel button[aria-pressed="true"]{ background:var(--green); border-color:var(--green); color:var(--on); }

/* ---------- Vista de equipo ---------- */
.team{ display:grid; grid-template-columns:240px minmax(0,1fr); min-height:calc(100vh - 67px); }
.tside{ border-right:1px solid var(--line); background:var(--bg2); padding:24px 14px; position:sticky; top:67px; height:calc(100vh - 67px); overflow-y:auto; }
.tside .grp{ font-size:12px; font-weight:700; letter-spacing:.16em; color:var(--muted); text-transform:uppercase; margin:18px 12px 8px; }
.tside .nav-i{ font-size:16px; padding:10px 14px; min-height:44px; }
.tside .nav-i .n{ margin-left:auto; background:var(--warn); color:var(--on); border-radius:999px; font-size:12px; font-weight:800; padding:1px 8px; }
.tmain{ padding:28px clamp(16px,3vw,40px) 64px; max-width:1300px; width:100%; }
.thead{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:18px; }
.thead h1{ font-size:clamp(26px,3vw,36px); }
.thead p{ color:var(--muted); margin-top:6px; }
.toolbar{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:16px; }
.toolbar input{ max-width:280px; } .toolbar select{ max-width:240px; }
.board{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(240px,1fr); gap:14px; overflow-x:auto; padding-bottom:10px; }
.col{ background:var(--bg2); border:1px solid var(--line); border-radius:16px; padding:12px; display:grid; gap:10px; align-content:start; }
.col h4{ display:flex; gap:8px; align-items:center; padding:4px 6px; }
.col h4 small{ color:var(--muted); font-weight:500; }
.kcard{ text-align:left; border:1px solid var(--line2); background:var(--card); border-radius:12px; padding:12px 14px; display:grid; gap:6px; color:var(--text); width:100%; }
.kcard:hover{ border-color:var(--acc-line); }
.kcard .nm{ font-weight:700; } .kcard .em{ font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.kcard .tags{ display:flex; flex-wrap:wrap; gap:6px; font-size:13px; }
.mini{ font-size:12px; font-weight:700; padding:2px 8px; border-radius:999px; border:1px solid var(--line2); color:var(--muted); }
.mini.bad{ color:var(--bad); border-color:var(--bad-line); } .mini.ok{ color:var(--green2); border-color:var(--acc-line); } .mini.warn{ color:var(--warn); border-color:var(--warn-line); }
.tabs{ display:flex; flex-wrap:wrap; gap:6px; border-bottom:1px solid var(--line); margin-bottom:20px; }
.tabs button{ border:0; background:transparent; color:var(--muted); font-weight:600; padding:10px 14px; border-bottom:2px solid transparent; min-height:44px; }
.tabs button[aria-current="true"]{ color:var(--lime); border-bottom-color:var(--green); }
.panel{ background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px 20px; }
.stack{ display:grid; gap:16px; }
.phase-ed{ background:var(--card); border:1px solid var(--line); border-radius:16px; }
.phase-ed header{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line); }
.phase-ed header h3{ flex:1; }
.phase-ed .it-row{ display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:12px; align-items:center; padding:10px 18px; border-top:1px solid var(--line); }
.phase-ed .it-row:first-of-type{ border-top:0; }
.phase-ed .cond{ font-size:12px; color:var(--muted); border:1px solid var(--line2); border-radius:6px; padding:1px 6px; }
.phase-ed .body{ padding:6px 0; }
.phase-ed .vid{ padding:10px 18px; display:flex; gap:10px; align-items:center; border-bottom:1px solid var(--line); color:var(--muted); font-size:14px; }

/* ---------- Roadmap (dentro del portal) ---------- */
section{ margin-top:36px; }
.sec-head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:8px 16px; margin-bottom:14px; }
.sec-head > div{ display:grid; gap:4px; }
.sec-head p{ color:var(--muted); font-size:15px; max-width:62ch; }
.intro{ display:grid; gap:6px; }
.intro-row{ display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:flex-start; }
.who{ color:var(--muted); font-size:16px; } .updated{ color:var(--muted); font-size:14px; }
.goal{ margin:22px 0 4px; display:grid; gap:10px; }
.goal-line{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; align-items:baseline; }
.goal-num{ font-family:Poppins,sans-serif; font-weight:800; font-size:clamp(22px,3vw,30px); font-variant-numeric:tabular-nums; }
.goal-num small{ font-family:Inter,sans-serif; font-weight:500; font-size:14px; color:var(--muted); margin-left:6px; }
.track{ height:10px; border-radius:999px; background:var(--track); overflow:hidden; position:relative; }
.track > i{ display:block; height:100%; background:var(--green); }
.range-lo{ position:absolute; top:0; bottom:0; width:2px; background:var(--text); }
.dial{ display:flex; width:100%; height:64px; border-radius:14px; overflow:hidden; border:1px solid var(--line); background:var(--card2); }
.dial button{ border:0; padding:0 14px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; text-align:left; color:#0D0D0D; flex-basis:0; transition:flex-grow .5s ease, filter .2s; }
.dial button span{ font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.dial button strong{ font-family:Poppins,sans-serif; font-weight:800; font-size:20px; line-height:1; }
.dial button[aria-selected="false"]{ filter:saturate(.55) brightness(.85); }
.dial button[aria-selected="true"]{ box-shadow:inset 0 -5px 0 rgba(0,0,0,.35); }
.leader{ margin-top:10px; color:var(--muted); font-size:15px; } .leader b{ color:var(--text); }
.scen{ margin-top:18px; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:20px; }
.two{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.thesis{ font-size:17px; }
.signals{ margin:10px 0 0; padding-left:20px; color:var(--muted); } .signals li{ margin-bottom:6px; }
.plan-panel{ border-left:6px solid var(--green); }
.rules{ margin:0; padding:0; list-style:none; counter-reset:r; }
.rules li{ counter-increment:r; display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; padding:10px 0; border-top:1px solid var(--line); }
.rules li:first-child{ border-top:0; padding-top:0; }
.rules li::before{ content:counter(r); font-family:Poppins,sans-serif; font-weight:800; color:var(--green2); font-size:18px; line-height:1.4; }
.badge{ display:inline-block; font-size:13px; font-weight:700; padding:2px 10px; border-radius:999px; background:#D9F2A2; color:#1D2A06; vertical-align:2px; }
.alloc{ display:flex; height:40px; border-radius:10px; overflow:hidden; border:1px solid var(--line); }
.alloc i{ display:block; height:100%; }
.legend{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px 16px; margin-top:12px; font-size:15px; }
.legend div{ display:flex; gap:8px; align-items:center; }
.legend i{ width:12px; height:12px; border-radius:3px; flex:none; }
.legend b{ margin-left:auto; font-variant-numeric:tabular-nums; }
.hitos{ list-style:none; margin:0; padding:0; }
.hitos > li{ display:grid; grid-template-columns:160px minmax(0,1fr); gap:16px; padding:14px 0; border-top:1px solid var(--line); }
.hitos > li:first-child{ border-top:0; padding-top:0; }
.hitos .per{ font-family:Poppins,sans-serif; font-weight:600; color:var(--green2); }
.hitos ul{ list-style:none; margin:6px 0 0; padding:0; display:grid; gap:6px; }
.hitos ul li{ padding-left:16px; position:relative; font-size:15px; }
.hitos ul li::before{ content:""; position:absolute; left:0; top:.6em; width:6px; height:6px; border-radius:50%; background:var(--green2); }
.tag{ display:inline-block; margin-left:6px; font-size:12px; font-weight:600; padding:1px 8px; border-radius:999px; border:1px solid var(--green); color:var(--green2); white-space:nowrap; vertical-align:1px; }
.table-wrap{ border:1px solid var(--line); border-radius:14px; background:var(--card); overflow:hidden; }
.state{ border:1px solid var(--line2); background:transparent; border-radius:999px; padding:4px 12px; font-size:13px; font-weight:600; white-space:nowrap; min-height:32px; color:var(--text); }
.state.done{ background:var(--green); border-color:var(--green); color:var(--on); }
.state:disabled{ cursor:default; }
.timeline{ list-style:none; margin:0; padding:0; }
.timeline li{ display:grid; grid-template-columns:22px minmax(0,1fr) auto; gap:14px; padding:12px 0; border-top:1px solid var(--line); align-items:start; }
.timeline li:first-child{ border-top:0; padding-top:0; }
.dot{ width:14px; height:14px; border-radius:50%; border:2px solid var(--green); margin-top:5px; } .dot.done{ background:var(--green); }
.when{ font-weight:600; } .what{ color:var(--muted); font-size:15px; }
.amount{ font-family:Poppins,sans-serif; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
.cadence{ list-style:none; margin:0; padding:0; }
.cadence li{ padding:10px 0; border-top:1px solid var(--line); } .cadence li:first-child{ border-top:0; padding-top:0; }
.cadence b{ display:block; } .cadence span{ color:var(--muted); font-size:15px; }
.caps{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.cap{ margin:0; background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; display:flex; flex-direction:column; }
.cap a{ display:block; aspect-ratio:4/3; background:var(--card2); } .cap img{ width:100%; height:100%; object-fit:cover; display:block; }
.cap figcaption{ padding:10px 12px; display:grid; gap:4px; font-size:14px; } .cap time{ color:var(--muted); font-size:13px; }
.log{ list-style:none; margin:0; padding:0; }
.log li{ display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; padding:10px 0; border-top:1px solid var(--line); font-size:15px; }
.log li:first-child{ border-top:0; padding-top:0; } .log time{ color:var(--muted); }
.tasks{ list-style:none; margin:0; padding:0; }
.tasks li{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:12px; align-items:start; padding:10px 0; border-top:1px solid var(--line); }
.tasks li:first-child{ border-top:0; padding-top:0; }
.chk{ width:24px; height:24px; border-radius:6px; border:2px solid var(--green); background:transparent; padding:0; margin-top:1px; } .chk.on{ background:var(--green); }
.tx.done{ text-decoration:line-through; color:var(--muted); }
.meta{ font-size:13px; color:var(--muted); } .meta.late{ color:var(--bad); font-weight:600; }
.del{ border:0; background:transparent; color:var(--muted); font-size:13px; padding:4px 6px; min-height:32px; }
.grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; }
.ed-hito{ display:grid; gap:10px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--card); }
.ed-acc{ display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:center; }
.code{ display:block; font-family:ui-monospace,Menlo,monospace; font-size:16px; padding:12px 14px; border-radius:10px; background:var(--bg2); border:1px solid var(--line2); overflow-wrap:anywhere; user-select:all; }
.results{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.results li{ display:flex; gap:10px; align-items:center; justify-content:space-between; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--card); }
.pill{ display:inline-block; font-size:13px; font-weight:600; padding:2px 10px; border-radius:999px; border:1px solid var(--line2); color:var(--muted); white-space:nowrap; }
.pill.ok{ border-color:var(--green); color:var(--green2); }
/* ---------- Agendar, arrastrar y avisos ---------- */
.agenda-wrap{ position:relative; display:inline-block; }
.agenda-pop{ position:absolute; right:0; top:calc(100% + 8px); z-index:30; background:var(--card); border:1px solid var(--line2); border-radius:14px; padding:12px; display:grid; gap:8px; min-width:250px; box-shadow:0 16px 40px rgba(0,0,0,.35); }
.agenda-pop .btn{ justify-content:flex-start; }
.col.over{ border-color:var(--green); background:var(--acc-bg); }
.kcard{ cursor:grab; } .kcard.dragging{ opacity:.45; }
.grip{ color:var(--faint); display:inline-flex; }
.kcard select.mv{ min-height:36px; padding:6px 8px; font-size:14px; margin-top:4px; }
.kcard .kfull{ width:100%; justify-content:center; margin-top:4px; }
.notice.warnbox{ border-color:var(--warn-line); background:var(--warn-bg); color:var(--text); }
footer.disc{ margin-top:48px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; max-width:80ch; }

/* ---------- Pantallas angostas ---------- */
@media (max-width:1560px){ .pill-demo{ display:none; } .top .where{ display:none; } }
@media (max-width:1100px){ .portal{ grid-template-columns:96px 250px minmax(0,1fr); } .portal.nosub{ grid-template-columns:96px minmax(0,1fr); } .grid3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:860px){
  .top{ flex-wrap:wrap; padding:10px 14px; gap:10px; } .top .where,.pill-demo,.me span.nm{ display:none; }
  .portal,.portal.nosub,.team{ grid-template-columns:minmax(0,1fr); }
  .rail{ position:static; height:auto; flex-direction:row; overflow-x:auto; padding:8px; border-right:0; border-bottom:1px solid var(--line); }
  .rail button{ min-width:84px; min-height:64px; } .rail .bottom{ margin-top:0; }
  .subnav,.tside{ position:static; height:auto; border-right:0; border-bottom:1px solid var(--line); padding:14px; display:flex; gap:6px; overflow-x:auto; align-items:center; }
  .subnav .eyebrow,.subnav .sec-title,.subnav .grp,.tside .grp{ display:none; }
  .nav-i{ width:auto; flex:none; white-space:nowrap; font-size:15px; min-height:44px; padding:8px 14px; } .nav-i.ph small{ display:none; }
  .grid3,.grid2,.scen,.two{ grid-template-columns:minmax(0,1fr); }
  .main,.tmain{ padding:22px 14px 56px; }
  .hitos > li{ grid-template-columns:minmax(0,1fr); gap:4px; }
  .items > li{ grid-template-columns:28px minmax(0,1fr); } .items .acts{ grid-column:2; justify-content:flex-start; }
  .rows li{ grid-template-columns:auto minmax(0,1fr); } .rows li > :last-child{ grid-column:2; }
  .phase-ed .it-row{ grid-template-columns:minmax(0,1fr) auto; } .phase-ed .it-row > .tagt{ grid-column:1/-1; justify-self:start; }
  .log li{ grid-template-columns:minmax(0,1fr); gap:2px; }
}
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } }
.tag.noves{ border-color:var(--warn); color:var(--warn); }
.inc-row{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; padding:12px 0; border-top:1px solid var(--line); }
.inc-row:first-of-type{ border-top:0; }
.inc-row .nm{ font-weight:700; min-width:180px; }
.inc-row .hint{ flex:1 1 220px; }

/* Logos */
img.lg{ display:block; height:auto; }
.logo .top-lg{ height:22px; width:auto; }
.rail .rail-lg{ width:44px; height:36px; object-fit:contain; }
.sec-title .sec-lg{ width:100%; max-width:230px; height:auto; margin-top:4px; }
.area-lg img{ height:52px; width:auto; max-width:100%; }
.area-lg{ margin-bottom:6px; }
.welcome-lg{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.welcome-lg img:first-child{ height:64px; width:auto; } .welcome-lg img:last-child{ height:26px; width:auto; }
.kcard .kfull{ background:var(--green); color:#0D0D0D; border-color:var(--green); font-weight:700; }
.kcard .kfull:hover{ filter:brightness(1.08); }

.wa-btn{ display:flex; align-items:center; gap:14px; padding:16px 20px; border-radius:16px; background:var(--green); color:#0D0D0D; text-decoration:none; margin-bottom:8px; max-width:520px; }
.wa-btn svg{ width:26px; height:26px; } .wa-btn b{ display:block; font-size:16px; } .wa-btn small{ display:block; font-size:13px; opacity:.8; }
.wa-btn:hover{ filter:brightness(1.08); }

/* Reloj de último contacto */
.clock{ display:flex; align-items:center; gap:10px; border:1px solid var(--line2); border-radius:12px; padding:8px 10px; background:var(--bg); }
.clock b{ display:block; font-size:14px; } .clock small{ display:block; font-size:12px; color:var(--muted); }
.clock-btn{ flex:none; width:38px; height:38px; border-radius:50%; border:1px solid var(--acc-line); background:var(--acc-bg); color:var(--lime); display:grid; place-items:center; cursor:pointer; }
.clock-btn svg{ width:20px; height:20px; } .clock-btn:hover{ background:var(--green); color:#0D0D0D; }
.clock.bad{ border-color:#B4432F; background:rgba(180,67,47,.12); } .clock.bad b{ color:#E06A52; } .clock.bad .clock-btn{ border-color:#B4432F; color:#E06A52; background:transparent; }
.clock.none b{ color:var(--muted); font-weight:600; }
.clock.compact{ padding:6px 8px; } .clock.compact .clock-btn{ width:32px; height:32px; } .clock.compact small{ font-size:11.5px; }
td .clock{ min-width:210px; }
:root[data-theme="light"] .clock.bad b{ color:#A3321F; }

.warn-t{ color:#E0A43A; }

/* Escenarios del Roadmap: tres botones */
.esc-btns{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
.esc-b{ border:1px solid var(--line2); background:var(--card); color:var(--text); border-radius:18px; padding:16px 12px 14px; display:grid; justify-items:center; gap:10px; cursor:pointer; min-height:170px; transition:border-color .15s, transform .15s; }
.esc-b:hover{ border-color:var(--esc); transform:translateY(-2px); }
.esc-b.on{ border-color:var(--esc); box-shadow:0 0 0 2px var(--esc) inset; }
.esc-n{ font-weight:700; font-size:16px; }
.esc-c{ width:84px; height:84px; border-radius:50%; display:grid; place-items:center; background:var(--esc); color:#0D0D0D; }
.esc-c strong{ font-family:Poppins,sans-serif; font-weight:800; font-size:24px; }
.esc-b:not(.on) .esc-c{ opacity:.7; }
.esc-t{ font-size:12.5px; color:var(--muted); } .esc-b.on .esc-t{ color:var(--text); font-weight:600; }
@media (max-width:640px){ .esc-btns{ gap:8px; } .esc-b{ min-height:140px; padding:12px 6px; } .esc-c{ width:62px; height:62px; } .esc-c strong{ font-size:18px; } .esc-n{ font-size:14px; } }

/* Pantalla de ingreso */
.login{ min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(1200px 600px at 50% -10%, var(--acc-bg), transparent 60%), var(--bg); }
.login-card{ width:100%; max-width:440px; background:var(--card); border:1px solid var(--line2); border-radius:22px; padding:32px 28px; display:grid; gap:16px; }
.login-card h1{ font-size:28px; text-align:center; margin-top:6px; } .login-card > p.muted{ text-align:center; margin-top:-8px; }
.login-card .stack{ display:grid; gap:10px; } .login-card label{ display:grid; gap:6px; font-weight:600; font-size:14px; }
.login-card input{ width:100%; } .login-card .btn{ width:100%; justify-content:center; min-height:48px; }
.btn.google{ background:#fff; color:#1f1f1f; border:1px solid #dadce0; font-weight:600; gap:10px; display:flex; align-items:center; }
.btn.google:hover{ background:#f5f5f5; }
.or{ display:flex; align-items:center; gap:12px; color:var(--muted); font-size:13px; } .or::before,.or::after{ content:''; flex:1; height:1px; background:var(--line2); }
.login .welcome-lg img:first-child{ height:56px; } .login .welcome-lg img:last-child{ height:22px; }

/* ----- Calendario de sesiones ----- */
.ses-nav{ align-items:center; gap:10px; } .ses-nav h2{ min-width:170px; text-align:center; margin:0; }
.cal-card{ padding:16px; }
.cal-g{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.cal-h span{ text-align:center; font-size:13px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; padding-bottom:6px; }
.cal-c{ min-height:96px; border:1px solid var(--line); border-radius:12px; background:transparent; color:inherit; padding:8px; display:flex; flex-direction:column; align-items:stretch; gap:4px; text-align:left; cursor:pointer; font:inherit; }
.cal-c.vacio{ border:0; cursor:default; }
.cal-c:hover{ border-color:var(--line2); }
.cal-c.hoy .cal-n{ background:var(--green); color:var(--on); border-radius:999px; padding:0 7px; }
.cal-c.sel{ border-color:var(--green); box-shadow:inset 0 0 0 1px var(--green); }
.cal-c:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }
.cal-n{ font-weight:700; font-size:14px; align-self:flex-start; }
.cal-ev{ display:grid; gap:3px; }
.cal-e{ font-size:12px; line-height:1.25; border-radius:6px; padding:3px 6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cal-e.vivo{ background:rgba(127,127,127,.16); } .cal-e.uno{ background:var(--green); color:var(--on); }
.cal-dots{ display:none; gap:4px; flex-wrap:wrap; }
.cal-dots i, .cal-ley i{ width:8px; height:8px; border-radius:99px; display:inline-block; background:var(--muted); } .cal-dots i.uno, .cal-ley i.uno{ background:var(--green); }
.cal-ley{ display:flex; gap:18px; flex-wrap:wrap; margin-top:12px; font-size:13px; color:var(--muted); } .cal-ley span{ display:inline-flex; align-items:center; gap:6px; }
@media (max-width:720px){
  .cal-card{ padding:10px; } .cal-g{ gap:3px; } .cal-c{ min-height:52px; padding:6px 4px; align-items:center; } .cal-n{ align-self:center; }
  .cal-ev{ display:none; } .cal-dots{ display:flex; justify-content:center; }
  .ses-nav h2{ min-width:0; font-size:20px; }
}
