/* ARGOS · sistema de diseño del prototipo
   Sobrio: neutros fríos, un azul tinta como acento y el granate reservado a lo crítico. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f9fafb; --hover: #f1f3f6;
  --border: #e4e7ec; --border-strong: #cfd4dc;
  --text: #141a24; --text-2: #4a5464; --text-3: #7b8594;
  --accent: #1f3a5f; --accent-2: #2b4f80; --accent-soft: #e9eef5; --on-accent: #ffffff;
  --crit: #8a1538; --crit-soft: #f8e9ee;
  --vp: #b42318; --vp-soft: #fdecea;
  --ri: #b25e09; --ri-soft: #fdf1e0;
  --fp: #4a5464; --fp-soft: #eef0f3;
  --ok: #0b7a55; --ok-soft: #e4f4ee;
  --info: #1d4ed8; --info-soft: #e8eefc;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --radius: 8px;
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
:root[data-theme="dark"] {
  --bg: #0d1016; --surface: #141921; --surface-2: #181e28; --hover: #1c232e;
  --border: #232b37; --border-strong: #354051;
  --text: #e7eaef; --text-2: #a3adbb; --text-3: #6f7a8a;
  --accent: #8fb3e0; --accent-2: #a9c5e8; --accent-soft: #1a2638; --on-accent: #0d1016;
  --crit: #e0708f; --crit-soft: #2c1620;
  --vp: #f0766a; --vp-soft: #2d1715;
  --ri: #e5a04b; --ri-soft: #2b2012;
  --fp: #9aa4b2; --fp-soft: #1d232d;
  --ok: #4fc49b; --ok-soft: #12261f;
  --info: #7ea6f5; --info-soft: #16203a;
  --shadow: none; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 15px; } h3 { font-size: 13px; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); }
.small { font-size: 12.5px; } .xs { font-size: 11.5px; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }

/* ── Estructura ── */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.brand b { font-size: 16px; letter-spacing: .14em; font-weight: 700; }
.brand span { display: block; font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }
.nav-g { margin: 14px 8px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--text-2); font-weight: 500; font-size: 13.5px; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav a svg { width: 16px; height: 16px; flex: none; }
.nav a .cnt { margin-left: auto; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 9px; background: var(--hover); color: var(--text-2); }
.nav a .cnt.hot { background: var(--crit-soft); color: var(--crit); }
.side-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.crumb { white-space: nowrap; font-size: 13px; color: var(--text-3); } .crumb b { color: var(--text); font-weight: 600; }
.search { margin-left: 18px; flex: 1; min-width: 230px; max-width: 380px; position: relative; }
.search input { width: 100%; height: 34px; padding: 0 44px 0 34px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; }
.search svg { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--text-3); }
.search kbd { position: absolute; right: 8px; top: 7px; font: 11px var(--mono); color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.top .sp { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 14px; font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--surface); white-space: nowrap; }
.pill.warn { border-color: transparent; background: var(--ri-soft); color: var(--ri); }
.dot { display: inline-block; vertical-align: middle; margin-right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--ok); } .dot.vp { background: var(--vp); } .dot.ri { background: var(--ri); } .dot.fp { background: var(--fp); } .dot.info { background: var(--info); }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--text); } .icon-btn svg { width: 16px; height: 16px; }
.user { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--border); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; flex: none; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; } .avatar.alt { background: var(--border-strong); color: var(--text); }
.user b { display: block; font-size: 12.5px; line-height: 1.2; } .user span { font-size: 11px; color: var(--text-3); }

.page { padding: 26px 28px 80px; max-width: 1480px; width: 100%; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head p { color: var(--text-2); margin-top: 3px; font-size: 13.5px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; }
.between > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.g21 { grid-template-columns: 2fr 1fr; } .g12 { grid-template-columns: 1fr 2fr; } .g31 { grid-template-columns: 3fr 1.15fr; }
.stack > * + * { margin-top: 16px; }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g21, .g12, .g31, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .side { display: none; } .g2, .g4 { grid-template-columns: 1fr; } .search { display: none; } .page { padding: 18px 16px 80px; } .top { padding: 0 16px; } }

