/* CACE Suites · Menú de cursos ([cace_menu_cursos]). Va en todas las páginas: mantenerlo chico. */
.cace-mm {
	--mm-brand: #771641;
	--mm-brand-dark: #5a1031;
	--mm-soft: #f8edf2;
	--mm-line: #eed5e0;
	--mm-text: #24262b;
	--mm-muted: #6b6f78;
	--mm-border: #ececef;
	--mm-hover: #f5f5f7;
	padding: 20px 22px 16px;
	color: var(--mm-text);
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
}
.cace-mm *,
.cace-mm *::before,
.cace-mm *::after { box-sizing: border-box; }
.cace-mm a { color: inherit; text-decoration: none; text-transform: none; letter-spacing: normal; }
.cace-mm svg { display: block; flex: none; }
.cace-mm ul { list-style: none; margin: 0; padding: 0; }
.cace-mm li { margin: 0; padding: 0; list-style: none; }

.cace-mm__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); }

/* Áreas (pestañas) */
.cace-mm__areas { display: flex; flex-direction: column; gap: 4px; padding: 4px 16px 4px 0; border-right: 1px solid var(--mm-border); }
.cace-mm .cace-mm__area {
	all: unset;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.cace-mm .cace-mm__area:hover { background: var(--mm-hover); }
.cace-mm .cace-mm__area.is-active { background: var(--mm-soft); border-color: var(--mm-line); }
.cace-mm .cace-mm__area:focus-visible { outline: 2px solid var(--mm-brand); outline-offset: 2px; }
.cace-mm__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #f2f2f4; color: var(--mm-brand); }
.cace-mm__area.is-active .cace-mm__icon { background: #fff; }
.cace-mm__aname { font-size: 15px; font-weight: 600; color: var(--mm-text); }
.cace-mm__acount { font-size: 12.5px; color: var(--mm-muted); }
.cace-mm__area.is-active .cace-mm__aname { color: var(--mm-brand-dark); }
.cace-mm__area.is-active .cace-mm__acount { color: var(--mm-brand); }

/* Cursos del área */
.cace-mm__panels { min-width: 0; padding: 4px 0 4px 20px; }
.cace-mm__panel[hidden] { display: none; }
.cace-mm__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 10px 10px; }
.cace-mm__ptitle { font-size: 16px; font-weight: 600; }
.cace-mm .cace-mm__plink { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--mm-brand); white-space: nowrap; }
.cace-mm .cace-mm__plink:hover { color: var(--mm-brand-dark); text-decoration: underline; }
.cace-mm__list { column-count: 2; column-gap: 12px; }
.cace-mm__list > li { break-inside: avoid; margin-bottom: 2px; }
.cace-mm .cace-mm__course { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; border-radius: 8px; color: var(--mm-text); transition: background-color .15s ease; }
.cace-mm .cace-mm__course:hover,
.cace-mm .cace-mm__course:focus-visible { background: var(--mm-hover); color: var(--mm-brand-dark); }
.cace-mm .cace-mm__course:focus-visible { outline: 2px solid var(--mm-brand); outline-offset: -2px; }
.cace-mm__name { min-width: 0; font-size: 14.5px; }
.cace-mm__tag { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--mm-soft); color: var(--mm-brand-dark); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cace-mm__go { margin-left: auto; color: #b9bcc3; transition: color .15s ease, transform .15s ease; }
.cace-mm__course:hover .cace-mm__go { color: var(--mm-brand); transform: translateX(2px); }

/* Pie */
.cace-mm__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 14px; padding: 14px 4px 0; border-top: 1px solid var(--mm-border); }
.cace-mm .cace-mm__all,
.cace-mm .cace-mm__help { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--mm-brand); }
.cace-mm .cace-mm__help { color: var(--mm-muted); font-weight: 500; }
.cace-mm .cace-mm__all:hover,
.cace-mm .cace-mm__help:hover { color: var(--mm-brand-dark); text-decoration: underline; }

