:root {
  --ink-900: #12181f;
  --ink-800: #1a222b;
  --border-dark-1: #262f3a;
  --border-dark-2: #2b3542;
  --border-dark-3: #232c36;
  --border-dark-4: #3a4552;
  --text-dark-1: #e9e6dd;
  --text-dark-2: #8b93a0;
  --text-dark-3: #6b7684;
  --text-dark-4: #9aa4b2;
  --text-dark-5: #c9cfd8;
  --text-dark-6: #5c6572;

  --cream: #f5f2ea;
  --white: #ffffff;
  --border-light-1: #e4ded0;
  --border-light-2: #eee8da;
  --text-light-1: #23262b;
  --text-light-2: #6b6459;
  --text-light-3: #9a9280;
  --text-light-4: #7a7364;
  --text-light-5: #5c564c;

  --green: #2f6f5e;
  --green-dark: #24564a;
  --amber: #c98b3f;
  --gray: #9aa0a8;
  --terracotta: #a1503f;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 20px;

  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 18px;
  --space-8: 20px;
  --space-9: 24px;
  --space-10: 28px;
  --space-11: 32px;
  --space-12: 36px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
}

::placeholder { opacity: 1; }

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* Tema oscuro — /admin */
body.theme-dark {
  background: var(--ink-900);
  --surface-bg: var(--ink-900);
  --surface-card: var(--ink-800);
  --surface-border: var(--border-dark-1);
  --surface-border-strong: var(--border-dark-2);
  --text-primary: var(--text-dark-1);
  --text-secondary: var(--text-dark-2);
  --text-tertiary: var(--text-dark-3);
  --input-bg: var(--ink-900);
  --input-border: var(--border-dark-2);
  --input-placeholder: var(--text-dark-2);
}
body.theme-dark ::placeholder { color: var(--text-dark-2); }

/* Tema claro — /estadoProyecto */
body.theme-light {
  background: var(--cream);
  --surface-bg: var(--cream);
  --surface-card: var(--white);
  --surface-border: var(--border-light-1);
  --surface-border-strong: var(--border-light-1);
  --text-primary: var(--text-light-1);
  --text-secondary: var(--text-light-2);
  --text-tertiary: var(--text-light-3);
  --input-bg: #f8f6f0;
  --input-border: var(--border-light-1);
  --input-placeholder: var(--text-light-3);
}
body.theme-light ::placeholder { color: var(--text-light-3); }