/* ── Componentes ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-h .sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.card-b { padding: 16px 18px; }
.card-f { padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); display: flex; gap: 10px; align-items: center; }

.kpi { padding: 16px 18px; }
.kpi .lbl { font-size: 12.5px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.kpi .val { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12px; color: var(--text-3); }
.kpi .src { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 11.5px; color: var(--text-3); display: flex; gap: 6px; }
.kpi.accent { border-left: 3px solid var(--crit); }

.btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: 500 13px var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); } .btn svg { width: 15px; height: 15px; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn.pri:hover { background: var(--accent-2); }
.btn.crit { background: var(--crit); border-color: var(--crit); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .n { font-size: 11px; padding: 0 5px; border-radius: 8px; background: rgba(127,127,127,.18); }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 5px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--fp-soft); color: var(--fp); }
.tag.vp { background: var(--vp-soft); color: var(--vp); } .tag.ri { background: var(--ri-soft); color: var(--ri); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.info { background: var(--info-soft); color: var(--info); }
.tag.crit { background: var(--crit-soft); color: var(--crit); } .tag.acc { background: var(--accent-soft); color: var(--accent); }
.tag.line { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); font-weight: 500; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.chip b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .chip.on b { color: inherit; }
.sel { height: 30px; padding: 0 28px 0 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-2); font: 500 12.5px var(--font); }
.field { display: block; } .field span { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; }
.input, textarea.input { width: 100%; min-height: 34px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: var(--surface-2); }
tr.sel-row { background: var(--accent-soft) !important; }
.tw { overflow-x: auto; }
.t1 { font-weight: 500; } .t2 { font-size: 12px; color: var(--text-3); }
input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 9px 13px; font-size: 13px; font-weight: 500; color: var(--text-2); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.tab:hover { color: var(--text); } .tab.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab .cnt { font-size: 11px; margin-left: 5px; padding: 0 6px; border-radius: 9px; background: var(--hover); }
[data-pane] { display: none; } [data-pane].on { display: block; }

.bar { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.bar.vp i { background: var(--vp); } .bar.ri i { background: var(--ri); } .bar.ok i { background: var(--ok); }
.risk { display: inline-flex; align-items: center; gap: 8px; } .risk .bar { width: 46px; } .risk b { font-variant-numeric: tabular-nums; font-weight: 600; width: 20px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; } .kv dt { color: var(--text-3); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.list > * { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--border); } .list > *:last-child { border-bottom: 0; }
.note { padding: 11px 14px; border-radius: 7px; background: var(--info-soft); color: var(--text); font-size: 13px; border-left: 3px solid var(--info); }
.note.warn { background: var(--ri-soft); border-color: var(--ri); } .note.crit { background: var(--crit-soft); border-color: var(--crit); } .note.ok { background: var(--ok-soft); border-color: var(--ok); }
pre.code { margin: 0; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; font: 12px/1.6 var(--mono); overflow-x: auto; white-space: pre-wrap; color: var(--text); }
.kw { color: var(--accent); font-weight: 500; } .str { color: var(--ok); }

.tl { position: relative; padding-left: 22px; } .tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.tl > div { position: relative; padding-bottom: 14px; } .tl > div::before { content: ""; position: absolute; left: -21px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl .when { font-size: 11.5px; color: var(--text-3); }

.steps { display: flex; gap: 0; flex-wrap: wrap; } .step { flex: 1; min-width: 96px; padding: 10px 12px; border: 1px solid var(--border); margin-right: -1px; font-size: 12px; background: var(--surface); }
.step:first-child { border-radius: 7px 0 0 7px; } .step:last-child { border-radius: 0 7px 7px 0; }
.step b { display: block; font-size: 12.5px; } .step.done { background: var(--ok-soft); } .step.now { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }

.switch { display: inline-block; vertical-align: middle; position: relative; width: 34px; height: 20px; flex: none; } .switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 10px; background: var(--border-strong); transition: .15s; } .switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::after { transform: translateX(14px); }

.modal { position: fixed; inset: 0; background: rgba(13, 16, 22, .5); display: none; place-items: center; z-index: 60; padding: 20px; } .modal.on { display: grid; }
.modal > div { width: 560px; max-width: 100%; max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ── Iris ── */
.iris-fab { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-lg); cursor: pointer; display: grid; place-items: center; z-index: 40; }
.iris-fab svg { width: 22px; height: 22px; }
.iris { position: fixed; right: 24px; bottom: 84px; width: 380px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 110px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; z-index: 40; overflow: hidden; }
.iris.on { display: flex; }
.iris-b { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-color: transparent; }
.tool { font: 11.5px var(--mono); color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.iris-f { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* ── Gráficos ── */
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 11px var(--font); fill: var(--text-3); } .chart .gl { stroke: var(--border); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); } .legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ── Acceso ── */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: #14233a; color: #dfe7f1; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-form { display: grid; place-items: center; padding: 40px; background: var(--surface); }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } }

