/* Encabezado: logo, menú, modo claro/oscuro, "Cotizar" y menú móvil. Fijo arriba solo en escritorio (en móvil no tapa contenido). */
.hdr {
	position: relative;
	z-index: 30;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition:
		border-color var(--motion),
		box-shadow var(--motion);
}
.hdr.is-scrolled {
	box-shadow: 0 10px 30px -24px rgb(0 0 0 / 45%);
}
.hdr__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
}
/* El logo nunca se encoge: si el menú no cabe, el menú pasa a hamburguesa. */
.hdr__brand {
	display: flex;
	flex: none;
}
.logo--header {
	flex: none;
	width: auto;
	max-width: none;
	height: 38px;
}
.logo--footer {
	width: auto;
	height: 40px;
	filter: brightness(0) invert(1);
}
:root[data-theme="dark"] .logo--header {
	filter: brightness(0) invert(1);
}
.hdr__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.icon-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--bg-elev);
	color: var(--ink);
	transition:
		border-color 0.2s,
		color 0.2s;
}
.icon-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}
.icon-btn .icon {
	width: 19px;
	height: 19px;
}
.theme-btn__sun,
:root[data-theme="dark"] .theme-btn__moon {
	display: none;
}
:root[data-theme="dark"] .theme-btn__sun {
	display: block;
}
.btn--cta {
	display: none;
}
.nav {
	display: none;
}
.menu-btn__close,
.menu-btn[aria-expanded="true"] .menu-btn__open {
	display: none;
}
.menu-btn[aria-expanded="true"] .menu-btn__close {
	display: block;
}
.nav__list {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav__list a {
	position: relative;
	display: block;
	padding: 10px 10px;
	font-size: 14px;
	font-weight: 650;
	color: var(--ink);
	white-space: nowrap;
}
.nav__list a::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 3px;
	height: 3px;
	border-radius: 3px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--motion) var(--ease);
}
.nav__list a:hover::after,
.nav__list .current-menu-item > a::after,
.nav__list .current_page_item > a::after {
	transform: scaleX(1);
}
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a {
	color: var(--accent);
}
@media (min-width: 1280px) {
	.hdr {
		position: sticky;
		top: 0;
	}
	.admin-bar .hdr {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
	html {
		scroll-padding-top: calc(var(--header-h) + 16px);
	}
	.hdr__inner {
		min-height: var(--header-h);
	}
	.logo--header {
		height: 42px;
	}
	.nav {
		display: block;
		min-width: 0;
	}
	.nav__list a {
		padding-inline: 8px;
		font-size: 13px;
	}
	.nav__list a::after {
		left: 8px;
		right: 8px;
	}
	.btn--cta {
		display: inline-flex;
	}
	.menu-btn {
		display: none;
	}
}
