/* ==========================================================================
   Base común del portal y del panel · Ajuntament de Silla
   Estilo de geoportal (mapa protagonista, piezas blancas flotantes, bordes de 1 px, sombras
   difusas) con la identidad municipal: un único acento, el granate #900000, sobre grises cálidos.
   Contrastes AA verificados sobre blanco: granate 9,6:1 · --ink-2 9,9:1 · --ink-3 5,5:1.
   Tipografías autoalojadas (OFL, ver docs/decisiones.md): Inter Tight y JetBrains Mono.
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  src: url("/comun/fuentes/inter-tight-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/comun/fuentes/jetbrains-mono-latin-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212;
}

:root {
  /* Superficies */
  --bg: #f4f2f1;
  --panel: #ffffff;
  --panel-2: #f8f6f5;
  --panel-3: #efebea;
  --line: #e8e3e1;
  --line-strong: #d6cfcc;

  /* Texto (grises cálidos de la identidad municipal) */
  --ink: #1f1a1b;
  --ink-2: #463f40;
  --ink-3: #6f6765;
  --ink-4: #a39b98;
  --placeholder: #7a7270;

  /* Marca: granate municipal */
  --brand: #900000;
  --brand-2: #6f0000;
  --brand-soft: rgba(144, 0, 0, .08);
  --brand-ring: rgba(144, 0, 0, .28);

  /* Estados (color + fondo suave). Reservados: nunca identifican series ni tipos */
  --ok: #0b6e48;      --ok-soft: rgba(15, 122, 81, .10);
  --warn: #8a5100;    --warn-soft: rgba(178, 106, 0, .12);
  --danger: #b3263b;  --danger-soft: rgba(209, 52, 74, .10);
  --info: #07708f;    --info-soft: rgba(10, 139, 176, .10);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(35, 20, 20, .06), 0 1px 1px rgba(35, 20, 20, .04);
  --shadow-md: 0 10px 30px -12px rgba(35, 20, 20, .20), 0 2px 6px rgba(35, 20, 20, .06);
  --shadow-modal: 0 28px 56px -24px rgba(30, 14, 14, .45), 0 2px 6px rgba(30, 14, 14, .06);
  --shadow-brand: 0 4px 10px -4px rgba(144, 0, 0, .5);

  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --t: .15s;

  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -.005em;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-2); }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
main:focus { outline: none; }
.mono, .numero { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: 0; }
.visualmente-oculto { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.salto { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; font-weight: 600; }
.salto:focus { top: 12px; color: #fff; }
.icono { width: 16px; height: 16px; flex: none; }

/* Barras de desplazamiento finas */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--panel-2); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

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