/**
 * Cabecera y pie Infofase — TODO bajo .infofase-hf para no chocar con Elementor/WooCommerce.
 * (Antes .hdr, .ftr, .mega-item, etc. rompían bloques que usaban las mismas clases.)
 */
.infofase-hf,
.infofase-hf *::before,
.infofase-hf *::after {
	box-sizing: border-box;
}
.infofase-hf img {
	max-width: 100%;
	height: auto;
	display: block;
}
.infofase-hf a {
	text-decoration: none;
	color: inherit;
}

/*
 * Z-index por encima de heroes Elementor (suelen ir a 99999 / capas GPU).
 * Si el mega queda por debajo, el contenido “ARQUITECTURA…” se mezcla con el menú.
 */
.infofase-hf--header {
	position: relative;
	z-index: 999900;
	overflow: visible !important;
}

.infofase-hf .hdr {
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	position: sticky;
	top: 0;
	z-index: 999901;
	overflow: visible !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.infofase-hf .hdr-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	min-height: 64px;
	height: auto;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	overflow: visible !important;
}
.infofase-hf .hdr-logo {
	flex-shrink: 0;
}
.infofase-hf .hdr-logo img {
	height: 36px;
	width: auto;
}
.infofase-hf .hdr-nav {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 0;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 999902;
	overflow: visible !important;
	flex: 1 1 auto;
	justify-content: center;
	min-width: min-content;
	flex-wrap: nowrap;
}
.infofase-hf .hdr-nav > li {
	position: relative;
}
/* Crítico: si el <li> de Servicios es relative, el mega queda anclado al ancho de la palabra y se solapa el hero encima. */
.infofase-hf .hdr-nav > li.has-mega {
	position: static;
}
.infofase-hf .hdr-nav > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 22px 12px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.18s;
	line-height: 1;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
	flex-shrink: 0;
}
.infofase-hf .hdr-nav > li > a:hover {
	color: #f26522;
}
.infofase-hf .hdr-nav > li > a.dd::after {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}
/* Fixed + z-index muy alto = por encima del hero Elementor (diagramas, bloques oscuros) */
.infofase-hf .hdr-mega {
	position: fixed;
	left: 0;
	right: 0;
	top: 64px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background-color: #ffffff;
	background-image: none;
	border-top: 2.5px solid #f26522;
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
	z-index: 999999;
	pointer-events: none;
	max-height: calc(100vh - 64px);
	overflow-x: visible;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	isolation: isolate;
	mix-blend-mode: normal;
	transform: translateZ(0);
}

