/* Paleta compartida: marfil, grafito y verde petróleo. Los estados tienen colores propios. */
:root {
  color-scheme: light;
  --page-width: 72.5rem;
  --page-gutter: clamp(.875rem, 3.25vw, 1.75rem);
  --layout-gap: clamp(.75rem, 1.75vw, 1rem);
  --control-height: 2.75rem;
  --control-radius: 6px;
  --surface-radius: 10px;
  --bg: #f3f3ed;
  --surface: #fdfdf8;
  --surface-2: #e9eee7;
  --surface-3: #dce7e0;
  --text: #152924;
  --text-2: #39504a;
  --muted: #51625b;
  --border: #d3dbd3;
  --border-strong: #82958a;
  --grid: #dce4dc;
  --axis: #a4b3a9;
  --accent: #045b4f;
  --accent-hover: #07483e;
  --accent-ink: #04574a;
  --accent-soft: #d7eae1;
  --on-accent: #fff;
  --focus: #0e7567;
  --mark-bg: #113d34;
  --mark-ink: #f5faf3;
  --hero-bg: #dcebe1;
  --hero-rule: #83aa9a;
  --good: #166442;
  --bad: #aa2c36;
  --danger-badge: #a52230;
  --s1: #086c60;
  --s2: #aa4b26;
  --s3: #4c6e9c;
  --s4: #92620e;
  --s5: #8f517b;
  --s6: #4d7736;
  --st-rojo: #a82c37;
  --st-amarillo: #8a5b0c;
  --st-verde: #287447;
  --st-gris: #52645e;
  --st-critica: var(--st-rojo);
  --st-alta: #9c451d;
  --st-media: var(--st-amarillo);
  --st-baja: var(--st-gris);
  --rojo-soft: #fbe9e8;
  --amarillo-soft: #fff2cc;
  --verde-soft: #e1f0e4;
  --shadow: 0 9px 22px #1a362012;
  --shadow-raised: 0 16px 50px #172c2640;
  --overlay: #142b25aa;
  --tip-bg: var(--surface);
  --font-ui: "Segoe UI", system-ui, sans-serif;
  --font-display: "Bahnschrift", "Aptos Display", var(--font-ui);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101b18;
  --surface: #192622;
  --surface-2: #22312c;
  --surface-3: #2c3e36;
  --text: #edf3ec;
  --text-2: #c0d0c6;
  --muted: #a5b7ac;
  --border: #364941;
  --border-strong: #6e897b;
  --grid: #354941;
  --axis: #566f63;
  --accent: #86d8bc;
  --accent-hover: #a8e6d0;
  --accent-ink: #a7e7cf;
  --accent-soft: #274a3e;
  --on-accent: #142e25;
  --focus: #8de0c3;
  --mark-bg: #a7e7cc;
  --mark-ink: #12392c;
  --hero-bg: #162e26;
  --hero-rule: #527e6d;
  --good: #9bd9ac;
  --bad: #ffb0ad;
  --danger-badge: #a82c37;
  --s1: #81d7b7;
  --s2: #eea078;
  --s3: #98b8e6;
  --s4: #eac272;
  --s5: #d7a3cf;
  --s6: #a4c67e;
  --st-rojo: #ff9e9d;
  --st-amarillo: #f2cb81;
  --st-verde: #99d6a7;
  --st-gris: #a5b9ad;
  --st-critica: var(--st-rojo);
  --st-alta: #f4a680;
  --st-media: var(--st-amarillo);
  --st-baja: var(--st-gris);
  --rojo-soft: #4b2a2d;
  --amarillo-soft: #45381b;
  --verde-soft: #233e2b;
  --shadow: 0 9px 22px #0003;
  --shadow-raised: 0 16px 50px #0007;
  --overlay: #050c09bd;
}

::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  color: var(--mark-ink);
  background: var(--mark-bg);
  border-radius: 4px 12px 4px 4px;
  font: 700 .85rem/1 var(--font-display);
  letter-spacing: .025em;
}

.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 600;
}

.theme-picker select {
  appearance: none;
  min-height: 2.5rem;
  min-width: 5.9rem;
  padding: .38rem 1.65rem .38rem .65rem;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background-color: var(--surface);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: right 14px center, right 10px center;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.copyright {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
  margin: 0;
}
