/* =========================================================================
   ESTAVILLO — Base
   -------------------------------------------------------------------------
   Todo scopeado bajo .es-page (el wrapper que imprime el page template)
   para no interferir con Kadence ni con el resto del sitio en vivo.
   ========================================================================= */

.es-page {
	background: var(--es-paper);
	color: var(--es-ink);
	font-family: var(--es-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.es-page *,
.es-page *::before,
.es-page *::after {
	box-sizing: border-box;
}

.es-page ::selection {
	background: var(--es-accent);
	color: var(--es-paper);
}

/* ---------- voces tipográficas ---------- */

.es-serif {
	font-family: var(--es-serif);
	font-weight: 500;
	letter-spacing: -0.015em;
}

.es-mono {
	font-family: var(--es-mono);
}

/* etiqueta técnica en mono (eyebrows, labels de sección) */
.es-eyebrow {
	font-family: var(--es-mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--es-accent);
}

.es-label {
	font-family: var(--es-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--es-ink-4);
}

/* ---------- headings ---------- */

.es-page h1,
.es-page h2,
.es-page h3 {
	margin: 0;
	color: var(--es-ink);
}

.es-h1 {
	font-family: var(--es-serif);
	font-size: clamp(42px, 5.8vw, 74px);
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.04;
	text-wrap: balance;
}

.es-h1 em,
.es-h2 em {
	font-style: italic;
}

.es-h1 .es-accent-word {
	color: var(--es-accent);
}

.es-h2 {
	font-family: var(--es-serif);
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 500;
	letter-spacing: -0.012em;
	line-height: 1.1;
}

/* ---------- texto ---------- */

.es-lead {
	font-size: clamp(15.5px, 1.35vw, 17.5px);
	line-height: 1.65;
	color: var(--es-ink-2);
	max-width: 46ch;
}

.es-body {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--es-ink-2);
}

.es-muted {
	color: var(--es-ink-3);
}

/* ---------- accesibilidad ---------- */

.es-page a:focus-visible,
.es-page button:focus-visible {
	outline: 2px solid var(--es-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.es-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- reduced motion: corta todo lo animado por CSS ---------- */

@media (prefers-reduced-motion: reduce) {
	.es-page *,
	.es-page *::before,
	.es-page *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