body.admin-bar .infofase-hf .hdr-mega {
	top: calc(64px + 32px);
	max-height: calc(100vh - 64px - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .infofase-hf .hdr-mega {
		top: calc(64px + 46px);
		max-height: calc(100vh - 64px - 46px);
	}
}

.infofase-hf .hdr-nav > li:hover .hdr-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.infofase-hf .hdr-mega-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px clamp(20px, 5vw, 48px) 24px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(16px, 3vw, 32px);
	background-color: #ffffff;
}
/* Evita que el texto largo ensanche la columna y “coma” el margen derecho */
.infofase-hf .hdr-mega-inner > .mega-col {
	min-width: 0;
}
.infofase-hf .hdr-mega-inner .mega-item .mtx {
	min-width: 0;
}
.infofase-hf .hdr-mega-inner .mega-item .mt,
.infofase-hf .hdr-mega-inner .mega-item .md {
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.infofase-hf .mega-col-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #f26522;
	padding: 0 10px 8px;
	margin-bottom: 4px;
	border-bottom: 1px solid #f0f0f0;
}
.infofase-hf .mega-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s;
	color: #1a1a1a;
}
.infofase-hf .mega-item:hover {
	background: #fff5ef;
}
.infofase-hf .mega-item .mi {
	width: 32px;
	height: 32px;
	min-width: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border-radius: 8px;
	font-size: 15px;
	transition: background 0.15s;
	color: #f26522;
}
.infofase-hf .mega-item:hover .mi {
	background: #ffeadc;
}
.infofase-hf .mega-item .mt {
	font-size: 13.5px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.25;
	transition: color 0.15s;
}
.infofase-hf .mega-item:hover .mt {
	color: #f26522;
}
.infofase-hf .mega-item .md {
	font-size: 11.5px;
	font-weight: 400;
	color: #999;
	line-height: 1.3;
	margin-top: 1px;
}
.infofase-hf .mega-item:hover .md {
	color: #c75a1a;
}
.infofase-hf .mega-item .mtx {
	display: flex;
	flex-direction: column;
}
.infofase-hf .hdr-r {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
	flex-shrink: 0;
}
.infofase-hf .hdr-cta {
	background: #f26522;
	color: #fff !important;
	font-size: 0.84rem;
	font-weight: 700;
	padding: 9px 20px;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.2s;
	white-space: nowrap;
}
.infofase-hf .hdr-cta:hover {
	background: #d4521a;
	color: #fff;
}
.infofase-hf .hdr-acc,
.infofase-hf .hdr-dist {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: #444;
	text-decoration: none;
	transition: color 0.18s;
	white-space: nowrap;
}
.infofase-hf .hdr-acc:hover,
.infofase-hf .hdr-dist:hover {
	color: #f26522;
}
.infofase-hf .hdr-dist {
	font-weight: 600;
}
.infofase-hf .hbg {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 6px;
	background: none;
	border: none;
}
.infofase-hf .hbg span {
	width: 22px;
	height: 2px;
	background: #333;
	border-radius: 2px;
}
.infofase-hf .mnav {
	display: none;
	background: #fff;
	padding: 8px 0 16px;
	border-top: 1px solid #eee;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}
.infofase-hf .mnav.open {
	display: block;
}
.infofase-hf .mnav a {
	display: block;
	padding: 10px 24px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #333;
	border-left: 3px solid transparent;
	text-decoration: none;
	transition: all 0.15s;
}
.infofase-hf .mnav a:hover {
	color: #f26522;
	border-left-color: #f26522;
	background: #fff5ef;
}
.infofase-hf .mnav .sub {
	padding-left: 40px;
	font-size: 0.83rem;
	color: #666;
}
.infofase-hf .hdr-mob-actions {
	display: none;
	align-items: center;
	gap: 8px;
}

.infofase-hf .ftr {
	background: #fff;
	border-top: 1px solid #e5e5e5;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin-top: auto;
}
.infofase-hf .ftr-w {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
.infofase-hf .ftr-main {
	display: grid;
	grid-template-columns: 2fr 1.1fr 1.1fr 1.5fr;
	gap: 40px;
	padding: 52px 0 44px;
	border-bottom: 1px solid #e5e5e5;
}
.infofase-hf .ftr-brand p {
	font-size: 0.83rem;
	color: #666;
	line-height: 1.65;
	margin: 10px 0 14px;
}
.infofase-hf .ftr-logo img {
	height: 32px;
	width: auto;
}
.infofase-hf .ftr-anydesk {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #333;
	text-decoration: none;
	transition: color 0.18s;
}
.infofase-hf .ftr-anydesk:hover {
	color: #f26522;
}
.infofase-hf .ftr-col h4 {
	font-size: 0.8rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.infofase-hf .ftr-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.infofase-hf .ftr-col ul a {
	font-size: 0.83rem;
	color: #666;
	text-decoration: none;
	transition: color 0.18s;
}
.infofase-hf .ftr-col ul a:hover {
	color: #f26522;
}
.infofase-hf .ftr-partner img {
	height: 42px;
	width: auto;
	margin-top: 20px;
}
.infofase-hf .ftr-contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.infofase-hf .fc-r {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.82rem;
	color: #666;
}
.infofase-hf .fc-r .ic {
	color: #f26522;
	flex-shrink: 0;
}
.infofase-hf .fc-r a {
	color: #666;
	text-decoration: none;
	transition: color 0.18s;
}
.infofase-hf .fc-r a:hover {
	color: #f26522;
}
.infofase-hf .ftr-soc {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}
.infofase-hf .ftr-soc a {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: 1.5px solid #e5e5e5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	text-decoration: none;
	transition: all 0.18s;
}
.infofase-hf .ftr-soc a:hover {
	border-color: #f26522;
	color: #f26522;
	background: #fff5ef;
}
.infofase-hf .ftr-bot {
	padding: 16px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	border-bottom: 1px solid #e5e5e5;
}
.infofase-hf .ftr-legal {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}
.infofase-hf .ftr-legal a {
	font-size: 0.76rem;
	color: #aaa;
	text-decoration: none;
	transition: color 0.18s;
}
.infofase-hf .ftr-legal a:hover {
	color: #f26522;
}
.infofase-hf .ftr-pw {
	font-size: 0.76rem;
	color: #aaa;
}
.infofase-hf .ftr-pw a {
	color: #888;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.18s;
}
.infofase-hf .ftr-pw a:hover {
	color: #f26522;
}
.infofase-hf .ftr-kit {
	padding: 22px 0;
	text-align: center;
}
.infofase-hf .ftr-kit p {
	font-size: 0.68rem;
	color: #bbb;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.infofase-hf .ftr-kit img {
	height: 40px;
	width: auto;
	margin: 0 auto;
}

@media (max-width: 880px) {
	.infofase-hf .hdr-mega {
		display: none;
	}
	.infofase-hf .hdr-nav {
		display: none;
	}
	.infofase-hf .hdr-r {
		display: none !important;
	}
	.infofase-hf .hdr-mob-actions {
		display: flex !important;
	}
	.infofase-hf .hbg {
		display: flex;
	}
	.infofase-hf .hdr-mob-actions .hdr-cta {
		font-size: 0.75rem;
		padding: 8px 12px;
	}
	.infofase-hf .hdr-mob-actions .hdr-dist {
		font-size: 0.75rem;
		padding: 8px 12px;
		border: 1.5px solid #f26522;
		border-radius: 50px;
		color: #f26522 !important;
		font-weight: 700;
	}
	.infofase-hf .ftr-main {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}
}

@media (max-width: 520px) {
	.infofase-hf .ftr-main {
		grid-template-columns: 1fr;
	}
}
