/* Zulumar Megamenú (widget de Elementor) – diseño Header V7 */
.zh {
	--zh-navy: #000e4b;
	--zh-coral: #fe525f;
	--zh-line: #e5e5ea;
	--zh-gray: #8e8e93;
	--zh-bg: #fff;
	--zh-tip-bg: var(--zh-navy);
	--zh-top-gap: 32px;
	--zh-icons-gap: 24px;
	--zh-col-w: 236px;
	--zh-max: 1440px;
	--zh-top: 0px; /* lo calcula el JS: borde inferior de la cabecera */
	color: var(--zh-navy);
	font-family: "Montserrat", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	width: 100%;
}
.zh *, .zh *::before, .zh *::after { box-sizing: border-box; }
.zh ul { list-style: none; margin: 0; padding: 0; }
.zh li { margin: 0; }
.zh a { color: inherit; text-decoration: none; box-shadow: none; }
.zh button,
.zh button:hover,
.zh button:focus {
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
}
.zh :where(button) { margin: 0; padding: 0; }
.zh button:focus-visible, .zh a:focus-visible { outline: 2px solid var(--zh-coral); outline-offset: 3px; border-radius: 2px; }
.zh [hidden] { display: none !important; }
.zh-ico { display: block; flex: none; width: 24px; height: 24px; }
.zh-empty { padding: 12px; border: 1px dashed #c00; color: #c00; font: 14px/1.4 sans-serif; }

/* Barra */
.zh-bar { display: flex; align-items: center; justify-content: flex-end; gap: var(--zh-top-gap); }
.zh-top { display: flex; align-items: center; gap: var(--zh-top-gap); flex-wrap: nowrap; }
.zh-top-btn, .zh-top-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font: 500 16px/24px "Montserrat", sans-serif;
	color: var(--zh-navy);
	white-space: nowrap;
}
.zh .zh-top-btn { display: inline-flex; color: var(--zh-navy); font: 500 16px/24px "Montserrat", sans-serif; }
.zh-top-btn .zh-ico { transition: transform .2s ease; }
.zh .zh-top-btn[aria-expanded="true"] { font-weight: 600; }
.zh-top-btn[aria-expanded="true"] .zh-ico { transform: rotate(180deg); }
.zh a.zh-top-link:hover, .zh .zh-top-btn:hover { color: var(--zh-coral); }
.zh-top-item.is-current > .zh-top-link { font-weight: 600; }

/* Iconos + tooltips (encima del icono, como en el diseño) */
.zh-icons { display: flex; align-items: center; gap: var(--zh-icons-gap); flex: none; }
.zh .zh-icon { position: relative; display: inline-flex; color: var(--zh-navy); }
.zh .zh-icon:hover { color: var(--zh-coral); }
.zh-icon[data-tip]::after,
.zh-icon[data-tip]::before { position: absolute; left: 50%; opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 2; }
.zh-icon[data-tip]::after {
	content: attr(data-tip);
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	background: var(--zh-tip-bg);
	color: #fff;
	font: 500 12px/24px "Roboto", sans-serif;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
}
.zh-icon[data-tip]::before {
	content: "";
	bottom: calc(100% + 4px);
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: var(--zh-tip-bg);
	border-bottom: 0;
}
@media (hover: hover) {
	.zh-icon[data-tip]:hover::after, .zh-icon[data-tip]:hover::before { opacity: 1; }
}
.zh-icon[aria-expanded="true"]::after, .zh-icon[aria-expanded="true"]::before { opacity: 0 !important; }
.zh-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--zh-coral);
	color: #fff;
	font: 600 10px/16px "Roboto", sans-serif;
	text-align: center;
}
.zh .zh-burger { display: none; }
.zh-burger .zh-ico-close { display: none; }
.zh-burger[aria-expanded="true"] .zh-ico-menu { display: none; }
.zh-burger[aria-expanded="true"] .zh-ico-close { display: block; }

/* Faldones: ancho completo de la ventana, justo debajo de la cabecera */
.zh-panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--zh-top);
	z-index: 9990;
	background: var(--zh-bg);
	border-bottom: 1px solid var(--zh-line);
	max-height: calc(100vh - var(--zh-top));
	overflow-y: auto;
	overscroll-behavior: contain;
	animation: zh-fade .18s ease;
	text-align: left;
}
@keyframes zh-fade { from { opacity: 0; } to { opacity: 1; } }
.zh-cols {
	max-width: var(--zh-max);
	margin: 0 auto;
	padding: 26px 32px 40px;
	display: flex;
	align-items: stretch;
}
.zh-col {
	flex: 0 1 calc(var(--zh-col-w) + 24px);
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-right: 24px;
}
.zh-col + .zh-col { border-left: 1px solid var(--zh-line); padding-left: 24px; flex-basis: calc(var(--zh-col-w) + 49px); }
.zh .zh-col-title { margin: 0; font: 600 18px/24px "Montserrat", sans-serif; color: var(--zh-navy); }
.zh .zh-link { display: block; font: 400 16px/24px "Roboto", sans-serif; color: var(--zh-navy); }
.zh a.zh-link:hover, .zh a.zh-col-title:hover, .zh a.zh-link[aria-current="page"] { color: var(--zh-coral); }
.zh-single + .zh-single { margin-top: -16px; }

