/* Header común de los microsites. */

body.lndw-site-shell-enabled #masthead {
	display: none !important;
}

.lndw-site-header,
.lndw-site-header * {
	box-sizing: border-box;
}

.lndw-site-header {
	--lndw-site-header-top-height: var(--lks-header-superior);
	--lndw-site-header-main-height: var(--lks-header-principal);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999;
	display: block;
	width: 100%;
	color: var(--lndw-text-primary, #ffffff);
	font-family: var(--lndw-font-family, Inter, sans-serif);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s ease, box-shadow .3s ease;
}

.lndw-site-header--sticky {
	position: fixed;
}

.lndw-site-header--sticky.is-scrolled,
.lndw-site-header.is-menu-open {
	background: var(--lks-superficie-hundida);
	box-shadow: var(--lks-sombra);
}

.lndw-site-header__top {
	min-height: var(--lndw-site-header-top-height);
	background: var(--lks-superficie-profunda);
}

.lndw-site-header__top-inner,
.lndw-site-header__main-inner {
	width: 100%;
	max-width: none;
	margin: 0;
}

.lndw-site-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: var(--lndw-site-header-top-height);
	padding-inline: var(--lks-margen-lateral);
}

.lndw-site-header__utility {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: var(--lndw-type-body-s, 14px);
	line-height: 1;
}

.lndw-site-header__icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: var(--lndw-text-primary, #ffffff);
	text-decoration: none;
	transition: color .2s ease, opacity .2s ease;
}