/* Angosto (si el bloque se usa fuera del menú): todas las áreas una abajo de la otra. */
@media (max-width: 849px) {
	.cace-mm__body { grid-template-columns: 1fr; }
	.cace-mm__areas { display: none; }
	.cace-mm__panels { padding: 0; min-height: 0 !important; }
	.cace-mm__panel[hidden] { display: block; }
	.cace-mm__panel + .cace-mm__panel { margin-top: 12px; }
	.cace-mm__list { column-count: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.cace-mm * { transition: none !important; }
}

/* ---------------------------------------------------------------------
 * Celular: menú lateral de Flatsome, pantallas por área.
 * ------------------------------------------------------------------ */
.nav-sidebar .cace-mmm__open { display: flex !important; align-items: center; gap: 0; width: 100%; }
.cace-mmm__label { min-width: 0; }
.cace-mmm__chev { margin-left: auto; padding-left: 10px; color: #9a9ca3; }
.cace-mmm__chev svg { display: block; }
.cace-mmm-host { position: relative; }
.mfp-content:has(.cace-mmm:not([hidden])) { overflow-x: hidden; }
.cace-mmm {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	min-height: 100vh;
	min-height: 100dvh;
	background: #fff;
	color: #24262b;
	font-size: 15px;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
}
.cace-mmm[hidden],
.cace-mmm__screen[hidden] { display: none; }
.cace-mmm *,
.cace-mmm *::before,
.cace-mmm *::after { box-sizing: border-box; }
.cace-mmm a { color: inherit; text-decoration: none; text-transform: none; letter-spacing: normal; }
.cace-mmm svg { display: block; flex: none; }
.cace-mmm ul { list-style: none; margin: 0; padding: 0; }
.cace-mmm li { margin: 0; padding: 0; list-style: none; border: 0; }
.cace-mmm__screen { padding-bottom: 28px; }
.cace-mmm__screen.is-fwd { animation: cace-mmm-fwd .22s ease both; }
.cace-mmm__screen.is-back { animation: cace-mmm-back .22s ease both; }
@keyframes cace-mmm-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes cace-mmm-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.cace-mmm .cace-mmm__back {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-height: 54px;
	padding: 0 16px;
	border-bottom: 1px solid #ececef;
	color: #6b6f78;
	font-size: 14.5px;
	cursor: pointer;
}
.cace-mmm .cace-mmm__back:focus-visible,
.cace-mmm .cace-mmm__card:focus-visible { outline: 2px solid #771641; outline-offset: -2px; }
.cace-mmm__title { margin: 0; padding: 18px 16px 6px; font-size: 19px; font-weight: 700; line-height: 1.25; color: #24262b; }

.cace-mmm .cace-mmm__card {
	all: unset;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	width: calc(100% - 32px);
	margin: 10px 16px 0;
	padding: 14px;
	border: 1px solid #e3e3e8;
	border-radius: 12px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.cace-mmm .cace-mmm__card:active { background: #f8edf2; border-color: #eed5e0; }
.cace-mmm__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f8edf2; color: #771641; }
.cace-mmm__aname { font-size: 16px; font-weight: 600; color: #24262b; }
.cace-mmm__acount { font-size: 13px; color: #6b6f78; }
.cace-mmm__card .cace-mmm__go { grid-column: 3; grid-row: 1 / span 2; color: #9a9ca3; }

.cace-mmm .cace-mmm__course { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 16px; border-bottom: 1px solid #f0f0f2; color: #24262b; font-size: 15.5px; -webkit-tap-highlight-color: transparent; }
.cace-mmm .cace-mmm__course:active { background: #f8edf2; }
.cace-mmm__cname { min-width: 0; }
.cace-mmm__tag { display: inline-block; margin: 2px 0 0 4px; padding: 2px 8px; border-radius: 99px; background: #f8edf2; color: #5a1031; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.cace-mmm__course .cace-mmm__go { margin-left: auto; color: #b9bcc3; }

.cace-mmm .cace-mmm__all,
.cace-mmm .cace-mmm__help { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 16px; font-size: 15px; font-weight: 600; color: #771641; }
.cace-mmm .cace-mmm__all { margin-top: 10px; }
.cace-mmm .cace-mmm__help { color: #6b6f78; font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
	.cace-mmm__screen.is-fwd,
	.cace-mmm__screen.is-back { animation: none; }
}