/* Acordeones */
.zh-acc { display: flex; flex-direction: column; gap: 16px; }
.zh .zh-acc-btn {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	text-align: left;
	font: 500 18px/24px "Roboto", sans-serif;
	color: var(--zh-navy);
}
.zh .zh-acc-btn:hover { color: var(--zh-coral); }
.zh-acc-btn .zh-ico { transition: transform .2s ease; }
.zh-acc-btn[aria-expanded="true"] .zh-ico { transform: rotate(180deg); }
.zh .zh-acc-list { display: flex; flex-direction: column; gap: 16px; padding-left: 28px; }

/* Buscador */
.zh .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.zh-searchbar { display: none; flex: 1 1 auto; min-width: 0; }
.zh--searching:not(.zh--mobile) .zh-nav { display: none; }
.zh--searching:not(.zh--mobile) .zh-searchbar { display: block; }
.zh-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	margin: 0;
	padding: 0 4px 0 12px;
	background: var(--zh-field-bg, rgba(44, 48, 50, .04));
	border-radius: 4px;
	color: var(--zh-gray);
}
.zh-search-form > .zh-ico { width: 18px; height: 18px; }
.zh .zh-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font: 400 15px/20px "Roboto", sans-serif;
	color: var(--zh-navy);
	-webkit-appearance: none;
	appearance: none;
}
.zh .zh-search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.zh .zh-search-form input[type="search"]::placeholder { color: var(--zh-gray); opacity: 1; }
.zh .zh-search-clear { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; color: var(--zh-navy); }
.zh .zh-search-clear:hover { color: var(--zh-coral); }
.zh-search-clear .zh-ico { width: 16px; height: 16px; }
.zh .zh-icons .zh-search-btn[aria-expanded="true"],
.zh .zh-icons .zh-search-btn[aria-expanded="true"]:hover {
	background: var(--zh-navy);
	color: #fff;
	border-radius: 4px;
	padding: 4px;
	margin: -4px;
}
.zh-search { top: calc(var(--zh-top) - 1px); }
.zh-search-inner {
	margin-left: var(--zh-sl, 72px);
	width: var(--zh-sw, auto);
	max-width: calc(100% - var(--zh-sl, 72px));
	padding: 0 0 40px;
}
.zh-search-feedback { font: 400 16px/24px "Roboto", sans-serif; color: var(--zh-navy); }
.zh-sf-label { margin: 0 0 16px; font: 400 11px/16px "Roboto", "Inter", sans-serif; color: var(--zh-gray); }
.zh-sf-list { display: flex; flex-direction: column; gap: 16px; }
.zh .zh-sf-list a { display: block; color: var(--zh-navy); }
.zh .zh-sf-list a:hover, .zh .zh-sf-list a:focus-visible { color: var(--zh-coral); }
.zh-sf-list mark { background: none; color: inherit; font-weight: 600; }
.zh-sf-none { margin: 0 0 16px; color: var(--zh-gray); }
.zh .zh-sf-guide { display: inline-flex; align-items: center; gap: 4px; color: var(--zh-navy); }
.zh .zh-sf-guide:hover { color: var(--zh-coral); }
.zh-sf-guide .zh-ico { width: 16px; height: 16px; }
.zh-sf-loading::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 6px; vertical-align: -1px; border: 2px solid var(--zh-line); border-top-color: var(--zh-navy); border-radius: 50%; animation: zh-spin .7s linear infinite; }
@keyframes zh-spin { to { transform: rotate(360deg); } }
.zh--mobile .zh-search { top: var(--zh-top); }
.zh--mobile .zh-search-inner { margin: 0; width: auto; max-width: none; padding: 0 24px 32px; }
.zh--mobile .zh-search-mslot:not(:empty) { margin-bottom: 32px; }

/* Menú móvil (por niveles) */
.zh-mobile { overflow-x: hidden; }
.zh-m-stage { position: relative; overflow: hidden; }
.zh-m-screen { padding: 0 24px 32px; }
.zh-m-screen.is-entering { animation: zh-slide-in .28s ease both; }
.zh-m-screen.is-back { animation: zh-slide-back .28s ease both; }
@keyframes zh-slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes zh-slide-back { from { transform: translateX(-30%); opacity: .4; } to { transform: none; opacity: 1; } }
.zh-m-list { display: flex; flex-direction: column; gap: 32px; }
.zh .zh-m-list.is-sub { padding-left: 40px; }
.zh .zh-m-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	text-align: left;
	font: 500 16px/24px "Montserrat", sans-serif;
	color: var(--zh-navy);
}
.zh a.zh-m-item:hover, .zh .zh-m-item:hover { color: var(--zh-coral); }
.zh-m-item .zh-ico { width: 20px; height: 20px; }
.zh .zh-m-back {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 32px;
	text-align: left;
	font: 400 16px/24px "Roboto", sans-serif;
}
.zh .zh-m-back span { color: var(--zh-gray); }
.zh-m-back .zh-ico { color: var(--zh-navy); }
.zh-m-screen:first-child { padding-top: 0; }

/* Modo móvil: lo activa el JS según el punto de corte del widget */
.zh--mobile .zh-nav, .zh--mobile .zh-mega { display: none !important; }
.zh.zh--mobile .zh-burger { display: inline-flex; }
.zh--mobile .zh-icon .zh-ico { width: 20px; height: 20px; }
.zh:not(.zh--mobile) .zh-mobile { display: none !important; }
.zh--mobile .zh-mobile { padding-top: 8px; }

html.zh-lock, html.zh-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	.zh *, .zh-panel { animation: none !important; transition: none !important; }
}
/* En el editor de Elementor, que el faldón no tape el panel */
.elementor-editor-active .zh-panel { z-index: 9989; }
