/* Header Theme — Topbar + Header + Sidebar móvil */

.hec-site-header-wrap {
	position: relative;
	z-index: 1000;
	width: 100%;
}

/* Anula colores de links de Hello/Elementor (#c36 / #336) dentro del header */
.hec-site-header-wrap a,
.hec-site-header-wrap a:visited {
	color: inherit;
	text-decoration: none;
	background: transparent;
}

.hec-site-header-wrap a:hover,
.hec-site-header-wrap a:focus,
.hec-site-header-wrap a:active {
	color: inherit;
	background: transparent;
}

.hec-container {
	width: 100%;
	max-width: var(--hec-content-width, 1320px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* ---------- Topbar ---------- */
.hec-topbar {
	background: var(--hec-topbar-bg, #141d3c);
	color: var(--hec-topbar-text, #ffffff);
	font-size: 13px;
	line-height: 1.4;
	position: relative;
	overflow: hidden;
}

.hec-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 42px;
	gap: 16px;
	position: relative;
	z-index: 1;
}

.hec-topbar__left,
.hec-topbar__right {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.hec-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.hec-topbar__item:hover {
	opacity: 0.85;
	color: inherit;
}

.hec-topbar__follow {
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 12px;
}

.hec-topbar__socials {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.hec-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	text-decoration: none;
	opacity: 0.95;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hec-social-link:hover {
	opacity: 1;
	transform: translateY(-1px);
	color: inherit;
}

/* Diagonal decorativo topbar (lado derecho) */
.hec-topbar::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 42%;
	max-width: 520px;
	height: 100%;
	background: linear-gradient(
		105deg,
		transparent 0%,
		transparent 48%,
		rgba(0, 0, 0, 0.18) 48%,
		rgba(0, 0, 0, 0.18) 100%
	);
	pointer-events: none;
	z-index: 0;
}

/* ---------- Header ---------- */
.hec-header {
	background: var(--hec-header-bg, #ffffff);
	color: var(--hec-header-text, #141d3c);
	border-bottom: 1px solid rgba(20, 29, 60, 0.06);
	position: relative;
}

.hec-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 88px;
}

.hec-header__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	min-width: 0;
}

.hec-brand-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.hec-brand-logo__img {
	display: block;
	height: var(--hec-logo-height, 48px);
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.hec-brand-logo--sidebar .hec-brand-logo__img {
	height: calc(var(--hec-logo-height, 48px) * 0.85);
}

.hec-logo-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--hec-primary, #eecb68);
	font-weight: 700;
	font-style: italic;
	font-size: 26px;
	letter-spacing: -0.02em;
	line-height: 1;
}

.hec-logo-text:hover {
	color: var(--hec-primary, #eecb68);
}

.hec-header__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.hec-nav-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hec-nav-menu > .menu-item {
	position: relative;
	margin: 0;
}

.hec-header .hec-nav-link {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	color: var(--hec-header-text, #141d3c);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	transition: color 0.2s ease;
	background: transparent;
}

.hec-header .hec-nav-link:hover,
.hec-header .hec-nav-link:focus,
.hec-header .hec-nav-link:active,
.hec-header .hec-nav-menu > .menu-item.current-menu-item > .hec-nav-link,
.hec-header .hec-nav-menu > .menu-item.current-menu-ancestor > .hec-nav-link,
.hec-header .hec-nav-menu > .menu-item:hover > .hec-nav-link {
	color: var(--hec-primary, #eecb68);
	background: transparent;
}

/* Dropdown desktop */
.hec-nav-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(20, 29, 60, 0.12);
	border-radius: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
	z-index: 50;
}

.hec-nav-menu > .menu-item:hover > .sub-menu,
.hec-nav-menu > .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.hec-header .hec-nav-menu .sub-menu .hec-nav-link {
	display: block;
	padding: 10px 18px;
	white-space: nowrap;
	color: var(--hec-header-text, #141d3c);
}

.hec-header .hec-nav-menu .sub-menu .hec-nav-link:hover,
.hec-header .hec-nav-menu .sub-menu .hec-nav-link:focus {
	color: var(--hec-primary, #eecb68);
}

.hec-nav-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

.hec-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.hec-header .hec-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--hec-cta-bg, #eecb68);
	color: var(--hec-cta-text, #141d3c);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	padding: 16px 22px;
	border-radius: 6px;
	transition: filter 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.hec-header .hec-cta-btn:hover,
.hec-header .hec-cta-btn:focus,
.hec-header .hec-cta-btn:active {
	filter: brightness(0.96);
	transform: translateY(-1px);
	color: var(--hec-cta-text, #141d3c);
	background: var(--hec-cta-bg, #eecb68);
}

.hec-cta-arrow {
	flex-shrink: 0;
}

/* Hamburguesa: solo responsive */
.hec-header .hec-menu-toggle,
.hec-header .hec-menu-toggle:hover,
.hec-header .hec-menu-toggle:focus,
.hec-header .hec-menu-toggle:active {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: var(--hec-primary, #eecb68);
	color: var(--hec-secondary, #141d3c);
	cursor: pointer;
	box-shadow: none;
	outline: none;
}

.hec-menu-toggle__bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 18px;
}

.hec-menu-toggle__bars span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

.hec-menu-toggle__bars span:nth-child(1) { width: 100%; }
.hec-menu-toggle__bars span:nth-child(2) { width: 75%; }
.hec-menu-toggle__bars span:nth-child(3) { width: 90%; }

/* ---------- Overlay + Sidebar ---------- */
.hec-sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 14, 28, 0.55);
	z-index: 1100;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hec-sidebar-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.hec-sidebar-overlay[hidden] {
	display: block !important;
	pointer-events: none;
}

.hec-sidebar-overlay.is-active[hidden] {
	pointer-events: auto;
}

.hec-mobile-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: min(380px, 88vw);
	height: 100%;
	max-height: 100dvh;
	background: var(--hec-sidebar-bg, #141d3c);
	color: var(--hec-sidebar-text, #ffffff);
	z-index: 1200;
	padding: 24px 22px 32px;
	box-sizing: border-box;
	overflow-y: auto;
	transform: translateX(105%);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
	-webkit-overflow-scrolling: touch;
}

.hec-mobile-sidebar.is-open {
	transform: translateX(0);
}

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

.hec-mobile-sidebar__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.hec-mobile-sidebar__brand .hec-brand-logo__img {
	height: calc(var(--hec-logo-height, 48px) * 0.85);
}

.hec-sidebar-close {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.12);
	color: var(--hec-sidebar-text, #ffffff);
	cursor: pointer;
	transition: background 0.2s ease;
}

.hec-sidebar-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.hec-mobile-sidebar__desc {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.78;
}

.hec-mobile-menu {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hec-mobile-menu > .menu-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hec-mobile-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.hec-mobile-sidebar .hec-mobile-link {
	flex: 1 1 auto;
	display: block;
	padding: 14px 0;
	color: var(--hec-sidebar-text, #ffffff);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	background: transparent;
}

.hec-mobile-sidebar .hec-mobile-link:hover,
.hec-mobile-sidebar .hec-mobile-link:focus,
.hec-mobile-sidebar .hec-mobile-link:active {
	color: var(--hec-primary, #eecb68);
	background: transparent;
}

.hec-submenu-toggle {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--hec-sidebar-text, #ffffff);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.25s ease;
}

.hec-submenu-toggle:hover {
	background: rgba(255, 255, 255, 0.18);
}

.hec-submenu-toggle[aria-expanded="true"] {
	transform: rotate(90deg);
	background: var(--hec-primary, #eecb68);
	color: var(--hec-secondary, #141d3c);
}

.hec-mobile-submenu {
	list-style: none;
	margin: 0;
	padding: 0 0 8px 12px;
	display: none;
}

.hec-mobile-menu > .menu-item.is-open > .hec-mobile-submenu {
	display: block;
}

.hec-mobile-submenu .hec-mobile-link {
	padding: 10px 0;
	font-size: 14px;
	opacity: 0.9;
}

.hec-mobile-sidebar__contact-title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: var(--hec-sidebar-text, #ffffff);
}

.hec-mobile-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hec-mobile-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.92;
}

.hec-mobile-contact-list svg {
	flex-shrink: 0;
	margin-top: 2px;
	opacity: 0.9;
}

.hec-mobile-contact-list a {
	color: inherit;
	text-decoration: none;
}

.hec-mobile-contact-list a:hover {
	color: var(--hec-primary, #eecb68);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hec-header__nav {
		display: none;
	}

	.hec-header .hec-cta-btn {
		display: none;
	}

	/* Hamburguesa: líneas oscuras, sin caja de color (como el diseño) */
	.hec-header .hec-menu-toggle,
	.hec-header .hec-menu-toggle:hover,
	.hec-header .hec-menu-toggle:focus,
	.hec-header .hec-menu-toggle:active {
		display: inline-flex;
		background: transparent;
		color: var(--hec-header-text, #141d3c);
		width: 40px;
		height: 40px;
	}

	.hec-menu-toggle__bars {
		width: 22px;
		gap: 6px;
	}

	.hec-menu-toggle__bars span {
		height: 2px;
		width: 100%;
		background: currentColor;
	}

	.hec-menu-toggle__bars span:nth-child(1),
	.hec-menu-toggle__bars span:nth-child(2),
	.hec-menu-toggle__bars span:nth-child(3) {
		width: 100%;
	}

	.hec-header__inner {
		min-height: 72px;
	}

	.hec-topbar__left {
		display: none;
	}

	.hec-topbar__inner {
		justify-content: flex-end;
		min-height: 44px;
	}

	.hec-topbar__right {
		gap: 12px;
		position: relative;
		z-index: 2;
	}

	/* Diseño 2 tonos con corte diagonal (solo responsive) */
	.hec-topbar::before {
		content: "";
		position: absolute;
		top: 0;
		right: -8%;
		width: 72%;
		height: 100%;
		background: rgba(0, 0, 0, 0.32);
		transform: skewX(-20deg);
		transform-origin: top right;
		pointer-events: none;
		z-index: 0;
	}

	.hec-topbar::after {
		content: "";
		position: absolute;
		top: 0;
		right: calc(72% - 14px);
		left: auto;
		width: 2px;
		max-width: none;
		height: 100%;
		background: rgba(255, 255, 255, 0.28);
		box-shadow: 5px 0 0 rgba(255, 255, 255, 0.12);
		transform: skewX(-20deg);
		border-left: 0;
		pointer-events: none;
		z-index: 0;
	}
}

@media (max-width: 575px) {
	.hec-topbar::before {
		width: 82%;
		right: -10%;
	}

	.hec-topbar::after {
		right: calc(82% - 14px);
	}

	.hec-logo-text {
		font-size: 22px;
	}

	.hec-mobile-sidebar {
		width: min(340px, 92vw);
		padding: 20px 18px 28px;
	}
}
