/* Panel Maestro · gráficos y módulos */

/* ---------- Utilidades ---------- */
.grow{flex:1;min-width:0}
.muted{color:var(--ink-3)}
.block{display:block}
.txt-bad{color:var(--bad)!important} .txt-good{color:var(--good)!important} .txt-warn{color:var(--warn)!important}
.linkish{border:0;background:none;padding:0;color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.shake{animation:shake .38s var(--ease-out)}
@keyframes shake{20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(2px)}}
.spin svg{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.btn-danger{background:var(--bad);border-color:var(--bad);color:#fff}
.btn-group{display:inline-flex;gap:6px}
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.toolbar .field.grow{min-width:200px}
.field-sel{padding:0 8px 0 4px}
.field-sel select{padding:8px 4px;cursor:pointer}
.field-sm{min-height:34px;border-radius:10px}
.card-pad-h{padding:16px 20px 0;margin-bottom:6px}
.list-pad{padding:0 20px 8px}
.tab-body{display:grid;gap:18px}
.tabs .ti svg{width:16px;height:16px}
.tabs .tc.bad{background:var(--bad-wash);color:var(--bad)}
.kpis-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.kpis-3{grid-template-columns:minmax(0,1fr)}}
.kpi.click{text-align:left;cursor:pointer;transition:transform .15s var(--ease-out),box-shadow .15s ease,border-color .15s}
@media (hover:hover) and (pointer:fine){.kpi.click:hover{border-color:var(--accent-soft);box-shadow:var(--shadow)}}
.kpi.click:active{transform:scale(.985)}
.kpi-bad .kl .ki{background:var(--bad-wash);color:var(--bad)}
.kpi-bad .kd{color:var(--bad)}
.note-box{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:var(--accent-wash);color:var(--ink-2);font-size:13px;line-height:1.5}
.note-box>svg{width:18px;height:18px;flex:none;color:var(--accent);margin-top:1px}
.check{display:flex;align-items:center;gap:10px;font-weight:500;color:var(--ink);cursor:pointer;padding:4px 0}
.check input{width:18px;height:18px;accent-color:var(--accent);flex:none}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 11px;font-size:12.5px;font-weight:550;color:var(--ink-2);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.chip .cc{font-size:11px;background:var(--sunken);color:var(--ink-2);padding:1px 6px;border-radius:8px}
.chip[aria-pressed="true"] .cc{background:rgba(255,255,255,.22);color:#fff}
.chip.static{cursor:default}
.chip .d{width:7px;height:7px;border-radius:50%;background:var(--ink-3)}
.chip .d.good{background:var(--good)} .chip .d.warn{background:var(--warn)}
@media (hover:hover) and (pointer:fine){.chip:not(.static):not([aria-pressed="true"]):hover{border-color:var(--line-strong);color:var(--ink)}}
.seg-full{display:flex}
.seg-full button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.seg button svg{width:15px;height:15px}
.kv-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.kvi{padding:10px 12px;border-radius:12px;background:var(--surface-2);min-width:0}
.kvi small{display:block;color:var(--ink-3);font-size:11.5px;margin-bottom:2px}
.kvi b{font-weight:600;overflow-wrap:anywhere}
.mini-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.mk{padding:10px 12px;border-radius:12px;background:var(--surface-2);min-width:0}
.mk small{display:block;color:var(--ink-3);font-size:11.5px}
.mk b{font:650 17px/1.3 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.mk.bad b{color:var(--bad)}
.sh-sub{margin:4px 0 -6px;font:650 14px var(--display)}
.sheet-actions{display:flex;flex-wrap:wrap;gap:8px}
.li-btn{width:100%;border:0;background:none;text-align:left;padding-left:0;padding-right:0;color:inherit}
@media (hover:hover) and (pointer:fine){.li-btn:hover .lt b{color:var(--accent)}}
.avatar.xs{width:20px;height:20px;border-radius:7px;font-size:9px}
.row-actions{display:inline-flex;gap:6px;justify-content:flex-end}
.td-wrap{min-width:180px}
.cat-dot{width:10px;height:10px;border-radius:4px;flex:none}
.me-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.me-row b{display:block;color:var(--ink);font-size:13px;line-height:1.2}
.me-row small{font-size:11.5px}
.me-row .avatar{background:var(--hero)}
.dot-st{width:8px;height:8px;border-radius:50%;background:var(--ink-3)}
.dot-st.good{background:var(--good);box-shadow:0 0 0 3px var(--good-wash)} .dot-st.warn{background:var(--warn);box-shadow:0 0 0 3px var(--warn-wash)}
.steps{margin:0;padding-left:20px;display:grid;gap:8px;color:var(--ink-2)}
.switch{position:relative;width:40px;height:24px;border-radius:12px;border:0;background:var(--line-strong);flex:none;transition:background-color .18s ease;padding:0}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s var(--ease-out)}
.switch[aria-checked="true"]{background:var(--accent)}
.switch[aria-checked="true"]::after{transform:translateX(16px)}
body.dragging .toasts{opacity:.25}
body.dragging{user-select:none;-webkit-user-select:none;cursor:grabbing}

/* ---------- Gráficos ---------- */
.chart{position:relative;width:100%}
.chart svg{display:block;overflow:visible}
.ch-grid{stroke:var(--line);stroke-width:1}
.ch-tick{fill:var(--ink-3);font:500 11px var(--body);font-variant-numeric:tabular-nums}
.ch-bar{transition:opacity .15s ease}
.ch-bar.gap{stroke:var(--surface);stroke-width:2;paint-order:stroke}
.ch-hit{fill:transparent;cursor:crosshair}
.ch-hit.on{fill:var(--accent);fill-opacity:.05}
.ch-line.dashed{stroke-dasharray:5 5}
.ch-cross{stroke:var(--line-strong);stroke-width:1;stroke-dasharray:3 3}
.ch-thr{stroke:var(--bad);stroke-width:1.2;stroke-dasharray:4 4;opacity:.7}
.ch-thr-t{fill:var(--bad);font:600 10.5px var(--body)}
.ch-arc{cursor:pointer;transition:stroke-width .15s ease}
.ch-arc:hover{stroke-width:19}
.chart-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:12.5px;color:var(--ink-2)}
.chart-legend span{display:inline-flex;align-items:center;gap:6px}
.chart-legend i,.donut-legend i,.chart-tip i{width:10px;height:10px;border-radius:3px;display:inline-block;flex:none}
.chart-tip{position:fixed;z-index:95;pointer-events:none;min-width:150px;padding:10px 12px;border-radius:12px;background:var(--ink);color:var(--surface);box-shadow:var(--shadow);font-size:12.5px;display:grid;gap:4px}
.chart-tip b{font-weight:650;font-size:12.5px;margin-bottom:2px}
.chart-tip span{display:flex;align-items:center;gap:7px}
.chart-tip em{font-style:normal;margin-left:auto;padding-left:14px;font-weight:600;font-variant-numeric:tabular-nums}
.chart-tip .tot{border-top:1px solid rgba(255,255,255,.18);padding-top:4px;margin-top:2px}
.donut-wrap{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.donut{position:relative;flex:none;max-width:100%}
.donut svg{display:block;max-width:100%;height:auto}
.donut-center{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}
.donut-center b{font:650 18px/1.1 var(--display);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.donut-center small{color:var(--ink-3);font-size:11.5px}
.donut-legend{flex:1;min-width:170px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.donut-legend div{display:flex;align-items:center;gap:8px;font-size:13px}
.donut-legend span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-2)}
.donut-legend b{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.gauge{position:relative;display:grid;justify-items:center}
.gauge svg{width:100%;max-width:190px;display:block}
.g-val{transition:stroke-dasharray .6s var(--ease-out),stroke .3s ease}
.g-center{position:absolute;top:40%;left:0;right:0;text-align:center;display:grid}
.g-center b{font:650 28px/1 var(--display);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.g-center b small{font-size:14px;color:var(--ink-3);margin-left:1px}
.g-center span{font-size:11.5px;color:var(--ink-3);margin-top:3px}
.g-label{font:600 13px var(--display);margin-top:8px}
.spark{display:block;max-width:100%}
.uptime{display:flex;gap:2px;height:26px;align-items:stretch}
.uptime i{flex:1;border-radius:3px;background:var(--good);opacity:.85}
.uptime i.slow{background:var(--warn)} .uptime i.down{background:var(--bad)}

/* ---------- Inicio ---------- */
.home-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.4fr);gap:18px}
.home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-hero{padding:22px 24px;display:grid;gap:14px;align-content:start}
.hh-top{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:1}
.hh-label{font-weight:550;opacity:.85}
.hh-chip{font:600 12px var(--body);padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.18)}
.hh-big{font:700 clamp(34px,4vw,46px)/1 var(--display);letter-spacing:-.04em;font-variant-numeric:tabular-nums;position:relative;z-index:1}
.hh-row{display:flex;gap:26px;flex-wrap:wrap;position:relative;z-index:1}
.hh-row small{display:block;opacity:.7;font-size:12px}
.hh-row b{font:650 16px var(--display);font-variant-numeric:tabular-nums}
.hh-spark{margin:-4px -6px -8px;opacity:.95}
.hh-spark svg{width:100%;height:54px}
@media (max-width:1100px){.home-top{grid-template-columns:minmax(0,1fr)}}
.prio{width:8px;height:32px;border-radius:4px;flex:none;background:var(--ink-3)}
.prio.p-urgente{background:var(--bad)} .prio.p-alta{background:var(--warn)} .prio.p-media{background:var(--accent)} .prio.p-baja{background:var(--line-strong)}
.mini-gauges{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}
.mini-gauges .g-center b{font-size:20px}
.mini-gauges .g-center span{display:none}
.mini-gauges .g-label{font-size:12px;margin-top:4px}
.infra-rows{display:grid;gap:6px}
.ir{display:flex;align-items:center;gap:10px;border:0;background:var(--surface-2);border-radius:12px;padding:9px 12px;text-align:left;color:var(--ink-2);font-size:13px}
@media (hover:hover) and (pointer:fine){.ir:hover{background:var(--accent-wash)}}
.proj-li .pl-bars{width:150px;display:grid;gap:4px;flex:none}
.proj-li .pl-bars small{color:var(--ink-3);font-size:11.5px;white-space:nowrap}
@media (max-width:560px){.proj-li .pl-bars{width:96px}}
.timeline{display:grid;gap:10px}
.tl-item{display:grid;grid-template-columns:62px 1fr;gap:10px;align-items:start}
.tl-btn{border:0;background:none;padding:0;text-align:left;color:inherit;width:100%}
.tl-time{font:600 12.5px var(--mono);color:var(--ink-3);padding-top:11px}
.tl-card{--mc:var(--accent);padding:10px 12px;border-radius:14px;background:var(--surface-2);border-left:3px solid var(--mc);display:grid;gap:3px;min-width:0}
.tl-card b{font-weight:600}
.tl-card small{color:var(--ink-3);font-size:12.5px}
.tl-card .btn{justify-self:start;margin-top:6px}
.tl-item.live .tl-card{background:var(--accent-wash);border-left-color:var(--accent)}
.tl-item.live .tl-time{color:var(--accent)}
.tl-item.past{opacity:.55}
.feed{display:grid;gap:4px}
.fi{display:flex;align-items:center;gap:12px;padding:8px 0}
.fi-ico{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--accent-wash);color:var(--accent);flex:none}
.fi-ico svg{width:16px;height:16px}
.fi.good .fi-ico{background:var(--good-wash);color:var(--good)} .fi.bad .fi-ico{background:var(--bad-wash);color:var(--bad)}
.fi .lt{flex:1;min-width:0}
.fi .lt b{display:block;font-weight:550;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fi .lt small{display:block;color:var(--ink-3);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fi>small{white-space:nowrap}

/* ---------- Finanzas ---------- */
.rank{display:grid;gap:4px}
.rank-row{display:grid;grid-template-columns:30px minmax(0,1.2fr) minmax(60px,1fr) auto;align-items:center;gap:12px;border:0;background:none;padding:7px 4px;border-radius:12px;text-align:left;color:inherit}
@media (hover:hover) and (pointer:fine){.rank-row:hover{background:var(--surface-2)}}
.rk-name{font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rk-bar{height:8px;border-radius:6px;background:var(--sunken);overflow:hidden}
.rk-bar i{display:block;height:100%;border-radius:6px}
.aging{display:flex;gap:3px;height:14px;border-radius:8px;overflow:hidden;margin:4px 0 12px}
.aging i{min-width:4px}
.aging i:first-child{border-radius:8px 0 0 8px} .aging i:last-child{border-radius:0 8px 8px 0} .aging i:only-child{border-radius:8px}
.aging-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.aging-legend span{display:grid;grid-template-columns:10px 1fr;column-gap:8px;align-items:center;font-size:12.5px;color:var(--ink-2)}
.aging-legend i{width:10px;height:10px;border-radius:3px}
.aging-legend b{grid-column:2;font:650 16px var(--display);color:var(--ink)}
.aging-legend small{grid-column:2;color:var(--ink-3);font-size:11.5px}
@media (max-width:700px){.aging-legend{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bubble-preview{padding:14px 16px;border-radius:16px 16px 16px 4px;background:var(--surface-2);border:1px solid var(--line);line-height:1.55;white-space:pre-wrap}
.cs-head{display:flex;align-items:center;gap:14px}
.cs-head b{display:block;font:650 16px var(--display)}
.cs-head small{color:var(--ink-3)}
.inv .inv-id{font-size:11.5px;color:var(--ink-3);width:54px;flex:none}
.inv .btn{flex:none}
.proj-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
@media (max-width:420px){.proj-grid{grid-template-columns:minmax(0,1fr)}}
.proj-card{padding:16px 18px;display:grid;gap:14px;align-content:start}
.pc-top{display:flex;align-items:center;gap:10px}
.pc-top .lt{flex:1;min-width:0}
.pc-top .lt b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-top .lt small{color:var(--ink-3);font-size:12px}
.pc-bars{display:grid;gap:9px}
.pc-l{display:flex;justify-content:space-between;font-size:12px;color:var(--ink-3);margin-bottom:4px}
.pc-l b{color:var(--ink);font-variant-numeric:tabular-nums}
.pc-warn{margin:0;display:flex;gap:6px;align-items:center;font-size:12.5px;color:var(--warn);font-weight:550}
.pc-warn svg{width:15px;height:15px;flex:none}
.pc-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pc-nums .mk{padding:8px 10px}
.pc-nums .mk b{font-size:14.5px}
.pc-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ---------- WhatsApp ---------- */
.wa{display:grid;grid-template-columns:340px minmax(0,1fr);height:calc(100dvh - var(--top-h) - 44px);min-height:520px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r3);overflow:hidden;box-shadow:var(--shadow-sm)}
.wa-side{display:flex;flex-direction:column;gap:10px;padding:16px 12px 0;border-right:1px solid var(--line);min-height:0}
.wa-side-head{display:flex;align-items:center;gap:8px;padding:0 4px}
.wa-side-head b{display:block;font:650 17px var(--display)}
.wa-side-head small{color:var(--ink-3);font-size:12px}
.wa-side .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.wa-list{overflow-y:auto;flex:1;margin:0 -12px;padding:0 6px 12px}
.wa-empty{padding:16px}
.wa-item{display:flex;gap:11px;width:100%;padding:11px 10px;border:0;border-radius:14px;background:none;text-align:left;color:inherit;align-items:flex-start}
.wa-item.on{background:var(--accent-wash)}
@media (hover:hover) and (pointer:fine){.wa-item:not(.on):hover{background:var(--surface-2)}}
.wa-mid{flex:1;min-width:0;display:grid;gap:2px}
.wa-top,.wa-bot{display:flex;align-items:center;gap:8px}
.wa-top b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:550}
.wa-item.unread .wa-top b{font-weight:700}
.wa-top small{color:var(--ink-3);font-size:11.5px;white-space:nowrap}
.wa-item.unread .wa-top small{color:var(--good);font-weight:600}
.wa-prev{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-3);font-size:13px}
.wa-item.unread .wa-prev{color:var(--ink-2)}
.wa-bot .pin svg{width:14px;height:14px;color:var(--ink-3)}
.wa-tags{display:flex;gap:5px;margin-top:3px}
.wa-tags .badge{font-size:10.5px;padding:3px 7px}
.wa-conv{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--surface-2)}
.wa-conv-head{display:flex;align-items:center;gap:11px;padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
.wa-conv-head b{display:block;font-weight:600}
.wa-conv-head small{color:var(--ink-3);font-size:12px}
.wa-back{display:none}
.wa-msgs{flex:1;overflow-y:auto;padding:18px 22px;display:flex;flex-direction:column;gap:6px;
  background-image:radial-gradient(circle at 1px 1px,color-mix(in srgb,var(--accent) 9%,transparent) 1px,transparent 0);background-size:22px 22px}
.wa-day{align-self:center;font:600 11px var(--body);color:var(--ink-3);background:var(--surface);padding:4px 10px;border-radius:8px;margin:10px 0 4px;box-shadow:var(--shadow-sm)}
.bubble{position:relative;max-width:min(520px,78%);padding:8px 12px 6px;border-radius:14px;line-height:1.45;box-shadow:var(--shadow-sm);display:grid;gap:2px}
.bubble span{white-space:pre-wrap;overflow-wrap:anywhere}
.bubble small{justify-self:end;font-size:10.5px;opacity:.7}
.bubble.them{align-self:flex-start;background:var(--surface);border-top-left-radius:4px}
.bubble.me{align-self:flex-end;background:var(--accent);color:#fff;border-top-right-radius:4px}
.bubble-act{position:absolute;right:-38px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--ink-3);display:grid;place-items:center;opacity:0;transition:opacity .15s ease}
.bubble-act svg{width:15px;height:15px}
.bubble:hover .bubble-act,.bubble-act:focus-visible{opacity:1}
@media (pointer:coarse){.bubble-act{opacity:.9;right:-36px}}
.wa-quick{display:flex;gap:6px;overflow-x:auto;padding:10px 16px 0;scrollbar-width:none}
.wa-compose{display:flex;gap:10px;align-items:flex-end;padding:10px 16px 14px}
.wa-compose textarea{flex:1;min-height:44px;max-height:140px;resize:none;border:1px solid var(--line);border-radius:14px;padding:11px 14px;background:var(--surface);outline:0;line-height:1.4}
.wa-compose textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-wash)}
.wa-compose .btn{height:44px;width:44px;border-radius:14px}
.wa-placeholder,.cs-empty{flex:1;display:grid;place-content:center;justify-items:center;gap:6px;text-align:center;color:var(--ink-3);padding:30px}
.wa-placeholder b,.cs-empty b{color:var(--ink);font:600 16px var(--display)}
.wa-ph-ico{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:var(--accent-wash);color:var(--accent);margin-bottom:6px}
.wa-ph-ico svg{width:26px;height:26px}
@media (max-width:900px){
  .wa{grid-template-columns:1fr;height:calc(100dvh - var(--top-h) - 30px - env(safe-area-inset-top));min-height:0;border-radius:18px}
  .wa .wa-conv{display:none}
  .wa.has-open .wa-side{display:none}
  .wa.has-open .wa-conv{display:flex}
  .wa-back{display:inline-flex}
  .wa-msgs{padding:14px}
  .bubble{max-width:84%}
  .bubble.them{margin-right:36px}
}

