/* ==============================> MENÚ MÓVIL */

/* -> DISPARADOR */
.mm-contenedor .mm-disparador {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	font-size: 26px;
	color: inherit;
	text-decoration: none;
	border-radius: 50%;
	-webkit-tap-highlight-color: transparent;
	transition: color .3s ease, background-color .3s ease;
}

.mm-contenedor .mm-disparador:hover {
	color: var(--e-global-color-primary);
	background: rgba(0, 0, 0, .05);
}

.mm-contenedor .mm-disparador i {
	line-height: 1;
}

/* -> PANEL Y FONDO */
.mm-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	visibility: hidden;
	transition: visibility 0s linear .35s;
}

.mm-panel.mm-visible {
	visibility: visible;
	transition: visibility 0s linear 0s;
}

.mm-panel .mm-fondo {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .5);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .35s ease;
}

.mm-panel.mm-visible .mm-fondo {
	opacity: 1;
}

/* -> LATERAL */
.mm-panel .mm-lateral {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: 86%;
	max-width: 360px;
	background: #fff;
	box-shadow: 8px 0 30px rgba(0, 0, 0, .15);
	-webkit-transform: translateX(-100%);
	transform: translateX(-100%);
	transition: transform .35s ease;
}

.mm-panel.mm-visible .mm-lateral {
	-webkit-transform: translateX(0);
	transform: translateX(0);
}

/* -> CABECERA */
.mm-panel .mm-cabecera {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	padding-top: calc(14px + env(safe-area-inset-top));
	border-bottom: 1px solid #efefef;
}

.mm-panel .mm-cabecera .mm-logo {
	display: block;
	line-height: 0;
}

.mm-panel .mm-cabecera .mm-logo img {
	display: block;
	width: auto;
	max-width: 160px;
	height: 40px;
	object-fit: contain;
}

.mm-panel .mm-cabecera .mm-cerrar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 22px;
	color: #222;
	text-decoration: none;
	border-radius: 50%;
	-webkit-tap-highlight-color: transparent;
	transition: color .3s ease, background-color .3s ease;
}

.mm-panel .mm-cabecera .mm-cerrar:hover {
	color: var(--e-global-color-primary);
	background: #f3f3f3;
}

/* -> CUERPO */
.mm-panel .mm-cuerpo {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* -> LISTAS */
.mm-panel .mm-lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-panel .mm-lista .mm-item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #f1f1f1;
}

.mm-panel .mm-lista .mm-item:last-child {
	border-bottom: 0;
}

/* -> ENLACES */
.mm-panel .mm-lista .mm-enlace {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: #222;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: color .25s ease, background-color .25s ease, padding-left .25s ease;
}

.mm-panel .mm-lista .mm-enlace:hover {
	color: var(--e-global-color-primary);
	background: #f7f7f7;
}

.mm-panel .mm-lista .mm-enlace i {
	flex: 0 0 auto;
	font-size: 16px;
	color: #aaa;
	transition: transform .3s ease, color .3s ease;
}

.mm-panel .mm-lista .mm-abierto > .mm-toggle {
	color: var(--e-global-color-primary);
}

.mm-panel .mm-lista .mm-abierto > .mm-toggle i {
	color: var(--e-global-color-primary);
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
}

/* -> VER TODO */
.mm-panel .mm-lista .mm-sub .mm-ver-todo {
	justify-content: flex-start;
	margin: 10px 16px 6px 20px;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: var(--e-global-color-primary);
	border-radius: 8px;
	transition: opacity .25s ease, transform .25s ease;
}

.mm-panel .mm-lista .mm-sub .mm-ver-todo:hover {
	color: #fff;
	background: var(--e-global-color-primary);
	opacity: .88;
	-webkit-transform: translateX(3px);
	transform: translateX(3px);
}

/* -> SUBCATEGORÍAS */
.mm-panel .mm-lista .mm-sub {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s ease;
}

.mm-panel .mm-lista .mm-abierto > .mm-sub {
	grid-template-rows: 1fr;
}

.mm-panel .mm-lista .mm-sub .mm-sub-interno {
	min-height: 0;
	overflow: hidden;
	background: #f4f5f7;
	box-shadow: inset 3px 0 0 var(--e-global-color-primary);
}

.mm-panel .mm-lista .mm-sub .mm-lista {
	margin: 0 0 8px 20px;
	border-left: 1px solid #dcdee3;
}

.mm-panel .mm-lista .mm-sub .mm-item {
	position: relative;
	border-bottom: 0;
}

.mm-panel .mm-lista .mm-sub .mm-item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 10px;
	height: 1px;
	background: #dcdee3;
}

.mm-panel .mm-lista .mm-sub .mm-sub .mm-sub-interno {
	box-shadow: none;
	background: transparent;
}

.mm-panel .mm-lista .mm-sub .mm-sub .mm-lista {
	margin-left: 12px;
}

.mm-panel .mm-lista .mm-sub .mm-sub .mm-ver-todo {
	margin-left: 16px;
	color: #fff !important;
}

.mm-panel .mm-lista .mm-sub .mm-lista .mm-enlace {
	padding: 11px 16px 11px 24px;
	font-size: 14px;
	font-weight: 400;
	color: #555;
}

.mm-panel .mm-lista .mm-sub .mm-lista .mm-enlace:hover {
	color: var(--e-global-color-primary);
	background: transparent;
	padding-left: 28px;
}

/* -> BLOQUEO DE SCROLL */
html.mm-bloqueado,
html.mm-bloqueado body {
	overflow: hidden;
}

/* ==============================> MENÚ MÓVIL RESPONSIVE */

/* -> PC (desde 769px) */
@media (min-width: 769px) {
	.mm-contenedor {
		display: none;
	}
}
