/* ==========================================================================
   CM Digital — Design Tokens
   Dark FinTech Premium
   ========================================================================== */

:root {
	/* ---- Color: superficies ---- */
	--bg-primary: #070708;
	--bg-secondary: #0d0e10;
	--surface: #111318;
	--surface-elevated: #151820;
	--border: rgba(255, 255, 255, 0.1);
	--border-strong: rgba(255, 255, 255, 0.16);

	/* ---- Color: texto ---- */
	--text-primary: #f5f7fa;
	--text-secondary: #9aa4b2;
	--text-tertiary: #7e8898; /* ~5.5:1 on --bg-primary, meets WCAG AA for small text */

	/* ---- Color: acento azul eléctrico/cobalto ---- */
	--accent-900: #0a1f4d;
	--accent-700: #114acb;
	--accent-600: #1657e8;
	--accent-500: #2f6fff;
	--accent-400: #5b8cff;
	--accent-300: #8fadff;
	--accent-glow: rgba(47, 111, 255, 0.35);
	--accent-glow-soft: rgba(47, 111, 255, 0.16);

	/* ---- Tipografía ----
	   System-font stack, no licensing to manage: every name below is
	   pre-installed by the OS it targets (San Francisco on macOS/iOS via
	   -apple-system, Segoe UI on Windows, Roboto on Android/ChromeOS),
	   never downloaded, so there's no font file to license or self-host.
	   "Inter" was deliberately removed from an earlier draft of this stack —
	   it isn't a system font on any OS, so it silently did nothing for
	   almost every visitor and would have rendered differently only for
	   the rare visitor who happens to have it installed locally.
	   If a real brand typeface is licensed later, self-host it (woff2 under
	   assets/fonts/ + @font-face) rather than loading it from Google Fonts
	   or another third-party CDN — keeps this zero-external-request budget
	   intact. Never source font files from an unverified/unlicensed site. */
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;

	--fs-eyebrow: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
	--fs-body-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
	--fs-body: clamp(1rem, 0.96rem + 0.15vw, 1.125rem);
	--fs-body-lg: clamp(1.1875rem, 1.1rem + 0.45vw, 1.5rem);
	--fs-h3: clamp(1.375rem, 1.15rem + 0.9vw, 2.0625rem);
	--fs-h2: clamp(1.875rem, 1.3rem + 2.6vw, 3.5rem);
	/* Max is deliberately held to what fits the content column at
	   --container-max (1800px) — see the .hero__inner comment for why this
	   number can't just be "bigger" without checking the longest unbreakable
	   word ("OPORTUNIDADES.") against the actual rendered column width. */
	--fs-hero: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);

	--lh-tight: 1.05;
	--lh-heading: 1.15;
	--lh-body: 1.6;

	--ls-tight: -0.02em;
	--ls-normal: 0;
	--ls-wide: 0.08em;

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

	/* ---- Spacing (base 4px) ---- */
	--space-3xs: 0.25rem;
	--space-2xs: 0.5rem;
	--space-xs: 0.75rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2rem;
	--space-xl: 3rem;
	--space-2xl: 4rem;
	--space-3xl: 6rem;
	--space-4xl: 8rem;

	/* ---- Layout ----
	   1800px, not 1440 — Fase 1.2 explicitly authorizes widening the
	   container so the Hero can use a large desktop viewport with real
	   presence; header shares this token so the two stay aligned. */
	--container-max: 1860px;
	--container-padding: clamp(1.25rem, 4vw, 4rem);
	--header-height: 84px;
	--header-height-scrolled: 68px;

	/* ---- Radii ---- */
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 24px;
	--radius-full: 999px;

	/* ---- Shadows ---- */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
	--shadow-md: 0 12px 32px rgba(0, 0, 0, 0.36);
	--shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.48);
	--shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -12px var(--accent-glow);

	/* ---- Transitions ---- */
	--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

	/* ---- Z-index ---- */
	--z-header: 100;
	--z-nav-mobile: 200;
	--z-modal: 300;
}