/* ---------- Reservas ---------- */
.res-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}
@media (max-width:1180px){.res-layout{grid-template-columns:minmax(0,1fr)}}
.res-side{display:grid;gap:18px}
.cal-card{overflow:hidden}
.cal-head{display:grid;grid-template-columns:58px repeat(7,minmax(0,1fr));border-bottom:1px solid var(--line);background:var(--surface)}
.cal-dh{display:grid;justify-items:center;padding:10px 0 8px;gap:2px}
.cal-dh small{color:var(--ink-3);font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.cal-dh b{font:650 18px var(--display);width:34px;height:34px;display:grid;place-items:center;border-radius:11px}
.cal-dh.today b{background:var(--accent);color:#fff}
.cal-dh.today small{color:var(--accent)}
.cal-scroll{max-height:min(620px,calc(100dvh - 250px));overflow-y:auto}
.cal-body{display:grid;grid-template-columns:58px repeat(7,minmax(0,1fr));position:relative;height:calc(var(--row) * var(--rows))}
.cal-hours{display:grid;grid-auto-rows:var(--row)}
.cal-hours span{font:500 11px var(--mono);color:var(--ink-3);text-align:right;padding-right:10px;transform:translateY(-7px)}
.cal-hours span:first-child{transform:none;padding-top:3px}
.cal-col{position:relative;border-left:1px solid var(--line);background-image:linear-gradient(var(--line) 1px,transparent 1px);background-size:100% var(--row);cursor:copy}
.cal-col.weekend{background-color:var(--surface-2)}
.cal-col.today{background-color:color-mix(in srgb,var(--accent) 4%,transparent)}
.cal-ev{--mc:var(--accent);position:absolute;left:4px;right:4px;border:0;border-radius:10px;padding:6px 8px;text-align:left;overflow:hidden;cursor:pointer;display:grid;align-content:start;gap:1px;
  background:color-mix(in srgb,var(--mc) 14%,var(--surface));border-left:3px solid var(--mc);color:var(--ink);transition:transform .15s var(--ease-out),box-shadow .15s ease}
.cal-ev b{font-size:12.5px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-ev small{font-size:11px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-ev.short{padding:3px 8px;grid-auto-flow:column;justify-content:start;gap:6px;align-items:center}
.cal-ev.past{opacity:.5}
.cal-ev.live{box-shadow:0 0 0 2px var(--mc)}
@media (hover:hover) and (pointer:fine){.cal-ev:hover{transform:translateY(-1px);box-shadow:var(--shadow)}}
.cal-now{position:absolute;left:-1px;right:0;height:2px;background:var(--bad);pointer-events:none;z-index:2}
.cal-now::before{content:"";position:absolute;left:-5px;top:-4px;width:10px;height:10px;border-radius:50%;background:var(--bad)}
.date-chip{--mc:var(--accent);width:42px;height:44px;border-radius:12px;display:grid;place-content:center;text-align:center;background:color-mix(in srgb,var(--mc) 14%,var(--surface));flex:none;line-height:1.1}
.date-chip small{font-size:10.5px;color:var(--ink-3);font-weight:600;text-transform:uppercase}
.date-chip b{font:650 16px var(--display)}
.type-list{display:grid;gap:8px}
.tl-row{display:flex;align-items:center;gap:10px;font-size:13px}
.tl-row i{width:10px;height:10px;border-radius:3px}
.tl-row span{flex:1;color:var(--ink-2)}
.meet-type{--mc:var(--accent);display:flex;align-items:center;gap:8px;font-weight:600}
.mt-dot{width:10px;height:10px;border-radius:50%;background:var(--mc)}
.link-row{display:flex;align-items:center;gap:4px;min-width:0}
.link-row a{color:var(--accent);font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agenda{padding:14px;display:grid;gap:14px}
.day-pills{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.day-pills button{border:0;background:var(--surface-2);border-radius:12px;padding:7px 0 6px;display:grid;justify-items:center;gap:1px;color:var(--ink-2)}
.day-pills small{font-size:10.5px;text-transform:uppercase;font-weight:600}
.day-pills b{font:650 16px var(--display)}
.day-pills i{width:5px;height:5px;border-radius:50%;background:transparent}
.day-pills i.on{background:var(--accent)}
.day-pills button.today{color:var(--accent)}
.day-pills button[aria-pressed="true"]{background:var(--accent);color:#fff}
.day-pills button[aria-pressed="true"] i.on{background:#fff}

/* ---------- Pendientes ---------- */
.kanban{display:grid;grid-template-columns:repeat(4,minmax(260px,1fr));gap:14px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x proximity}
.kcol{background:var(--sunken);border-radius:var(--r3);padding:10px;display:flex;flex-direction:column;gap:10px;min-height:280px;scroll-snap-align:start;transition:background-color .15s ease,box-shadow .15s ease}
.kcol.drop{background:var(--accent-wash);box-shadow:inset 0 0 0 2px var(--accent)}
.kcol-head{display:flex;align-items:center;gap:8px;padding:4px 6px}
.kcol-head b{font:650 14px var(--display)}
.kcol-head .tc{font-size:11px;background:var(--surface);color:var(--ink-2);padding:2px 8px;border-radius:9px;font-weight:600}
.kh-ico{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--surface);color:var(--accent)}
.kh-ico svg{width:14px;height:14px}
.kcol[data-col="Hecho"] .kh-ico{color:var(--good)}
.kcol[data-col="Revisión"] .kh-ico{color:var(--c3)}
.kcol-body{display:grid;gap:10px;align-content:start;flex:1}
.kcol-empty{margin:0;padding:22px 10px;text-align:center;color:var(--ink-3);font-size:12.5px;border:1.5px dashed var(--line-strong);border-radius:14px}
.kcard{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 13px;display:grid;gap:8px;box-shadow:var(--shadow-sm);cursor:grab;transition:transform .15s var(--ease-out),box-shadow .15s ease,opacity .15s}
@media (hover:hover) and (pointer:fine){.kcard:hover{box-shadow:var(--shadow);transform:translateY(-1px)}}
.kcard.late{border-color:color-mix(in srgb,var(--bad) 40%,var(--line))}
.kcard.done{opacity:.72}
.kcard.done .kc-title{text-decoration:line-through;text-decoration-color:var(--ink-3)}
.kcard.dragging{opacity:.35}
.kcard.ghost{position:fixed;left:0;top:0;z-index:100;pointer-events:none;box-shadow:var(--shadow);opacity:.95;cursor:grabbing}
.kcard.flash{animation:flash 1s var(--ease-out)}
@keyframes flash{from{box-shadow:0 0 0 3px var(--accent)}}
.kc-top{display:flex;align-items:center;gap:6px}
.handle{width:26px;height:26px;display:grid;place-items:center;color:var(--ink-3);border-radius:8px;touch-action:none;cursor:grab;margin:-4px -6px -4px 0}
.handle svg{width:15px;height:15px}
.kc-title{font-weight:600;line-height:1.35}
.kc-client{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink-2);min-width:0}
.kc-client span:not(.avatar){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kc-client small{color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kc-prog{display:flex;align-items:center;gap:8px}
.kc-prog .progress{flex:1;height:6px}
.kc-prog small{font-size:11.5px;color:var(--ink-3)}
.kc-foot{display:flex;align-items:center;gap:6px}
.due{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--ink-3);font-weight:550}
.due svg{width:14px;height:14px}
.due.bad{color:var(--bad)} .due.warn{color:var(--warn)}
.move-sel{border:1px solid var(--line);background:var(--surface-2);border-radius:9px;font-size:12px;padding:4px 6px;color:var(--ink-2);max-width:112px}
.prio-tag{font:650 10.5px/1 var(--body);letter-spacing:.04em;text-transform:uppercase;padding:4px 7px;border-radius:7px;background:var(--sunken);color:var(--ink-2)}
.prio-tag.p-urgente{background:var(--bad-wash);color:var(--bad)} .prio-tag.p-alta{background:var(--warn-wash);color:var(--warn)} .prio-tag.p-media{background:var(--accent-wash);color:var(--accent)}
.checklist{display:grid;gap:2px}
.checklist .check.done span{text-decoration:line-through;color:var(--ink-3)}
.kb-hint .kbd{font-size:10.5px}
@media (max-width:900px){.kanban{grid-template-columns:repeat(4,minmax(78vw,1fr));margin:0 -12px;padding:0 12px 6px;scroll-padding:12px}}

/* ---------- Content Studio ---------- */
.cs-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px;align-items:start}
@media (max-width:1180px){.cs-layout{grid-template-columns:minmax(0,1fr)}}
.cs-form{display:grid;gap:12px}
.cs-step{display:flex;align-items:center;gap:9px;margin-top:4px}
.cs-step b{font:650 14px var(--display)}
.step-n{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:var(--accent);color:#fff;font:700 12px var(--display)}
.type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (max-width:560px){.type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.type-opt{display:grid;gap:3px;justify-items:start;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:11px 12px;color:inherit;transition:border-color .15s ease,background-color .15s ease}
.type-opt b{font-size:13px;font-weight:600;line-height:1.25}
.type-opt small{font-size:11.5px;color:var(--ink-3)}
.type-opt[aria-checked="true"]{border-color:var(--accent);background:var(--accent-wash);box-shadow:inset 0 0 0 1px var(--accent)}
.to-ico{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--accent-wash);color:var(--accent);margin-bottom:3px}
.to-ico svg{width:15px;height:15px}
.to-ico.sm{width:24px;height:24px;margin:0}
.type-opt[aria-checked="true"] .to-ico{background:var(--accent);color:#fff}
.cs-form textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:11px 13px;background:var(--surface);outline:0;resize:vertical;line-height:1.5}
.cs-form textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-wash)}
.cs-form .chips .chip{font-size:12px;padding:5px 10px}
.cs-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cs-go{display:flex;gap:8px;margin-top:6px}
.cs-go .btn-primary{flex:1}
.cs-result{position:sticky;top:calc(var(--top-h) + 8px);display:grid;gap:10px}
@media (max-width:1180px){.cs-result{position:static}}
.cs-acts{display:flex;gap:6px;flex-wrap:wrap}
.cs-meta{margin:0;font-size:12.5px;color:var(--ink-3);display:flex;align-items:center;gap:6px}
.cs-meta.warn{color:var(--warn)} .cs-meta.bad{color:var(--bad);font-weight:550}
.cs-out{min-height:320px;max-height:62vh;overflow:auto;padding:16px 18px;border-radius:16px;background:var(--surface-2);border:1px solid var(--line);white-space:pre-wrap;line-height:1.6;font-size:14.5px;display:flex;flex-direction:column}
.cs-out[contenteditable="true"]{outline:2px solid var(--accent);background:var(--surface)}
.cs-out.typing::after{content:"";display:inline-block;width:8px;height:17px;background:var(--accent);margin-left:2px;vertical-align:text-bottom;animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:0}}
.lib-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
@media (max-width:420px){.lib-grid{grid-template-columns:minmax(0,1fr)}}
.lib-card{border:1px solid var(--line);border-radius:16px;padding:13px 14px;display:grid;gap:8px;align-content:start;background:var(--surface)}
.lib-card.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.lc-top{display:flex;align-items:center;gap:8px}
.lc-top b{font-size:13px}
.lc-topic{margin:0;font-weight:600;line-height:1.35}
.lc-text{margin:0;color:var(--ink-3);font-size:12.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.lc-foot{display:flex;align-items:center;gap:4px}

/* ---------- Video Ads ---------- */
.advice{display:grid;gap:6px}
.adv-row{display:flex;align-items:center;gap:12px;padding:11px 12px;border:0;border-radius:14px;background:var(--surface-2);text-align:left;color:inherit}
.adv-row .lt b{display:block;font-weight:600}
.adv-row .lt small{color:var(--ink-2);font-size:12.5px}
.adv-row .num{font-size:12.5px;color:var(--ink-3);white-space:nowrap}
.adv-dot{width:10px;height:10px;border-radius:50%;flex:none;background:var(--warn);box-shadow:0 0 0 4px var(--warn-wash)}
.adv-row.good .adv-dot{background:var(--good);box-shadow:0 0 0 4px var(--good-wash)} .adv-row.bad .adv-dot{background:var(--bad);box-shadow:0 0 0 4px var(--bad-wash)}
@media (hover:hover) and (pointer:fine){.adv-row:hover{background:var(--accent-wash)}}
@media (max-width:560px){.adv-row .num{display:none}}
.va-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
@media (max-width:1180px){.va-grid{grid-template-columns:minmax(0,1fr)}}
.ad-picks{display:grid;gap:6px}
.ad-pick{display:flex;align-items:center;gap:11px;padding:9px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-align:left;color:inherit}
.ad-pick.on{border-color:var(--accent);background:var(--accent-wash)}
.ad-pick .lt{flex:1;min-width:0}
.ad-pick .lt b{display:block;font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-pick .lt small{display:block;color:var(--ink-3);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-thumb{--hue:var(--accent);width:34px;height:46px;border-radius:9px;flex:none;display:grid;place-items:center;color:#fff;background:linear-gradient(160deg,color-mix(in srgb,var(--hue) 70%,#fff),var(--hue))}
.ap-thumb svg{width:14px;height:14px;fill:#fff}
.ap-score{font:700 15px var(--display);width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;font-variant-numeric:tabular-nums}
.ap-score.good{background:var(--good-wash);color:var(--good)} .ap-score.warn{background:var(--warn-wash);color:var(--warn)} .ap-score.bad{background:var(--bad-wash);color:var(--bad)}
.diag{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin-top:14px}
.diag-card{border:1px solid var(--line);border-radius:16px;padding:12px;display:grid;gap:8px;align-content:start}
.dc-head{display:flex;align-items:center;gap:8px}
.dc-head i{width:12px;height:4px;border-radius:2px}
.dc-head b{font-size:13px}
.dc-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.dc-metrics .mk{padding:7px 8px}
.dc-metrics .mk b{font-size:14px}
.dc-line{margin:0;display:flex;gap:7px;font-size:12.5px;line-height:1.45;color:var(--ink-2)}
.dc-line svg{width:15px;height:15px;flex:none;margin-top:2px}
.dc-line.good svg{color:var(--good)} .dc-line.warn svg{color:var(--warn)} .dc-line.bad svg{color:var(--bad)}
.dropzone{display:grid;justify-items:center;gap:6px;text-align:center;padding:26px 18px;border:1.5px dashed var(--line-strong);border-radius:18px;cursor:pointer;color:var(--ink-3);transition:border-color .15s,background-color .15s}
.dropzone b{color:var(--ink);font:600 15px var(--display)}
.dropzone.over,.dropzone:focus-within{border-color:var(--accent);background:var(--accent-wash)}
@media (hover:hover) and (pointer:fine){.dropzone:hover{border-color:var(--accent)}}
.va-out{display:grid;gap:14px;margin-top:14px}
.va-out:empty{display:none}
.va-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (max-width:700px){.va-facts{grid-template-columns:minmax(0,1fr)}}
.vf{padding:12px 14px;border-radius:14px;background:var(--surface-2);border-left:3px solid var(--ink-3);display:grid;gap:2px}
.vf.good{border-left-color:var(--good)} .vf.warn{border-left-color:var(--warn)} .vf.bad{border-left-color:var(--bad)}
.vf small{color:var(--ink-3);font-size:11.5px}
.vf b{font:650 18px var(--display)}
.vf span{font-size:12.5px;color:var(--ink-2)}
.filmstrip{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.filmstrip figure{margin:0;flex:none;display:grid;gap:4px;justify-items:center}
.filmstrip img{height:150px;width:auto;max-width:none;border-radius:10px;border:1px solid var(--line);display:block}
.filmstrip figcaption{font:600 11px var(--mono);color:var(--ink-3)}
.rules{display:grid;gap:10px}
.rule{display:flex;align-items:center;gap:12px;padding:14px 16px}
.rule .lt{flex:1;min-width:0}
.rule .lt b{display:block;font-weight:600}
.rule .lt small{display:block;color:var(--ink-3);font-size:12.5px;margin-top:2px}
.rule.off{opacity:.65}
.rule-ico{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--accent-wash);color:var(--accent);flex:none}
.rule-ico svg{width:17px;height:17px}
.meta-status{font-size:13px;color:var(--ink-3)}
.meta-status:empty{display:none}
.meta-status.good{color:var(--good);font-weight:600} .meta-status.bad{color:var(--bad);font-weight:550}

/* ---------- Automatizaciones ---------- */
.flow-list{display:grid}
.flow-row{display:flex;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid var(--line)}
.flow-row:last-child{border-bottom:0}
.flow-row .lt{flex:1;min-width:0}
.flow-row .lt b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flow-row .lt small{display:block;color:var(--ink-3);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flow-row.off{opacity:.6}
.flow-ico{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--accent-wash);color:var(--accent);flex:none}
.flow-ico svg{width:17px;height:17px}
.fr-spark{width:120px;flex:none}
.fr-num{display:grid;text-align:right;min-width:78px}
.fr-num b{font-weight:650}
.fr-num small{color:var(--ink-3);font-size:11.5px}
@media (max-width:760px){.fr-spark,.flow-row .fr-num:nth-of-type(2){display:none}.flow-row{flex-wrap:wrap;padding:12px 14px}.flow-row .badge{margin-left:50px}}

/* ---------- Infraestructura ---------- */
.gauges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media (max-width:1100px){.gauges{grid-template-columns:repeat(2,minmax(0,1fr))}}
.g-card{display:grid;align-content:center;min-height:190px}
.srv-meta .kv-list{grid-template-columns:1fr 1fr}
.live-dot{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--good)}
.live-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--good);animation:pulse 1.6s ease-out infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--good) 55%,transparent)}100%{box-shadow:0 0 0 9px transparent}}
.ram-bar{display:inline-block;width:60px;height:6px;border-radius:4px;background:var(--sunken);overflow:hidden;margin-right:8px;vertical-align:middle}
.ram-bar i{display:block;height:100%;background:var(--c2);border-radius:4px}
.site-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px}
@media (max-width:420px){.site-list{grid-template-columns:minmax(0,1fr)}}
.site{padding:15px 16px;display:grid;gap:12px}
.site.bad{border-color:color-mix(in srgb,var(--bad) 45%,var(--line));box-shadow:0 0 0 3px var(--bad-wash)}
.site-top{display:flex;align-items:center;gap:10px}
.site-top .lt{flex:1;min-width:0}
.site-url{display:block;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover) and (pointer:fine){.site-url:hover{color:var(--accent)}}
.site-top small{color:var(--ink-3);font-size:12px}
.site-dot{width:10px;height:10px;border-radius:50%;flex:none;background:var(--good)}
.site-dot.good{animation:pulse 2.2s ease-out infinite}
.site-dot.warn{background:var(--warn)} .site-dot.bad{background:var(--bad)}
.site-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.site-nums small{display:block;color:var(--ink-3);font-size:11px}
.site-nums b{font-weight:600;font-size:13px}
.n8n-wrap{overflow:hidden;padding:0}
.n8n-frame{display:block;width:100%;height:calc(100dvh - 260px);min-height:480px;border:0;background:var(--surface-2)}
.n8n-empty{display:grid;justify-items:center;gap:4px;text-align:center;padding:48px 20px}
.n8n-empty b{font:600 17px var(--display)}
.db-ico{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--accent-wash);color:var(--accent);flex:none}
.db-ico svg{width:16px;height:16px}
.db-ico.mysql{background:var(--warn-wash);color:var(--warn)} .db-ico.supabase{background:var(--good-wash);color:var(--good)}
.deploy-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:14px}
@media (max-width:420px){.deploy-grid{grid-template-columns:minmax(0,1fr)}}
.deploy{padding:15px 16px;display:grid;gap:12px;align-content:start}
.deploy.failed{border-color:color-mix(in srgb,var(--bad) 45%,var(--line));box-shadow:0 0 0 3px var(--bad-wash)}
.deploy.stopped{opacity:.8}
.dp-top{display:flex;align-items:center;gap:10px}
.dp-top .lt{flex:1;min-width:0}
.dp-top .lt b{display:block;font-weight:650;font-family:var(--mono);font-size:13.5px}
.dp-top .lt small{color:var(--ink-3);font-size:12px}
.dp-ico{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--accent-wash);color:var(--accent);flex:none}
.dp-ico svg{width:17px;height:17px}
.deploy.failed .dp-ico{background:var(--bad-wash);color:var(--bad)}
.dp-meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--ink-3)}
.dp-meta a{color:var(--accent);text-decoration:none}
.dp-err{margin:0;display:flex;gap:7px;padding:9px 11px;border-radius:12px;background:var(--bad-wash);color:var(--bad);font-size:12.5px;font-weight:550}
.dp-err svg{width:15px;height:15px;flex:none;margin-top:1px}
.dp-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.dp-nums small{display:block;color:var(--ink-3);font-size:11px}
.dp-nums b{font-weight:600;font-size:13px}
.dp-actions{display:flex;gap:6px;flex-wrap:wrap}
.logs{margin:0;padding:14px;border-radius:14px;background:#0A1024;color:#C9D3F0;font:500 12px/1.7 var(--mono);overflow-x:auto;white-space:pre}
.logs .lg i{font-style:normal;color:#6F7A99;margin-right:10px}
.logs .lg b{display:inline-block;width:52px;font-weight:600;color:#5C82FF}
.logs .lg.warn b{color:#FFB224} .logs .lg.error b{color:#FF6369} .logs .lg.error{color:#FFB3B6}

/* ---------- Seguridad ---------- */
.vault-lock{max-width:440px;margin:24px auto;justify-items:stretch;text-align:left;padding:28px}
.vault-lock h2{margin:0;font:650 22px var(--display);letter-spacing:-.02em}
.vl-ico{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--hero);color:#fff;box-shadow:0 12px 26px -12px rgba(31,79,255,.8)}
.vl-ico svg{width:24px;height:24px}
.pw-wrap{display:flex;align-items:center;gap:10px}
.pw-meter{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;flex:1}
.pw-meter i{height:5px;border-radius:3px;background:var(--sunken);transition:background-color .2s}
.pw-meter[data-s="1"] i:nth-child(-n+1){background:var(--bad)}
.pw-meter[data-s="2"] i:nth-child(-n+2){background:var(--warn)}
.pw-meter[data-s="3"] i:nth-child(-n+3){background:var(--c2)}
.pw-meter[data-s="4"] i{background:var(--good)}
.vault-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:14px}
@media (max-width:420px){.vault-grid{grid-template-columns:minmax(0,1fr)}}
.vnote{padding:14px 15px;display:grid;gap:9px;align-content:start}
.vn-top{display:flex;align-items:center;gap:8px}
.vn-top .lt{flex:1;min-width:0}
.vn-top .lt b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vn-top .lt small{color:var(--ink-3);font-size:12px}
.vn-ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--accent-wash);color:var(--accent);flex:none}
.vn-ico svg{width:16px;height:16px}
.vn-row{display:flex;align-items:center;gap:6px;padding:6px 6px 6px 11px;border-radius:11px;background:var(--surface-2);min-width:0}
.vn-row small{color:var(--ink-3);font-size:11.5px;width:72px;flex:none}
.vn-row>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px}
.secret{letter-spacing:.08em;color:var(--ink-3)}
.secret.shown{letter-spacing:0;color:var(--ink);white-space:normal!important;overflow-wrap:anywhere}
.vn-url{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--accent);text-decoration:none}
.vn-url svg{width:14px;height:14px}
.av-dot{position:relative;background:var(--ink-3)}
.av-dot.on{background:var(--hero)}
.av-dot.on::after{content:"";position:absolute;right:-3px;bottom:-3px;width:11px;height:11px;border-radius:50%;background:#22C55E;border:2px solid var(--surface)}
table.t th.c,table.t td.c{text-align:center}
table.perm td{padding:9px 12px}
.perm-ic{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:8px}
.perm-ic svg{width:14px;height:14px}
.perm-ic.ok{background:var(--good-wash);color:var(--good)} .perm-ic.no{background:var(--sunken);color:var(--ink-3)}
.big-secret{font-size:17px;letter-spacing:.04em;user-select:all}
.account-hero{display:flex;align-items:center;gap:16px;padding:20px 22px;flex-wrap:wrap}
.account-hero h1{margin:0;font:650 22px var(--display);letter-spacing:-.02em}
.account-hero p{margin:2px 0 0;color:var(--ink-3)}
.sess-ico{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--surface-2);color:var(--ink-2);flex:none}
.sess-ico svg{width:17px;height:17px}

