/*
 * Tokens del sitio actual. Los colores apuntan a los presets de theme.json para
 * que se editen en un solo lugar; los nombres originales (--theme-* y
 * --e-global-color-*) se conservan porque los usan otras páginas y plugins.
 */
:root {
	--theme-body-bg-color: var(--wp--preset--color--blanco);
	--theme-body-font-color: var(--wp--preset--color--texto);
	--theme-body-font-family: var(--wp--preset--font-family--poppins);
	--theme-body-font-size: 16px;
	--theme-body-line-height: 1.8;
	--theme-border-color: var(--wp--preset--color--borde);
	--theme-heading-font-color: var(--wp--preset--color--secundario);
	--theme-heading-font-family: var(--wp--preset--font-family--zilla-slab);
	--theme-heading-font-weight: 600;
	--theme-link-color: var(--wp--preset--color--secundario);
	--theme-link-hover-color: var(--wp--preset--color--oro);
	--theme-primary-color: var(--wp--preset--color--oro);
	--theme-secondary-color: var(--wp--preset--color--secundario);
	--theme-selection-bg-color: var(--wp--preset--color--secundario);
	--theme-selection-font-color: var(--wp--preset--color--blanco);
	--theme-three-color: var(--wp--preset--color--terciario);
	--theme-three-font-family: var(--wp--preset--font-family--zilla-slab);
	--theme-h1-font-size: 36px;
	--theme-h2-font-size: 32px;
	--theme-h3-font-size: 28px;
	--theme-h4-font-size: 24px;
	--theme-h5-font-size: 22px;
	--theme-h6-font-size: 20px;
	--e-global-color-cfb9759: var(--wp--preset--color--oro);
	--e-global-color-66cf011: var(--wp--preset--color--negro);
	--e-global-color-838d76c: var(--wp--preset--color--blanco);
	--ados-contenedor: 1140px;
}

@media (max-width: 1279px) {
	:root {
		--ados-contenedor: 1024px;
	}
}

@media (max-width: 1199px) {
	:root {
		--theme-h2-font-size: 26px;
		--theme-h3-font-size: 24px;
		--theme-h4-font-size: 22px;
	}
}

@media (max-width: 991px) {
	:root {
		--theme-h1-font-size: 26px;
		--theme-h2-font-size: 22px;
		--theme-h3-font-size: 20px;
		--theme-h4-font-size: 18px;
		--theme-h5-font-size: 16px;
		--theme-h6-font-size: 16px;
	}
}

@media (max-width: 575px) {
	:root {
		--ados-contenedor: 767px;
	}
}

/*
 * Sin overflow-y: scroll (lo tenía el sitio): con el overflow-x: hidden que un
 * plugin pone en body, anularía el position: sticky de la cabecera.
 */
html {
	font-size: 62.5%;
}

::selection {
	background-color: var(--theme-selection-bg-color);
	color: var(--theme-selection-font-color);
}

a {
	transition: 0.3s;
}

/*
 * WordPress da 3000x1500 a las imágenes con sizes="auto" que no llegan a cargar
 * mientras son inline. Así respetan el ancho de su bloque.
 */
:where(img[sizes^="auto" i]) {
	display: inline-block;
}
