/* ==========================================================================
   GrupoGIT — Design Tokens
   Source of truth. Never hardcode values; reference these variables.
   ========================================================================== */

:root {
  /* ---------- Brand Core ---------- */
  --ggit-deep-ocean: #0F2F6B;      /* Navy primario — institucional */
  --ggit-signal-blue: #1E88C7;     /* Azul interactivo */
  --ggit-catalyst-teal: #2BA197;   /* Teal — innovación, acento */

  /* ---------- Color Scales ---------- */
  /* Deep Ocean (Navy) */
  --ocean-50:  #EEF3FB;
  --ocean-100: #D5E2F2;
  --ocean-200: #A7BFE2;
  --ocean-300: #6F95CC;
  --ocean-400: #3E6EB3;
  --ocean-500: #1E4F95;
  --ocean-600: #16407E;
  --ocean-700: #0F2F6B;  /* primary */
  --ocean-800: #0A2353;
  --ocean-900: #061839;

  /* Signal Blue */
  --signal-50:  #E6F2FA;
  --signal-100: #C3E0F3;
  --signal-200: #8FC6E8;
  --signal-300: #5BACDC;
  --signal-400: #3097D2;
  --signal-500: #1E88C7;  /* primary */
  --signal-600: #1672AB;
  --signal-700: #115B89;
  --signal-800: #0D4467;
  --signal-900: #082E47;

  /* Catalyst Teal */
  --teal-50:  #E5F6F3;
  --teal-100: #BDE7E0;
  --teal-200: #8FD5CA;
  --teal-300: #5FC2B3;
  --teal-400: #3DB29F;
  --teal-500: #2BA197;  /* primary */
  --teal-600: #228579;
  --teal-700: #1A6960;
  --teal-800: #134D47;
  --teal-900: #0C332E;

  /* Neutrals — slate frío con leve calidez */
  --slate-0:   #FFFFFF;
  --slate-50:  #F7F9FC;
  --slate-100: #EEF2F7;
  --slate-200: #DFE5ED;
  --slate-300: #C5CEDB;
  --slate-400: #94A1B4;
  --slate-500: #6B7889;
  --slate-600: #4D5867;
  --slate-700: #353E4B;
  --slate-800: #1F2630;
  --slate-900: #0F141B;
  --slate-ink: #061018;

  /* ---------- Semantic ---------- */
  --color-success: #1F9D6C;
  --color-success-bg: #E4F5EE;
  --color-warning: #E08A0B;
  --color-warning-bg: #FBEED6;
  --color-danger:  #D14242;
  --color-danger-bg: #FBE3E3;
  --color-info:    var(--signal-500);
  --color-info-bg: var(--signal-50);

  /* ---------- Surfaces ---------- */
  --surface-page: var(--slate-50);
  --surface-card: var(--slate-0);
  --surface-sunken: var(--slate-100);
  --surface-inverse: var(--ocean-700);

  --border-subtle: var(--slate-200);
  --border-default: var(--slate-300);
  --border-strong: var(--slate-500);

  --text-primary: var(--slate-800);
  --text-secondary: var(--slate-600);
  --text-tertiary: var(--slate-500);
  --text-inverse: var(--slate-0);
  --text-brand: var(--ocean-700);
  --text-link: var(--signal-600);

  /* ---------- Gradients (extraídos del logo) ---------- */
  --gradient-brand:    linear-gradient(135deg, var(--teal-500) 0%, var(--signal-500) 55%, var(--ocean-700) 100%);
  --gradient-ocean:    linear-gradient(135deg, var(--signal-500) 0%, var(--ocean-700) 100%);
  --gradient-catalyst: linear-gradient(135deg, var(--teal-400) 0%, var(--signal-500) 100%);
  --gradient-dawn:     linear-gradient(180deg, var(--signal-50) 0%, var(--slate-0) 100%);

  /* ---------- Type ---------- */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-64: 4rem;
  --fs-80: 5rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --ls-tight: -0.025em;
  --ls-snug: -0.012em;
  --ls-wide: 0.08em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* ---------- Spacing (base 4px) ---------- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ---------- Radius ---------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* ---------- Elevation ---------- */
  --shadow-xs: 0 1px 2px rgba(15, 47, 107, 0.06);
  --shadow-sm: 0 2px 6px rgba(15, 47, 107, 0.08), 0 1px 2px rgba(15, 47, 107, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 47, 107, 0.10), 0 2px 4px rgba(15, 47, 107, 0.05);
  --shadow-lg: 0 18px 40px rgba(15, 47, 107, 0.14), 0 4px 10px rgba(15, 47, 107, 0.06);
  --shadow-xl: 0 32px 72px rgba(15, 47, 107, 0.20);
  --shadow-glow-teal: 0 0 0 4px rgba(43, 161, 151, 0.18);
  --shadow-glow-signal: 0 0 0 4px rgba(30, 136, 199, 0.22);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;

  /* ---------- Layout ---------- */
  --container-max: 1240px;
  --grid-gutter: 24px;
}

/* ==========================================================================
   DARK THEME — override semantic tokens only. Brand + neutral SCALES stay
   fixed (they are absolute palette values); we remap surfaces, text, borders,
   tints, gradients and elevation.
   Activate with <html data-theme="dark"> (toggled + persisted via JS).
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;

  /* Surfaces */
  --surface-page: #0A1421;
  --surface-card: #111E30;
  --surface-sunken: #0C1826;
  --surface-inverse: #E7EDF5;

  /* Borders */
  --border-subtle: #1E2D41;
  --border-default: #2B3D55;
  --border-strong: #4A5C74;

  /* Text */
  --text-primary: #E8EEF6;
  --text-secondary: #AAB7C8;
  --text-tertiary: #7C8A9C;
  --text-inverse: #0A1421;
  --text-brand: #E4ECF7;
  --text-link: #6FB8E4;

  /* Semantic tints (translucent so brand hues survive on dark) */
  --color-info-bg:    rgba(30, 136, 199, 0.16);
  --color-success-bg: rgba(31, 157, 108, 0.16);
  --color-warning-bg: rgba(224, 138, 11, 0.16);
  --color-danger-bg:  rgba(209, 66, 66, 0.16);

  /* Brand tint surfaces (badge/alert/hover backgrounds) */
  --ocean-50:  rgba(90, 172, 220, 0.14);
  --signal-50: rgba(48, 151, 210, 0.16);
  --teal-50:   rgba(61, 178, 159, 0.16);

  /* Neutral surface tints used as light chrome in light mode */
  --slate-50:  #0F1B2B;
  --slate-100: #16253A;

  /* Gradient adjustments */
  --gradient-dawn: linear-gradient(180deg, rgba(30,136,199,0.10) 0%, var(--surface-page) 100%);

  /* Elevation — deeper, darker shadows read on dark surfaces */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 32px 72px rgba(0, 0, 0, 0.7);
}
