:root {
  color-scheme: light;
  --bg: #f5fbf8;
  --bg-2: #ecf6f2;
  --surface: rgba(255, 255, 255, .86);
  --surface-strong: #ffffff;
  --surface-soft: rgba(15, 118, 110, .075);
  --text: #10201d;
  --muted: #6a7774;
  --faint: #8d9996;
  --border: rgba(16, 32, 29, .12);
  --border-strong: rgba(16, 32, 29, .2);
  --brand: #27c8ad;
  --brand-2: #0f8f80;
  --brand-dark: #087064;
  --brand-soft: rgba(39, 200, 173, .16);
  --accent: #ff7f32;
  --danger: #dc2626;
  --shadow: 0 22px 70px rgba(25, 64, 56, .12);
  --glow: 0 0 40px rgba(39, 200, 173, .18);
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 860px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #041412;
  --bg-2: #061b18;
  --surface: rgba(9, 28, 25, .72);
  --surface-strong: rgba(13, 35, 32, .92);
  --surface-soft: rgba(255, 255, 255, .055);
  --text: #f6fffd;
  --muted: #b3bfbc;
  --faint: #7f8d8a;
  --border: rgba(218, 255, 247, .13);
  --border-strong: rgba(218, 255, 247, .2);
  --brand: #45e0c7;
  --brand-2: #22c4ad;
  --brand-dark: #65f5dc;
  --brand-soft: rgba(69, 224, 199, .15);
  --accent: #ff8740;
  --danger: #fb7185;
  --shadow: 0 25px 80px rgba(0, 0, 0, .28);
  --glow: 0 0 55px rgba(69, 224, 199, .15);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(39, 200, 173, .18), transparent 22rem),
    radial-gradient(circle at 85% 12%, rgba(255, 127, 50, .08), transparent 18rem),
    linear-gradient(145deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 75%);
}

:root[data-theme="light"] body::before { background-image: none; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; display: block; }

.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;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  transform: translateY(-150%);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

.muted { color: var(--muted); }

/* Minimal radar UI refresh */
:root {
  --bg: #f7faf8;
  --bg-2: #eef5f2;
  --surface: rgba(255, 255, 255, .78);
  --surface-strong: rgba(255, 255, 255, .94);
  --surface-soft: rgba(9, 120, 108, .055);
  --border: rgba(16, 32, 29, .095);
  --border-strong: rgba(16, 32, 29, .15);
  --shadow: 0 14px 44px rgba(20, 53, 48, .09);
  --glow: none;
  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 820px;
}
:root[data-theme="dark"] {
  --bg: #06110f;
  --bg-2: #071815;
  --surface: rgba(13, 27, 24, .70);
  --surface-strong: rgba(14, 31, 28, .92);
  --surface-soft: rgba(255, 255, 255, .045);
  --border: rgba(224, 255, 249, .105);
  --border-strong: rgba(224, 255, 249, .17);
  --shadow: 0 18px 52px rgba(0, 0, 0, .24);
}
body {
  background:
    radial-gradient(circle at 28% 0%, rgba(39, 200, 173, .10), transparent 18rem),
    linear-gradient(145deg, var(--bg), var(--bg-2));
}
body::before { opacity: .42; }

/* Radar v6: closer to the reference, with clean light/dark variants */
:root {
  --bg: #f4faf7;
  --bg-2: #eaf4ef;
  --surface: rgba(255, 255, 255, .76);
  --surface-strong: rgba(255, 255, 255, .94);
  --surface-soft: rgba(13, 148, 136, .06);
  --text: #12221f;
  --muted: #66736f;
  --faint: #96a09d;
  --border: rgba(18, 34, 31, .105);
  --border-strong: rgba(18, 34, 31, .17);
  --brand: #4fd8c5;
  --brand-2: #18b49f;
  --brand-dark: #0a7c70;
  --brand-soft: rgba(79, 216, 197, .20);
  --accent: #ff7b2f;
  --shadow: 0 16px 45px rgba(14, 48, 43, .10);
  --max-width: 790px;
}
:root[data-theme="dark"] {
  --bg: #020b0a;
  --bg-2: #061412;
  --surface: rgba(9, 24, 22, .70);
  --surface-strong: rgba(10, 27, 25, .90);
  --surface-soft: rgba(255, 255, 255, .050);
  --text: #f8fffd;
  --muted: #b7c3c0;
  --faint: #788784;
  --border: rgba(223, 255, 249, .125);
  --border-strong: rgba(223, 255, 249, .22);
  --brand: #52e1cd;
  --brand-2: #25c4af;
  --brand-dark: #61f2dc;
  --brand-soft: rgba(82, 225, 205, .18);
  --shadow: 0 24px 64px rgba(0, 0, 0, .34);
}
body {
  background:
    radial-gradient(circle at 10% -8%, rgba(82, 225, 205, .16), transparent 24rem),
    radial-gradient(circle at 92% 4%, rgba(10, 80, 73, .26), transparent 22rem),
    linear-gradient(145deg, var(--bg), var(--bg-2));
}
:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% -12%, rgba(79, 216, 197, .20), transparent 24rem),
    linear-gradient(145deg, var(--bg), var(--bg-2));
}
body::before {
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
}
:root[data-theme="light"] body::before { opacity: 0; }

/* Radar v7: escala más compacta */
:root {
  --max-width: 690px;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 12px 34px rgba(14, 48, 43, .08);
}
:root[data-theme="dark"] {
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
}
body { font-size: 15px; }

/* v8: más compacto y más cercano al radar de la referencia */
:root {
  --max-width: 760px;
  --radius: 18px;
  --radius-sm: 12px;
}
body { font-size: 14px; }
