/* ==========================================================================
   LUMI Design Tokens — Light Luminous System (Google Gemini-inspired)
   Domain: lumi.facilitadoraempresarial.com
   Rebranding guide: Adjust the brand tokens below to reskin the entire site.
   ========================================================================== */

:root {
  /* Brand Prism Palette (extracted from LUMI official mark) */
  --lumi-magenta: #ec2f96;
  --lumi-magenta-deep: #c81e7b;
  --lumi-violet: #6d4aff;
  --lumi-violet-deep: #5333d9;
  --lumi-cyan: #0b99e6;
  --lumi-cyan-deep: #0277bd;
  --lumi-prism: linear-gradient(128deg, #ec2f96 0%, #6d4aff 52%, #0b99e6 100%);
  --lumi-prism-soft: linear-gradient(128deg, rgba(236, 47, 150, 0.12) 0%, rgba(109, 74, 255, 0.12) 52%, rgba(11, 153, 230, 0.12) 100%);

  /* Primary Semantic Accents */
  --color-primary: #5333d9;
  --color-primary-hover: #4224bd;
  --color-primary-soft: #f1eeff;
  --color-secondary: #0b99e6;

  /* Light Surfaces & Neutrals (WCAG AA/AAA calibrated) */
  --surface-canvas: #ffffff;
  --surface-pearl: #f7f9fd;
  --surface-mist: #eef3fb;
  --surface-elevated: rgba(255, 255, 255, 0.86);
  --surface-glass: rgba(255, 255, 255, 0.74);

  --ink-primary: #0b1222;
  --ink-secondary: #435068;
  --ink-muted: #5a6780;
  --ink-inverse: #ffffff;

  --border-hairline: #e4eaf4;
  --border-subtle: #d3dceb;
  --border-strong: #94a3b8;

  /* Status Colors (CRM & Form Feedback — ≥4.5:1 text contrast) */
  --status-hot-bg: #fde8f2;
  --status-hot-ink: #b91668;
  --status-hot-solid: #e11d74;

  --status-qualified-bg: #ede9fe;
  --status-qualified-ink: #5b21b6;

  --status-pending-bg: #f1f5f9;
  --status-pending-ink: #475569;

  --status-won-bg: #dcfce7;
  --status-won-ink: #166534;

  --status-error-bg: #fef2f2;
  --status-error-ink: #b91c1c;
  --status-error-border: #fca5a5;

  /* Typography */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.25rem, 1.08rem + 0.7vw, 1.65rem);
  --text-2xl: clamp(1.6rem, 1.25rem + 1.6vw, 2.65rem);
  --text-hero: clamp(1.85rem, 1.3rem + 2.2vw, 3.15rem);
  --touch-target: 24px;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* Container & Header Metrics */
  --container-max: 1220px;
  --container-narrow: 760px;
  --header-height: 78px;
  --header-height-compact: 62px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Directional Soft Shadows */
  --shadow-xs: 0 1px 2px rgba(11, 18, 34, 0.04);
  --shadow-sm: 0 6px 20px -6px rgba(11, 18, 34, 0.07), 0 1px 3px rgba(11, 18, 34, 0.04);
  --shadow-md: 0 16px 40px -14px rgba(11, 18, 34, 0.1), 0 4px 12px -4px rgba(11, 18, 34, 0.05);
  --shadow-lg: 0 28px 68px -20px rgba(30, 27, 75, 0.14), 0 8px 24px -8px rgba(11, 18, 34, 0.06);
  --shadow-prism: 0 18px 42px -16px rgba(109, 74, 255, 0.28), 0 8px 20px -10px rgba(236, 47, 150, 0.18);

  /* Motion Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 140ms;
  --dur-base: 260ms;
  --dur-slow: 480ms;
  --dur-hero: 720ms;
}

@media (pointer: coarse) {
  :root {
    --touch-target: 44px;
  }
}

/* Browser Surface Theming */
::selection {
  background: rgba(109, 74, 255, 0.16);
  color: var(--ink-primary);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 18px);
  color-scheme: light;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  border: 2px solid transparent;
  background-clip: content-box;
}
