

:root {

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

:root {

  --ember-50:  #FEF3EC;
  --ember-100: #FBDFCC;
  --ember-200: #F7BE9C;
  --ember-300: #F2985F;
  --ember-400: #EE7738;
  --ember-500: #E85B1E;
  --ember-600: #CB4715;
  --ember-700: #A63811;
  --ember-800: #7E2C10;
  --ember-900: #5C2210;

  --brick-50:  #FBEDE9;
  --brick-100: #F4D2C8;
  --brick-200: #E5A08E;
  --brick-300: #D67159;
  --brick-400: #C85138;
  --brick-500: #B23A24;
  --brick-600: #96301D;
  --brick-700: #772618;
  --brick-800: #591E14;
  --brick-900: #3F1710;

  --cream-50:  #FFFDF9;
  --cream-100: #FDF7EC;
  --cream-200: #F8EDD9;
  --cream-300: #EFDFC3;
  --cream-400: #E2CBA5;
  --cream-500: #CBB088;

  --mesquite-50:  #F6F1EA;
  --mesquite-100: #E9DFD2;
  --mesquite-200: #D2C1AD;
  --mesquite-300: #AD9986;
  --mesquite-400: #8A7462;
  --mesquite-500: #63513F;
  --mesquite-600: #4A3B2C;
  --mesquite-700: #362A1F;
  --mesquite-800: #262019;
  --mesquite-900: #1A1613;
  --mesquite-950: #110E0C;

  --lime-100: #E4EFD3;
  --lime-500: #5B8C36;
  --lime-700: #3E6323;

  --status-pendiente:  #E0A422;
  --status-aceptado:   #2E7D6B;
  --status-preparando: #E85B1E;
  --status-listo:      #5B8C36;
  --status-entregado:  #63513F;
  --status-rechazado:  #B23A24;
  --status-cancelado:  #8A7462;

  --danger:  #C4381F;
  --warning: #E0A422;
  --success: #5B8C36;
  --info:    #2E7D6B;

  --bg-page:        var(--cream-200);
  --surface-card:   var(--cream-50);
  --surface-sunken: var(--cream-100);
  --surface-raised: #FFFFFF;

  --text-strong:    #241A14;
  --text-body:      #3A2C22;
  --text-muted:     #74604F;
  --text-subtle:    #9C8975;
  --text-on-ember:  #FFFFFF;
  --text-inverse:   var(--cream-100);

  --border-hair:    #EBDCC4;
  --border-default: #E0CDAF;
  --border-strong:  #CBB088;

  --accent:         var(--ember-500);
  --accent-hover:   var(--ember-600);
  --accent-press:   var(--ember-700);
  --accent-soft:    var(--ember-50);

  --focus-ring:     var(--ember-500);
  --overlay-scrim:  rgba(26, 22, 19, 0.55);
}

.ax-dark {
  --bg-page:        var(--mesquite-900);
  --surface-card:   var(--mesquite-800);
  --surface-sunken: var(--mesquite-950);
  --surface-raised: var(--mesquite-700);

  --text-strong:    var(--cream-100);
  --text-body:      #E4D8C6;
  --text-muted:     #AD9986;
  --text-subtle:    #8A7462;
  --text-on-ember:  #FFFFFF;
  --text-inverse:   #241A14;

  --border-hair:    #362A1F;
  --border-default: #4A3B2C;
  --border-strong:  #63513F;

  --accent:         var(--ember-500);
  --accent-hover:   var(--ember-400);
  --accent-press:   var(--ember-300);
  --accent-soft:    rgba(232, 91, 30, 0.16);

  --focus-ring:     var(--ember-400);
  --overlay-scrim:  rgba(0, 0, 0, 0.66);

  background: var(--bg-page);
  color: var(--text-body);
}

:root {

  --text-2xs:  0.6875rem;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  4rem;
  --text-5xl:  5.25rem;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extra:    800;

  --leading-tight:   1.05;
  --leading-snug:    1.18;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --tracking-tight:  -0.03em;
  --tracking-snug:   -0.015em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-caps:   0.12em;

  --type-display-family: var(--font-display);
  --type-body-family:    var(--font-sans);
  --type-mono-family:    var(--font-mono);
}

:root {
  --space-0:   0;
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  --container-sm:  36rem;
  --container-md:  48rem;
  --container-lg:  64rem;
  --container-xl:  75rem;
  --gutter:        var(--space-6);

  --control-sm:  2rem;
  --control-md:  2.75rem;
  --control-lg:  3.25rem;
}

:root {

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --radius-2xl:  30px;
  --radius-pill: 999px;

  --shadow-xs:  0 1px 2px rgba(58, 44, 34, 0.06);
  --shadow-sm:  0 1px 3px rgba(58, 44, 34, 0.08), 0 1px 2px rgba(58, 44, 34, 0.06);
  --shadow-md:  0 4px 12px rgba(58, 44, 34, 0.10), 0 2px 4px rgba(58, 44, 34, 0.06);
  --shadow-lg:  0 12px 28px rgba(45, 32, 22, 0.14), 0 4px 8px rgba(45, 32, 22, 0.07);
  --shadow-xl:  0 24px 56px rgba(45, 32, 22, 0.18), 0 8px 16px rgba(45, 32, 22, 0.08);

  --shadow-ember: 0 6px 20px rgba(232, 91, 30, 0.30);

  --shadow-inset: inset 0 1px 2px rgba(58, 44, 34, 0.08);

  --ring-width: 3px;
}

:root {
  --dur-instant: 80ms;
  --dur-fast:    140ms;
  --dur-base:    220ms;
  --dur-slow:    360ms;
  --dur-slower:  560ms;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:       cubic-bezier(0.5, 0, 0.9, 0.4);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 1em; text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:active { color: var(--accent-press); }

.ax-num { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

.ax-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

::selection { background: var(--ember-200); color: var(--brick-800); }

:focus-visible {
  outline: var(--ring-width) solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
