/* ==========================================================================
   Base — fuentes, tokens, reset y utilidades.
   Los colores vienen del Customizer (#kelotero-css-vars); aquí van fallbacks.
   ========================================================================== */

@font-face {
	font-family: "Oswald";
	src: url("../fonts/oswald-latin-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Open Sans";
	src: url("../fonts/opensans-latin-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Open Sans";
	src: url("../fonts/opensans-latin-italic-var.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	/* Color (sobrescritos por el Customizer). */
	--ko-ink: #0b0b0b;
	--ko-paper: #ffffff;
	--ko-muted: #8a8a8a;
	--ko-cream: #fffaee;

	/* Tipografía. */
	--ko-font-display: "Oswald", "Arial Narrow", sans-serif;
	--ko-font-body: "Open Sans", system-ui, sans-serif;

	/* Layout (múltiplos de 4px). */
	--ko-gutter: clamp(16px, 4.8vw, 72px);
	--ko-container: 1300px;
	--ko-header-h: 80px;
	--ko-header-h-fixed: 72px;

	/* Movimiento: la curva del panel de la referencia. */
	--ko-ease: cubic-bezier(0.77, 0, 0.175, 1);
	--ko-ease-out: cubic-bezier(0.2, 0.84, 0.5, 1);
}

@media (min-width: 1024px) {
	:root {
		--ko-header-h: 120px;
		--ko-header-h-fixed: 84px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--ko-paper);
	color: var(--ko-ink);
	font-family: var(--ko-font-body);
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--ko-font-display);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Utilidades ------------------------------------------------------------ */

.ko-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ko-skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 2000;
	padding: 12px 20px;
	background: var(--ko-ink);
	color: var(--ko-paper);
	font-family: var(--ko-font-display);
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	transform: translateY(-200%);
}

.ko-skip-link:focus {
	transform: none;
}

.ko-main:focus {
	outline: none;
}

.ko-container {
	width: 100%;
	max-width: calc(var(--ko-container) + 2 * var(--ko-gutter));
	margin-inline: auto;
	padding-inline: var(--ko-gutter);
}

/* Header sólido: el contenido arranca debajo del header. */
.ko-header-solid .ko-main {
	padding-top: var(--ko-header-h);
}

/* Contenido genérico (index.php) ---------------------------------------- */

.ko-content {
	padding-block: 64px 96px;
}

.ko-content__title {
	font-size: clamp(36px, 6vw, 85px);
}

.ko-content__title a {
	text-decoration: none;
}

/* Marcador de bloque pendiente (se reemplaza al construir el Hero) ------ */

.ko-placeholder {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: var(--ko-gutter);
	background:
		repeating-linear-gradient(0deg, transparent 0 119px, rgb(0 0 0 / 0.04) 119px 120px),
		var(--ko-paper);
}

.ko-placeholder__label {
	position: sticky;
	top: 50vh;
	margin: 0;
	font-family: var(--ko-font-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ko-muted);
}

.ko-menu-empty {
	margin: 0;
	font-size: 13px;
	color: var(--ko-muted);
}
