/* Tokens conservados literalmente de css/styles.css.
   Paleta, tipografía, geometría, escalas y profundidad 3D del portal original.
   tests/design.test.cjs verifica que no se desvíen. */
:root {
  --bg-body: #0F1620;
  --bg-surface: #16202C;
  --bg-elevated: #1C2734;
  --bg-header: #131B26;
  --bg-nav: #1A2431;
  --bg-input: #1C2734;
  --bg-overlay: rgba(15, 22, 32, 0.62);
  --text-primary: #EEF2F6;
  --text-secondary: #98A3AE;
  --text-tertiary: #717D89;
  --text-on-dark: #EEF2F6;
  --text-on-accent: #17202A;
  --accent: #F5B942;
  --accent-hover: #FFD06C;
  --accent-subtle: rgba(245, 185, 66, 0.10);
  --gold: #F5B942;
  --gold-hover: #FFD06C;
  --gold-subtle: rgba(245, 185, 66, 0.10);
  --success: #34D399;
  --warning: #E2A32B;
  --danger: #DC4C4C;
  --border: rgba(255, 255, 255, 0.075);
  --border-hover: rgba(255, 255, 255, 0.16);
  --banner-bg: #16202C;
  --banner-border: rgba(245, 185, 66, 0.45);
  --banner-text: #D8C28E;
  --banner-icon: #F5B942;
  --tag-clinico-bg: rgba(245, 185, 66, 0.10);
  --tag-clinico-text: #F5B942;
  --tag-clinico-icon: #F5B942;
  --tag-admin-bg: rgba(255, 255, 255, 0.06);
  --tag-admin-text: #B6C0C9;
  --tag-admin-icon: #B6C0C9;
  --tag-support-bg: rgba(52, 211, 153, 0.10);
  --tag-support-text: #61DDAA;
  --tag-support-icon: #61DDAA;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-glow-accent: 0 12px 34px -18px rgba(226, 163, 43, 0.72);
  --shadow-glow-gold: 0 12px 34px -18px rgba(226, 163, 43, 0.72);
  --font: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Quantico', 'Arial Narrow', sans-serif;
  --max-w: 1400px;
  --shell-pad: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --chamfer-12: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --chamfer-18: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

:root {
  --tilt-max: 15;
  /* grados máximos de inclinación (lo lee el JS) */
  --tilt-persp: 700px;
  /* menos = 3D más marcado */
  --tilt-lift: -14px;
  /* cuánto sube la tarjeta en hover */
  --tilt-pop: 40px;
  /* cuánto se acerca la tarjeta completa */
  --depth-icon: 92px;
  /* profundidad de cada capa */
  --depth-title: 56px;
  --depth-desc: 30px;
  --depth-actions: 44px;
  --dim-others: .72;
  /* opacidad del resto mientras una tarjeta está en foco */
}

:root {
    /* ─ Badge ─ */
    --badge-bg: #EF4444;
    --badge-text: #FFFFFF;

    /* ─ Spacing (4px scale) ─ */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;

    /* ─ Border Radius ─ */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 9999px;

    /* ─ Typography ─ */
    --fs-2xs: 0.625rem;
    --fs-xs: 0.6875rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;

    /* ─ Motion ─ */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 150ms var(--ease);
    --t-base: 250ms var(--ease);
    --t-slow: 350ms var(--ease);

    /* ─ Layout ─ */
    --header-h: 60px;
  }

