/* Tipografías autoalojadas (RGPD: sin peticiones a Google Fonts) */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-display: swap; font-weight: 200 900; src: url('fonts/source-sans-3-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-display: swap; font-weight: 200 900; src: url('fonts/source-sans-3-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --forest: #1A301B;
  --forest-2: #24402A;
  --forest-3: #36573B;
  --lime: #DBDF5B;
  --lime-soft: #F1F3C4;
  --bg: #F4F5EE;
  --surface: #FFFFFF;
  --surface-2: #FAFBF6;
  --line: #E1E5D5;
  --line-2: #CDD3BE;
  --ink: #1A301B;
  --ink-2: #3E4E3F;
  --muted: #6A776B;
  --ok: #2F7D46;   --ok-bg: #E3F1E6;
  --warn: #A86A00; --warn-bg: #FBF0D6;
  --bad: #B42318;  --bad-bg: #FBE5E2;
  --info: #2C5C8A; --info-bg: #E2ECF5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26,48,27,.06), 0 4px 16px rgba(26,48,27,.06);
  --font-display: 'Inter', system-ui, sans-serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font-sans); font-size: 15px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .display { font-family: var(--font-display); letter-spacing: -.01em; margin: 0; color: var(--ink); }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
a { color: var(--forest-3); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, .num { font-variant-numeric: tabular-nums; }

/* Botones */
.btn { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { border-color: var(--forest-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn.primary:hover { background: var(--forest-2); }
.btn.accent { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.btn.accent:hover { filter: brightness(.96); }
.btn.danger { color: var(--bad); border-color: #EBC4BF; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(26,48,27,.06); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.lg { padding: 12px 20px; font-size: 15px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Formularios */
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-display); }
input, select, textarea { font-family: var(--font-sans); font-size: 15px; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; background: var(--surface); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--forest-3); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--forest); }
textarea { resize: vertical; min-height: 64px; }

/* Etiquetas de estado */
.tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 600; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: #EEF0E6; color: var(--ink-2); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag.lime { background: var(--lime); color: var(--forest); }
.tag.plain::before { display: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.brand-mark img { width: 30px; height: 30px; display: block; }

.toast-wrap { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; }
.toast { background: var(--forest); color: #fff; padding: 11px 16px; border-radius: 8px; box-shadow: var(--shadow); font-weight: 500; max-width: 380px; border-left: 4px solid var(--lime); animation: tin .2s ease-out; }
.toast.err { border-left-color: #F08A7E; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

.site-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; padding: 18px; }
.site-foot img { width: 16px; height: 16px; }
input[type=range] { accent-color: var(--forest); padding: 0; border: 0; }
