/*
 * Happy Menu: menú de la hamburguesa de Astra en acordeón.
 * Lista blanca, separadores finos y un "+" que pasa a "−" al abrir.
 * Todo bajo .hm-ac para no tocar nada más del tema.
 */
.hm-ac {
	--hm-ac-texto: var(--hm-panel-texto, #1f2937);
	--hm-ac-apagado: var(--hm-panel-apagado, #6b7280);
	--hm-ac-borde: #e5e7eb;
	--hm-ac-fondo: var(--hm-panel-fondo, #ffffff);
	--hm-ac-acento: var(--hm-acento, #c8102e);
	width: 100%;
	background: var(--hm-ac-fondo);
	color: var(--hm-ac-texto);
	font-size: 15px;
	line-height: 1.35;
	text-align: left;
}

.hm-ac ul.hm-ac-lista,
.hm-ac ul.hm-ac-sub {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.hm-ac li.hm-ac-item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--hm-ac-borde);
}

.hm-ac .hm-ac-sub li.hm-ac-item:last-child {
	border-bottom: 0;
}

.hm-ac .hm-ac-fila {
	display: flex;
	align-items: stretch;
	min-height: 48px;
}

.hm-ac a.hm-ac-enlace {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	padding: 12px 20px;
	color: var(--hm-ac-texto);
	text-decoration: none;
	font-weight: 400;
	background: none;
	border: 0;
}

.hm-ac a.hm-ac-enlace:hover,
.hm-ac a.hm-ac-enlace:focus-visible {
	color: var(--hm-ac-acento);
}

.hm-ac .hm-ac-item--destacado > .hm-ac-fila > a.hm-ac-enlace {
	color: var(--hm-ac-acento);
	font-weight: 600;
}

/* El "+": dos barras dibujadas con CSS, así no depende de una fuente de
   íconos del tema. Abierto, la vertical desaparece y queda "−". */
.hm-ac button.hm-ac-mas {
	flex: 0 0 52px;
	position: relative;
	display: block;
	width: 52px;
	min-height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--hm-ac-texto);
	cursor: pointer;
	box-shadow: none;
}

.hm-ac button.hm-ac-mas span,
.hm-ac button.hm-ac-mas span::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 13px;
	height: 2px;
	margin: -1px 0 0 -6.5px;
	background: currentColor;
	border-radius: 1px;
	content: "";
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.hm-ac button.hm-ac-mas span::before {
	margin: 0;
	top: 0;
	left: 0;
	transform: rotate(90deg);
}

.hm-ac button.hm-ac-mas[aria-expanded="true"] span::before {
	transform: rotate(0deg);
	opacity: 0;
}

.hm-ac button.hm-ac-mas:hover,
.hm-ac button.hm-ac-mas:focus {
	background: transparent;
	color: var(--hm-ac-acento);
}

.hm-ac button.hm-ac-mas:focus-visible {
	outline: 2px solid var(--hm-ac-acento);
	outline-offset: -2px;
}

/* Subniveles: fondo apenas gris y sangría, para leer la jerarquía. */
.hm-ac ul.hm-ac-sub {
	background: rgba(0, 0, 0, 0.025);
	border-top: 1px solid var(--hm-ac-borde);
}

.hm-ac .hm-ac-item--n2 > .hm-ac-fila > a.hm-ac-enlace {
	padding-left: 32px;
	font-size: 14px;
}

.hm-ac .hm-ac-item--n3 > .hm-ac-fila > a.hm-ac-enlace {
	padding-left: 44px;
	font-size: 14px;
	color: var(--hm-ac-apagado);
}

.hm-ac .hm-ac-item--todo > .hm-ac-fila > a.hm-ac-enlace {
	padding-left: 32px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--hm-ac-acento);
}

.hm-ac .hm-ac-sub .hm-ac-sub .hm-ac-item--todo > .hm-ac-fila > a.hm-ac-enlace {
	padding-left: 44px;
}

.hm-ac .hm-ac-sub[hidden] {
	display: none;
}

/* [happy_menu] con el interruptor de Astra: la barra y el acordeón salen
   los dos; afuera de la hamburguesa se ve la barra y adentro el acordeón.
   .ast-mobile-popup-content = hamburguesa "Off-Canvas";
   .ast-mobile-header-content = hamburguesa "Dropdown". */
.hm-ac.hm-ac--solo-movil {
	display: none;
}

.ast-mobile-popup-content .hm-ac.hm-ac--solo-movil,
.ast-mobile-header-content .hm-ac.hm-ac--solo-movil {
	display: block;
}

.ast-mobile-popup-content .hm,
.ast-mobile-header-content .hm {
	display: none !important;
}

/* Adentro de la hamburguesa, el acordeón ocupa todo el ancho aunque el
   elemento HTML de Astra sea un flex angosto con relleno. */
.ast-mobile-popup-content .ast-header-html:has(.hm-ac),
.ast-mobile-header-content .ast-header-html:has(.hm-ac) {
	display: block;
	width: 100%;
}

.ast-mobile-popup-content .ast-builder-layout-element:has(> .ast-header-html .hm-ac),
.ast-mobile-popup-content .ast-builder-layout-element:has(.hm-ac) {
	padding-left: 0;
	padding-right: 0;
}
