/* ============================================================
   DESIGN TOKENS — PANOX · Dr. Roberto Abraham
   Fuente de verdad: colores, tipografía, espaciado, radios
   ============================================================ */

:root {

  /* ── Marca ───────────────────────────────────────────────── */
  --brand-primary:       #0D9E9E;
  --brand-primary-dark:  #0A7A7A;
  --brand-primary-light: #E6F5F5;
  --brand-primary-rgb:   13, 158, 158;

  /* ── Escala oscura (hero, footer, tech section) ──────────── */
  --dark-950: #070F18;
  --dark-900: #0D1B2A;
  --dark-800: #162236;
  --dark-700: #1E2D42;
  --dark-600: #253550;

  /* ── Neutros ─────────────────────────────────────────────── */
  --neutral-50:  #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-200: #E5E7EB;
  --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;

  /* ── Blanco ──────────────────────────────────────────────── */
  --white: #FFFFFF;

  /* ── Estados ─────────────────────────────────────────────── */
  --color-success: #059669;
  --color-success-light: #D1FAE5;
  --color-error:   #DC2626;
  --color-error-light: #FEE2E2;
  --color-warning: #D97706;

  /* ── Tipografía ──────────────────────────────────────────── */
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* ── Escala tipográfica ──────────────────────────────────── */
  --text-xs:   0.75rem;     /* 12px */
  --text-sm:   0.875rem;    /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   1.25rem;     /* 20px */
  --text-2xl:  1.5rem;      /* 24px */
  --text-3xl:  1.875rem;    /* 30px */
  --text-4xl:  2.25rem;     /* 36px */
  --text-5xl:  3rem;        /* 48px */
  --text-6xl:  3.75rem;     /* 60px */
  --text-7xl:  4.5rem;      /* 72px */
  --text-8xl:  6rem;        /* 96px */

  /* ── Line heights ────────────────────────────────────────── */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.5;
  --leading-relaxed:1.65;

  /* ── Letter spacing ──────────────────────────────────────── */
  --tracking-tighter: -0.04em;
  --tracking-tight:   -0.02em;
  --tracking-normal:   0em;
  --tracking-wide:     0.05em;
  --tracking-wider:    0.1em;
  --tracking-widest:   0.15em;

  /* ── Espaciado ───────────────────────────────────────────── */
  --space-1:  0.25rem;   /* 4px  */
  --space-2:  0.5rem;    /* 8px  */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-14: 3.5rem;    /* 56px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-28: 7rem;      /* 112px */
  --space-32: 8rem;      /* 128px */

  /* ── Border radius ───────────────────────────────────────── */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-3xl:  2rem;
  --radius-full: 9999px;

  /* ── Sombras ─────────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 20px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 30px -5px rgba(0,0,0,0.12), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-brand: 0 8px 24px rgba(13,158,158,0.25);

  /* ── Transiciones ────────────────────────────────────────── */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-base: cubic-bezier(0.4, 0, 0.2, 1);

  --transition-fast:   150ms var(--ease-base);
  --transition-base:   250ms var(--ease-base);
  --transition-slow:   400ms var(--ease-out);
  --transition-slower: 600ms var(--ease-out);

  /* ── Contenedores ────────────────────────────────────────── */
  --container-max:     1200px;
  --container-padding: clamp(1rem, 5vw, 2rem);

  /* ── Z-index ─────────────────────────────────────────────── */
  --z-base:    1;
  --z-above:   10;
  --z-nav:     100;
  --z-overlay: 200;
  --z-modal:   300;
  --z-toast:   400;

  /* ── Sección padding ─────────────────────────────────────── */
  --section-padding: clamp(4rem, 8vw, 7rem);
}
