/*
 * Design tokens — mirrored 1:1 from the Figma variables.
 * Single source of truth for colour, type and spacing. Sections reference these
 * vars only, never raw values, so a token change updates the whole site.
 */

:root {
	/* ---- Colour (Figma: Primario / Secundario / Neutral) ---- */
	--bida-blue: #1c3b5b;        /* Primario/500  — brand primary */
	--bida-green: #aeb521;       /* Secundario/500 — brand accent */
	--bida-green-300: #d7de4c;   /* Secundario/300 — hover/light accent */
	--bida-yellow: #f1c83f;      /* Terciario/500 — accent (logo sun, highlights) */
	--bida-dark: #221a09;        /* Fondos — dark band background */

	--neutral-50: #f5f5f6;
	--neutral-100: #dbe0e5;
	--neutral-200: #bdc2c8;
	--neutral-500: #78838e;
	--neutral-700: #5a626b;
	--bida-grey: #f1f3f5;        /* light section background */

	--white: #ffffff;
	--black: #000000;

	/* Semantic aliases */
	--color-text: var(--bida-blue);
	--color-text-muted: var(--neutral-700);
	--color-text-subtle: var(--neutral-500);
	--color-bg: var(--white);
	--color-bg-alt: var(--bida-grey);
	--color-border: var(--neutral-100);
	--color-accent: var(--bida-green);
	--color-on-accent: var(--bida-blue);
	--color-on-dark: var(--white);

	/* ---- Typography (Figma: Nunito Sans) ---- */
	--font-sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

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

	/* type scale: size / line-height / letter-spacing (px from Figma) */
	--fs-h1: 42px;   --lh-h1: 50px;   --ls-h1: -2px;
	--fs-h2: 36px;   --lh-h2: 42px;   --ls-h2: -1px;
	--fs-h3: 28px;   --lh-h3: 36px;   --ls-h3: -1px;
	--fs-h4: 24px;   --lh-h4: 30px;   --ls-h4: -1px;
	--fs-sub1: 20px; --lh-sub1: 26px; --ls-sub1: 0;
	--fs-sub2: 18px; --lh-sub2: 26px; --ls-sub2: 0;
	--fs-body: 16px; --lh-body: 24px; --ls-body: 0;
	--fs-body-s: 14px; --lh-body-s: 22px; --ls-body-s: 0;
	--fs-caption: 12px; --lh-caption: 20px; --ls-caption: 0;
	--fs-eyebrow: 16px; --lh-eyebrow: 24px; --ls-eyebrow: 0.04em; /* "Sección" label (Figma 4% tracking) */

	/* ---- Spacing scale (4px base) ---- */
	--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;

	/* ---- Layout ---- */
	--container-max: 1360px;     /* Figma content width (1440 frame − 40px gutters) */
	--container-pad: clamp(20px, 5vw, 40px);
	/* Side padding for full-bleed sections: keeps the background edge-to-edge
	   while centring content at --container-max on wide screens. */
	--gutter: max(var(--container-pad), calc((100% - var(--container-max)) / 2));

	/* ---- Radius / shadow / motion ---- */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-pill: 999px;

	--shadow-card: 0 8px 24px rgba(28, 59, 91, 0.08);
	--shadow-card-hover: 0 12px 32px rgba(28, 59, 91, 0.14);

	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--dur-fast: 150ms;
	--dur: 250ms;
}
