/*
 * Design tokens — fuente: migration-harness/design/DEV-HANDOFF.md §4.
 * Los componentes consumen SOLO tokens semánticos; nunca valores sueltos.
 * Son los tokens del design system: NO agregar ni modificar. Si un caso no cierra
 * (p.ej. contraste), documentarlo en README ⚠ y consultar a diseño.
 */
:root {
	/* 4.1 Color */
	--color-text-primary: #231F20;
	--color-text-secondary: #66615B;
	--color-brand-primary: #FF9D18;
	--color-brand-hover: #F2AB43;
	--color-surface-base: #FFFFFF;
	--color-surface-warm: #FAF6F1;
	--color-border-default: #E6E1DB;
	--color-focus: #176D86;
	--color-success: #2F7D4A;
	--color-error: #B42318;
	--color-overlay-dark: rgba(20, 16, 13, .58);

	/* 4.2 Tipografía */
	--font-family-base: "Plus Jakarta Sans", Arial, sans-serif;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--font-weight-extrabold: 800;

	--type-display-size: clamp(40px, 4.6vw + 6px, 76px);
	--type-display-line: 1.02;
	--type-h2-size: clamp(28px, 2.4vw + 10px, 40px);
	--type-h2-line: 1.05;
	--type-h3-size: clamp(22px, 1vw + 16px, 30px);
	--type-h3-line: 1.15;
	--type-card-title-size: clamp(18px, .4vw + 16px, 22px);
	--type-card-title-line: 1.25;
	--type-body-large-size: clamp(17px, .2vw + 16px, 18px);
	--type-body-large-line: 1.55;
	--type-body-size: 16px;
	--type-body-line: 1.55;
	--type-small-size: 14px;
	--type-small-line: 1.45;
	--type-eyebrow-size: clamp(11px, .2vw + 10px, 13px);
	--type-eyebrow-tracking: .14em;

	/* 4.3 Espaciado (escala 4…96) */
	--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;
	--section-padding: var(--space-24);

	/* 4.3 Layout */
	--layout-content-max: 1280px;
	--layout-gutter: var(--space-8);   /* 32px desktop; 20px mobile (abajo) */

	/* 4.3 Radios */
	--radius-control: 12px;
	--radius-card: 22px;
	--radius-feature: 28px;
	--radius-pill: 999px;

	/* 4.4 Bordes, sombras, iconos */
	--border-default: 1px solid var(--color-border-default);
	--shadow-raised: 0 10px 20px rgba(35, 31, 32, .05);
	--shadow-overlay: 0 8px 30px rgba(0, 0, 0, .13);
	--icon-size: 24px;
	--icon-stroke: 1.6;
	--touch-target: 44px;

	/* 9 Foco */
	--focus-ring: 3px solid var(--color-focus);
	--focus-offset: 5px;

	/* 4.5 Movimiento */
	--motion-control: 180ms ease-out;
	--motion-card: 400ms cubic-bezier(.16, 1, .3, 1);
	--motion-overlay: 260ms ease-out;

	/* Componentes (derivados de tokens) */
	--button-height: 51px;
	--control-height: 48px;
	--header-height: 91px;
}

/* 5 Responsive */
@media (max-width: 1150px) {
	:root { --header-height: 79px; }
}
@media (max-width: 700px) {
	:root {
		--layout-gutter: var(--space-5);
		--section-padding: var(--space-16);
	}
}
@media (max-width: 600px) {
	:root {
		--header-height: 72px;
		--section-padding: var(--space-12);
		--button-height: 49px;
	}
}