/* ---------- Teléfono ---------- */
@media (max-width:560px){
  .page-head{align-items:flex-start}
  .page-head>.grow{flex-basis:100%}
  .kpis{gap:10px}
  .kpi{padding:13px 14px}
  .kpi b.kv{font-size:21px}
  .card-pad{padding:15px 15px}
  .card-pad-h{padding:14px 15px 0}
  .list-pad{padding:0 15px 8px}
  .home-hero{padding:18px}
  .hh-row{gap:16px}
  .donut-wrap{justify-content:center}
  .site-nums,.dp-nums{grid-template-columns:repeat(2,1fr)}
  .pc-nums{grid-template-columns:repeat(3,minmax(0,1fr))}
  .toolbar .seg{max-width:100%;overflow-x:auto;flex-wrap:nowrap}
  .toolbar .seg button{white-space:nowrap}
  .rank-row{grid-template-columns:30px minmax(0,1fr) auto}
  .rank-row .rk-bar{display:none}
}

/* Columnas únicas que no deben crecer con su contenido */
.list,.tab-body,.cs-form,.cs-result,.res-side,.feed,.timeline,.advice,.ad-picks,.rules,.flow-list,.infra-rows,.rank,.checklist,.proj-card,.kcol-body,.kcard,.vnote,.site,.deploy,.lib-card,.diag-card,.va-out,.sheet-body,.modal-body,.home-hero,.pc-bars,.type-list,.agenda{grid-template-columns:minmax(0,1fr)}
.form .field input,.form .field select{border:0!important;box-shadow:none!important;min-height:40px;padding:0;background:none;border-radius:0}
.hh-spark svg{display:block}
.wa-side .chips .chip,.wa-quick .chip{flex:none}
.wa-mid{grid-template-columns:minmax(0,1fr)}
.cal-ev.short{display:flex;align-items:center;gap:6px;padding:2px 8px}
.cal-ev.short b{flex:1;min-width:0}
.cal-ev.short small{display:none}

/* =====================================================================
   Rediseño · menos ruido: el menú y la barra se funden con el fondo,
   las tarjetas son planas, los números van sin íconos y el azul marca
   solo lo importante. Movimiento corto y con propósito.
   ===================================================================== */

/* Menú lateral */
.side{background:var(--bg);border-right:0;padding:22px 16px}
.side .brand{padding:2px 10px 20px}
.side-label{padding:18px 12px 6px;font-size:10.5px;letter-spacing:.09em;color:var(--ink-3);opacity:.8}
[data-nav]{position:relative;display:grid;gap:2px}
.nav-ind{position:absolute;left:0;right:0;top:0;height:40px;border-radius:12px;background:var(--surface);box-shadow:0 1px 2px rgba(16,32,80,.06),0 4px 14px -6px rgba(16,32,80,.14);opacity:0;transition:transform .38s var(--ease-out),height .38s var(--ease-out),opacity .2s;pointer-events:none}
.nav-ind.on{opacity:1}
.nav-item{position:relative;z-index:1;padding:9px 12px;color:var(--ink-2);background:none!important;box-shadow:none!important}
.nav-item svg{width:18px;height:18px;opacity:.75}
.nav-item[aria-current="page"]{color:var(--accent);font-weight:600}
.nav-item[aria-current="page"] svg{opacity:1}
@media (hover:hover) and (pointer:fine){.nav-item:not([aria-current="page"]):hover{color:var(--ink)}}
.nbadge{background:var(--sunken);color:var(--ink-2);min-width:18px;height:18px;font-size:10.5px}
.nbadge.bad{background:var(--bad);color:#fff}
.nbadge.good{background:var(--accent-wash);color:var(--accent)}
.nav-item[aria-current="page"] .nbadge{background:var(--accent-wash);color:var(--accent)}
.nav-item[aria-current="page"] .nbadge.bad{background:var(--bad);color:#fff}
.side-foot{background:none;padding:12px 10px}
.demo-pill{display:inline-flex;align-items:center;gap:7px;font:550 11.5px var(--body);color:var(--warn);background:var(--warn-wash);padding:5px 10px;border-radius:999px}
.demo-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
:root[data-theme="dark"] .nav-ind{background:var(--surface-2);box-shadow:none}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .nav-ind{background:var(--surface-2);box-shadow:none}}
@media (max-width:900px){.side{background:var(--surface)}}

/* Barra superior */
.top{background:color-mix(in srgb,var(--bg) 86%,transparent);padding:0 36px;gap:14px}
.search-pill{display:flex;align-items:center;gap:10px;flex:1;max-width:440px;height:42px;padding:0 8px 0 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink-3);text-align:left;transition:border-color .15s,box-shadow .15s}
.search-pill .ico svg{width:17px;height:17px;display:block}
.search-pill .sp-txt{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px}
@media (hover:hover) and (pointer:fine){.search-pill:hover{border-color:var(--line-strong);box-shadow:var(--shadow-sm)}}
.top-actions{gap:4px}
.top-actions .btn-ghost svg{width:19px;height:19px}
.avatar[data-me]{margin-left:6px;cursor:pointer;transition:transform .15s var(--ease-out)}
.avatar[data-me]:active{transform:scale(.94)}
@media (max-width:900px){.top{padding:0 12px}.search-pill{max-width:none;height:40px}.search-pill .kbd{display:none}}
@media (max-width:420px){.search-pill .sp-txt{font-size:13px}}

/* Menús emergentes (avatar y "+ Nuevo") */
.me-pop,.ui-menu{position:absolute;z-index:70;min-width:230px;padding:8px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);display:grid;gap:2px;animation:pop .16s var(--ease-out)}
.me-pop{right:0;top:calc(100% + 10px);transform-origin:100% 0}
.ui-menu{transform-origin:100% 0}
.mp-head{display:flex;align-items:center;gap:10px;padding:8px 8px 4px}
.mp-head b{display:block;font-weight:600;font-size:13.5px}
.mp-head small{color:var(--ink-3);font-size:12px}
.mp-role{justify-self:start;margin:2px 8px 8px 50px;font:600 11px var(--body);color:var(--accent);background:var(--accent-wash);padding:3px 8px;border-radius:999px}
.mp-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:11px;background:none;text-align:left;font-weight:500;color:var(--ink)}
.mp-item svg{width:17px;height:17px;color:var(--ink-3)}
.mp-item.danger,.mp-item.danger svg{color:var(--bad)}
.mp-item:focus-visible{outline:none;background:var(--surface-2)}
@media (hover:hover) and (pointer:fine){.mp-item:hover{background:var(--surface-2)}}

/* Página */
.content{padding:8px 36px 48px;gap:22px;max-width:1360px;width:100%}
@media (max-width:900px){.content{padding:6px 14px calc(32px + env(safe-area-inset-bottom));gap:16px}}
.page-head{margin-bottom:2px}
.page-head h1{font:680 28px/1.15 var(--display);letter-spacing:-.035em}
.page-head p{font-size:14px;margin-top:4px}
@media (max-width:560px){.page-head h1{font-size:24px}}
.sub-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sub-head p{margin:0;color:var(--ink-3);font-size:13.5px}

