/* ============================================================
   variables.css — Tokens de diseño: colores, tipografía, espacios
   ============================================================ */

/* ─── Importar fuentes ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,300&family=Barlow+Condensed:wght@400;700&display=swap');

/* ─── Variables modo CLARO ──────────────────────────────────── */
:root,
[data-theme="light"] {
  /* Fondos */
  --bg-primary:    #f4f0e8;
  --bg-secondary:  #eae5d9;
  --bg-card:       #ffffff;
  --bg-card-hover: #fff9f2;
  --bg-nav:        rgba(244, 240, 232, 0.92);
  --bg-hero:       #1a1006;

  /* Textos */
  --text-primary:   #1a1006;
  --text-secondary: #4a3f2e;
  --text-muted:     #8a7a64;
  --text-on-dark:   #f4f0e8;
  --text-on-accent: #ffffff;

  /* Acento (se sobreescribe desde config.js) */
  --accent:         #e85d04;
  --accent-light:   #e85d04;
  --accent-dark:    #ff6b35;
  --accent-glow:    #ff9a3c;
  --accent-subtle:  rgba(232, 93, 4, 0.10);

  /* Bordes y sombras */
  --border:         rgba(26, 16, 6, 0.12);
  --border-accent:  rgba(232, 93, 4, 0.3);
  --shadow-sm:      0 2px 8px rgba(26, 16, 6, 0.08);
  --shadow-md:      0 8px 24px rgba(26, 16, 6, 0.12);
  --shadow-lg:      0 16px 48px rgba(26, 16, 6, 0.18);
  --shadow-glow:    0 0 30px rgba(232, 93, 4, 0.25);

  /* Cursor */
  --cursor-handle:  #5a3e1b;
  --cursor-clamp:   #8b6914;
  --cursor-rod:     #c8a84b;
  --cursor-coat-a:  #e85d04;
  --cursor-coat-b:  #333333;
  --cursor-tip:     #fffde0;
  --cursor-stroke:  rgba(0,0,0,0.3);

  /* Metal texture overlay */
  --metal-gradient: linear-gradient(135deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0) 50%,
    rgba(0,0,0,0.05) 100%);
}

/* ─── Variables modo OSCURO ─────────────────────────────────── */
[data-theme="dark"] {
  /* Fondos */
  --bg-primary:    #0d0a06;
  --bg-secondary:  #141008;
  --bg-card:       #1c1510;
  --bg-card-hover: #241b12;
  --bg-nav:        rgba(13, 10, 6, 0.94);
  --bg-hero:       #0d0a06;

  /* Textos */
  --text-primary:   #f4ede0;
  --text-secondary: #c8b89a;
  --text-muted:     #7a6a54;
  --text-on-dark:   #f4ede0;
  --text-on-accent: #ffffff;

  /* Acento */
  --accent:         #ff6b35;
  --accent-subtle:  rgba(255, 107, 53, 0.12);

  /* Bordes y sombras */
  --border:         rgba(255, 200, 120, 0.08);
  --border-accent:  rgba(255, 107, 53, 0.35);
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:      0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:      0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow:    0 0 40px rgba(255, 107, 53, 0.3);

  /* Cursor modo oscuro */
  --cursor-handle:  #8b6914;
  --cursor-clamp:   #c8a84b;
  --cursor-rod:     #e8c870;
  --cursor-coat-a:  #ff6b35;
  --cursor-coat-b:  #555555;
  --cursor-tip:     #fffde0;
  --cursor-stroke:  rgba(255,255,255,0.2);
}

/* ─── Tipografía ─────────────────────────────────────────────── */
:root {
  --font-display:  'Bebas Neue', 'Impact', sans-serif;
  --font-heading:  'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:     'Barlow', 'Georgia', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;
  --text-8xl:  6rem;
  --text-9xl:  8rem;

  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;
}

/* ─── Espaciado ──────────────────────────────────────────────── */
:root {
  --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;
  --space-32: 8rem;

  --container-max: 1280px;
  --container-pad: clamp(1rem, 5vw, 2.5rem);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast:   150ms ease;
  --transition-base:   280ms ease;
  --transition-slow:   500ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
