.jm-mm-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	position: relative;
	z-index: 500;
}

.jm-mm-nav__link {
	text-decoration: none;
	white-space: nowrap;
}

.jm-mm {
	position: relative;
	display: inline-block;
	z-index: 500;
}

.jm-mm__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
	line-height: 1.4;
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
}

.jm-mm__label:hover,
.jm-mm__label:focus,
.jm-mm__label:active,
.jm-mm.jm-open .jm-mm__label {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.jm-mm-nav__link,
.jm-mm-nav__link:hover,
.jm-mm-nav__link:focus {
	background: none !important;
	background-color: transparent !important;
}

.jm-mm__arrow {
	display: inline-flex;
	transition: transform .2s ease;
}

.jm-mm.jm-open .jm-mm__arrow {
	transform: rotate(180deg);
}

.jm-mm__panel {
	position: absolute;
	top: 100%;
	margin-top: 14px;
	display: flex;
	flex-wrap: nowrap;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	translate: 0 -8px;
	transition: opacity .28s ease, translate .28s ease, visibility .28s ease;
}

.jm-mm__panel.jm-mm__panel--pico::before {
	content: "";
	position: absolute;
	top: -7px;
	right: 20px;
	width: 0;
	height: 0;
	border-left: 16px solid transparent;
	border-right: 16px solid transparent;
	border-bottom: 7px solid var(--jm-mm-bg, #173c44);
}

.jm-mm__panel::after {
	content: "";
	position: absolute;
	top: calc( -1 * var(--jm-mm-gap, 14px) );
	left: 0;
	right: 0;
	height: var(--jm-mm-gap, 14px);
	background: transparent;
}

.jm-mm.jm-open .jm-mm__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	translate: 0 0;
}

.jm-mm__column {
	display: flex;
	flex-direction: column;
	min-width: 180px;
}

.jm-mm__link {
	text-decoration: none;
	white-space: nowrap;
	transition: color .15s ease;
}

/* En pantallas grandes que soportan hover real */
@media (hover: hover) and (pointer: fine) {
	.jm-mm[data-mode="hover"]:hover .jm-mm__panel,
	.jm-mm[data-mode="hover"].jm-open .jm-mm__panel {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		translate: 0 0;
	}
}

/* =========================================================
 * MENÚ MÓVIL (hamburguesa + overlay a pantalla completa)
 * ========================================================= */

.jm-mm-mobile {
	display: none; /* Solo se muestra por debajo del breakpoint (ver <style> inline por instancia) */
}

.jm-mm-mobile__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 7px;
	width: 32px;
	height: 20px;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	line-height: 0;
	vertical-align: top;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
	position: relative;
	z-index: 10;
	appearance: none;
	-webkit-appearance: none;
}

.jm-mm-mobile__toggle:hover,
.jm-mm-mobile__toggle:focus,
.jm-mm-mobile__toggle:active {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.jm-mm-mobile__toggle span {
	display: block;
	width: 32px;
	height: 2px;
	background-color: var(--jm-mmob-icon, #1c3f47);
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}

.jm-mm-mobile.is-open .jm-mm-mobile__toggle span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.jm-mm-mobile.is-open .jm-mm-mobile__toggle span:nth-child(2) {
	opacity: 0;
}
.jm-mm-mobile.is-open .jm-mm-mobile__toggle span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

.jm-mm-mobile__overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background-color: var(--jm-mmob-bg, #173c44);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(26px);
	transition: opacity .32s ease, visibility .32s ease, transform .32s ease;
	overflow: hidden;
}

.jm-mm-mobile.is-open .jm-mm-mobile__overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
}

.jm-mm-mobile__screens {
	display: flex;
	width: 200%;
	height: 100%;
	transition: transform .35s ease;
}

.jm-mm-mobile__screens.is-showing-services {
	transform: translateX(-50%);
}

.jm-mm-mobile__screen {
	width: 50%;
	height: 100%;
	flex-shrink: 0;
	overflow-y: auto;
	padding: 1em;
	box-sizing: border-box;
}

.jm-mm-mobile__topbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 20px;
}

.jm-mm-mobile__topbar--services {
	justify-content: space-between;
}

.jm-mm-mobile__close {
	width: 26px;
	height: 26px;
	position: relative;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.jm-mm-mobile__close:hover,
.jm-mm-mobile__close:focus,
.jm-mm-mobile__close:active {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.jm-mm-mobile__close span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 2px;
	background-color: var(--jm-mmob-text, #ffffff);
	border-radius: 2px;
}

.jm-mm-mobile__close span:nth-child(1) {
	transform: translate(-50%, -50%) rotate(45deg);
}
.jm-mm-mobile__close span:nth-child(2) {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.jm-mm-mobile__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
	color: var(--jm-mmob-text, #ffffff);
	font: inherit;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
}

.jm-mm-mobile__back:hover,
.jm-mm-mobile__back:focus,
.jm-mm-mobile__back:active {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.jm-mm-mobile__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.jm-mm-mobile__list > li {
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.jm-mm-mobile__list > li:first-child {
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.jm-mm-mobile__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 2px;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	text-decoration: none;
	text-align: left;
	color: var(--jm-mmob-text, #ffffff);
	font: inherit;
	font-size: 17px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: color .15s ease;
}

.jm-mm-mobile__item:hover,
.jm-mm-mobile__item:focus,
.jm-mm-mobile__item:active {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
	color: var(--jm-mmob-text-hover, #8fd9c4);
}

.jm-mm-mobile__list--services .jm-mm-mobile__item {
	font-size: 15px;
	opacity: .92;
}

.jm-mm-mobile__cta {
	display: block;
	text-align: center;
	text-decoration: none;
	background-color: var(--jm-mmob-cta-bg, #8CFFAD);
	color: var(--jm-mmob-cta-text, #0E5267);
	font-weight: 600;
	padding: 12px 18px;
	border-radius: 0;
	margin-bottom: 18px;
}

body.jm-mm-lock {
	overflow: hidden;
}
