:root {
	/* Paleta de referencia visual Figma v2; todavía no aprobada por el negocio. */
	--ce-color-ink: #26312e;
	--ce-color-forest: #23443e;
	--ce-color-forest-hover: #18352f;
	--ce-color-sage: #dfe7e0;
	--ce-color-sage-soft: #edf0e9;
	--ce-color-sage-deep: #d3ded6;
	--ce-color-paper: #f7f5f0;
	--ce-color-white: #fff;
	--ce-color-white-rgb: 255, 255, 255;
	--ce-color-forest-rgb: 35, 68, 62;
	--ce-color-clay: #b47b64;
	--ce-color-clay-rgb: 180, 123, 100;
	--ce-color-muted: #68736e;
	--ce-color-line: #dedcd5;
	--ce-color-focus: #9b563c;
	--ce-color-navy: #354b75;
	--ce-color-footer: #3b4c70;
	--ce-color-footer-divider: #9da5b7;
	--ce-color-navy-deep: #131d3a;
	--ce-color-navy-deep-rgb: 19, 29, 58;
	--ce-color-navy-hover: #273c64;
	--ce-color-navy-rgb: 53, 75, 117;
	--ce-color-pink: #ebd8d5;
	--ce-color-pink-rgb: 235, 216, 213;

	/* Escala tipográfica compartida con typography.css. */
	--ce-font-size-xs: 0.72rem;
	--ce-font-size-sm: 0.85rem;
	--ce-font-size-body: 1rem;
	--ce-font-size-lg: 1.18rem;
	--ce-font-size-xl: 1.65rem;
	--ce-font-size-display: clamp(2.5rem, 5vw, 4.4rem);
	--ce-font-weight-regular: 400;
	--ce-font-weight-semibold: 600;
	--ce-font-weight-bold: 700;
	--ce-line-height-body: 1.65;
	--ce-line-height-tight: 1.12;

	/* Escala de espaciado compartida por secciones y componentes. */
	--ce-space-0: 0;
	--ce-space-1: 0.5rem;
	--ce-space-2: 0.875rem;
	--ce-space-3: 1.25rem;
	--ce-space-4: 2rem;
	--ce-space-5: 3rem;
	--ce-space-6: 5rem;
	--ce-space-7: 7rem;

	/* Medidas de composición y radios. */
	--ce-content-width: 1180px;
	--ce-content-width-narrow: 800px;
	--ce-content-width-wide: 1440px;
	--ce-radius-sm: 2px;
	--ce-radius-md: 8px;
	--ce-radius-card: 1.5rem;
	--ce-radius-pill: 999px;
	--ce-radius-round: 50%;
	--ce-radius: var(--ce-radius-pill);

	/* Elevación y movimiento. */
	--ce-shadow-subtle: 0 0.8rem 2rem rgba(var(--ce-color-forest-rgb), 0.1);
	--ce-shadow-art: 0 30px 80px rgba(var(--ce-color-forest-rgb), 0.12);
	--ce-duration-fast: 160ms;
	--ce-ease-standard: ease;

	/* Breakpoints de referencia: las media queries se mantienen en CSS estático. */
	--ce-breakpoint-sm: 480px;
	--ce-breakpoint-md: 768px;
	--ce-breakpoint-lg: 1024px;
	--ce-breakpoint-xl: 1280px;

	/* Estado de foco accesible. */
	--ce-focus-width: 2px;
	--ce-focus-offset: 3px;
}

/* Estilos base compartidos: esta hoja precede a los estilos de componentes. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
	font-family: var(--ce-font-body);
}

body {
	margin: 0;
	min-width: 320px;
	color: var(--ce-color-ink);
	background: var(--ce-color-white);
	line-height: var(--ce-line-height-body);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link {
	cursor: pointer;
}

img {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--ce-color-ink);
	font-family: var(--ce-font-display);
	font-weight: var(--ce-font-weight-regular);
	line-height: var(--ce-line-height-tight);
}

a {
	color: var(--ce-color-forest);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ce-color-forest-hover);
}

:focus-visible {
	outline: var(--ce-focus-width) solid var(--ce-color-focus);
	outline-offset: var(--ce-focus-offset);
}

button,
input,
select,
textarea {
	border-radius: var(--ce-radius);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link {
	border: 1px solid var(--ce-color-forest);
	background: var(--ce-color-forest);
	color: var(--ce-color-white);
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background-color var(--ce-duration-fast) var(--ce-ease-standard), border-color var(--ce-duration-fast) var(--ce-ease-standard), color var(--ce-duration-fast) var(--ce-ease-standard);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover {
	border-color: var(--ce-color-forest-hover);
	background: var(--ce-color-forest-hover);
	color: var(--ce-color-white);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="number"],
select,
textarea {
	border: 1px solid var(--ce-color-line);
	background-color: var(--ce-color-white);
	color: var(--ce-color-ink);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