/* Tarjetas y botones más calmados */
.card{box-shadow:none;border-color:var(--line)}
.card-head{margin-bottom:16px}
.card-head h2,.card-head h3{font-size:15.5px}
.btn{box-shadow:none}
.btn-primary{box-shadow:0 6px 16px -8px color-mix(in srgb,var(--accent) 80%,transparent)}
.tabs{border-bottom-color:var(--line);gap:2px}
.tabs button{padding:11px 14px;color:var(--ink-3)}
.tabs .ti{display:none}
.tabs .tc{background:transparent;padding:0 2px;font-weight:600}
.tabs .tc.bad{background:var(--bad);color:#fff;padding:1px 7px}
.badge{border:0;background:var(--sunken)}

/* Números: etiqueta pequeña, cifra grande, contexto en una línea */
.stats{display:grid;gap:14px}
.stats-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:760px){.stats-3{grid-template-columns:minmax(0,1fr)}}
.stat{display:grid;gap:4px;align-content:center;padding:18px 20px;text-align:left;color:inherit;font:inherit}
.stat.click{cursor:pointer;transition:transform .18s var(--ease-out),border-color .18s,box-shadow .18s}
@media (hover:hover) and (pointer:fine){.stat.click:hover{border-color:var(--accent-soft);box-shadow:0 10px 26px -16px rgba(16,32,80,.35);transform:translateY(-2px)}}
.stat.click:active{transform:scale(.985)}
.st-l{font-size:12.5px;color:var(--ink-3);font-weight:550}
.stat .kv{font:680 30px/1.1 var(--display);letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.st-s{font-size:12.5px;color:var(--ink-3)}
.st-s.bad{color:var(--bad);font-weight:550} .st-s.good{color:var(--good)}
.kpis{gap:14px}
.kpi{padding:18px 20px;gap:4px;box-shadow:none}
.kpi .kl .ki{display:none}
.kpi .kl{font-size:12.5px}
.kpi b.kv{font:680 28px/1.1 var(--display);letter-spacing:-.035em}

/* Inicio */
.home-top{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:16px}
.home-top .stats{grid-template-rows:repeat(3,1fr)}
.home-top .stat{padding:14px 20px;grid-template-columns:1fr auto;grid-template-areas:"l v" "s v";align-items:center;column-gap:16px}
.home-top .stat .st-l{grid-area:l}
.home-top .stat .kv{grid-area:v;font-size:28px;text-align:right}
.home-top .stat .st-s{grid-area:s}
@media (max-width:1000px){.home-top{grid-template-columns:minmax(0,1fr)}}
.home-hero{padding:26px 28px 0;display:flex;flex-direction:column;gap:6px;min-height:280px;overflow:hidden}
.hh-label{font-weight:550;opacity:.82;font-size:14px;position:relative;z-index:1}
.hh-big{font:720 clamp(40px,5vw,58px)/1 var(--display);letter-spacing:-.05em;margin-top:6px;position:relative;z-index:1}
.hh-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;margin-top:8px;font:600 12.5px var(--body);padding:5px 10px 5px 7px;border-radius:999px;background:rgba(255,255,255,.16);position:relative;z-index:1}
.hh-chip svg{width:14px;height:14px}
.hh-row{display:flex;gap:30px;margin-top:14px;position:relative;z-index:1}
.hh-row small{opacity:.72;font-size:12px}
.hh-row b{font:650 17px var(--display)}
.hh-spark{margin:auto -28px 0;height:70px;opacity:.9}
.hh-spark svg{width:100%;height:70px}
.day{display:grid;gap:4px}
.day-l{font:600 11px var(--body);letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3);margin:8px 0 4px}
.day-l:first-child{margin-top:0}
.day-row{display:flex;align-items:center;gap:12px;padding:9px 10px;margin:0 -10px;border-radius:12px;border:0;background:none;text-align:left;color:inherit;width:calc(100% + 20px)}
.day-row.task{cursor:pointer}
@media (hover:hover) and (pointer:fine){.day-row.task:hover{background:var(--surface-2)}}
.dr-time{font:600 12.5px var(--mono);color:var(--ink-3);width:46px;flex:none}
.dr-t{flex:1;min-width:0;display:grid}
.dr-t b{font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dr-t small{color:var(--ink-3);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.day-row.past{opacity:.5}
.day-row.live{background:var(--accent-wash)}
.day-row.live .dr-time{color:var(--accent)}
.dr-done svg{width:16px;height:16px;color:var(--good)}
.dr-prio{width:8px;height:8px;border-radius:50%;flex:none;margin:0 19px;background:var(--line-strong)}
.dr-prio.p-urgente{background:var(--bad);box-shadow:0 0 0 4px var(--bad-wash)} .dr-prio.p-alta{background:var(--warn)} .dr-prio.p-media{background:var(--accent)}
.dr-due{font-size:12px;color:var(--ink-3);white-space:nowrap}
.dr-due.bad{color:var(--bad);font-weight:600}
.attention .card-head{margin-bottom:12px}
.att-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.att{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;border:1px solid var(--line);background:var(--surface);text-align:left;color:inherit;transition:transform .18s var(--ease-out),border-color .18s,box-shadow .18s}
@media (hover:hover) and (pointer:fine){.att:hover{transform:translateY(-2px);box-shadow:0 10px 26px -16px rgba(16,32,80,.35)}.att:hover .att-go{transform:translateX(3px);opacity:1}}
.att-ico{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--accent-wash);color:var(--accent)}
.att-ico svg{width:17px;height:17px}
.att.bad .att-ico{background:var(--bad-wash);color:var(--bad)} .att.warn .att-ico{background:var(--warn-wash);color:var(--warn)}
.att-t{flex:1;min-width:0;display:grid}
.att-t b{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att-t small{color:var(--ink-3);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att-go{opacity:.4;transition:transform .18s var(--ease-out),opacity .18s}
.att-go svg{width:16px;height:16px;display:block}
.btn-ghost.btn-sm svg{width:15px;height:15px}

/* Reservas y otros */
.cal-top{display:flex;align-items:center;gap:10px;padding:14px 16px 12px 20px;border-bottom:1px solid var(--line)}
.cal-top b{display:block;font:650 15.5px var(--display)}
.cal-top small{color:var(--ink-3);font-size:12.5px}
.res-layout{grid-template-columns:minmax(0,1fr) 280px}
@media (max-width:1180px){.res-layout{grid-template-columns:minmax(0,1fr)}}
.wa{height:calc(100dvh - var(--top-h) - 150px)}
.wa-side{padding-top:14px}
.wa-tags{gap:8px;font-size:11.5px}
.wa-lab{color:var(--ink-3);font-weight:550}
.wa-lab.l-cliente{color:var(--accent)} .wa-lab.l-lead{color:var(--good)}
.wa-wait{color:var(--warn);font-weight:550}
.wa-wait::before{content:"· "}
.chips.ideas .chip{background:var(--surface-2);border-color:transparent}
.account-hero{align-items:flex-start;padding:22px 24px}
.account-hero h2{margin:0;font:650 20px var(--display);letter-spacing:-.02em}
.account-hero p{margin:2px 0 0;color:var(--ink-3)}
.facts{display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:14px}
.facts small{display:block;color:var(--ink-3);font-size:11.5px}
.facts b{font-weight:600;font-size:13.5px}
.ah-actions{display:flex;gap:8px;flex-wrap:wrap}
.reset-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:4px 2px}
.modal .grid-2{grid-template-columns:minmax(0,1fr)}
.modal .grid-2>.card{border:0;padding:0}

/* ---------- Movimiento ---------- */
@keyframes rise{from{opacity:0;transform:translateY(10px)}}
@keyframes fadeIn{from{opacity:0}}
.content.enter>*{animation:rise .5s var(--ease-out) both}
.content.enter>*:nth-child(2){animation-delay:.05s}
.content.enter>*:nth-child(3){animation-delay:.1s}
.content.enter>*:nth-child(4){animation-delay:.15s}
.content.enter>*:nth-child(n+5){animation-delay:.2s}
.content.enter .stats>*,.content.enter .kpis>*,.content.enter .att-grid>*{animation:rise .5s var(--ease-out) both}
.content.enter .stats>*:nth-child(2),.content.enter .kpis>*:nth-child(2),.content.enter .att-grid>*:nth-child(2){animation-delay:.08s}
.content.enter .stats>*:nth-child(3),.content.enter .kpis>*:nth-child(3),.content.enter .att-grid>*:nth-child(3){animation-delay:.14s}
.content.enter .kpis>*:nth-child(4),.content.enter .att-grid>*:nth-child(4){animation-delay:.2s}
.tab-body.fade{animation:rise .35s var(--ease-out) both}
.anim .ch-bar{transform-box:fill-box;transform-origin:50% 100%;animation:grow .7s var(--ease-out) both;animation-delay:calc(var(--i,0) * 45ms)}
@keyframes grow{from{transform:scaleY(0)}}
.anim .ch-line:not(.dashed){stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.1s var(--ease-out) .1s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.anim .ch-area{animation:fadeIn .9s ease .35s both}
.donut.anim svg{animation:spinIn .8s var(--ease-out) both}
@keyframes spinIn{from{transform:rotate(-100deg) scale(.9);opacity:0}}
.donut.anim+.donut-legend>*{animation:rise .45s var(--ease-out) both}
.donut.anim+.donut-legend>*:nth-child(2){animation-delay:.05s}.donut.anim+.donut-legend>*:nth-child(3){animation-delay:.1s}.donut.anim+.donut-legend>*:nth-child(4){animation-delay:.15s}.donut.anim+.donut-legend>*:nth-child(n+5){animation-delay:.2s}
.g-val{transition:stroke-dasharray 1s var(--ease-out),stroke .3s ease}
.hero-card::before{content:"";position:absolute;inset:-40% -20% auto auto;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 62%);animation:drift 14s ease-in-out infinite alternate;pointer-events:none}
@keyframes drift{to{transform:translate(-70px,50px)}}
.card.site,.card.deploy,.kcard,.vnote,.lib-card,.proj-card{transition:transform .18s var(--ease-out),box-shadow .18s,border-color .18s}
@media (hover:hover) and (pointer:fine){.card.site:hover,.card.deploy:hover,.vnote:hover,.lib-card:hover,.proj-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px -18px rgba(16,32,80,.4)}}
@media (prefers-reduced-motion: reduce){.hero-card::before{animation:none}}
.search-pill{min-width:0}
@media (max-width:420px){.top-actions [data-theme-btn]{display:none}}
.top .menu-btn{display:none}
@media (max-width:900px){.top .menu-btn{display:inline-flex}}
@media (max-width:560px){.page-head{flex-wrap:nowrap}.page-head>.grow{flex-basis:0}.page-head .btn{flex:none}.hh-chip{padding-left:10px}}

/* =====================================================================
   Menos color (dashboard-design): estados = punto de color sobre neutro,
   gráficos de un tono, ítem activo resaltado con fondo y no pintado.
   ===================================================================== */
:root{--iso-top:#FFFFFF;--iso-l:#E8EDF7;--iso-r:#D6DEEE;--iso-line:#C3CDE0;--iso-pad-top:#EEF2F9;--iso-pad-l:#E1E7F2;--iso-pad-r:#D3DBEA}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--iso-top:#1E2848;--iso-l:#172039;--iso-r:#111a31;--iso-line:#2B3963;--iso-pad-top:#131B36;--iso-pad-l:#0F162D;--iso-pad-r:#0C1226}}
:root[data-theme="dark"]{--iso-top:#1E2848;--iso-l:#172039;--iso-r:#111a31;--iso-line:#2B3963;--iso-pad-top:#131B36;--iso-pad-l:#0F162D;--iso-pad-r:#0C1226}

.nav-item[aria-current="page"]{color:var(--ink)}
.nav-item[aria-current="page"] svg{color:var(--accent)}
.content .avatar:not(.lg){background:var(--sunken)!important;color:var(--ink-2)}
.badge.good,.badge.warn,.badge.info,.badge.blue{background:var(--sunken);color:var(--ink-2)}
.badge.good .d{background:var(--good)} .badge.warn .d{background:var(--warn)} .badge.info .d,.badge.blue .d{background:var(--accent)}
.badge.good:not(:has(.d))::before,.badge.warn:not(:has(.d))::before,.badge.info:not(:has(.d))::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--good)}
.badge.warn:not(:has(.d))::before{background:var(--warn)} .badge.info:not(:has(.d))::before{background:var(--accent)}
.badge.bad{background:var(--bad-wash);color:var(--bad)}
.prio-tag,.prio-tag.p-alta,.prio-tag.p-media{background:transparent;color:var(--ink-3);padding-left:0}
.prio-tag.p-urgente{background:var(--bad-wash);color:var(--bad);padding-left:7px}
.cat-dot{background:var(--line-strong)!important}
.uptime i{background:var(--c-muted);opacity:1}
.uptime i.slow{background:var(--warn)} .uptime i.down{background:var(--bad)}
.site-dot.good{background:var(--good);animation:none}
.ap-thumb{background:var(--sunken)!important;color:var(--ink-2)}
.ap-thumb svg{fill:currentColor}
.to-ico,.fi-ico,.flow-ico,.rule-ico,.dp-ico,.vn-ico,.db-ico,.att-ico{background:var(--sunken)!important;color:var(--ink-2)!important}
.att.bad .att-ico{background:var(--bad-wash)!important;color:var(--bad)!important}
.type-opt[aria-checked="true"] .to-ico{background:var(--accent)!important;color:#fff!important}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.seg button[aria-pressed="true"]{color:var(--ink)}
.tabs button[aria-selected="true"]{color:var(--ink);border-color:var(--ink)}
.cal-ev{background:color-mix(in srgb,var(--mc) 8%,var(--surface))}

/* Reparto en barras de un tono (reemplaza los anillos) */
.shares{display:grid;gap:14px}
.sh-total b{display:block;font:680 26px/1.1 var(--display);letter-spacing:-.03em}
.sh-total small{color:var(--ink-3);font-size:12.5px}
.sh-list{display:grid;gap:12px}
.sh-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center}
.sh-l{font-size:13px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-v{font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}
.sh-bar{grid-column:1 / -1;height:6px;border-radius:4px;background:var(--sunken);overflow:hidden}
.sh-bar i{display:block;height:100%;border-radius:4px;background:var(--accent)}
.sh-row:not(:first-child) .sh-bar i{background:color-mix(in srgb,var(--accent) 55%,var(--sunken))}
.sh-list.anim .sh-bar i{transform-origin:0 50%;animation:grow-x .8s var(--ease-out) both;animation-delay:calc(var(--i) * 60ms)}
@keyframes grow-x{from{transform:scaleX(0)}}

/* Servidor: tira de medidores */
.meters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media (max-width:900px){.meters{grid-template-columns:repeat(2,minmax(0,1fr))}}
.meter{padding:16px 18px;display:grid;gap:8px;transition:box-shadow .25s}
.mt-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.mt-v{font:680 22px/1 var(--display);letter-spacing:-.03em}
.mt-bar{display:block;height:5px;border-radius:4px;background:var(--sunken);overflow:hidden}
.mt-bar i{display:block;height:100%;border-radius:4px;background:var(--ink);transition:width .6s var(--ease-out)}
.mt-bar i.warn{background:var(--warn)} .mt-bar i.bad{background:var(--bad)}
.mt-s{color:var(--ink-3);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meter.flash .mt-v{animation:flashv .6s var(--ease-out)}
@keyframes flashv{from{color:var(--accent)}}

/* Servidor: maqueta isométrica + ficha */
.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:stretch}
@media (max-width:1100px){.map-layout{grid-template-columns:minmax(0,1fr)}}
.map-card{padding:18px 20px 14px;display:grid;grid-template-columns:minmax(0,1fr);align-content:start}
.map-card .card-head{margin-bottom:6px}
.isomap svg{display:block;width:100%;height:auto;max-height:520px;overflow:visible}
.isomap .f-t{fill:var(--iso-top)} .isomap .f-l{fill:var(--iso-l)} .isomap .f-r{fill:var(--iso-r)}
.isomap polygon{stroke:var(--iso-line);stroke-width:.8;stroke-linejoin:round}
.isomap .pad .f-t{fill:var(--iso-pad-top)} .isomap .pad .f-l{fill:var(--iso-pad-l)} .isomap .pad .f-r{fill:var(--iso-pad-r)}
.isomap .pad polygon{stroke:none}
.isomap .pad-t{font:650 7.5px var(--body);letter-spacing:.14em;fill:var(--ink-3)}
.isomap .post .f-l,.isomap .post .f-r,.isomap .post .f-t,.isomap .rack-cap .f-t,.isomap .rack-base .f-t{fill:var(--iso-line)}
.isomap .rack-cap .f-l,.isomap .rack-cap .f-r,.isomap .rack-base .f-l,.isomap .rack-base .f-r{fill:var(--iso-r)}
.isomap .unit{cursor:pointer;outline:none}
.isomap .drawer{transition:transform .28s var(--ease-out)}
@media (hover:hover) and (pointer:fine){.isomap .unit:hover .drawer{transform:translate(-6px,3.5px)}}
.isomap .unit.on .drawer{transform:translate(-18px,10.4px)}
.isomap .unit.on .f-t{fill:color-mix(in srgb,var(--accent) 10%,var(--iso-top))}
.isomap .unit.on polygon{stroke:var(--accent);stroke-width:1.3}
.isomap .unit:focus-visible polygon{stroke:var(--accent);stroke-width:1.6}
.isomap .unit.linked:not(.on) polygon{stroke:var(--accent);stroke-dasharray:3 2}
.isomap .u-name{font:600 11px var(--mono);fill:var(--ink-2);pointer-events:none}
.isomap .led{fill:var(--good)}
.isomap .st-running .led{animation:led 2.4s ease-in-out infinite}
@keyframes led{50%{opacity:.45}}
.isomap .st-failed .led{fill:var(--bad);animation:led .9s ease-in-out infinite}
.isomap .st-failed polygon{stroke:color-mix(in srgb,var(--bad) 60%,var(--iso-line))}
.isomap .st-failed .f-l{fill:color-mix(in srgb,var(--bad) 10%,var(--iso-l))}
.isomap .st-stopped .led{fill:var(--ink-3)}
.isomap .st-stopped .drawer{opacity:.55}
.isomap .st-deploying .led,.isomap .st-restarting .led{fill:var(--accent);animation:led .5s linear infinite}
.isomap .act-bg{stroke:var(--iso-line);stroke-width:3;stroke-linecap:round}
.isomap .act{stroke:var(--accent);stroke-width:3;stroke-linecap:round;transition:all .8s var(--ease-out)}
.isomap .cyl{cursor:pointer;outline:none}
.isomap .c-body{fill:var(--iso-l);stroke:var(--iso-line);stroke-width:.8}
.isomap .c-top{fill:var(--iso-top);stroke:var(--iso-line);stroke-width:.8}
.isomap .c-ring{fill:none;stroke:var(--iso-line);stroke-width:.8;stroke-dasharray:0}
.isomap .c-name{font:600 10.5px var(--mono);fill:var(--ink);pointer-events:none;opacity:0;transition:opacity .15s;paint-order:stroke;stroke:var(--surface);stroke-width:4px;stroke-linejoin:round}
.isomap .cyl:hover .c-name,.isomap .cyl:focus-visible .c-name,.isomap .cyl.on .c-name,.isomap .cyl.linked .c-name{opacity:1}
.isomap .cyl{transition:transform .25s var(--ease-out)}
@media (hover:hover) and (pointer:fine){.isomap .cyl:hover{transform:translateY(-3px)}}
.isomap .cyl.on{transform:translateY(-6px)}
.isomap .cyl.on .c-top,.isomap .cyl.on .c-body,.isomap .cyl:focus-visible .c-top{stroke:var(--accent);stroke-width:1.4}
.isomap .cyl.on .c-top{fill:color-mix(in srgb,var(--accent) 12%,var(--iso-top))}
.isomap .cyl.linked:not(.on) .c-top{stroke:var(--accent);stroke-dasharray:3 2}

.isomap .warn-dot{fill:var(--bad);stroke:var(--surface);stroke-width:2}
.isomap .cable-bg{fill:none;stroke:color-mix(in srgb,var(--accent) 25%,transparent);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.isomap .cable{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:4 7;animation:traffic .9s linear infinite}
@keyframes traffic{to{stroke-dashoffset:-11}}
.map-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:8px;font-size:12.5px;color:var(--ink-2)}
.map-legend span{display:inline-flex;align-items:center;gap:6px}
.map-legend small{color:var(--ink-3)}
.lg-dot{width:8px;height:8px;border-radius:50%;background:var(--good)}
.lg-dot.fail{background:var(--bad)} .lg-dot.stop{background:var(--ink-3)}
.map-detail{padding:20px;display:grid;gap:16px;align-content:start;animation:rise .3s var(--ease-out)}
.md-head{display:flex;align-items:center;gap:12px}
.md-head b{display:block;font-size:14.5px}
.md-head small{color:var(--ink-3);font-size:12.5px}
.md-ico{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--sunken);color:var(--ink-2);flex:none}
.md-ico svg{width:18px;height:18px}
.md-live{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.md-live>div{padding:12px;border-radius:14px;background:var(--surface-2);display:grid;gap:6px}
.md-live small{color:var(--ink-3);font-size:11.5px}
.md-live b{font:680 20px/1 var(--display);letter-spacing:-.02em}
.md-live .mt-bar i{background:var(--accent)}
.md-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 14px;margin:0;font-size:13px}
.md-facts dt{color:var(--ink-3)}
.md-facts dd{margin:0;font-weight:500;overflow-wrap:anywhere}
.md-facts a{color:var(--accent);text-decoration:none}
.md-actions{display:flex;flex-wrap:wrap;gap:8px}
@media (prefers-reduced-motion: reduce){.isomap .cable{animation:none;stroke-dasharray:none}.isomap .led{animation:none!important}}

/* =====================================================================
   Menú por categorías plegables, riel de íconos, barra inferior (teléfono),
   avisos con barra de tiempo y atajos.
   ===================================================================== */
.nav-group{display:grid}
.side-label{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;text-align:left;cursor:pointer;border-radius:10px;font:600 10.5px/1 var(--body);letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);padding:18px 12px 7px;transition:color .15s}
.side-label:hover{color:var(--ink-2)}
.sl-t{flex:1}
.sl-chev{display:grid;place-items:center;transition:transform .25s var(--ease-out);opacity:.7}
.sl-chev svg{width:13px;height:13px}
.nav-group.closed .sl-chev{transform:rotate(-90deg)}
.sl-badge{display:none;font:650 10px/1 var(--body);letter-spacing:0;padding:3px 6px;border-radius:8px;background:var(--sunken);color:var(--ink-2)}
.nav-group.closed .sl-badge.on{display:inline-block}
.sl-badge.bad{background:var(--bad);color:#fff}
.ng-items{display:grid;grid-template-rows:1fr;transition:grid-template-rows .3s var(--ease-out)}
.ng-inner{min-height:0;overflow:hidden;display:grid;gap:2px}
.nav-group.closed .ng-items{grid-template-rows:0fr}
.nav-group.closed .ng-inner .nav-item{opacity:0;transition:opacity .15s}
.ng-inner .nav-item{transition:opacity .25s .05s,color .15s}
.side-foot{display:flex;align-items:center;gap:8px}
.rail-btn{margin-left:auto;width:32px;min-height:32px;color:var(--ink-3)}
.rail-btn svg{width:16px;height:16px;transition:transform .25s var(--ease-out)}

/* Riel: el menú se reduce a íconos (solo escritorio) */
@media (min-width:901px){
  .app{transition:grid-template-columns .3s var(--ease-out)}
  body.rail{--side-w:78px}
  body.rail .side{padding-left:12px;padding-right:12px;overflow-x:hidden}
  body.rail .brand>span:last-child,body.rail .nav-item .nl,body.rail .demo-pill,body.rail .sl-t,body.rail .sl-chev,body.rail .sl-badge{display:none}
  body.rail .brand{justify-content:center;padding-left:0;padding-right:0}
  body.rail .side-label{justify-content:center;padding:10px 0 4px;pointer-events:none}
  body.rail .side-label::before{content:"";width:22px;height:1px;background:var(--line-strong)}
  body.rail .nav-group.closed .ng-items{grid-template-rows:1fr}
  body.rail .nav-group.closed .ng-inner .nav-item{opacity:1}
  body.rail .nav-item{justify-content:center;padding:10px 0}
  body.rail .nav-item .nbadge.on{position:absolute;top:3px;right:6px;min-width:16px;height:16px;font-size:9.5px;padding:0 4px}
  body.rail .side-foot{justify-content:center;padding:12px 0}
  body.rail .rail-btn{margin:0}
  body.rail .rail-btn svg{transform:rotate(180deg)}
}

/* Barra inferior en el teléfono */
.tabbar{display:none}
@media (max-width:900px){
  body.signed-in .tabbar{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:45;display:grid;grid-template-columns:repeat(5,1fr);padding:6px;border-radius:22px;background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid var(--line);box-shadow:0 14px 34px -16px rgba(16,32,80,.35)}
  .tabbar a,.tabbar button{position:relative;display:grid;justify-items:center;gap:3px;padding:7px 2px 6px;border:0;background:none;border-radius:16px;color:var(--ink-3);text-decoration:none;font:600 10.5px var(--body);transition:color .15s,background-color .2s,transform .12s var(--ease-out)}
  .tabbar svg{width:21px;height:21px}
  .tabbar a[aria-current="page"]{color:var(--accent);background:var(--accent-wash)}
  .tabbar a:active,.tabbar button:active{transform:scale(.94)}
  .tb-dot{position:absolute;top:6px;right:calc(50% - 16px);width:7px;height:7px;border-radius:50%;background:transparent}
  .tb-dot.on{background:var(--accent)} .tb-dot.bad{background:var(--bad)}
  .content{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
  .toasts{bottom:calc(96px + env(safe-area-inset-bottom))}
}

/* Avisos: barra de tiempo que se detiene al pasar el ratón */
.toast{position:relative;overflow:hidden}
.t-bar{position:absolute;left:0;bottom:0;height:2px;width:100%;background:currentColor;opacity:.35;transform-origin:0 50%;animation:tbar linear both}
.toast.hold .t-bar{animation-play-state:paused}
@keyframes tbar{to{transform:scaleX(0)}}

/* ⌘K y atajos */
.cmdk-item .ck{display:inline-flex;gap:3px}
.shortcuts{display:grid;gap:2px}
.sc-row{display:flex;align-items:center;gap:14px;padding:8px 4px;border-bottom:1px solid var(--line);font-size:13.5px}
.sc-row:last-child{border-bottom:0}
.sc-k{display:inline-flex;gap:4px;min-width:70px}
.btn:active{transform:scale(.96)}
@media (max-width:560px){.page-head{flex-wrap:wrap}.page-head>.grow{flex:1 1 180px}.mt-v{font-size:19px}}
.mt-v{white-space:nowrap}

/* =====================================================================
   Oficina IA
   ===================================================================== */
:root{--of-floor:#F3F6FB;--of-floor-l:#E4E9F3;--of-floor-r:#D7DEEB;--of-room:#EAF0FA;--of-pod:#EEF2F9;--of-grid:rgba(120,140,180,.10);--of-wall:#E9EEF6;--of-wall-l:#DCE3EF;--of-wall-r:#CFD8E7;--of-glass:rgba(160,185,230,.35);--of-wood:#FFFFFF;--of-wood-l:#E6EBF4;--of-wood-r:#D5DDEB;--of-leaf:#8DB89A;--of-leaf2:#6FA07F}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--of-floor:#0F1631;--of-floor-l:#0B1127;--of-floor-r:#090E20;--of-room:#131C3B;--of-pod:#111936;--of-grid:rgba(120,150,220,.07);--of-wall:#18213F;--of-wall-l:#141C37;--of-wall-r:#10172E;--of-glass:rgba(90,120,200,.28);--of-wood:#1E2848;--of-wood-l:#172039;--of-wood-r:#111a31;--of-leaf:#3E7A5A;--of-leaf2:#2F6549}}
:root[data-theme="dark"]{--of-floor:#0F1631;--of-floor-l:#0B1127;--of-floor-r:#090E20;--of-room:#131C3B;--of-pod:#111936;--of-grid:rgba(120,150,220,.07);--of-wall:#18213F;--of-wall-l:#141C37;--of-wall-r:#10172E;--of-glass:rgba(90,120,200,.28);--of-wood:#1E2848;--of-wood-l:#172039;--of-wood-r:#111a31;--of-leaf:#3E7A5A;--of-leaf2:#2F6549}

.office-layout{grid-template-columns:minmax(0,1fr) 300px}
.office-stage{position:relative}
.office-stage[data-view="office"] .org,.office-stage[data-view="org"] .office-host{display:none}
.office-host svg{display:block;width:100%;height:auto;max-height:600px;overflow:visible;user-select:none;-webkit-user-select:none}
.office-svg polygon{stroke-linejoin:round}
.office-svg .o-floor .f-t{fill:var(--of-floor)} .office-svg .o-floor .f-l{fill:var(--of-floor-l)} .office-svg .o-floor .f-r{fill:var(--of-floor-r)}
.office-svg .o-grid polyline{stroke:var(--of-grid);stroke-width:1;fill:none}
.office-svg .o-room{fill:var(--of-room)}
.office-svg .o-room.r-pod{fill:var(--of-pod)}
.office-svg .o-label{font:700 7px var(--body);letter-spacing:.16em;fill:var(--ink-3);opacity:.8}
.office-svg .o-brand{font:700 8px var(--body);letter-spacing:.2em;fill:var(--ink-3);opacity:.6}
.office-svg .o-wall .f-t{fill:var(--of-wall)} .office-svg .o-wall .f-l{fill:var(--of-wall-l)} .office-svg .o-wall .f-r{fill:var(--of-wall-r)}
.office-svg .o-glass polygon{fill:var(--of-glass);stroke:color-mix(in srgb,var(--accent) 22%,transparent);stroke-width:.6}
.office-svg .o-divider polygon{fill:var(--of-wall-l);stroke:var(--line-strong);stroke-width:.5}
.office-svg .o-desk-top .f-t,.office-svg .o-longtable .f-t,.office-svg .o-counter .f-t{fill:var(--of-wood)}
.office-svg .o-desk-top .f-l,.office-svg .o-longtable .f-l,.office-svg .o-counter .f-l{fill:var(--of-wood-l)}
.office-svg .o-desk-top .f-r,.office-svg .o-longtable .f-r,.office-svg .o-counter .f-r{fill:var(--of-wood-r)}
.office-svg .o-desk polygon,.office-svg .o-longtable polygon,.office-svg .o-counter polygon{stroke:var(--line-strong);stroke-width:.5}
.office-svg .o-monitor polygon{fill:#2A3352;stroke:#1D2440;stroke-width:.5;transition:fill .4s}
.office-svg .o-desk.on .o-monitor .f-l{fill:color-mix(in srgb,var(--accent) 70%,#fff)}
.office-svg .o-desk.on .o-monitor{filter:drop-shadow(0 0 5px color-mix(in srgb,var(--accent) 60%,transparent))}
.office-svg .o-coffee polygon{fill:#3A4260;stroke:#2A3150;stroke-width:.5}
.office-svg .o-tt{fill:var(--of-wood);stroke:var(--line-strong);stroke-width:.6}
.office-svg .o-tt-side{fill:var(--of-wood-r)}
.office-svg .o-leg{fill:var(--line-strong)}
.office-svg .o-pot polygon{fill:#D9CFC3;stroke:#C4B8AA;stroke-width:.5}
.office-svg .o-leaf{fill:var(--of-leaf)} .office-svg .o-leaf.l2{fill:var(--of-leaf2)}
.office-svg .o-board-bg{fill:#FFFFFF;stroke:var(--line-strong);stroke-width:1}
:root[data-theme="dark"] .office-svg .o-board-bg{fill:#E8EDFB}
.office-svg .o-board-h{font:700 7.5px var(--body);fill:#1F4FFF;letter-spacing:.04em}
.office-svg .o-board-t{font:500 7px var(--body);fill:#27314F}
/* Agentes */
.office-svg .agent{cursor:pointer;outline:none}
.office-svg .a-shadow{fill:rgba(16,32,80,.16)}
.office-svg .a-sel{fill:none;stroke:var(--accent);stroke-width:1.6;opacity:0;transition:opacity .2s}
.office-svg .agent.sel .a-sel,.office-svg .agent:focus-visible .a-sel{opacity:1}
.office-svg .a-legs{fill:#2B3350}
.office-svg .a-body{stroke:rgba(0,0,0,.12);stroke-width:.6}
.office-svg .a-head{stroke:rgba(0,0,0,.1);stroke-width:.5}
.office-svg .a-tie{fill:#fff;opacity:.85}
.office-svg .agent.flip .a-bob{transform:scaleX(-1)}
.office-svg .agent.walking .a-bob{animation:walkbob .38s ease-in-out infinite}
@keyframes walkbob{50%{transform:translateY(-2px)}}
.office-svg .agent.walking.flip .a-bob{animation-name:walkbob-f}
@keyframes walkbob-f{0%,100%{transform:scaleX(-1)}50%{transform:scaleX(-1) translateY(-2px)}}
.office-svg .agent.working .a-bob{animation:typing .5s ease-in-out infinite}
@keyframes typing{50%{transform:translateY(-.8px)}}
.office-svg .a-ring{opacity:0;transition:opacity .2s}
.office-svg .agent.working .a-ring{opacity:1}
.office-svg .ar-bg{fill:var(--surface);stroke:var(--line-strong);stroke-width:2.2}
.office-svg .ar-v{fill:none;stroke:var(--accent);stroke-width:2.2;stroke-linecap:round}
.office-svg .a-tag{opacity:0;transition:opacity .15s;pointer-events:none}
.office-svg .a-tag rect{fill:var(--ink)} .office-svg .a-tag text{font:600 8px var(--body);fill:var(--surface)}
.office-svg .agent:hover .a-tag,.office-svg .agent.sel .a-tag,.office-svg .agent:focus-visible .a-tag{opacity:1}
.office-svg .bubble-o{animation:bub .22s var(--ease-out);pointer-events:none}
.office-svg .bubble-o rect{fill:var(--surface);stroke:var(--line-strong);stroke-width:.8;filter:drop-shadow(0 4px 8px rgba(16,32,80,.12))}
.office-svg .bubble-o .tail{fill:var(--surface);stroke:none}
.office-svg .bubble-o.lead rect{stroke:var(--accent)}
.office-svg .bubble-o text{font:500 8.5px var(--body);fill:var(--ink)}
.office-svg .bubble-o.out{opacity:0;transition:opacity .18s}
@keyframes bub{from{opacity:0;transform:translateY(4px) scale(.92)}}
/* Inspector, organigrama, encargos y conversación */
.ins-head{display:flex;align-items:center;gap:12px}
.ins-head b{display:block;font:650 16px var(--display)}
.ins-head small{color:var(--ink-3);font-size:12.5px}
.ins-av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff;font:650 13px var(--display);flex:none}
.ins-av.sm{width:28px;height:28px;font-size:10.5px}
.ins-av.xs{width:22px;height:22px;font-size:9px}
.ins-state{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:var(--surface-2);font-weight:550;font-size:13px}
.ins-state i,.org-st{width:8px;height:8px;border-radius:50%;background:var(--ink-3);flex:none}
.st-working i,.org-st.st-working{background:var(--accent);box-shadow:0 0 0 4px var(--accent-wash)}
.st-walking i,.org-st.st-walking,.st-talking i,.org-st.st-talking{background:var(--warn)}
.ins-skills{display:flex;flex-wrap:wrap;gap:6px}
.ins-cur small,.ins-log small{display:block;color:var(--ink-3);font-size:11.5px;margin-bottom:4px}
.ins-cur b{font-size:13.5px}
.ins-log p{margin:0 0 6px;font-size:13px;color:var(--ink-2);line-height:1.45}
.org{padding:8px 0 4px;display:grid;gap:18px}
.org-top{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;position:relative;padding-bottom:18px}
.org-top::after{content:"";position:absolute;left:50%;bottom:0;width:1px;height:14px;background:var(--line-strong)}
.org-teams{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border-top:1px solid var(--line-strong);padding-top:16px}
@media (max-width:900px){.org-teams{grid-template-columns:repeat(2,minmax(0,1fr))}}
.org-team{display:grid;gap:6px;align-content:start}
.org-tl{font:600 10.5px var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);text-align:center;margin-bottom:2px}
.org-node{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-align:left;color:inherit;transition:border-color .15s,transform .15s var(--ease-out)}
.org-node.lead{background:var(--surface-2)}
.org-node.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
@media (hover:hover) and (pointer:fine){.org-node:hover{transform:translateY(-1px)}}
.on-t{flex:1;min-width:0;display:grid}
.on-t b{font-size:12.5px;font-weight:600}
.on-t small{font-size:11px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.missions{display:grid;gap:8px;grid-template-columns:minmax(0,1fr)}
.mission{display:grid;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);text-align:left;color:inherit;transition:border-color .15s,box-shadow .2s}
.mission.live{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));box-shadow:0 0 0 3px var(--accent-wash)}
@media (hover:hover) and (pointer:fine){.mission:hover{border-color:var(--line-strong)}}
.ms-top{display:flex;align-items:center;gap:10px}
.ms-top b{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mission small{color:var(--ink-3);font-size:12px}
.ms-phase{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.ms-phase i{height:4px;border-radius:3px;background:var(--sunken)}
.ms-phase i.done{background:var(--ink)}
.ms-phase i.now{background:var(--accent);animation:led 1.2s ease-in-out infinite}
.feed-o{height:340px;overflow-y:auto;display:grid;align-content:start;gap:2px;grid-template-columns:minmax(0,1fr);scroll-behavior:smooth}
.fd{display:flex;gap:10px;align-items:flex-start;padding:7px 4px;animation:rise .3s var(--ease-out)}
.fd-t{flex:1;min-width:0;font-size:13px;line-height:1.45}
.fd-t b{margin-right:6px;font-weight:600}
.fd-t span{color:var(--ink-2)}
.fd small{color:var(--ink-3);font-size:11px;white-space:nowrap}
.m-steps{display:flex;flex-wrap:wrap;gap:6px 14px}
.m-step{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink-3)}
.m-step i{width:8px;height:8px;border-radius:50%;background:var(--sunken);border:1px solid var(--line-strong)}
.m-step.done{color:var(--ink)} .m-step.done i{background:var(--ink);border-color:var(--ink)}
.m-step.now{color:var(--accent);font-weight:600} .m-step.now i{background:var(--accent);border-color:var(--accent)}
.deliv{border:1px solid var(--line);border-radius:16px;padding:14px;display:grid;gap:10px}
.dv-head{display:flex;align-items:center;gap:10px}
.dv-head b{display:block;font-weight:600}
.dv-head small{color:var(--ink-3);font-size:12px}
.ag-dot{width:10px;height:10px;border-radius:50%;flex:none}
.dv-out{margin:0;padding:12px 14px;border-radius:12px;background:var(--surface-2);white-space:pre-wrap;font:400 13px/1.55 var(--body);color:var(--ink)}
.dv-actions{display:flex;gap:6px;flex-wrap:wrap}
@media (max-width:1100px){.office-layout{grid-template-columns:minmax(0,1fr)}}
@media (prefers-reduced-motion: reduce){.office-svg .agent .a-bob{animation:none!important}}
.mission{grid-template-columns:minmax(0,1fr)}
.cam-ctl{position:absolute;right:4px;bottom:4px;display:flex;gap:6px;padding:5px;border-radius:14px;background:color-mix(in srgb,var(--surface) 90%,transparent);border:1px solid var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.office-stage[data-view="org"] .cam-ctl,.office-stage[data-view="org"] .cam-hint{display:none}
.cam-hint{margin:6px 0 0;font-size:11.5px;color:var(--ink-3)}
.office-svg.zoomed{cursor:grab}
.office-svg.dragging{cursor:grabbing}
.office-host{overflow:hidden;border-radius:16px;position:relative;touch-action:none}
.office-host svg{overflow:hidden}
.office-host:has(svg:not(.zoomed)){touch-action:auto}
@media (max-width:760px){.cam-hint{display:none}.cam-ctl{bottom:0;right:0}}
:root[data-theme="dark"] .office-svg .o-board-bg{fill:#AFBBDA}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .office-svg .o-board-bg{fill:#AFBBDA}}

/* ---------- Oficina IA · estilo "maqueta de arquitectura": volúmenes blancos, contorno fino, un acento ---------- */
:root{--of-top:#FFFFFF;--of-l:#EEF2F9;--of-r:#DCE3EF;--of-line:rgba(38,52,92,.5);--of-isle-top:#FFFFFF;--of-isle-l:#E8EDF6;--of-isle-r:#D6DEEB;--of-corr:#F3F6FB;--of-dark:#34406A;--of-dark-l:#2A3458;--of-screen:#1D2440;--of-screen-on:#86A2FF;--of-leaf:#9CC7A8;--of-leaf2:#78AE8C;--of-pot:#F2EDE7;--of-shadow:rgba(20,34,80,.16)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--of-top:#1D2748;--of-l:#18213E;--of-r:#121A33;--of-line:rgba(170,190,240,.28);--of-isle-top:#19223F;--of-isle-l:#131B35;--of-isle-r:#0E152B;--of-corr:#151D38;--of-dark:#0D1226;--of-dark-l:#0A0F20;--of-screen:#0B1022;--of-screen-on:#6E86FF;--of-leaf:#4F8E68;--of-leaf2:#3D7556;--of-pot:#3A4262;--of-shadow:rgba(0,0,0,.45)}}
:root[data-theme="dark"]{--of-top:#1D2748;--of-l:#18213E;--of-r:#121A33;--of-line:rgba(170,190,240,.28);--of-isle-top:#19223F;--of-isle-l:#131B35;--of-isle-r:#0E152B;--of-corr:#151D38;--of-dark:#0D1226;--of-dark-l:#0A0F20;--of-screen:#0B1022;--of-screen-on:#6E86FF;--of-leaf:#4F8E68;--of-leaf2:#3D7556;--of-pot:#3A4262;--of-shadow:rgba(0,0,0,.45)}

.office-svg polygon,.office-svg ellipse,.office-svg rect.o-leg{stroke:var(--of-line);stroke-width:.7;stroke-linejoin:round}
.office-svg .f-t{fill:var(--of-top)} .office-svg .f-l{fill:var(--of-l)} .office-svg .f-r{fill:var(--of-r)}
.office-svg .o-islands{filter:drop-shadow(0 14px 18px var(--of-shadow))}
.office-svg .o-isle .f-t{fill:var(--of-isle-top)} .office-svg .o-isle .f-l{fill:var(--of-isle-l)} .office-svg .o-isle .f-r{fill:var(--of-isle-r)}
.office-svg .o-isle.corridor .f-t,.office-svg .o-isle.bridge .f-t{fill:var(--of-corr)}
.office-svg .o-edge{font:700 6.4px var(--body);letter-spacing:.2em;fill:var(--ink-3)}
.office-svg .o-rug{stroke:none}
.office-svg .o-rug.r-dir{fill:color-mix(in srgb,var(--accent) 7%,transparent)}
.office-svg .o-rug.r-marketing{fill:rgba(91,124,240,.10)} .office-svg .o-rug.r-ventas{fill:rgba(63,174,149,.11)} .office-svg .o-rug.r-finanzas{fill:rgba(224,160,74,.12)} .office-svg .o-rug.r-ops{fill:rgba(140,111,224,.11)}
.office-svg .o-wall .f-l{fill:var(--of-top)} .office-svg .o-wall .f-r{fill:var(--of-l)} .office-svg .o-wall .f-t{fill:var(--of-r)}
.office-svg .o-window{fill:rgba(120,150,240,.16);stroke:var(--of-line);stroke-width:.7}
.office-svg .o-shelf{fill:var(--of-l);stroke:var(--of-line);stroke-width:.7}
.office-svg .o-logo{font:800 9px var(--display);letter-spacing:.12em;fill:var(--accent)}
.office-svg .o-logo-s{font:600 5.5px var(--body);letter-spacing:.24em;fill:var(--ink-3)}
.office-svg .o-board-bg{fill:#FFFFFF;stroke:var(--of-line)}
.office-svg .o-seat .f-t,.office-svg .o-back .f-l,.office-svg .o-back .f-t{fill:var(--of-dark)} .office-svg .o-seat .f-l,.office-svg .o-seat .f-r,.office-svg .o-back .f-r{fill:var(--of-dark-l)}
.office-svg .o-leg-p .f-l,.office-svg .o-leg-p .f-r,.office-svg .o-stand .f-l,.office-svg .o-stand .f-r,.office-svg .o-leg{fill:var(--of-r)}
.office-svg .o-monitor .f-t,.office-svg .o-monitor .f-r{fill:var(--of-dark)}
.office-svg .o-monitor .f-l{fill:var(--of-screen);transition:fill .5s}
.office-svg .o-desk.on .o-monitor .f-l{fill:var(--of-screen-on)}
.office-svg .o-desk.on .o-monitor{filter:drop-shadow(0 0 6px color-mix(in srgb,var(--accent) 55%,transparent))}
.office-svg .o-kb .f-t{fill:var(--of-l)}
.office-svg .o-tt{fill:var(--of-top)} .office-svg .o-tt-side{fill:var(--of-r)}
.office-svg .o-leaf{fill:var(--of-leaf);stroke:rgba(40,90,60,.3)} .office-svg .o-leaf.l2{fill:var(--of-leaf2)}
.office-svg .o-pot .f-t,.office-svg .o-pot .f-l{fill:var(--of-pot)} .office-svg .o-pot .f-r{fill:color-mix(in srgb,var(--of-pot) 85%,#000)}
.office-svg .o-book .f-l,.office-svg .o-book .f-t{fill:#7D95E8} .office-svg .o-book.b2 .f-l,.office-svg .o-book.b2 .f-t{fill:#E3B26A} .office-svg .o-book.b3 .f-l,.office-svg .o-book.b3 .f-t{fill:#7FC0AA}
.office-svg .o-coffee .f-t,.office-svg .o-coffee .f-l,.office-svg .o-coffee .f-r{fill:var(--of-dark)}
.office-svg .o-sofa-b .f-t,.office-svg .o-sofa-b .f-l{fill:#A9B5D3} .office-svg .o-sofa-b .f-r{fill:#8E9BBE}
.office-svg .o-cup .f-t{fill:var(--of-l)}
/* Personajes */
.office-svg .a-shadow{fill:var(--of-shadow);stroke:none}
.office-svg .a-sel{stroke:var(--accent);stroke-width:1.6}
.office-svg .a-body,.office-svg .a-jacket,.office-svg .a-head,.office-svg .a-hair,.office-svg .a-neck{stroke:rgba(20,28,50,.45);stroke-width:.7;stroke-linejoin:round}
.office-svg .a-tie{fill:var(--accent);stroke:none}
.office-svg .a-eye{fill:#1B2238}
.office-svg .a-mouth{fill:none;stroke:#1B2238;stroke-width:.7;stroke-linecap:round}
.office-svg .a-glasses{fill:none;stroke:#1B2238;stroke-width:.75}
.office-svg .a-headset{fill:none;stroke:#1B2238;stroke-width:1.3;stroke-linecap:round}
.office-svg .a-mic{fill:#1B2238}
.office-svg .leg,.office-svg .arm{transform-box:view-box;transform-origin:0 0;transition:transform .25s var(--ease-out)}
.office-svg .agent.walking .leg-l,.office-svg .agent.walking .arm-b{animation:swing .44s ease-in-out infinite}
.office-svg .agent.walking .leg-r,.office-svg .agent.walking .arm-f{animation:swing .44s ease-in-out infinite reverse}
@keyframes swing{0%,100%{transform:rotate(20deg)}50%{transform:rotate(-20deg)}}
.office-svg .agent.walking .a-bob{animation:step .22s ease-in-out infinite alternate}
.office-svg .agent.walking.flip .a-bob{animation-name:step-f}
@keyframes step{to{transform:translateY(-1.2px)}}
@keyframes step-f{from{transform:scaleX(-1)}to{transform:scaleX(-1) translateY(-1.2px)}}
.office-svg .agent.working .arm{transform:rotate(34deg)}
.office-svg .agent.working .arm-f{animation:type .26s ease-in-out infinite alternate}
.office-svg .agent.working .arm-b{animation:type .26s ease-in-out -.13s infinite alternate}
@keyframes type{from{transform:rotate(30deg)}to{transform:rotate(38deg)}}
.office-svg .agent.working .a-bob{animation:none}
.office-svg .agent.talking .a-head,.office-svg .agent.talking .a-hair{animation:nod 1.2s ease-in-out infinite}
@keyframes nod{50%{transform:translateY(.6px)}}
.office-svg .bubble-o rect{rx:9;stroke:var(--of-line)}
.office-svg .bubble-o text{font:500 8.4px var(--body)}
@media (prefers-reduced-motion: reduce){.office-svg .leg,.office-svg .arm{animation:none!important}}
.office-svg .o-seat .f-t,.office-svg .o-back .f-l,.office-svg .o-back .f-t{fill:#AEB9D6} .office-svg .o-seat .f-l,.office-svg .o-seat .f-r,.office-svg .o-back .f-r{fill:#95A2C4}
:root[data-theme="dark"] .office-svg .o-seat .f-t,:root[data-theme="dark"] .office-svg .o-back .f-l,:root[data-theme="dark"] .office-svg .o-back .f-t{fill:#3A4670}
:root[data-theme="dark"] .office-svg .o-seat .f-l,:root[data-theme="dark"] .office-svg .o-seat .f-r,:root[data-theme="dark"] .office-svg .o-back .f-r{fill:#2E385C}
.office-svg .agent.sel:not(:hover):not(:focus-visible) .a-tag{opacity:0}
/* Planta ordenada: pisos por sala, rótulos y tabiques de vidrio */
.office-svg .o-slab .f-t{fill:var(--of-corr)}
.office-svg .fl-room,.office-svg .fl-team{fill:var(--of-isle-top);stroke:none}
.office-svg .fl-corridor{fill:var(--of-corr);stroke:none}
.office-svg .fl-juntas{fill:color-mix(in srgb,var(--accent) 5%,var(--of-isle-top))}
.office-svg .fl-marketing{fill:color-mix(in srgb,#5B7CF0 6%,var(--of-isle-top))} .office-svg .fl-ventas{fill:color-mix(in srgb,#3FAE95 7%,var(--of-isle-top))}
.office-svg .fl-finanzas{fill:color-mix(in srgb,#E0A04A 8%,var(--of-isle-top))} .office-svg .fl-ops{fill:color-mix(in srgb,#8C6FE0 7%,var(--of-isle-top))}
.office-svg .o-label{font:700 6.6px var(--body);letter-spacing:.18em;fill:var(--ink-3)}
.office-svg .o-doorlabel{font:700 5.6px var(--body);letter-spacing:.16em;fill:var(--accent);opacity:.8}
.office-svg .o-pane .f-l,.office-svg .o-pane .f-r{fill:rgba(140,165,235,.18)}
.office-svg .o-pane .f-t{fill:var(--of-line)}
.office-svg .o-pane polygon{stroke:rgba(80,105,170,.35);stroke-width:.6}
.office-svg .o-screen{fill:#1D2440;stroke:var(--of-line)}
.office-svg .o-label{font-size:8.4px;letter-spacing:.16em;fill:var(--ink-2);opacity:.75}
.office-svg .o-doorlabel{font-size:6.6px}

/* ---------- Agentes v3 (chibi) y vida en reposo ---------- */
.office-svg .o-board-h{font:700 7px var(--body);fill:#9FB4FF;letter-spacing:.06em}
.office-svg .o-board-t{font:500 6.4px var(--body);fill:#DCE4FF}
.office-svg .agent *{vector-effect:non-scaling-stroke}
.office-svg .a-shoe{fill:#1E253D;stroke:none}
.office-svg .a-hand{stroke:rgba(20,28,50,.35);stroke-width:.6}
.office-svg .a-body,.office-svg .a-jacket{stroke:rgba(20,28,50,.4);stroke-width:.7;stroke-linejoin:round}
.office-svg .a-collar{fill:none;stroke:rgba(255,255,255,.75);stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.office-svg .a-shade{fill:rgba(10,20,50,.13);stroke:none}
.office-svg .a-neck{stroke:none}
.office-svg .a-head,.office-svg .a-ear{stroke:rgba(20,28,50,.38);stroke-width:.7}
.office-svg .a-hair{stroke:rgba(10,14,30,.45);stroke-width:.7;stroke-linejoin:round}
.office-svg .a-shine{fill:none;stroke:rgba(255,255,255,.35);stroke-width:1.4;stroke-linecap:round}
.office-svg .a-eye-w{fill:#fff;stroke:rgba(20,28,50,.35);stroke-width:.5}
.office-svg .a-pupil{fill:#1B2238}
.office-svg .a-glint{fill:#fff}
.office-svg .a-brow{fill:none;stroke:rgba(27,34,56,.75);stroke-width:.9;stroke-linecap:round}
.office-svg .a-blush{fill:#F29C9C;opacity:.45}
.office-svg .a-mouth{fill:none;stroke:#1B2238;stroke-width:.9;stroke-linecap:round}
.office-svg .a-glasses{fill:rgba(255,255,255,.12);stroke:#1B2238;stroke-width:.9}
.office-svg .a-headset{fill:none;stroke:#1B2238;stroke-width:1.4;stroke-linecap:round}
.office-svg .a-cup,.office-svg .a-mic{fill:#1B2238}
/* Respira, parpadea y mira alrededor (cada uno con su propio ritmo: --d) */
.office-svg .a-upper{transform-box:view-box;transform-origin:0 0;animation:breathe 3.4s ease-in-out infinite;animation-delay:var(--d)}
@keyframes breathe{50%{transform:scaleY(1.018)}}
.office-svg .a-eyes{transform-box:fill-box;transform-origin:center;animation:blink 5.2s infinite;animation-delay:var(--d)}
@keyframes blink{0%,95%,100%{transform:scaleY(1)}97%{transform:scaleY(.08)}}
.office-svg .a-headg{transform-box:view-box;transform-origin:0 0;animation:look 11s ease-in-out infinite;animation-delay:var(--d)}
@keyframes look{0%,30%,100%{transform:rotate(0)}38%,52%{transform:rotate(-6deg)}62%,74%{transform:rotate(5deg)}}
.office-svg .agent.walking .a-headg{animation:none}
.office-svg .agent.talking .arm-f{animation:gesture 1.3s ease-in-out infinite}
@keyframes gesture{0%,100%{transform:rotate(0)}35%{transform:rotate(-70deg)}55%{transform:rotate(-55deg)}}
.office-svg .agent.talking .a-headg{animation:nod2 .9s ease-in-out infinite}
@keyframes nod2{50%{transform:rotate(3deg)}}
.office-svg .agent.working .a-headg{animation:focus 1.6s ease-in-out infinite}
@keyframes focus{50%{transform:rotate(2deg) translateY(.4px)}}
/* Pensando (IA trabajando) y emotes */
.office-svg .a-think{opacity:0;transition:opacity .2s}
.office-svg .agent.thinking .a-think{opacity:1}
.office-svg .agent.thinking .a-ring{opacity:0}
.office-svg .a-think rect{fill:var(--surface);stroke:var(--of-line)}
.office-svg .a-think .td{fill:var(--accent);animation:dots 1s ease-in-out infinite}
.office-svg .a-think .td:nth-of-type(2){animation-delay:.15s} .office-svg .a-think .td:nth-of-type(3){animation-delay:.3s}
@keyframes dots{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-1.5px)}}
.office-svg .emote{animation:emote .35s cubic-bezier(.34,1.56,.64,1);pointer-events:none}
.office-svg .emote circle{fill:var(--surface);stroke:var(--of-line);stroke-width:.8;filter:drop-shadow(0 3px 6px rgba(16,32,80,.18))}
.office-svg .emote text{font-size:10px}
.office-svg .emote.out{opacity:0;transform-origin:center;transition:opacity .25s}
@keyframes emote{from{opacity:0;transform:translateY(6px) scale(.5)}}
@media (prefers-reduced-motion: reduce){.office-svg .a-upper,.office-svg .a-eyes,.office-svg .a-headg,.office-svg .a-think .td{animation:none!important}}
.office-svg .bubble-o{animation:none}
.office-svg .bubble-in{animation:bub .24s cubic-bezier(.34,1.56,.64,1)}
.office-svg .bubble-in rect{fill:var(--surface);stroke:var(--of-line);stroke-width:.8;filter:drop-shadow(0 4px 8px rgba(16,32,80,.12))}
.office-svg .bubble-in .tail{fill:var(--surface)}
.office-svg .bubble-in.lead rect{stroke:var(--accent)}
.office-svg .bubble-in text{font:500 8.4px var(--body);fill:var(--ink)}
.office-svg .emote{animation:none}
.office-svg .emote-in{animation:emote .35s cubic-bezier(.34,1.56,.64,1)}
.office-svg .emote-in circle{fill:var(--surface);stroke:var(--of-line);stroke-width:.8;filter:drop-shadow(0 3px 6px rgba(16,32,80,.18))}
.office-svg .emote-in text{font-size:10px}

/* =====================================================================
   Maestro OS · la Oficina IA como sistema operativo de agentes
   ===================================================================== */
.content.mod-oficina{max-width:none}
.aos{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px;height:calc(100dvh - var(--top-h) - 26px);min-height:720px;padding:10px;border-radius:26px;
  background:radial-gradient(1200px 600px at 12% -10%,color-mix(in srgb,var(--accent) 14%,transparent),transparent 60%),radial-gradient(900px 500px at 110% 110%,color-mix(in srgb,#7A4FE0 10%,transparent),transparent 60%),var(--sunken);border:1px solid var(--line);overflow:hidden}
.aos-bar{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 10px;border-radius:16px;background:color-mix(in srgb,var(--surface) 78%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid var(--line);font-size:12.5px;min-width:0}
.aos-logo{display:flex;align-items:center;gap:8px;margin-right:6px}
.aos-logo b{font:700 13.5px var(--display);letter-spacing:-.01em}
.aos-mark{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:var(--hero);color:#fff}
.aos-mark svg{width:14px;height:14px}
.aos-w{padding:5px 10px;border-radius:10px;background:var(--surface-2);color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.aos-w.run{max-width:360px}
.aos-w.run.live{color:var(--accent);background:var(--accent-wash);font-weight:600}
.aos-w.run.live::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-right:7px;animation:led 1.2s ease-in-out infinite}
.aos-w.mode{font-weight:600}
.aos-w.mode.ia{color:var(--good)}
.aos-clock{font:650 13px var(--mono);padding:0 6px}
.aos-seg button{padding:4px 9px;font-size:12px}
.seg-sm button{padding:4px 10px;font-size:12px}
.aos-cmd{position:relative;display:flex;align-items:center;gap:10px;padding:6px 6px 6px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:0 10px 30px -18px rgba(16,32,80,.35)}
.aos-cmd:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-wash)}
.aos-cmd input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:14px;padding:6px 0}
.cmd-ico{color:var(--accent);display:grid}
.cmd-ico svg{width:18px;height:18px}
.cmd-sug{position:absolute;left:10px;top:calc(100% + 6px);z-index:400;width:min(340px,90%);padding:6px;border-radius:14px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);display:grid;gap:2px}
.cs-opt{display:flex;align-items:center;gap:8px;padding:7px 8px;border:0;border-radius:10px;background:none;text-align:left;color:inherit}
.cs-opt b{font-size:13px} .cs-opt small{color:var(--ink-3);font-size:12px}
.cs-opt.on,.cs-opt:hover{background:var(--accent-wash)}
.aos-desk{position:relative;min-height:0}
/* Ventanas */
.win{position:absolute;display:flex;flex-direction:column;min-width:0;border-radius:16px;background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid var(--line);box-shadow:0 18px 44px -24px rgba(16,32,80,.45),0 2px 6px rgba(16,32,80,.05);overflow:hidden;
  transition:opacity .22s ease,transform .26s var(--ease-out),left .3s var(--ease-out),top .3s var(--ease-out),width .3s var(--ease-out),height .3s var(--ease-out),box-shadow .2s;animation:winIn .5s var(--ease-out) both;animation-delay:calc(var(--i,0) * 60ms)}
@keyframes winIn{from{opacity:0;transform:translateY(14px) scale(.97)}}
.win.focused{box-shadow:0 26px 60px -26px rgba(16,32,80,.6),0 0 0 1px color-mix(in srgb,var(--accent) 25%,transparent)}
.win.dragging{transition:none;user-select:none;-webkit-user-select:none}
.win.closed{opacity:0;transform:translateY(24px) scale(.92);pointer-events:none;visibility:hidden;transition:opacity .2s ease,transform .22s ease,visibility 0s .22s}
.win.max{left:0!important;top:0!important;width:100%!important;height:100%!important}
.win-bar{display:flex;align-items:center;gap:8px;padding:7px 10px;border-bottom:1px solid var(--line);cursor:grab;flex:none;min-height:40px}
.win.dragging .win-bar{cursor:grabbing}
.win-dots{display:flex;gap:6px;margin-right:4px}
.wd{width:12px;height:12px;border-radius:50%;border:0;padding:0;cursor:pointer;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.18)}
.wd.close{background:#FF5F57} .wd.min{background:#FEBC2E} .wd.max{background:#28C840}
.win:not(.focused) .wd{background:var(--line-strong)}
.win-ico{display:grid;color:var(--ink-3)} .win-ico svg{width:15px;height:15px}
.win-title{font:650 13px var(--display)}
.win-body{flex:1;min-height:0;overflow:auto;padding:12px}
.win[data-win="oficina"] .win-body{padding:6px;overflow:hidden;display:flex}
.win[data-win="oficina"] .office-stage{flex:1;min-height:0;display:flex;flex-direction:column}
.win[data-win="oficina"] .office-host{flex:1;min-height:0;display:flex;align-items:center}
.win[data-win="oficina"] .office-host svg{max-height:100%;height:100%}
.win[data-win="oficina"] .org{overflow:auto}
.win-rs{position:absolute;right:0;bottom:0;width:16px;height:16px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 55%,var(--line-strong) 55%,var(--line-strong) 62%,transparent 62%,transparent 72%,var(--line-strong) 72%,var(--line-strong) 79%,transparent 79%)}
.win.max .win-rs{display:none}
/* Dock */
.aos-dock{justify-self:center;display:flex;gap:4px;padding:6px;border-radius:20px;background:color-mix(in srgb,var(--surface) 78%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid var(--line);box-shadow:0 16px 36px -20px rgba(16,32,80,.45);max-width:100%;overflow-x:auto}
.dk{position:relative;display:grid;justify-items:center;gap:2px;min-width:64px;padding:7px 8px 5px;border:0;border-radius:14px;background:none;color:var(--ink-2);transition:transform .18s var(--ease-out),background-color .15s}
.dk-ico{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--ink-2);transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
.dk-ico svg{width:17px;height:17px}
.dk-l{font:600 10.5px var(--body)}
.dk.on::after{content:"";position:absolute;bottom:0;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--accent)}
.dk.on .dk-ico{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 30%,var(--line))}
@media (hover:hover) and (pointer:fine){.dk:hover .dk-ico{transform:translateY(-4px) scale(1.08)}}
.dk:active .dk-ico{transform:scale(.92)}
.dk-b{position:absolute;top:2px;right:10px;min-width:16px;height:16px;border-radius:8px;background:var(--bad);color:#fff;font:700 10px/16px var(--body);text-align:center;padding:0 4px}
/* Contenido de las ventanas */
.ins{display:grid;gap:12px;align-content:start}
.ins-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ins-kpis span{padding:8px 10px;border-radius:12px;background:var(--surface-2);display:grid}
.ins-kpis b{font:680 16px var(--display)} .ins-kpis small{color:var(--ink-3);font-size:11px}
.procs{display:grid;gap:2px;grid-template-columns:minmax(0,1fr)}
.proc-head,.proc{display:grid;grid-template-columns:minmax(0,1.3fr) 86px minmax(0,1.6fr) 70px;gap:10px;align-items:center}
.proc-head{font:600 10.5px var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);padding:2px 8px 6px}
.proc-head .r{text-align:right}
.proc{padding:6px 8px;border:0;border-radius:10px;background:none;text-align:left;color:inherit;font-size:12.5px}
.proc.on{background:var(--accent-wash)}
@media (hover:hover) and (pointer:fine){.proc:not(.on):hover{background:var(--surface-2)}}
.pr-a{display:flex;align-items:center;gap:7px;min-width:0}
.pr-a b{font-weight:600} .pr-a small{color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pr-s{font:600 11px var(--body);padding:3px 8px;border-radius:999px;background:var(--sunken);color:var(--ink-3);justify-self:start}
.pr-s.st-working{background:var(--accent-wash);color:var(--accent)} .pr-s.st-walking,.pr-s.st-talking{background:var(--warn-wash);color:var(--warn)}
.pr-t{color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pr-p{height:5px;border-radius:3px;background:var(--sunken);overflow:hidden}
.pr-p i{display:block;height:100%;background:var(--accent);border-radius:3px;transition:width .5s linear}
.console{height:100%;width:100%;box-sizing:border-box;background:#0B1022;color:#C9D3F0;border-radius:10px;padding:10px 12px;font:500 12px/1.6 var(--mono);display:block}
.win[data-win="consola"] .win-body{padding:0;display:flex}
.console .fd{display:flex;gap:10px;padding:1px 0;animation:none}
.console .fd-time{color:#56628A;flex:none}
.console .fd-t{font:inherit;color:#C9D3F0}
.console .fd-t b{font-weight:700;margin-right:0}
.console .fd-arrow{color:#56628A;margin:0 6px}
.con-sel{border:1px solid var(--line);background:var(--surface-2);border-radius:9px;font-size:12px;padding:4px 6px}
.files{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:12px;height:100%}
.fs-tree{display:grid;gap:2px;align-content:start;overflow:auto;padding-right:4px}
.fs-folder{display:flex;align-items:center;gap:8px;padding:8px 6px 4px;font-size:12.5px}
.fs-folder span{display:grid;color:var(--accent)} .fs-folder svg{width:16px;height:16px}
.fs-folder b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fs-folder small{color:var(--ink-3);font-size:11px}
.fs-file{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 24px;border:0;border-radius:9px;background:none;text-align:left;color:var(--ink-2);font-size:12.5px}
.fs-file span:first-child{display:grid;color:var(--ink-3)} .fs-file svg{width:15px;height:15px}
.fs-file small{color:var(--ink-3);font-size:11px}
.fs-file.on{background:var(--accent-wash);color:var(--ink)}
.fs-prev{display:grid;gap:10px;align-content:start;overflow:auto}
.fp-head{display:flex;align-items:center;gap:10px}
.fp-head b{display:block;font-weight:600} .fp-head small{color:var(--ink-3);font-size:12px}
.sched-list{display:grid;gap:8px;align-content:start}
.sched{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px}
.sched b{display:block;font-weight:600;font-size:13px} .sched small{color:var(--ink-3);font-size:12px}
.sc-ico{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--sunken);color:var(--ink-2);flex:none} .sc-ico svg{width:16px;height:16px}
.sched-add{display:flex;gap:8px;flex-wrap:wrap;padding-top:4px}
.sched-add input,.sched-add select{border:1px solid var(--line);border-radius:10px;padding:7px 10px;background:var(--surface);min-width:0}
.sched-add input:first-child{flex:1 1 200px}
/* Teléfono: las ventanas se apilan y el dock va arriba */
@media (max-width:900px){
  .aos{height:auto;min-height:0;grid-template-rows:auto;padding:8px;border-radius:20px}
  .aos-dock{order:2;justify-self:stretch;justify-content:flex-start}
  .aos-desk{order:3;display:grid;gap:10px}
  .aos-cmd{order:1}
  .win{position:relative;left:auto!important;top:auto!important;width:auto!important;height:auto!important;animation:none}
  .win.closed{display:none}
  .win[data-win="oficina"]{height:62vh!important}
  .win:not([data-win="oficina"]) .win-body{max-height:56vh}
  .win-rs{display:none}
  .aos-w.run{max-width:180px}
  .proc-head,.proc{grid-template-columns:minmax(0,1fr) 78px 60px}
  .proc-head span:nth-child(3),.pr-t{display:none}
  .files{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){.aos-bar{flex-wrap:wrap}}
.aos-bar>*{flex:none}
.aos-logo b{white-space:nowrap}
.aos-seg{flex-wrap:nowrap}
.aos-bar .aos-w[data-s="work"],.aos-bar .aos-w.run{flex:0 1 auto}
@media (max-width:1500px){.aos-bar .aos-w[data-s="tok"]{display:none}}

/* ---------- Fábrica de software: equipos, laboratorio y vista previa ---------- */
.office-svg .fl-web{fill:color-mix(in srgb,#5B7CF0 7%,var(--of-isle-top))} .office-svg .fl-system{fill:color-mix(in srgb,#3FAE95 8%,var(--of-isle-top))}
.office-svg .fl-n8n{fill:color-mix(in srgb,#E07A4A 8%,var(--of-isle-top))} .office-svg .fl-lab{fill:color-mix(in srgb,#8C6FE0 8%,var(--of-isle-top))}
.office-svg .o-phone .f-l{fill:#2A3352} .office-svg .o-phone .f-t,.office-svg .o-phone .f-r{fill:#3A4466}
.office-svg .o-led .f-t{fill:#3DDC84}
.ins-skill{padding:10px 12px;border-radius:12px;background:var(--accent-wash);display:grid;gap:3px}
.ins-skill small{color:var(--accent);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.ins-skill b{font-size:13.5px}
.ins-skill p{margin:0;font-size:12px;color:var(--ink-2);line-height:1.45;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.dv-out{max-height:280px;overflow:auto}
.pv{display:flex;flex-direction:column;gap:10px;height:100%;min-height:0}
.pv-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pv-bar .con-sel{max-width:260px}
.pv-stage{flex:1;min-height:0;display:flex;flex-direction:column}
.pv-device{flex:1;min-height:360px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#fff;box-shadow:0 10px 30px -18px rgba(16,32,80,.4)}
.pv-frame{width:100%;height:100%;min-height:360px;border:0;display:block;background:#fff}
.pv-code{flex:1;min-height:300px;margin:0;overflow:auto;padding:14px;border-radius:12px;background:#0B1022;color:#C9D3F0;font:500 12px/1.55 var(--mono);white-space:pre}
.pv-tests{display:grid;gap:4px;align-content:start;overflow:auto}
.pt-row{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:10px;background:var(--surface-2);font-size:13px}
.pt-row small{color:var(--ink-3);font-size:12px}
.pt-ic{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;font-weight:700;flex:none}
.pt-row.ok .pt-ic{background:var(--good-wash);color:var(--good)} .pt-row.no .pt-ic{background:var(--bad-wash);color:var(--bad)}
.pv-n8n{flex:1;min-height:0;display:grid;gap:8px;align-content:start;overflow:auto}
.n8n-svg{width:100%;height:auto;min-height:220px;background:radial-gradient(circle,var(--line) 1px,transparent 1px) 0 0/18px 18px;border-radius:12px;border:1px solid var(--line)}
.n8n-node rect{fill:var(--surface);stroke:var(--line-strong);stroke-width:1.2}
.n8n-node.trig rect{stroke:#E07A4A;stroke-width:1.8}
.n8n-node .nn{font:600 12px var(--body);fill:var(--ink)} .n8n-node .nt{font:500 10.5px var(--mono);fill:var(--ink-3)}
.n8n-edge{fill:none;stroke:var(--accent);stroke-width:1.8} .n8n-edge.alt{stroke:var(--bad);stroke-dasharray:5 4}
.ms-phase{grid-template-columns:repeat(6,1fr)}
.pv-brand{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:12px}
.pv-brand i{width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.m-brand{display:grid;gap:4px;padding:12px 14px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
.m-brand small{color:var(--ink-3);font-size:11.5px}
.mb-sw{display:flex;flex-wrap:wrap;gap:10px;font:500 12px var(--mono)}
.mb-sw span{display:inline-flex;align-items:center;gap:6px}
.mb-sw i{width:16px;height:16px;border-radius:5px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.m-brand{gap:10px}
.mb-top{display:flex;align-items:center;gap:14px}
.mb-top b{display:block;font:650 16px var(--display)} .mb-top a{font-size:12.5px;color:var(--accent);text-decoration:none}
.mb-logo{height:46px;max-width:160px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px}
.mb-logo-dark{height:46px;display:grid;place-items:center;border-radius:10px;padding:6px 10px} .mb-logo-dark img{height:32px;max-width:140px;object-fit:contain}
.mb-row{margin:0;font-size:13px;color:var(--ink-2);line-height:1.5} .mb-row small{display:block;color:var(--ink-3);font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.mb-photos{display:grid;grid-template-columns:repeat(4,1fr);gap:8px} .mb-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;background:var(--sunken)}
.pv-ref{overflow:auto;max-width:760px}
.pv-made{font:600 11.5px var(--body);padding:4px 10px;border-radius:999px;background:#FBEDE7;color:#B4532F}
.pv-made.tpl{background:var(--sunken);color:var(--ink-3)}
button.aos-w{border:0;cursor:pointer;font:inherit}
.aos-w.mode.ia{color:#B4532F;background:#FBEDE7}
.eng-opt{display:grid;gap:3px;text-align:left;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:inherit;width:100%}
.eng-opt b{font-size:14px} .eng-opt small{color:var(--ink-3);font-size:12.5px}
.eng-opt.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.eng-opt[disabled]{opacity:.5}

.console:empty::before{content:'La consola muestra aquí lo que hace cada agente en el servidor.';color:#56628A}
.m-line{font-weight:600;margin:6px 0 10px}.m-line.bad{color:var(--bad,#D93A3A)}

/* Teléfono: el menú de abajo es el único menú (sin hamburguesa ni menú lateral) */
@media (max-width:900px){
  .menu-btn,.side{display:none!important}
  .tabbar .tb-more.now{color:var(--accent);background:var(--accent-wash)}
  .tabbar a span,.tabbar button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px}
}
.mas-sheet .sheet-body{gap:14px}
.mas-g{display:grid;gap:8px}
.mas-gt{font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3)}
.mas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mas-tile{position:relative;display:grid;justify-items:center;gap:6px;padding:14px 6px 12px;border-radius:16px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:600 12.5px/1.2 var(--body);text-align:center;cursor:pointer;transition:transform .12s var(--ease-out),border-color .15s,background-color .15s}
.mas-tile:active{transform:scale(.96)}
.mas-tile.now{border-color:var(--accent);background:var(--accent-wash);color:var(--accent)}
.mas-tile.sel{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 30%,transparent)}
.mas-ico{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--sunken);color:var(--accent)}
.mas-ico svg{width:22px;height:22px}
.mas-l{overflow-wrap:anywhere}
.mas-badge{position:absolute;top:6px;right:6px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;font:700 11px/20px var(--body);font-style:normal}
.mas-badge.warn{background:var(--warn)} .mas-badge.bad{background:var(--bad)}
.mas-check{position:absolute;top:6px;left:6px;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--line-strong);display:grid;place-items:center;color:#fff}
.mas-tile.sel .mas-check{background:var(--accent);border-color:var(--accent)}
.mas-check svg{width:13px;height:13px}
.mas-help{margin:0;font-size:13px;color:var(--ink-2)}
.mas-foot{display:flex;gap:8px;justify-content:center;padding-top:4px}

/* ---------- Teléfono: encabezados en una fila (título + botones) y la descripción debajo, a todo lo ancho ---------- */
@media (max-width:560px){
  .page-head{flex-wrap:wrap;align-items:center;row-gap:2px;column-gap:8px}
  .page-head>.grow{display:contents}
  .page-head>.grow>h1{flex:1 1 0;min-width:0;overflow-wrap:anywhere}
  .page-head>.grow>*:not(h1){order:10;flex-basis:100%}
  .page-head>.btn,.page-head>a.btn,.page-head>button{flex:none}
  .page-head>.btn:not(.btn-primary){padding-inline:10px}
  .mt-top{flex-wrap:wrap;row-gap:2px}
  .mt-v{white-space:nowrap}
}
.mas-l{overflow-wrap:normal;word-break:normal;hyphens:auto;-webkit-hyphens:auto}

/* ===== Mapas de código (modules/mapas.js) ===== */
.mc-body{display:grid;gap:16px}
.mc-resumen{margin:0;color:var(--ink-3);font-size:13px}
.mc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:16px}
.mc-card{padding:18px 20px;display:grid;gap:14px;align-content:start}
.mc-top{display:flex;gap:12px;align-items:flex-start}
.mc-top h2{margin:0;font-size:17px}
.mc-desc{margin:3px 0 0;color:var(--ink-2);font-size:13px}
.mc-user{font:500 11.5px/1 var(--mono);padding:6px 8px;border-radius:8px;background:var(--accent-wash);color:var(--accent);white-space:nowrap}
.mc-ruta{font:12px/1.3 var(--mono);color:var(--ink-3);overflow-wrap:anywhere}
.mc-datos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.mc-dato{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:grid;gap:2px}
.mc-dato b{font:600 18px/1.1 var(--display);font-variant-numeric:tabular-nums}
.mc-dato span{font-size:11.5px;color:var(--ink-3)}
.mc-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mc-cols h3{margin:0 0 6px;font-size:12px;font-weight:600;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em}
.mc-lista{list-style:none;margin:0;padding:0;display:grid;gap:5px;font-size:13px}
.mc-lista li{display:flex;gap:8px;align-items:baseline;min-width:0}
.mc-lista li span,.mc-lista code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mc-lista em{font-style:normal;color:var(--ink-3);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.mc-cent li{justify-content:space-between}
.mc-cent code{font:12.5px var(--mono)}
.mc-pie{display:flex;gap:10px;align-items:center;font-size:12.5px;color:var(--ink-3);border-top:1px solid var(--line);padding-top:12px}
.mc-barra{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.mc-barra .grow{display:grid;gap:2px;min-width:0}
.mc-barra .grow span{font:12px var(--mono);color:var(--ink-3);overflow-wrap:anywhere}
.mc-tabs{display:flex;gap:6px}
.mc-tabs .btn[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.mc-reporte{margin:0;padding:20px 22px;overflow:auto;background:var(--surface);color:var(--ink);font:13px/1.55 var(--mono);white-space:pre-wrap}
.mc-vacio{padding:24px}
@media (max-width:640px){.mc-datos{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-cols{grid-template-columns:1fr}}
.mc-zoom{display:flex;gap:6px}
.mc-vista{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;height:calc(100dvh - 200px);min-height:460px}
.mc-lienzo-wrap{position:relative;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden;min-height:0}
.mc-lienzo{position:absolute;inset:0;display:grid}
.mc-lienzo>.aj-loading,.mc-lienzo>.aj-error{place-self:center}
.mc-progreso{position:absolute;left:14px;top:12px;z-index:2;font-size:12.5px;color:var(--ink-2);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:6px 10px}
.mc-lado{padding:14px;display:grid;grid-auto-rows:max-content;gap:12px;overflow:auto;min-height:0}
.mc-buscar{display:flex;align-items:center;gap:8px}
.mc-buscar input{width:100%}
.mc-res,.mc-vec,.mc-grupos{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.mc-res:empty{display:none}
.mc-res button,.mc-vec button{width:100%;display:flex;align-items:center;gap:8px;padding:6px 8px;border:0;border-radius:8px;background:none;text-align:left;font:inherit;font-size:13px;color:var(--ink);cursor:pointer;min-height:32px}
.mc-res button:hover,.mc-vec button:hover{background:var(--surface-2)}
.mc-res em{font-style:normal;color:var(--ink-3);font-size:11.5px;white-space:nowrap}
.mc-res .grow,.mc-vec .grow,.mc-grupos .grow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mc-punto{width:10px;height:10px;border-radius:50%;flex:none}
.mc-info{display:grid;gap:8px;padding:12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.mc-sel{display:flex;gap:10px;align-items:flex-start}
.mc-sel .mc-punto{margin-top:5px}
.mc-sel b{display:block;font-size:14px;overflow-wrap:anywhere}
.mc-sel code{font:11.5px var(--mono);color:var(--ink-3);overflow-wrap:anywhere}
.mc-tenue{margin:0;font-size:12.5px;color:var(--ink-3)}
.mc-vec{max-height:220px;overflow:auto}
.mc-grupos-cab{display:flex;align-items:center;gap:4px}
.mc-grupos-cab h3{margin:0;font-size:12px;font-weight:600;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em}
.mc-grupos label{display:flex;align-items:center;gap:8px;font-size:13px;padding:4px 2px;cursor:pointer;min-height:30px}
.mc-grupos em{font-style:normal;color:var(--ink-3);font-size:12px;font-variant-numeric:tabular-nums}
.mc-reporte{max-height:calc(100dvh - 200px)}
@media (max-width:900px){.mc-vista{grid-template-columns:1fr;height:auto}.mc-lienzo-wrap{height:62dvh}.mc-lado{max-height:none}}
@media (max-width:640px){.mc-barra .grow{order:-1;flex-basis:100%}.mc-barra{gap:8px}}

/* ---------- Auditorías ---------- */
.au-card{overflow:hidden}
.au-tabs{display:flex;gap:20px;padding:0 18px;border-bottom:1px solid var(--line, rgba(0,0,0,.08));overflow-x:auto;scrollbar-width:none}
.au-tabs button{position:relative;height:44px;background:none;border:0;font:inherit;font-size:14px;color:var(--muted, #6b6c72);cursor:pointer;white-space:nowrap}
.au-tabs button span{margin-left:6px;font-size:12px;opacity:.75}
.au-tabs button.on{color:var(--text, #111214);font-weight:600}
.au-tabs button.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:currentColor;border-radius:2px}
.au-row{display:flex;width:100%;gap:14px;align-items:center;justify-content:space-between;padding:14px 18px;border:0;border-bottom:1px solid var(--line, rgba(0,0,0,.08));background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
.au-row:last-child{border-bottom:0}
@media (hover:hover){.au-row:hover{background:var(--hover, rgba(0,0,0,.03))}}
.au-row-main{display:grid;gap:3px;min-width:0}
.au-row-main b{font-weight:600}
.au-row-main small,.au-row-side small{color:var(--muted, #6b6c72);font-size:12.5px}
.au-row-side{display:grid;justify-items:end;gap:4px;flex:none}
.au-cab{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:6px}
.au-meta{font-size:13px;color:var(--muted, #6b6c72)}
.au-sec{margin-top:22px}
.au-sec h4{font-size:15px;font-weight:620;margin:0 0 6px;padding-bottom:8px;border-bottom:1px solid var(--line, rgba(0,0,0,.08))}
.au-sec dl{margin:0}
.au-qa{padding:10px 0;border-bottom:1px solid var(--line, rgba(0,0,0,.06))}
.au-qa dt{font-size:12.5px;color:var(--muted, #6b6c72)}
.au-qa dd{margin:4px 0 0;font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.au-riesgo{background:rgba(180,35,24,.06);border-radius:8px;padding:10px 12px;border-bottom:0;margin:6px 0}
.au-riesgo dt,.au-riesgo dd{color:#B42318}
.au-sec textarea{width:100%;margin-top:8px;padding:10px 12px;border-radius:10px;border:1px solid var(--line, rgba(0,0,0,.14));background:var(--surface, #fff);color:inherit;font:inherit;font-size:14px}