.lndw-site-header__icon-link:hover,
.lndw-site-header__icon-link:focus-visible {
	color: var(--lndw-brand-primary-soft, #fa8f40);
	opacity: 1;
}

.lndw-site-header__icon-link img {
	display: block;
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.lndw-site-header__languages {
	color: var(--lndw-text-primary, #ffffff);
	font-size: var(--lndw-type-body-s, 14px);
	letter-spacing: .04em;
}

.lndw-site-header__main {
	min-height: var(--lndw-site-header-main-height);
	background: transparent;
}

.lndw-site-header--sticky.is-scrolled .lndw-site-header__main,
.lndw-site-header--sticky.is-menu-open .lndw-site-header__main {
	background: transparent;
}

.lndw-site-header__main-inner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--lndw-site-header-main-height);
	padding-left: var(--lks-margen-lateral);
}

.lndw-site-header__brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 250px;
	width: 250px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.lndw-site-header__brand img {
	display: block;
	width: auto;
	height: var(--lks-logo-landing);
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}

.lndw-site-header__center {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	gap: var(--lks-esp-32);
	padding-right: 24px;
}

.lndw-site-header__nav {
	display: flex;
	align-items: center;
}

.lndw-site-header__menu,
.lndw-site-header__menu ul {
	display: flex;
	align-items: center;
	gap: var(--lks-esp-32);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lndw-site-header__menu li {
	position: relative;
	display: flex;
	align-items: center;
}

.lndw-site-header__menu a {
	position: relative;
	display: block;
	padding: 8px 0;
	color: var(--lks-texto-principal);
	font-size: var(--lks-cuerpo-s-destacado-tamano);
	font-weight: 600;
	letter-spacing: .02em;
	line-height: var(--lks-cuerpo-s-destacado-interlineado);
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.lndw-site-header__menu a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--lks-degradado-marca);
	content: '';
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .25s ease;
}

.lndw-site-header__menu a:hover::after,
.lndw-site-header__menu a:focus-visible::after,
.lndw-site-header__menu a[aria-current="page"]::after,
.lndw-site-header__menu .current-menu-item > a::after,
.lndw-site-header__menu .current-menu-ancestor > a::after,
.lndw-site-header__menu .current_page_item > a::after {
	transform: scaleX(1);
}

.lndw-site-header__menu a[aria-current="page"],
.lndw-site-header__menu .current-menu-item > a,
.lndw-site-header__menu .current-menu-ancestor > a,
.lndw-site-header__menu .current_page_item > a {
	color: var(--lndw-text-primary, #fff);
	font-weight: 600;
}

.lndw-site-header__actions {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
}

.lndw-site-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	min-height: 48px;
	margin: 0;
	padding: var(--lks-esp-12) var(--lks-esp-24);
	border: 1px solid var(--lndw-surface-white, #ffffff);
	border-radius: var(--lks-radio-12);
	background: var(--lndw-surface-white, #ffffff);
	color: var(--lndw-brand-primary-deep, #a83b00);
	font-size: var(--lndw-type-button, 16px);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease;
}

.lndw-site-header__cta:hover,
.lndw-site-header__cta:focus-visible {
	border-color: var(--lndw-surface-white, #ffffff);
	background: var(--lndw-surface-light, #f4f7f9);
	color: var(--lndw-brand-primary-deep, #a83b00);
}

.lndw-site-header__common-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 var(--lks-bloque-lks);
	width: var(--lks-bloque-lks);
	height: var(--lndw-site-header-main-height);
	background: var(--lndw-brand-primary, #f85900);
	text-decoration: none;
}

.lndw-site-header__common-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lndw-site-header__mobile-cta,
.lndw-site-header__menu-toggle {
	display: none;
}

.lndw-site-header__menu-toggle {
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 6px;
	width: 44px;
	height: 44px;
	margin: auto 12px auto 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--lndw-text-primary, #ffffff);
	cursor: pointer;
}

/* El tema aplica fondo al botón al hacer clic; la X conserva el contraste
   sin alterar el tamaño de pulsación ni el contorno de foco de teclado. */
.lndw-site-header .lndw-site-header__menu-toggle,
.lndw-site-header .lndw-site-header__menu-toggle:is(:hover, :focus, :active) {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--lndw-text-primary, #ffffff) !important;
}

.lndw-site-header__menu-toggle-lines {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 22px;
}

.lndw-site-header__menu-toggle-lines span {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 99px;
	background: currentColor;
	transition: transform .2s ease;
}

/* Astra conserva tres trazos en el marcado anterior; el diseño actual utiliza dos. */
.lndw-site-header__menu-toggle-lines span:nth-child(3) {
	display: none;
}

.lndw-site-header__menu-toggle[aria-expanded="true"] .lndw-site-header__menu-toggle-lines span:nth-child(1) {
	transform: translateY(4px) rotate(45deg);
}

.lndw-site-header__menu-toggle[aria-expanded="true"] .lndw-site-header__menu-toggle-lines span:nth-child(2) {
	transform: translateY(-4px) rotate(-45deg);
}

.lndw-site-header__screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lndw-site-header a:focus-visible,
.lndw-site-header button:focus-visible {
	outline: 2px solid var(--lndw-focus, #ffffff);
	outline-offset: 3px;
}

@media (max-width: 1280px) {
	.lndw-site-header__brand {
		flex-basis: 210px;
		width: 210px;
	}

	.lndw-site-header__menu,
	.lndw-site-header__menu ul {
		gap: 24px;
	}
}

@media (max-width: 1024px) {
	.lndw-site-header__center {
		display: contents;
	}

	.lndw-site-header__nav {
		position: absolute;
		top: var(--lndw-site-header-main-height);
		right: 0;
		left: 0;
		z-index: 1;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: var(--lks-esp-24) var(--lks-margen-lateral) var(--lks-esp-32);
		border-top: 1px solid var(--lndw-surface-elevated, #37535d);
		background: var(--lks-superficie-profunda);
	}

	.lndw-site-header--js .lndw-site-header__nav {
		display: none;
	}

	.lndw-site-header--js.is-menu-open .lndw-site-header__nav {
		display: flex;
	}

	.lndw-site-header__menu,
	.lndw-site-header__menu ul {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.lndw-site-header__menu li {
		display: block;
	}

	.lndw-site-header__menu a {
		min-height: 48px;
		padding: 12px 0;
		border-bottom: 1px solid var(--lndw-surface-elevated, #37535d);
		color: var(--lndw-text-primary, #fff);
		font-size: 16px;
		font-weight: 500;
		line-height: 24px;
	}

	.lndw-site-header__menu a::after {
		display: none;
	}

	.lndw-site-header__mobile-cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		align-self: flex-start;
		min-height: 48px;
		margin-top: 16px;
		padding: 0 28px;
		border-radius: var(--lks-radio-12);
		background: var(--lks-cta-fondo);
		color: var(--lks-cta-texto);
		font-size: var(--lndw-type-button, 16px);
		font-weight: 600;
		text-decoration: none;
	}

	.lndw-site-header__mobile-cta:hover {
		background: var(--lks-cta-hover);
		color: var(--lks-texto-principal);
	}

	.lndw-site-header__cta {
		display: none;
	}

	.lndw-site-header__menu-toggle {
		display: flex;
	}
}

@media (max-width: 767px) {
	.lndw-site-header {
		--lndw-site-header-main-height: var(--lks-header-principal);
	}

	.lndw-site-header__top-inner {
		padding-inline: var(--lks-margen-lateral);
	}

	.lndw-site-header__main-inner {
		padding-left: var(--lks-margen-lateral);
	}

	.lndw-site-header__brand {
		flex: 0 1 220px;
		width: auto;
		min-width: 0;
		margin-right: 12px;
	}

	.lndw-site-header__brand img {
		height: var(--lks-logo-landing);
		max-height: var(--lks-logo-landing);
	}

	.lndw-site-header__nav {
		padding-right: var(--lks-margen-lateral);
	}

	.lndw-site-header__common-logo,
	.lndw-site-header__common-logo img {
		width: var(--lks-bloque-lks);
		height: var(--lks-header-principal);
	}

	.lndw-site-header__common-logo {
		flex-basis: var(--lks-bloque-lks);
	}

	.lndw-site-header__menu-toggle {
		margin-right: 4px;
	}

	.lndw-site-header__utility {
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lndw-site-header *,
	.lndw-site-header *::before,
	.lndw-site-header *::after {
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Se conserva la línea de navegación ::after y el color con o sin foco. */
.lndw-site-header a:any-link { text-decoration: none !important; }
.lndw-site-header .lndw-site-header__icon-link:any-link { color: var(--lndw-text-primary, #fff) !important; }
.lndw-site-header .lndw-site-header__icon-link:any-link:is(:hover, :focus-visible) { color: var(--lndw-brand-primary-soft, #fa8f40) !important; }
.lndw-site-header .lndw-site-header__menu a:any-link { color: var(--lks-texto-principal) !important; }
.lndw-site-header .lndw-site-header__cta:any-link { color: var(--lndw-brand-primary-deep, #a83b00) !important; }
.lndw-site-header .lndw-site-header__mobile-cta:any-link { color: var(--lks-cta-texto) !important; }
.lndw-site-header .lndw-site-header__mobile-cta:any-link:hover { color: var(--lks-texto-principal) !important; }
@media (max-width: 1024px) {
	.lndw-site-header .lndw-site-header__menu a:any-link { color: var(--lndw-text-primary, #fff) !important; }
}
