/* ============================================================
   BAMBOO SEGUROS · DESIGN TOKENS
   Variables CSS puras. Sin @import, sin dependencias.
   Carga ANTES de Bootstrap para que las variables estén disponibles
   tanto en components.css como en overrides directos.
   ============================================================ */

:root {
  /* ---------- BAMBOO (primario, derivado de #536656) ---------- */
  --bamboo-50:  #f3f6f3;
  --bamboo-100: #e4ece5;
  --bamboo-200: #c9d9cc;
  --bamboo-300: #a5ccab;  /* legado: verde claro nav */
  --bamboo-400: #7fa487;
  --bamboo-500: #5e8168;
  --bamboo-600: #536656;  /* legado: verde primario */
  --bamboo-700: #3f4f43;
  --bamboo-800: #2e3a32;
  --bamboo-900: #1f2822;

  /* ---------- EARTH (acento cálido) ---------- */
  --earth-50:  #faf6f0;
  --earth-100: #f2e8d6;
  --earth-200: #e4d3ae;
  --earth-300: #d2b781;
  --earth-400: #bf9c5c;
  --earth-500: #a8823f;
  --earth-600: #8a6930;
  --earth-700: #6b5024;
  --earth-800: #4d3a1a;

  /* ---------- NEUTRAL (cálidos beige) ---------- */
  --neutral-0:   #ffffff;
  --neutral-25:  #fbfaf8;
  --neutral-50:  #f6f4f0;
  --neutral-100: #ecebe5;
  --neutral-200: #dfdcd2;
  --neutral-300: #c4c0b3;
  --neutral-400: #a3a092;
  --neutral-500: #7c7a6e;
  --neutral-600: #5a5851;
  --neutral-700: #3e3d38;
  --neutral-800: #2a2926;
  --neutral-900: #1a1a18;

  /* ---------- SEMÁNTICOS ---------- */
  --success-50:  #edf7ee;
  --success-500: #4d8a5a;
  --success-700: #315a3b;

  --warning-50:  #fdf6e3;
  --warning-500: #c89b2a;
  --warning-700: #8a6815;

  --danger-50:   #fbeeec;
  --danger-500:  #b44a3a;
  --danger-700:  #7e2e22;

  --info-50:     #eef3f7;
  --info-500:    #4a6b87;
  --info-700:    #2f4a63;

  /* ---------- ALIASES DE SUPERFICIE ---------- */
  --bg-app:        var(--neutral-25);
  --bg-surface:    var(--neutral-0);
  --bg-subtle:     var(--neutral-50);
  --bg-muted:      var(--neutral-100);
  --bg-inverse:    var(--bamboo-700);

  --fg-default:    var(--neutral-800);
  --fg-muted:      var(--neutral-600);
  --fg-subtle:     var(--neutral-500);
  --fg-on-primary: #ffffff;
  --fg-on-inverse: var(--neutral-50);
  --fg-brand:      var(--bamboo-600);

  --border-subtle: var(--neutral-100);
  --border-default:var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-brand:  var(--bamboo-600);

  --focus-ring:    0 0 0 3px rgb(83 102 86 / .22);

  /* ---------- TIPOGRAFÍA ---------- */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-brand:   'Varela Round', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   17px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  30px;
  --text-4xl:  38px;
  --text-5xl:  48px;

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.5;
  --leading-loose:  1.65;

  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-caps:   0.08em;

  /* ---------- ESPACIADO (4px scale) ---------- */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ---------- RADIOS ---------- */
  --radius-xs:   3px;
  --radius-sm:   5px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  20px;
  --radius-pill: 999px;

  /* ---------- SOMBRAS ---------- */
  --shadow-xs: 0 1px 1px rgb(31 40 34 / .04);
  --shadow-sm: 0 1px 2px rgb(31 40 34 / .06), 0 1px 1px rgb(31 40 34 / .04);
  --shadow-md: 0 4px 12px rgb(31 40 34 / .06), 0 2px 4px rgb(31 40 34 / .04);
  --shadow-lg: 0 12px 32px rgb(31 40 34 / .08), 0 4px 8px rgb(31 40 34 / .04);
  --shadow-xl: 0 24px 64px rgb(31 40 34 / .10), 0 8px 16px rgb(31 40 34 / .05);

  /* ---------- MOTION ---------- */
  --ease-out:    cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --dur-instant: 80ms;
  --dur-fast:    160ms;
  --dur-base:    220ms;
  --dur-slow:    360ms;

  /* ---------- LAYOUT ---------- */
  --sidebar-w:           248px;
  --sidebar-w-collapsed: 64px;
  --topbar-h:            56px;
  --content-max:         1400px;
}
