/**
 * Cabecera transparente (desktop imagen 2 · móvil imagen 4/5).
 */

.hec-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	color: #fff;
	background: transparent;
	pointer-events: none;
	overflow: visible;
}

.hec-header__inner,
.hec-header__brand,
.hec-header__nav,
.hec-header__actions,
.hec-header__search-panel,
.hec-header__backdrop,
.hec-header__close {
	pointer-events: auto;
}

.hec-header__inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 92px;
	padding: 0;
	background: transparent;
	overflow: visible;
}

.hec-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 1rem clamp(1.25rem, 3vw, 2.5rem);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	color: #fff;
	text-decoration: none;
	flex-shrink: 0;
	z-index: 2;
}

.hec-header__brand:hover,
.hec-header__brand:focus {
	color: #fff;
}

.hec-header__mark {
	width: 28px;
	height: 28px;
	background:
		linear-gradient(135deg, transparent 42%, var(--hec-accent, #e07a2f) 42% 58%, transparent 58%),
		linear-gradient(45deg, transparent 42%, var(--hec-accent, #e07a2f) 42% 58%, transparent 58%);
	background-size: 100% 100%;
}

.hec-header__logo {
	max-height: 42px;
	width: auto;
	display: block;
}

.hec-header__name {
	color: #fff;
}

.hec-header__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 1rem;
	background: transparent;
	overflow: visible;
}

.hec-header__close {
	display: none;
}

.hec-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.35rem 1.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: visible;
}

.hec-menu > li {
	position: relative;
}

.hec-menu > li.menu-item-has-children {
	/* Extiende el área hover hacia abajo para no perder el submenú */
	padding-bottom: 1rem;
	margin-bottom: -1rem;
}

.hec-menu a {
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	opacity: 0.95;
	transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.hec-menu a:hover,
.hec-menu a:focus,
.hec-menu .current-menu-item > a,
.hec-menu .current_page_item > a {
	opacity: 1;
	color: var(--hec-accent, #f47a20);
}

.hec-menu .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding-right: 0;
}

.hec-menu .menu-item-has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	opacity: 0.75;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.hec-menu > li.menu-item-has-children:hover > a::after,
.hec-menu > li.menu-item-has-children:focus-within > a::after {
	transform: rotate(225deg) translateY(-1px);
	opacity: 1;
}

/* Submenú desktop */
.hec-menu .sub-menu {
	display: block;
	position: absolute;
	top: calc(100% - 0.65rem);
	left: 50%;
	z-index: 120;
	min-width: 220px;
	margin: 0;
	padding: 0.45rem;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 10px;
	box-shadow:
		0 4px 6px rgba(15, 23, 42, 0.04),
		0 18px 40px rgba(15, 23, 42, 0.14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 6px);
	transition:
		opacity 0.18s ease,
		transform 0.18s ease,
		visibility 0.18s ease;
}

.hec-menu .sub-menu::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -6px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-left: 1px solid rgba(15, 23, 42, 0.06);
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	transform: translateX(-50%) rotate(45deg);
}

/* Puente invisible sobre el gap */
.hec-menu .sub-menu::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 1rem;
}

.hec-menu > li:hover > .sub-menu,
.hec-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.hec-menu .sub-menu li {
	margin: 0;
	list-style: none;
}

.hec-menu .sub-menu a {
	display: block;
	position: relative;
	padding: 0.7rem 1rem 0.7rem 1.05rem;
	border-radius: 7px;
	color: #1f2937;
	font-size: 0.9rem;
	font-weight: 500;
	opacity: 1;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.hec-menu .sub-menu a:hover,
.hec-menu .sub-menu a:focus,
.hec-menu .sub-menu .current-menu-item > a,
.hec-menu .sub-menu .current_page_item > a {
	background: rgba(244, 122, 32, 0.1);
	color: var(--hec-accent, #f47a20);
}

/* Bloque naranja a la derecha (flush edge) */
.hec-header__actions {
	display: flex;
	align-items: stretch;
	flex-shrink: 0;
	margin-left: auto;
	/*background: linear-gradient(90deg, var(--hec-grad-from, #e86a12), var(--hec-grad-to, #c94a0a));*/
	background: var(--hec-grad-from, #e86a12);
	min-width: 300px;
	padding-left:20px;
}

.hec-header__search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	border: 0;
	background: transparent !important;
	color: #fff !important;
	cursor: pointer;
	padding: 0;
	appearance: none;
	box-shadow: none !important;
}

.hec-header__search:hover,
.hec-header__search:focus {
	background: transparent !important;
	color: #fff !important;
	outline: none;
}

.hec-header__actions .hec-btn--header {
	margin: 1.05rem 1.15rem 1.05rem 0;
	align-self: center;
	background: var(--hec-btn-dark-bg);
    border-color: var(--hec-btn-dark-border);
	color: #fff !important;
}

.hec-header__actions .hec-btn--header:hover,
.hec-header__actions .hec-btn--header:focus {
	background: var(--hec-btn-dark-hover);
    color: var(--hec-btn-dark-text);
	border-color: var(--hec-btn-dark-hover);
}

.hec-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 56px;
	padding: 0;
	border: 0;
	background: transparent !important;
	cursor: pointer;
	appearance: none;
	box-shadow: none !important;
}

.hec-header__toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
}

.hec-header__backdrop {
	display: none;
}

.hec-header__search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 1rem 2rem;
	background: rgba(10, 12, 16, 0.95);
}

.hec-header__search-panel form {
	display: flex;
	gap: 0.75rem;
	max-width: 720px;
	margin: 0 auto;
}

.hec-header__search-panel input {
	flex: 1;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	color: #fff;
	font: inherit;
}

.hec-header__search-panel button {
	padding: 0.85rem 1.25rem;
	border: 0;
	background: var(--hec-accent, #e07a2f);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

body.hec-nav-open {
	overflow: hidden;
}
