/* ==========================================================================
   Marcela Pagano · Sitio oficial — sistema de diseño (v2)
   Tokens → base → componentes → vistas → responsive → print
   ========================================================================== */

:root{
  color-scheme:light;
  /* Marca — impronta de Estado: azul patria, oro viejo, marfil */
  --navy:#0C72C0; --navy-2:#1A8ED8; --navy-deep:#084E8A;
  --blue:#1A8ED8; --blue-2:#2AAAE0; --celeste:#74ACDF;
  --sol:#D4A72C; --sol-2:#B8891A;
  /* Superficies y tinta */
  --paper:#F0F8FF; --surface:#FFFFFF; --surface-2:#E2F1FC; --surface-3:#CCE5F7;
  --ink:#062338; --muted:#17405E; --faint:#265575;
  --line:#B8D8F0; --line-strong:#88BADC;
  --link:#1A7DC8;
  --celeste-soft:#D4ECFB; --sol-soft:#FBF4E0; --sol-ink:#6B4F07;
  /* Zonas oscuras (hero, cierre) */
  --hero-bg:#0A5FA5; --hero-bg-2:#1A8ED8; --hero-ink:#FFFFFF; --hero-muted:#C8E4F6; --hero-line:rgba(255,255,255,.25);
  /* Controles */
  --tab-active-bg:#0C72C0; --tab-active-ink:#FFFFFF;
  --btn-bg:#0C72C0; --btn-ink:#FFFFFF;
  --field-bg:#FFFFFF; --field-line:#88BADC;
  --focus:#2AAAE0;
  --mark-bg:#F3DC8A; --mark-ink:#0E1F36;
  /* Datos */
  --bar:#1A7DC8; --bar-hover:#0C6BB5; --bar-track:#D4ECFB;
  --heat-1:#D3DFEC; --heat-2:#74ACDF; --heat-3:#2AAAE0; --heat-4:#0C72C0;
  --heat-ink-1:#0E1F36; --heat-ink-2:#0E1F36; --heat-ink-3:#FFFFFF; --heat-ink-4:#FFFFFF;
  --pill-den-bg:#D4ECFB; --pill-den-ink:#0A304F; --pill-que-bg:#FBF4E0; --pill-que-ink:#6B4F07;
  /* Geometría */
  --shadow:0 18px 40px -28px rgba(10,30,61,.45);
  --shadow-lg:0 30px 60px -36px rgba(10,30,61,.5);
  --radius:14px; --radius-s:10px; --radius-xs:7px;
  --max:1200px; --gutter:clamp(16px,4vw,40px);
  --topbar-h:72px;
  /* Tipografía */
  --display:'Archivo',system-ui,'Segoe UI',sans-serif;
  --body:'Atkinson Hyperlegible Next','Segoe UI',system-ui,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --voice:'Fraunces',Georgia,'Times New Roman',serif;
  /* Áreas temáticas (fondo suave · tinta · acento) */
  --t-economia-bg:#F8EFD2; --t-economia-ink:#6B4F07; --t-economia:#D4A72C;
  --t-justicia-bg:#E6EBF3; --t-justicia-ink:#0C72C0; --t-justicia:#1A8ED8;
  --t-defensa-bg:#E3E9EE; --t-defensa-ink:#2B4A6B; --t-defensa:#4C6F92;
  --t-salud-bg:#DEF1EC; --t-salud-ink:#0F5E56; --t-salud:#1F8A7C;
  --t-educacion-bg:#E1EEF8; --t-educacion-ink:#1A8ED8; --t-educacion:#5A9BD0;
  --t-homenajes-bg:#EFE6F3; --t-homenajes-ink:#5B2E6E; --t-homenajes:#8B5BA5;
  --t-ambiente-bg:#E4F1E0; --t-ambiente-ink:#2F6B2F; --t-ambiente:#4E9A4E;
  --t-general-bg:#EDEBE4; --t-general-ink:#4A5A70; --t-general:#8A97A8;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --paper:#070F1F; --surface:#0E1B33; --surface-2:#152441; --surface-3:#1D2F52;
    --ink:#F1EEE6; --muted:#B4BDCC; --faint:#8794A8;
    --line:#24365A; --line-strong:#35507C;
    --link:#8FC1EE;
    --sol:#DDB23A; --sol-2:#B8891A;
    --celeste-soft:#15304F; --sol-soft:#3A2D08; --sol-ink:#E6BE4C;
    --hero-bg:#083C72; --hero-bg-2:#1472B6; --hero-ink:#FFFFFF; --hero-muted:#B7C8DC; --hero-line:rgba(255,255,255,.14);
    --tab-active-bg:#F1EEE6; --tab-active-ink:#0C72C0;
    --btn-bg:#F1EEE6; --btn-ink:#0C72C0;
    --field-bg:#0B1730; --field-line:#35507C;
    --focus:#8FC1EE;
    --mark-bg:#8A6A10; --mark-ink:#FFFFFF;
    --bar:#74ACDF; --bar-hover:#A9D0F0; --bar-track:#1B2C4C;
    --heat-1:#2A4468; --heat-2:#3F7DB3; --heat-3:#74ACDF; --heat-4:#D8E8F6;
    --heat-ink-1:#FFFFFF; --heat-ink-2:#FFFFFF; --heat-ink-3:#0C72C0; --heat-ink-4:#0C72C0;
    --pill-den-bg:#152441; --pill-den-ink:#F1EEE6; --pill-que-bg:#3A2D08; --pill-que-ink:#E6BE4C;
    --shadow:0 18px 40px -28px rgba(0,0,0,.75);
    --shadow-lg:0 30px 60px -36px rgba(0,0,0,.8);
    --t-economia-bg:#3A2D08; --t-economia-ink:#F0CB5A; --t-economia:#DDB23A;
    --t-justicia-bg:#152441; --t-justicia-ink:#C9DCF3; --t-justicia:#8FC1EE;
    --t-defensa-bg:#1B2A3C; --t-defensa-ink:#BFD0E2; --t-defensa:#7F9EBE;
    --t-salud-bg:#0F2F2B; --t-salud-ink:#A8E3D8; --t-salud:#4FBFAE;
    --t-educacion-bg:#15304F; --t-educacion-ink:#BFDCF3; --t-educacion:#74ACDF;
    --t-homenajes-bg:#2E1E3A; --t-homenajes-ink:#DCC3E8; --t-homenajes:#B48CD0;
    --t-ambiente-bg:#16301A; --t-ambiente-ink:#BFE3BC; --t-ambiente:#6DBE6D;
    --t-general-bg:#1D2A3D; --t-general-ink:#C5D0DE; --t-general:#8A97A8;
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --paper:#070F1F; --surface:#0E1B33; --surface-2:#152441; --surface-3:#1D2F52;
    --ink:#F1EEE6; --muted:#B4BDCC; --faint:#8794A8;
    --line:#24365A; --line-strong:#35507C;
    --link:#8FC1EE;
    --sol:#DDB23A; --sol-2:#B8891A;
    --celeste-soft:#15304F; --sol-soft:#3A2D08; --sol-ink:#E6BE4C;
    --hero-bg:#083C72; --hero-bg-2:#1472B6; --hero-ink:#FFFFFF; --hero-muted:#B7C8DC; --hero-line:rgba(255,255,255,.14);
    --tab-active-bg:#F1EEE6; --tab-active-ink:#0C72C0;
    --btn-bg:#F1EEE6; --btn-ink:#0C72C0;
    --field-bg:#0B1730; --field-line:#35507C;
    --focus:#8FC1EE;
    --mark-bg:#8A6A10; --mark-ink:#FFFFFF;
    --bar:#74ACDF; --bar-hover:#A9D0F0; --bar-track:#1B2C4C;
    --heat-1:#2A4468; --heat-2:#3F7DB3; --heat-3:#74ACDF; --heat-4:#D8E8F6;
    --heat-ink-1:#FFFFFF; --heat-ink-2:#FFFFFF; --heat-ink-3:#0C72C0; --heat-ink-4:#0C72C0;
    --pill-den-bg:#152441; --pill-den-ink:#F1EEE6; --pill-que-bg:#3A2D08; --pill-que-ink:#E6BE4C;
    --shadow:0 18px 40px -28px rgba(0,0,0,.75);
    --shadow-lg:0 30px 60px -36px rgba(0,0,0,.8);
    --t-economia-bg:#3A2D08; --t-economia-ink:#F0CB5A; --t-economia:#DDB23A;
    --t-justicia-bg:#152441; --t-justicia-ink:#C9DCF3; --t-justicia:#8FC1EE;
    --t-defensa-bg:#1B2A3C; --t-defensa-ink:#BFD0E2; --t-defensa:#7F9EBE;
    --t-salud-bg:#0F2F2B; --t-salud-ink:#A8E3D8; --t-salud:#4FBFAE;
    --t-educacion-bg:#15304F; --t-educacion-ink:#BFDCF3; --t-educacion:#74ACDF;
    --t-homenajes-bg:#2E1E3A; --t-homenajes-ink:#DCC3E8; --t-homenajes:#B48CD0;
    --t-ambiente-bg:#16301A; --t-ambiente-ink:#BFE3BC; --t-ambiente:#6DBE6D;
    --t-general-bg:#1D2A3D; --t-general-ink:#C5D0DE; --t-general:#8A97A8;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{background:var(--paper);scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--topbar-h) + 16px)}
body{margin:0;background:var(--paper);color:var(--ink);font:500 17px/1.65 var(--body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip}
[hidden]{display:none!important}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
p{margin:0}
h1,h2,h3,h4{margin:0;text-wrap:balance}
ul{margin:0;padding:0;list-style:none}
code,.mono{font-family:var(--mono);font-weight:500;font-variant-numeric:tabular-nums}
mark{background:var(--mark-bg);color:var(--mark-ink);border-radius:3px;padding:0 .08em}
::selection{background:var(--sol);color:var(--navy)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:4px}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.wrap{width:min(var(--max),100% - var(--gutter)*2);margin-inline:auto}
.skip{position:fixed;top:-100px;left:16px;z-index:1000;background:var(--surface);color:var(--ink);padding:12px 18px;border-radius:var(--radius-s);box-shadow:var(--shadow);border:1px solid var(--line)}
.skip:focus{top:calc(env(safe-area-inset-top,0px) + 12px)}