/* ═════════ Animaciones ═════════ */
@keyframes sube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes crece-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes crece-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes traza { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes salta { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes avanza { from { background-position: 0 0; } to { background-position: 28px 0; } }

/* Entrada de la página: los bloques suben en cascada */
.entra > *, .entra .grid > *, .entra .stack > * { animation: sube .42s cubic-bezier(.2, .7, .2, 1) backwards; }
.entra > :nth-child(2), .entra .grid > :nth-child(2), .entra .stack > :nth-child(2) { animation-delay: .05s; }
.entra > :nth-child(3), .entra .grid > :nth-child(3), .entra .stack > :nth-child(3) { animation-delay: .10s; }
.entra > :nth-child(4), .entra .grid > :nth-child(4), .entra .stack > :nth-child(4) { animation-delay: .15s; }
.entra > :nth-child(n+5), .entra .grid > :nth-child(n+5), .entra .stack > :nth-child(n+5) { animation-delay: .20s; }
.entra tbody tr { animation: aparece .35s backwards; }
.entra tbody tr:nth-child(2) { animation-delay: .04s; } .entra tbody tr:nth-child(3) { animation-delay: .08s; } .entra tbody tr:nth-child(4) { animation-delay: .12s; }
.entra tbody tr:nth-child(5) { animation-delay: .16s; } .entra tbody tr:nth-child(n+6) { animation-delay: .20s; }
[data-pane].on { animation: sube .28s ease backwards; }

/* Barras y gráficos */
.bar i { transform-origin: left; animation: crece-x .8s cubic-bezier(.2, .7, .2, 1) .15s both; }
.a-draw { stroke-dasharray: 1; animation: traza 1.1s ease-out .1s both; }
.a-fade, .a-area { animation: aparece .9s ease .5s both; }
.a-bar { transform-box: fill-box; transform-origin: bottom; animation: crece-y .6s cubic-bezier(.2, .7, .2, 1) both; }
.a-arc { animation: aparece .5s ease both; }
.bar.vivo i { background-image: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); background-size: 28px 100%; animation: crece-x .8s both, avanza 1s linear infinite; }

/* Estados vivos */
.pill .dot.ok, .dot.vivo { color: var(--ok); animation: pulso 2.2s ease-out infinite; }
.pill.warn .dot { color: var(--ri); animation: pulso 2.2s ease-out infinite; }
.kpi.accent .dot { color: var(--vp); animation: pulso 1.8s ease-out infinite; }
.iris-fab { transition: transform .18s, box-shadow .18s; animation: respira 4s ease-in-out infinite; }
.iris-fab:hover { transform: scale(1.08); animation: none; }
.iris.on { animation: salta .22s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom right; }
.modal.on { animation: aparece .15s both; } .modal.on > div { animation: salta .22s cubic-bezier(.2, .8, .2, 1) both; }
.msg { animation: sube .3s both; } .iris-b > :nth-child(n+3) { animation-delay: .12s; } .iris-b > :nth-child(n+5) { animation-delay: .24s; }

/* Microinteracciones */
body, .side, .top, .card, .btn, .chip, .tag, .input, .sel, th, td { transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s; }
.card { transition: box-shadow .2s, border-color .2s, transform .2s, background-color .2s; }
.grid > .card.kpi:hover, a.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); border-color: var(--border-strong); }
.btn:active { transform: scale(.97); } .chip:hover { border-color: var(--border-strong); color: var(--text); } .chip:active { transform: scale(.96); }
.nav a { position: relative; transition: background-color .15s, color .15s, padding .25s; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); animation: crece-y .3s both; }
.nav a svg { transition: transform .15s; } .nav a:hover svg { transform: scale(1.12); }
.tab { transition: color .15s, border-color .2s; }
.app { transition: grid-template-columns .3s cubic-bezier(.2, .7, .2, 1); }
.page { transition: max-width .3s; }
details[open] > :not(summary) { animation: sube .25s both; }

/* ═════════ Modo concentración ═════════
   Menos información, no menos funciones: se queda lo que exige una decisión. */
[data-focus="on"] .app { grid-template-columns: 64px 1fr; }
[data-focus="on"] .side { padding: 18px 10px; align-items: center; }
[data-focus="on"] .brand { padding: 2px 0 18px; } [data-focus="on"] .brand div, [data-focus="on"] .side-foot { display: none; }
[data-focus="on"] .nav-g { height: 1px; margin: 10px 8px; padding: 0; background: var(--border); font-size: 0; }
[data-focus="on"] .nav-g:first-child { display: none; }
[data-focus="on"] .nav a { justify-content: center; padding: 9px; } [data-focus="on"] .nav a > span:not(.cnt) { display: none; }
[data-focus="on"] .nav a .cnt { position: absolute; top: 3px; right: 2px; margin: 0; min-width: 8px; height: 8px; padding: 0; font-size: 0; background: var(--text-3); } [data-focus="on"] .nav a .cnt.hot { background: var(--crit); }
[data-focus="on"] .nav a.on::before { left: -10px; }
[data-focus="on"] .search, [data-focus="on"] .user > div:last-child, [data-focus="on"] .pill:not(.warn) { display: none; }
[data-focus="on"] .page { max-width: 1120px; margin: 0 auto; padding-top: 34px; }
[data-focus="on"] .head { margin-bottom: 26px; }
[data-focus="on"] :is([data-extra], .x, .head p, .card-f, .kpi .src, .kpi .delta, .sub, .t2, .legend, .note:not(.crit):not(.warn), .steps) { display: none !important; }
[data-focus="on"] .grid:has(> [data-extra]):not(.g4) { grid-template-columns: 1fr; }
[data-focus="on"] .grid { gap: 20px; } [data-focus="on"] .stack > * + * { margin-top: 20px; }
[data-focus="on"] td { padding-top: 14px; padding-bottom: 14px; }
[data-focus="on"] .kpi { padding: 20px 22px; } [data-focus="on"] .kpi .val { font-size: 36px; margin-bottom: 0; }
.solo-foco { display: none; } [data-focus="on"] .solo-foco { display: revert; }
#btn-foco svg { transition: transform .4s; } [data-focus="on"] #btn-foco svg { transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

td:has(> .dot:first-child) { white-space: nowrap; }
