/* RF Mega Menu — los valores se controlan desde Ajustes → RF Mega Menu (variables CSS) */

.rf-mm {
	position: relative;
	display: inline-block;
}

/* Botón hamburguesa — reforzado para ganar a los estilos globales de botones del tema/Elementor */
.rf-mm button.rf-mm__toggle,
.rf-mm button.rf-mm__toggle:hover,
.rf-mm button.rf-mm__toggle:focus,
.rf-mm button.rf-mm__toggle:active {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--rfmm-btn-bg, #1e2a38) !important;
	background-color: var(--rfmm-btn-bg, #1e2a38) !important;
	background-image: none !important;
	color: var(--rfmm-btn-text, #fff) !important;
	font-weight: 600;
	letter-spacing: .5px;
	padding: 14px 28px;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer;
	line-height: 1;
}
.rf-mm button.rf-mm__toggle:hover {
	filter: brightness(1.12);
}
.rf-mm__bars span {
	display: block;
	width: 22px;
	height: 3px;
	background: var(--rfmm-btn-text, #fff);
	margin: 4px 0;
	border-radius: 2px;
}

/* Panel principal (categorías en vertical) */
.rf-mm__panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: var(--rfmm-panel-w, 340px);
	background: var(--rfmm-panel-bg, #fff);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
	z-index: 9999;
}
.rf-mm.is-open .rf-mm__panel {
	display: block;
}

.rf-mm__cats {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rf-mm__cat > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 18px;
	color: var(--rfmm-text, #333);
	font-weight: 500;
	text-decoration: none;
}
.rf-mm__cat > a > span {
	flex: 1;
}
.rf-mm__cat.has-sub > a::after {
	content: "\203A"; /* › */
	color: #999;
}
.rf-mm__cat:hover {
	background: var(--rfmm-hover-bg, #f2f8fc);
}
.rf-mm__cat:hover > a {
	color: var(--rfmm-accent, #1a8fd1);
}

/* Iconos */
.rf-mm__icon {
	width: var(--rfmm-icon, 22px);
	height: var(--rfmm-icon, 22px);
	flex: none;
	object-fit: contain;
}
span.rf-mm__icon.dashicons {
	font-size: var(--rfmm-icon, 22px);
	line-height: 1;
	color: var(--rfmm-accent, #1a8fd1);
}

/* Mega panel (flyout a la derecha) */
.rf-mm__sub {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	width: var(--rfmm-sub-w, 720px);
	/* Nunca desbordar el viewport: 100vw menos panel, menos posición real del botón (la mide el JS) */
	max-width: calc(100vw - var(--rfmm-panel-w, 340px) - var(--rfmm-left, 0px) - 20px);
	min-width: 0;
	min-height: 100%;
	background: var(--rfmm-sub-bg, #fff);
	padding: 24px 30px;
	box-shadow: 8px 8px 24px rgba(0, 0, 0, .12);
	grid-template-columns: repeat(var(--rfmm-cols, 3), 1fr);
	gap: 24px;
	align-content: start;
}
.rf-mm__cat:hover .rf-mm__sub {
	display: grid;
}

.rf-mm__colhead {
	display: block;
	color: var(--rfmm-accent, #1a8fd1);
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 10px;
	text-decoration: none;
}
.rf-mm__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rf-mm__col li a {
	display: block;
	padding: 5px 0;
	color: var(--rfmm-text, #444);
	text-decoration: none;
}
.rf-mm__col li a:hover {
	color: var(--rfmm-accent, #1a8fd1);
}
