/* ==========================================================
   MENU BUSINESS PRO · TOKENS
   Única fuente de verdad de colores, tipografía y medidas.
   NINGÚN otro archivo debe definir colores hexadecimales.
   ========================================================== */
:root {
  /* ---- Marca (paleta oficial, derivada del logo) ---- */
  --primary:        #0F3B6D;
  --primary-dark:   #0B2F57;
  --success:        #4CC33A;
  --success-dark:   #39B82E;
  --accent:         #F5A623;
  --background:     #F5F7FA;
  --border:         #D9E0E7;
  --text:           #1F2937;
  --white:          #FFFFFF;

  /* ---- Estados (semánticos) ---- */
  --danger:         #D64545;
  --danger-dark:    #B93434;
  --accent-ink:     #9A6400;
  --danger-ink:     var(--danger-dark);

  /* ---- Tonos suaves derivados (fondos de badges, hover) ---- */
  --primary-soft:   #E8EEF6;
  --success-soft:   #E7F7E4;
  --accent-soft:    #FEF3DC;
  --danger-soft:    #FBE9E9;
  --neutral-soft:   #EDF0F4;

  /* ---- Tokens semánticos (los componentes usan SOLO estos) ---- */
  --bg:             var(--background);
  --surface:        var(--white);
  --surface-2:      #FAFBFD;
  --ink:            var(--text);
  --ink-muted:      #5B6675;
  --ink-faint:      #8A94A3;
  --line:           var(--border);
  --brand:          var(--primary);
  --brand-strong:   var(--primary-dark);
  --on-brand:       var(--white);
  --sidebar-bg:     var(--primary-dark);
  --sidebar-ink:    #B8C7DA;
  --sidebar-ink-strong: var(--white);
  --sidebar-hover:  rgba(255,255,255,.07);
  --sidebar-active: rgba(255,255,255,.12);
  --focus-ring:     rgba(15,59,109,.18);
  --overlay:        rgba(11,47,87,.45);
  /* Colores de billetes (POS) */
  --bill-2:   #4F86B5;
  --bill-2-hi:#A9CBE6;
  --bill-5:   #8A6446;
  --bill-5-hi:#CDAE8F;
  --bill-10:  #C23B3B;
  --bill-10-hi:#EE9A93;
  --bill-20:  #E07F2E;
  --bill-20-hi:#F6C58E;
  --bill-50:  #7B4CA6;
  --bill-50-hi:#C4A3E0;
  --bill-100: #3F9556;
  --bill-100-hi:#A5D8AF;
  /* Metales de moneda (POS) */
  --coin-gold:      #D9B35A;
  --coin-gold-hi:   #F3E1A6;
  --coin-gold-dk:   #A8812E;
  --coin-silver:    #C9CED6;
  --coin-silver-hi: #F2F4F7;
  --coin-silver-dk: #8A929E;
  --shadow-sm:      0 1px 2px rgba(16,40,70,.06);
  --shadow-md:      0 4px 14px rgba(16,40,70,.07);
  --shadow-lg:      0 12px 32px rgba(16,40,70,.12);
  --chart-grid:     #E8ECF1;

  /* ---- Tipografía ---- */
  --font-public:    'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-app:       'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ---- Medidas ---- */
  --radius-card:    12px;
  --radius-ctl:     10px;
  --radius-sm:      8px;
  --radius-pill:    999px;
  --ctl-h:          44px;
  --sidebar-w:      252px;
  --topbar-h:       64px;
  --container:      1200px;
}

/* ==========================================================
   ARQUITECTURA PARA TEMA OSCURO (preparada, no activada)
   Para activarlo: <html data-theme="dark">. Solo se redefinen
   los tokens semánticos; ningún componente necesita cambios.
   ========================================================== */
[data-theme="dark"] {
  --bg:             #0C1623;
  --surface:        #13233A;
  --surface-2:      #172A44;
  --ink:            #E6EBF2;
  --ink-muted:      #A3B0C2;
  --ink-faint:      #74839A;
  --line:           #243756;
  --brand:          #6FA3E0;
  --brand-strong:   #8DB8EA;
  --sidebar-bg:     #0A1220;
  --primary-soft:   #1B3253;
  --success-soft:   #17361A;
  --accent-soft:    #3A2E12;
  --danger-soft:    #3C1B1B;
  --neutral-soft:   #1B2B44;
  --danger-ink:     #F08A8A;
  --accent-ink:     var(--accent);
  --focus-ring:     rgba(111,163,224,.28);
  --overlay:        rgba(0,0,0,.6);
  --shadow-sm:      0 1px 2px rgba(0,0,0,.35);
  --shadow-md:      0 4px 14px rgba(0,0,0,.35);
  --shadow-lg:      0 12px 32px rgba(0,0,0,.5);
  --chart-grid:     #22344F;
}
