/* ===========================================================
   ControlLab · base.css · tokens, reset y tipografía
   =========================================================== */
:root{
  --bg:#f5f7fa; --bg-2:#eef2f7;
  --surface:#ffffff; --surface-2:#f7f9fc; --surface-3:#eceff4;
  --border:#dde3ea; --border-2:#c3ccd8;
  --text:#101418; --text-2:#4b5664; --text-3:#78838f;

  --brand:#15395b; --brand-2:#1d6fb8; --brand-3:#3fa7d6;
  --accent:#1d6fb8; --accent-soft:#e7f0fa; --on-accent:#ffffff;

  --fin:#b8860b;  --fin-soft:#fbf2dd;
  --cli:#1d6fb8;  --cli-soft:#e7f0fa;
  --pro:#117a65;  --pro-soft:#e2f3ee;
  --apr:#6b4fa8;  --apr-soft:#efeafa;

  --ok:#11734d; --ok-soft:#e3f3ec;
  --warn:#9a6700; --warn-soft:#fdf3dc;
  --err:#a52834; --err-soft:#fdebec;
  --neutro:#9aa6b2;

  --sh-1:0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.07);
  --sh-2:0 4px 14px rgba(16,24,40,.08), 0 1px 4px rgba(16,24,40,.05);
  --sh-3:0 18px 44px rgba(16,24,40,.16);

  --r-s:7px; --r-m:12px; --r-l:18px; --r-xl:26px;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --nav:252px; --head:60px; --maxw:1200px;
}
[data-theme="dark"]{
  --bg:#0b0f14; --bg-2:#0e141b;
  --surface:#121922; --surface-2:#172029; --surface-3:#1e2935;
  --border:#263241; --border-2:#38485c;
  --text:#e8edf3; --text-2:#a9b6c4; --text-3:#7c8896;

  --brand:#0f2740; --brand-2:#2d81cc; --brand-3:#54b4e0;
  --accent:#4ea2e8; --accent-soft:#132a40; --on-accent:#06121d;

  --fin:#dfb14e; --fin-soft:#2b2210;
  --cli:#5fa9e9; --cli-soft:#122738;
  --pro:#3fbd9c; --pro-soft:#0f2a24;
  --apr:#a68ae0; --apr-soft:#211a36;

  --ok:#48c48c; --ok-soft:#0f2a1e;
  --warn:#e0b45e; --warn-soft:#2a2111;
  --err:#f07a84; --err-soft:#2e1417;
  --neutro:#6b7785;

  --sh-1:0 1px 2px rgba(0,0,0,.45);
  --sh-2:0 6px 18px rgba(0,0,0,.5);
  --sh-3:0 20px 48px rgba(0,0,0,.62);
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--sans); background:var(--bg); color:var(--text);
  font-size:15px; line-height:1.56; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{margin:0 0 .4em;line-height:1.22;font-weight:660;letter-spacing:-.014em}
h1{font-size:1.72rem} h2{font-size:1.24rem} h3{font-size:1.04rem} h4{font-size:.92rem}
p{margin:0 0 .85em}
ul,ol{margin:0 0 .9em;padding-left:1.2em} li{margin-bottom:.32em}
a{color:var(--accent);text-decoration:none} a:hover{text-decoration:underline}
code,kbd{font-family:var(--mono);font-size:.88em}
kbd{background:var(--surface-3);border:1px solid var(--border);border-bottom-width:2px;
    border-radius:5px;padding:.05em .36em;font-size:.76em;color:var(--text-2)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
hr{border:0;border-top:1px solid var(--border);margin:1.1rem 0}

.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.muted{color:var(--text-2)} .dim{color:var(--text-3)}
.nowrap{white-space:nowrap} .right{text-align:right} .center{text-align:center}
.hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

*::-webkit-scrollbar{width:11px;height:11px}
*::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:7px;border:3px solid transparent;background-clip:content-box}
*::-webkit-scrollbar-track{background:transparent}

@media print{.app-nav,.app-head,.no-print{display:none!important}body{background:#fff}}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}
