/* Academia Mística · tokens de diseño (ver DESIGN.md). Las plantillas usan solo estos nombres. */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: italic;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations");
}

:root {
	/* Marca (iguales en ambos modos) */
	--am-night: #0E1530;
	--am-blue: #193164;
	--am-primary: #9B4EAA;
	--am-primary-hover: #83398F;
	--am-gold: #D9B45A;
	--am-on-primary: #FFFFFF;

	/* Tipografía */
	--am-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--am-stretch-display: 118%;
	--am-fs-xs: 0.8125rem;
	--am-fs-sm: 0.9375rem;
	--am-fs-base: 1.0625rem;
	--am-fs-lg: 1.25rem;
	--am-fs-h4: 1.375rem;
	--am-fs-h3: 1.75rem;
	--am-fs-h2: clamp(2rem, 4vw, 2.75rem);
	--am-fs-h1: clamp(2.5rem, 6vw, 4.25rem);
	--am-measure: 68ch;

	/* Espaciado (base 4) */
	--am-space-1: 4px;
	--am-space-2: 8px;
	--am-space-3: 12px;
	--am-space-4: 16px;
	--am-space-5: 24px;
	--am-space-6: 32px;
	--am-space-7: 48px;
	--am-space-8: 64px;
	--am-space-9: 96px;
	--am-section: var(--am-space-9);
	--am-width: 1240px;
	--am-width-text: 760px;
	--am-gutter: 24px;

	/* Forma y profundidad */
	--am-radius-sm: 10px;
	--am-radius-md: 16px;
	--am-radius-lg: 24px;
	--am-radius-pill: 999px;
	--am-shadow-float: 0 24px 60px rgba(14, 21, 48, 0.12);

	/* Movimiento */
	--am-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--am-dur: 200ms;
}

/* Modo diurno (por defecto en páginas públicas) */
:root,
[data-am-theme="light"] {
	--am-bg: #FFFFFF;
	--am-surface: #F7F5FA;
	--am-surface-2: #F3EEF8;
	--am-ink: #0E1530;
	--am-text: #1B2550;
	--am-text-2: #3A4468;
	--am-muted: #5A6385;
	--am-line: #E6E2EE;
	--am-line-strong: #CFC7DB;
	--am-accent: #8A3F9E;
	--am-success: #1F7A69;
	--am-warning: #9A6412;
	--am-error: #B42318;
	--am-focus: #8A3F9E;
	color-scheme: light;
}

/* Modo nocturno */
[data-am-theme="dark"] {
	--am-bg: #0B1128;
	--am-surface: #111A3A;
	--am-surface-2: #16224A;
	--am-ink: #FFFFFF;
	--am-text: #E4E7F2;
	--am-text-2: #C9CFE3;
	--am-muted: #A9B1CC;
	--am-line: rgba(255, 255, 255, 0.10);
	--am-line-strong: rgba(255, 255, 255, 0.22);
	--am-accent: #D4B0E6;
	--am-success: #8FD9C9;
	--am-warning: #F2C46D;
	--am-error: #F59A8F;
	--am-focus: #D4B0E6;
	color-scheme: dark;
}

@media (max-width: 720px) {
	:root {
		--am-section: var(--am-space-8);
		--am-gutter: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--am-dur: 0ms;
	}
}
