/*
 * Formula Studio — plataforma de la alumna (/app/…) y bloques incrustados.
 *
 * Todo vive bajo `.mf-app` para no tocar el tema. Colores y fuentes SOLO con
 * los tokens de marca (`--mf-*`) y su respaldo; transparencias con rgba() de
 * esos mismos colores:
 *   crema 237,232,213 · burdeos 58,25,29 · noche 38,11,20 · vino 85,20,42
 *   rosa 231,181,197 · rosa-polvo 215,178,181 · menta 180,222,216 · lima 190,226,96
 * Movimiento: todo se apaga con `prefers-reduced-motion: reduce` (al final).
 */

/* ------------------------------------------------------------------ */
/* (00) Sistema — una sola regla para todas las pantallas              */
/* ------------------------------------------------------------------ */
/*
 * Contenedor  `.mf-wrap`: contenido de hasta --mfa-container (1520px)
 *             centrado, márgenes simétricos --mfa-gutter (16px en 390,
 *             4vw, 64px como tope). `.mf-wrap--narrow` = --mfa-narrow
 *             (formularios y ajustes), centrado sobre la misma rejilla.
 * Rejilla     12 columnas implícitas; separación única --mfa-gap entre
 *             tarjetas (16→24px). Filas de tarjetas: 1 elemento = tarjeta
 *             ancha horizontal, 2–4 = se reparten el ancho, 5+ = carrusel.
 *             Tarjetas de una misma fila: misma altura (stretch).
 * Espacios    --mfa-s1…s8 = 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64.
 *             Entre secciones --mfa-section; cabecera→contenido --mfa-head.
 * Tarjeta     Superficie única: radio --mfa-radius (16→24px), relleno
 *             --mfa-pad (20→32px). Interiores (inputs, miniaturas, celdas)
 *             --mfa-radius-sm (12px). Píldoras 999px.
 * Cabecera    SIEMPRE fuera y encima de la tarjeta: `(01) TÍTULO` =
 *             Ui::folio + `.mf-h3` en `.mf-section__head` (o __head de
 *             panel/módulo/semana, que comparten la misma regla).
 * Tipografía  .mf-h1 (página) · .mf-h2 (bloque destacado) · .mf-h3
 *             (sección/tarjeta) · .mf-eyebrow · .mf-lede · .mf-fineprint.
 * Botones     .mf-btn + variante (dark · lima · light · ghost ·
 *             ghost-light · danger · apple) + tamaño (xs 30 · sm 38 ·
 *             base 48 · lg 56). Íconos: solo Ui::icon (línea, 1.5px).
 * Chips       .mf-chip / .mf-segmented (filtro, 40px, contorno → relleno
 *             burdeos) · .mf-tag (estado, 11px, relleno de color).
 */

/* ------------------------------------------------------------------ */
/* (01) Base                                                           */
/* ------------------------------------------------------------------ */

body.mf-app-body {
	margin: 0;
	background: var(--mf-crema, #EDE8D5);
}

body.mf-app-body--class {
	background: var(--mf-noche, #260B14);
}

.mf-app {
	/* Sistema (ver nota «(00) Sistema» arriba). */
	--mfa-container: 1520px;
	--mfa-narrow: 880px;
	--mfa-gutter: clamp(16px, 4vw, 64px);
	--mfa-max: calc(var(--mfa-container) + 2 * var(--mfa-gutter));
	--mfa-cols: 12;
	--mfa-gap: clamp(16px, 1.6vw, 24px);
	--mfa-s1: 4px;
	--mfa-s2: 8px;
	--mfa-s3: 12px;
	--mfa-s4: 16px;
	--mfa-s5: 24px;
	--mfa-s6: 32px;
	--mfa-s7: 48px;
	--mfa-s8: 64px;
	--mfa-section: clamp(40px, 5vw, 72px);
	--mfa-head: 16px;
	--mfa-radius: clamp(16px, 0.9rem + 0.4vw, 24px);
	--mfa-radius-sm: 12px;
	--mfa-pad: clamp(20px, 2.2vw, 32px);
	--mfa-top: 64px;
	--mfa-tab: 64px;
	--mfa-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--mfa-admin: var(--wp-admin--admin-bar--height, 0px);

	font-family: var(--mf-font-text, "Neue Helvena", "Helvetica Neue", Arial, sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--mf-burdeos, #3A191D);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	-webkit-tap-highlight-color: transparent;
}

.mf-app--page {
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--mf-crema, #EDE8D5);
	display: flex;
	flex-direction: column;
}

.mf-app *,
.mf-app *::before,
.mf-app *::after {
	box-sizing: border-box;
}

.mf-app :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset) {
	margin: 0;
	padding: 0;
}

.mf-app :where(ul, ol) {
	list-style: none;
}

.mf-app fieldset {
	border: 0;
	min-width: 0;
}

.mf-app img,
.mf-app svg,
.mf-app video {
	display: block;
	max-width: 100%;
}

.mf-app a {
	color: inherit;
	text-decoration: none;
}

.mf-app button {
	font: inherit;
	color: inherit;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

.mf-app button:disabled {
	cursor: not-allowed;
}

.mf-app [hidden] {
	display: none !important;
}

.mf-app :focus-visible {
	outline: 2px solid var(--mf-burdeos, #3A191D);
	outline-offset: 3px;
	border-radius: 6px;
}

.mf-app .mf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mf-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5) !important;
	border-radius: 999px;
}

.mf-skip:focus {
	top: calc(var(--mfa-admin) + 8px);
}

.mf-main {
	flex: 1 0 auto;
	outline: none;
}

.mf-app--page .mf-main {
	padding-bottom: clamp(48px, 6vw, 96px);
}

.mf-wrap {
	width: 100%;
	max-width: var(--mfa-max);
	margin-inline: auto;
	padding-inline: max(var(--mfa-gutter), env(safe-area-inset-left)) max(var(--mfa-gutter), env(safe-area-inset-right));
}

.mf-wrap--narrow {
	max-width: calc(var(--mfa-narrow) + 2 * var(--mfa-gutter));
}

.mf-app--embed {
	background: transparent;
}

.mf-app--embed .mf-wrap {
	padding-inline: 0;
	max-width: 100%;
}

.mf-icon {
	flex: none;
}

/* ------------------------------------------------------------------ */
/* (02) Tipografía                                                     */
/* ------------------------------------------------------------------ */

.mf-app .mf-display,
.mf-app .mf-h1,
.mf-app .mf-h2,
.mf-app .mf-h3 {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	color: inherit;
	text-wrap: balance;
}

.mf-app .mf-display {
	font-size: clamp(2.5rem, 1.5rem + 4.4vw, 6.4rem);
	line-height: 0.9;
	letter-spacing: -0.025em;
}

.mf-app .mf-h1 {
	font-size: clamp(2rem, 1.35rem + 2.7vw, 4.2rem);
	line-height: 0.94;
	letter-spacing: -0.02em;
}

.mf-app .mf-h2 {
	font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.6rem);
	line-height: 1;
	letter-spacing: -0.01em;
}

.mf-app .mf-h3 {
	font-size: clamp(1rem, 0.94rem + 0.3vw, 1.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.mf-app .mf-h1__name {
	display: inline-block;
}

.mf-app .mf-script {
	font-family: var(--mf-font-script, "Huntley Signature", "Snell Roundhand", cursive);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	font-size: 1.12em;
	line-height: 0.8;
	color: var(--mf-vino, #55142A);
	padding-inline: 0.06em;
}

.mf-app .mf-eyebrow {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.72;
}

.mf-app .mf-folio {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	opacity: 0.6;
}

.mf-app .mf-lede {
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.2rem);
	line-height: 1.5;
	max-width: 40rem;
	opacity: 0.86;
}

.mf-app .mf-help,
.mf-app .mf-muted {
	font-size: 14px;
	opacity: 0.72;
}

.mf-app .mf-fineprint {
	font-size: 13px;
	opacity: 0.66;
	line-height: 1.45;
}

.mf-app .mf-fineprint a,
.mf-app .mf-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mf-app .mf-label {
	display: block;
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.mf-app .mf-label small {
	font-weight: 500;
	letter-spacing: 0.04em;
	opacity: 0.6;
}

.mf-app .mf-prose {
	max-width: 42rem;
	font-size: 16px;
	line-height: 1.65;
}

.mf-app .mf-prose p + p {
	margin-top: 1em;
}

.mf-app .mf-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom: 1.5px solid rgba(58, 25, 29, 0.3);
	padding-bottom: 2px;
	transition: border-color 0.2s;
}

.mf-app .mf-link:hover {
	border-color: currentColor;
}

.mf-app .mf-link--light {
	color: var(--mf-crema, #EDE8D5);
	border-color: rgba(237, 232, 213, 0.35);
}

/* Logotipo real (SVG del branding, toma el color del texto). */
.mf-app .mf-wordmark {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	color: inherit;
}

.mf-app .mf-wordmark__svg {
	display: block;
	width: auto;
	height: 22px;
}

@media (min-width: 1440px) {
	.mf-app .mf-wordmark__svg {
		height: 26px;
	}
}


/* ------------------------------------------------------------------ */
/* (03) Barra superior y pestañas                                      */
/* ------------------------------------------------------------------ */

.mf-topbar {
	position: sticky;
	top: var(--mfa-admin);
	z-index: 40;
	background: var(--mf-crema, #EDE8D5);
	border-bottom: 1px solid rgba(58, 25, 29, 0.12);
	padding-top: env(safe-area-inset-top);
}

.mf-topbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--mfa-top);
	max-width: var(--mfa-max);
	margin-inline: auto;
	padding-inline: max(var(--mfa-gutter), env(safe-area-inset-left)) max(var(--mfa-gutter), env(safe-area-inset-right));
}

.mf-topbar__brand {
	display: inline-flex;
	padding: 6px 0;
}

.mf-topbar__nav {
	display: none;
	gap: 4px;
	margin-inline: auto;
}

.mf-topbar__link {
	position: relative;
	padding: 10px 14px;
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px;
	opacity: 0.66;
	transition: opacity 0.2s, background-color 0.2s;
}

.mf-topbar__link:hover {
	opacity: 1;
	background: rgba(58, 25, 29, 0.06);
}

.mf-topbar__link.is-active {
	opacity: 1;
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-topbar__end {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}


.mf-avatar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mf-rosa, #E7B5C5);
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	font-size: 16px;
	transition: transform 0.2s var(--mfa-ease);
}

.mf-avatar:hover {
	transform: scale(1.06);
}

.mf-lang {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: rgba(58, 25, 29, 0.07);
}

.mf-lang a {
	padding: 6px 10px;
	border-radius: 999px;
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	opacity: 0.6;
}

.mf-lang a.is-current {
	opacity: 1;
	background: var(--mf-crema, #EDE8D5);
}

.mf-tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	background: var(--mf-crema, #EDE8D5);
	border-top: 1px solid rgba(58, 25, 29, 0.14);
	padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}

.mf-tabbar__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	min-height: 52px;
	justify-content: center;
	font-size: 11px;
	font-weight: 500;
	opacity: 0.55;
	transition: opacity 0.2s, transform 0.15s;
}

.mf-tabbar__link.is-active {
	opacity: 1;
	font-weight: 700;
}

.mf-tabbar__link.is-active .mf-icon {
	stroke-width: 2;
}

.mf-tabbar__link:active {
	transform: scale(0.94);
}

.has-tabbar .mf-main {
	padding-bottom: calc(var(--mfa-tab) + env(safe-area-inset-bottom) + 40px);
}

@media (min-width: 960px) {
	.mf-topbar__nav {
		display: flex;
	}

	.mf-topbar__nav + .mf-topbar__end {
		margin-left: 0;
	}

	.mf-tabbar {
		display: none;
	}

	.has-tabbar .mf-main {
		padding-bottom: clamp(48px, 6vw, 96px);
	}
}

/* ------------------------------------------------------------------ */
/* (04) Botones, etiquetas, formularios                                */
/* ------------------------------------------------------------------ */

.mf-app .mf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 48px;
	padding: 0 1.5em;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.1;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--mfa-ease), opacity 0.2s;
}

.mf-app .mf-btn:active:not(:disabled) {
	transform: scale(0.97);
}

.mf-app .mf-btn:disabled,
.mf-app .mf-btn.is-busy {
	opacity: 0.55;
}

.mf-app .mf-btn.is-busy {
	cursor: progress;
}

.mf-app .mf-btn--dark {
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-btn--dark:hover:not(:disabled) {
	background: var(--mf-vino, #55142A);
}

.mf-app .mf-btn--lima {
	background: var(--mf-lima, #BEE260);
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-btn--lima:hover:not(:disabled) {
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-lima, #BEE260);
}

.mf-app .mf-btn--light {
	background: var(--mf-crema, #EDE8D5);
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-btn--light:hover:not(:disabled) {
	background: var(--mf-rosa, #E7B5C5);
}

.mf-app .mf-btn--ghost {
	border-color: rgba(58, 25, 29, 0.28);
	color: inherit;
}

.mf-app .mf-btn--ghost:hover:not(:disabled) {
	border-color: currentColor;
	background: rgba(58, 25, 29, 0.05);
}

.mf-app .mf-btn--ghost-light {
	border-color: rgba(237, 232, 213, 0.4);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-btn--ghost-light:hover:not(:disabled) {
	border-color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-btn--danger {
	background: var(--mf-vino, #55142A);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-btn--apple {
	background: var(--mf-noche, #260B14);
	color: var(--mf-crema, #EDE8D5);
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
}

.mf-app .mf-btn--sm {
	min-height: 38px;
	padding: 0 1.1em;
	font-size: 12px;
}

.mf-app .mf-btn--xs {
	min-height: 30px;
	padding: 0 0.8em;
	font-size: 11px;
	gap: 0.35em;
}

.mf-app .mf-btn--lg {
	min-height: 56px;
	padding: 0 1.9em;
	font-size: 15px;
}

.mf-app .mf-btn--block {
	display: flex;
	width: 100%;
}

.mf-app .mf-btn--icon {
	padding: 0;
	width: 44px;
	min-height: 44px;
}

.mf-app .mf-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(58, 25, 29, 0.08);
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
	width: max-content;
}

.mf-app .mf-tag--menta {
	background: var(--mf-menta, #B4DED8);
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-tag--lima {
	background: var(--mf-lima, #BEE260);
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-tag--rosa {
	background: var(--mf-rosa, #E7B5C5);
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-tag--outline-light {
	background: transparent;
	border: 1px solid rgba(237, 232, 213, 0.35);
}

.mf-app .mf-count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mf-lima, #BEE260);
	color: var(--mf-burdeos, #3A191D);
	font-size: 11px;
}

.mf-app .mf-form {
	display: grid;
	gap: 18px;
}

.mf-app .mf-field {
	display: block;
}

.mf-app .mf-input {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1.5px solid rgba(58, 25, 29, 0.24);
	border-radius: var(--mfa-radius-sm);
	background: rgba(237, 232, 213, 0.6);
	color: var(--mf-burdeos, #3A191D);
	font: inherit;
	font-size: 16px;
	transition: border-color 0.2s, background-color 0.2s;
	appearance: none;
	-webkit-appearance: none;
}

.mf-app select.mf-input {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233A191D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

.mf-app .mf-input:hover {
	border-color: rgba(58, 25, 29, 0.45);
}

.mf-app .mf-input:focus {
	outline: none;
	border-color: var(--mf-burdeos, #3A191D);
	background: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-input[readonly] {
	opacity: 0.6;
}

.mf-app .mf-input[aria-invalid="true"] {
	border-color: var(--mf-vino, #55142A);
}

.mf-app .mf-input::placeholder {
	color: rgba(58, 25, 29, 0.45);
}

.mf-app .mf-password {
	position: relative;
	display: block;
}

.mf-app .mf-password .mf-input {
	padding-right: 76px;
}

.mf-app .mf-password__toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	padding: 8px 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
}

.mf-app .mf-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.45;
	cursor: pointer;
}

.mf-app .mf-check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-check--card {
	padding: 18px;
	border: 1.5px solid rgba(58, 25, 29, 0.2);
	border-radius: 16px;
	font-size: 15px;
	transition: border-color 0.2s, background-color 0.2s;
}

.mf-app .mf-check--card:has(input:checked) {
	border-color: var(--mf-burdeos, #3A191D);
	background: rgba(180, 222, 216, 0.45);
}

.mf-app .mf-check small {
	display: block;
	opacity: 0.7;
	margin-top: 4px;
}

.mf-app .mf-form__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.mf-app .mf-form__error {
	padding: 12px 14px;
	border-radius: var(--mfa-radius-sm);
	background: var(--mf-rosa, #E7B5C5);
	color: var(--mf-burdeos, #3A191D);
	font-size: 14px;
}

.mf-app .mf-form__ok {
	padding: 12px 14px;
	border-radius: var(--mfa-radius-sm);
	background: var(--mf-menta, #B4DED8);
	font-size: 14px;
}

.mf-app .mf-fields {
	display: grid;
	gap: 16px;
}

@media (min-width: 640px) {
	.mf-app .mf-fields {
		grid-template-columns: repeat(2, 1fr);
	}

	.mf-app .mf-fields--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mf-app .mf-segmented {
	grid-column: 1 / -1;
}

.mf-app .mf-segmented label {
	display: inline-flex;
	margin: 0 8px 8px 0;
	cursor: pointer;
}

.mf-app .mf-segmented input,
.mf-app .mf-chip input,
.mf-app .mf-option input,
.mf-app .mf-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

/* Mismo chip que los filtros de la biblioteca (`.mf-chip span`). */
.mf-app .mf-segmented span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1.5px solid rgba(58, 25, 29, 0.22);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.mf-app .mf-segmented label:hover span {
	border-color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-segmented input:checked + span {
	background: var(--mf-burdeos, #3A191D);
	border-color: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-segmented input:focus-visible + span,
.mf-app .mf-chip input:focus-visible + span,
.mf-app .mf-option input:focus-visible + .mf-option__box,
.mf-app .mf-switch input:focus-visible ~ .mf-switch__ui {
	outline: 2px solid var(--mf-burdeos, #3A191D);
	outline-offset: 3px;
}

/* Interruptores. */
.mf-app .mf-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	cursor: pointer;
	position: relative;
}

.mf-app .mf-switch__text strong {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

.mf-app .mf-switch__text small {
	display: block;
	margin-top: var(--mfa-s1);
	font-size: 14px;
	line-height: 1.4;
	opacity: 0.7;
}

.mf-app .mf-switch__ui {
	flex: none;
	position: relative;
	width: 52px;
	height: 32px;
	border-radius: 999px;
	background: rgba(58, 25, 29, 0.2);
	transition: background-color 0.25s;
}

.mf-app .mf-switch__ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--mf-crema, #EDE8D5);
	transition: transform 0.25s var(--mfa-ease);
}

.mf-app .mf-switch input:checked ~ .mf-switch__ui {
	background: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-switch input:checked ~ .mf-switch__ui::after {
	transform: translateX(20px);
	background: var(--mf-lima, #BEE260);
}

/* Tooltip de "Próximamente". */
.mf-app .mf-tooltip {
	position: relative;
	display: inline-block;
}

.mf-app .mf-tooltip--block {
	display: block;
}

.mf-app .mf-tooltip::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translate(-50%, 4px);
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
}

.mf-app .mf-tooltip:hover::after,
.mf-app .mf-tooltip:focus-within::after,
.mf-app .mf-tooltip:focus::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Diálogos nativos. */
.mf-app .mf-dialog {
	width: min(440px, calc(100vw - 32px));
	padding: 0;
	border: 0;
	border-radius: var(--mfa-radius);
	background: var(--mf-crema, #EDE8D5);
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-dialog::backdrop {
	background: rgba(38, 11, 20, 0.55);
}

.mf-app .mf-dialog__body {
	display: grid;
	gap: 16px;
	padding: clamp(20px, 4vw, 32px);
}

.mf-app .mf-dialog__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.mf-app .mf-dialog[open] {
	animation: mf-pop 0.3s var(--mfa-ease);
}

@keyframes mf-pop {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}

/* Aviso flotante. */
.mf-app .mf-toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 90;
	max-width: min(520px, calc(100vw - 32px));
	padding: 14px 20px;
	border-radius: 999px;
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
	font-size: 14px;
	font-weight: 500;
	transform: translate(-50%, 0);
	transition: opacity 0.25s, transform 0.3s var(--mfa-ease);
}

.mf-app .mf-toast.is-error {
	background: var(--mf-vino, #55142A);
}

.mf-app .mf-toast.is-leaving {
	opacity: 0;
	transform: translate(-50%, 12px);
}

.has-tabbar .mf-toast {
	bottom: calc(var(--mfa-tab) + 20px + env(safe-area-inset-bottom));
}

@media (min-width: 960px) {
	.has-tabbar .mf-toast {
		bottom: 32px;
	}
}

/* ------------------------------------------------------------------ */
/* (05) Bloques comunes                                                */
/* ------------------------------------------------------------------ */

.mf-app .mf-pagehead {
	display: grid;
	gap: 10px;
	padding-block: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px);
}

.mf-app .mf-pagehead--split {
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 16px;
}

.mf-app .mf-section {
	margin-top: var(--mfa-section);
}

.mf-app .mf-section--flush {
	margin-top: 0;
}

/* Cabecera de sección: folio + título, SIEMPRE encima del contenido. Las
   cabeceras de panel (perfil), módulo (programa) y semana (plan) son la
   misma regla; los dos últimos añaden una línea inferior. */
.mf-app .mf-section__head,
.mf-app .mf-panel__head,
.mf-app .mf-module__head,
.mf-app .mf-planweek__head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--mfa-s2) var(--mfa-s3);
	margin-bottom: var(--mfa-head);
}

.mf-app .mf-section__head .mf-link,
.mf-app .mf-section__head .mf-row-nav {
	margin-left: auto;
}

.mf-app .mf-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: var(--mfa-radius-sm);
	background: var(--mf-rosa-polvo, #D7B2B5);
	font-size: 15px;
}

.mf-app .mf-banner p {
	flex: 1 1 220px;
}

.mf-app .mf-banner--lima {
	background: var(--mf-lima, #BEE260);
	margin: 16px 0 0;
}

.mf-app .mf-cta-block {
	display: grid;
	gap: var(--mfa-s5);
	align-items: end;
	padding: var(--mfa-pad);
	border-radius: var(--mfa-radius);
	margin-bottom: var(--mfa-section);
}

.mf-app .mf-cta-block > div {
	display: grid;
	gap: 12px;
}

.mf-app .mf-cta-block--dark {
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-cta-block--dark .mf-script,
.mf-app .mf-cover .mf-script,
.mf-app .mf-auth__aside .mf-script,
.mf-app .mf-activity .mf-script {
	color: var(--mf-rosa, #E7B5C5);
}

@media (min-width: 760px) {
	.mf-app .mf-cta-block {
		grid-template-columns: 1fr auto;
	}
}

.mf-app .mf-empty {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: var(--mfa-s3);
	padding: calc(var(--mfa-pad) * 1.5) var(--mfa-pad);
	text-align: center;
	border: 1.5px dashed rgba(58, 25, 29, 0.25);
	border-radius: var(--mfa-radius);
}

.mf-app .mf-empty__title {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
}

.mf-app .mf-empty__text {
	max-width: 30rem;
	opacity: 0.75;
}

.mf-app .mf-empty .mf-btn {
	margin-top: 8px;
}

.mf-app .mf-missing {
	padding-top: clamp(48px, 8vw, 120px);
}

.mf-app .mf-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	font-size: 14px;
}

.mf-app .mf-meta li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mf-app .mf-meta--light {
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-dots {
	display: inline-flex;
	gap: 3px;
}

.mf-app .mf-dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.2;
}

.mf-app .mf-dots i.is-on {
	opacity: 1;
}

.mf-app .mf-progressline {
	height: 4px;
	border-radius: 4px;
	background: rgba(58, 25, 29, 0.12);
	overflow: hidden;
}

.mf-app .mf-progressline span {
	display: block;
	height: 100%;
	background: var(--mf-lima, #BEE260);
	border-radius: inherit;
	transition: width 0.8s var(--mfa-ease);
}

.mf-app .mf-panel {
	padding-block: var(--mfa-pad);
	border-top: 1.5px solid var(--mf-burdeos, #3A191D);
}

.mf-app .mf-panel + .mf-panel,
.mf-app .mf-form + .mf-panel {
	margin-top: 8px;
}

.mf-app .mf-panel__foot {
	display: grid;
	gap: 8px;
	justify-items: start;
	margin-top: 20px;
}

.mf-app .mf-details summary {
	cursor: pointer;
	list-style: none;
}

.mf-app .mf-details summary::-webkit-details-marker {
	display: none;
}

.mf-app .mf-details summary::after {
	content: " +";
}

.mf-app .mf-details[open] summary::after {
	content: " –";
}

.mf-app .mf-details .mf-access {
	margin-top: 16px;
}

.mf-app .mf-bullets {
	display: grid;
	gap: 8px;
	font-size: 14px;
}

.mf-app .mf-bullets li {
	padding-left: 16px;
	position: relative;
}

.mf-app .mf-bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mf-vino, #55142A);
}

/* ------------------------------------------------------------------ */
/* (06) Tarjetas y grillas                                             */
/* ------------------------------------------------------------------ */

/*
 * Los bloques de marketing incrustados en páginas del tema (`.mf-block`)
 * los estiliza el tema: aquí solo se cubren las pantallas de la app.
 */

.mf-app:not(.mf-block) .mf-grid {
	display: grid;
	gap: clamp(24px, 2.4vw, 40px) var(--mfa-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

@media (min-width: 1024px) {
	.mf-app:not(.mf-block) .mf-grid[style*="--mf-cols"] {
		grid-template-columns: repeat(var(--mf-cols, 3), minmax(0, 1fr));
	}
}

/* Catálogo de clases: columnas fijas 2 · 3 · 4 (divisores de la página de
   24), así la última fila no queda con huecos. */
@media (min-width: 760px) {
	.mf-app:not(.mf-block) .mf-grid--classes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.mf-app:not(.mf-block) .mf-grid--classes {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/*
 * Filas de tarjetas (`.mf-row`). Regla única según cuántas haya:
 *   1     → tarjeta ancha horizontal (imagen + datos + progreso + botón);
 *   2     → dos tarjetas horizontales a media fila;
 *   3–4   → se reparten el ancho en columnas iguales;
 *   5+    → carrusel con 4 (clases) o 5 (programas) a la vista.
 * En el teléfono todo es carrusel salvo la tarjeta única.
 */
.mf-app:not(.mf-block) .mf-row {
	--mfa-row-bleed: max(var(--mfa-gutter), env(safe-area-inset-left));
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(76%, 300px);
	gap: var(--mfa-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--mfa-row-bleed);
	margin-inline: calc(-1 * var(--mfa-row-bleed));
	padding-inline: var(--mfa-row-bleed);
	padding-bottom: var(--mfa-s2);
	scrollbar-width: none;
}

.mf-app:not(.mf-block) .mf-row::-webkit-scrollbar {
	display: none;
}

.mf-app:not(.mf-block) .mf-row > * {
	scroll-snap-align: start;
}

/* Incrustada en una página del tema: el contenedor lo pone el tema, así que
   la fila nunca sangra fuera de él (ni en el teléfono). */
.mf-app--embed:not(.mf-block) .mf-row {
	margin-inline: 0;
	padding-inline: 0;
	scroll-padding-inline: 0;
}

.mf-app:not(.mf-block) .mf-row--programs {
	grid-auto-columns: min(70%, 280px);
}

@media (min-width: 760px) {
	.mf-app:not(.mf-block) .mf-row {
		grid-auto-columns: calc((100% - 2 * var(--mfa-gap)) / 3);
	}

	.mf-app:not(.mf-block) .mf-row--programs {
		grid-auto-columns: calc((100% - 3 * var(--mfa-gap)) / 4);
	}
}

@media (min-width: 1280px) {
	.mf-app:not(.mf-block) .mf-row {
		grid-auto-columns: calc((100% - 3 * var(--mfa-gap)) / 4);
	}

	.mf-app:not(.mf-block) .mf-row--programs {
		grid-auto-columns: calc((100% - 4 * var(--mfa-gap)) / 5);
	}
}

/* Desde tableta el carrusel queda dentro del contenedor (nada cortado por
   el borde de la ventana) y se mueve con las flechas de la cabecera. */
@media (min-width: 760px) {
	.mf-app:not(.mf-block) .mf-row {
		margin-inline: 0;
		padding-inline: 0;
		scroll-padding-inline: 0;
	}
}

.mf-app .mf-row-nav {
	display: none;
	gap: var(--mfa-s2);
}

@media (min-width: 760px) {
	.mf-app .mf-row-nav:not([hidden]) {
		display: inline-flex;
	}
}

.mf-app .mf-row-nav .mf-btn--icon {
	width: 38px;
	min-height: 38px;
}

.mf-app--immersive .mf-row-nav .mf-btn--ghost {
	border-color: rgba(237, 232, 213, 0.35);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-section__head .mf-row-nav + .mf-link {
	margin-left: var(--mfa-s3);
}

/* Pocas tarjetas: llenan la fila, sin carrusel ni huecos. */
.mf-app:not(.mf-block) .mf-row:has(> :only-child) {
	grid-auto-flow: row;
	grid-template-columns: minmax(0, 1fr);
	overflow: visible;
	margin-inline: 0;
	padding-inline: 0;
}

@media (min-width: 760px) {
	.mf-app:not(.mf-block) .mf-row:not(:has(> :nth-child(5))) {
		grid-auto-flow: row;
		grid-template-columns: repeat(var(--mfa-row-n, 1), minmax(0, 1fr));
		overflow: visible;
		margin-inline: 0;
		padding-inline: 0;
	}

	.mf-app:not(.mf-block) .mf-row:has(> :nth-child(2)) {
		--mfa-row-n: 2;
	}

	.mf-app:not(.mf-block) .mf-row:has(> :nth-child(3)) {
		--mfa-row-n: 3;
	}

	.mf-app:not(.mf-block) .mf-row:has(> :nth-child(4)) {
		--mfa-row-n: 4;
	}
}

/* Tarjeta horizontal: una o dos clases en la fila. */
@media (min-width: 760px) {
	.mf-app:not(.mf-block) .mf-row:not(:has(> :nth-child(3))) > .mf-card--class .mf-card__link {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-template-rows: 1fr auto;
		border-radius: var(--mfa-radius);
		overflow: hidden;
		background: rgba(58, 25, 29, 0.06);
		transition: background-color 0.2s;
	}

	.mf-app:not(.mf-block) .mf-row:not(:has(> :nth-child(3))) > .mf-card--class .mf-card__link:hover {
		background: rgba(58, 25, 29, 0.1);
	}

	.mf-app:not(.mf-block) .mf-row:not(:has(> :nth-child(3))) > .mf-card--class .mf-card__media {
		grid-column: 1;
		grid-row: 1 / -1;
		aspect-ratio: auto;
		min-height: 200px;
		border-radius: 0;
	}

	.mf-app:not(.mf-block) .mf-row:not(:has(> :nth-child(3))) > .mf-card--class .mf-card__media img {
		position: absolute;
		inset: 0;
	}

	.mf-app:not(.mf-block) .mf-row:not(:has(> :nth-child(3))) > .mf-card--class .mf-card__body {
		grid-column: 2;
		grid-row: 1;
		align-content: center;
		justify-items: start;
		gap: var(--mfa-s2);
		padding: var(--mfa-pad);
	}

	.mf-app:not(.mf-block) .mf-row:not(:has(> :nth-child(3))) > .mf-card--class .mf-card__bar {
		grid-column: 2;
		grid-row: 2;
		margin: 0 var(--mfa-pad) var(--mfa-pad);
	}

	/* Una sola: más ancha, imagen panorámica y título más grande. */
	.mf-app:not(.mf-block) .mf-row:has(> :only-child) > .mf-card--class .mf-card__link {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.mf-app:not(.mf-block) .mf-row:has(> :only-child) > .mf-card--class .mf-card__media {
		min-height: clamp(220px, 20vw, 340px);
	}

	.mf-app:not(.mf-block) .mf-row:has(> :only-child) > .mf-card--class .mf-card__title {
		font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem);
		line-height: 1;
	}
}

@media (min-width: 1280px) {
	.mf-app:not(.mf-block) .mf-row:has(> :only-child) > .mf-card--class .mf-card__link {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	}
}

/* Sobre fondo oscuro (reproductor). */
@media (min-width: 760px) {
	.mf-app--immersive:not(.mf-block) .mf-row:not(:has(> :nth-child(3))) > .mf-card--class .mf-card__link {
		background-color: rgba(237, 232, 213, 0.06);
	}

	.mf-app--immersive:not(.mf-block) .mf-row:not(:has(> :nth-child(3))) > .mf-card--class .mf-card__link:hover {
		background-color: rgba(237, 232, 213, 0.1);
	}
}

.mf-app:not(.mf-block) .mf-card__cta {
	justify-self: start;
	margin-top: var(--mfa-s2);
	pointer-events: none;
}

.mf-app:not(.mf-block) .mf-card__link:hover .mf-card__cta {
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-lima, #BEE260);
}

.mf-app:not(.mf-block) .mf-card__pct {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.mf-app:not(.mf-block) .mf-card {
	position: relative;
	min-width: 0;
}

.mf-app:not(.mf-block) .mf-card__link {
	display: block;
	height: 100%;
}

.mf-app:not(.mf-block) .mf-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--mfa-radius);
	overflow: hidden;
	background: var(--mf-rosa-polvo, #D7B2B5);
	isolation: isolate;
}

.mf-app:not(.mf-block) .mf-card--program .mf-card__media {
	aspect-ratio: 3 / 4;
}

.mf-app:not(.mf-block) .mf-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--mfa-ease);
}

.mf-app:not(.mf-block) .mf-card__link:hover .mf-card__media img,
.mf-app:not(.mf-block) .mf-card__link:focus-visible .mf-card__media img {
	transform: scale(1.045);
}

.mf-app:not(.mf-block) .mf-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 900;
	font-size: clamp(3rem, 8vw, 6rem);
	color: rgba(58, 25, 29, 0.18);
}

.mf-app .mf-card__placeholder-svg {
	width: 34%;
	max-width: 120px;
	height: auto;
}

/* Píldoras sobre la miniatura: se fijan los cuatro bordes para que las
   reglas de tarjeta del tema (arriba/derecha) no las estiren. */
.mf-app:not(.mf-block) .mf-card__duration {
	position: absolute;
	left: 10px;
	bottom: 10px;
	top: auto;
	right: auto;
	width: auto;
	height: auto;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--mf-crema, #EDE8D5);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.mf-app:not(.mf-block) .mf-card__lock {
	position: absolute;
	right: 10px;
	top: 10px;
	bottom: auto;
	left: auto;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app:not(.mf-block) .mf-card__badge {
	position: absolute;
	right: 10px;
	top: 10px;
	bottom: auto;
	left: auto;
}

.mf-app:not(.mf-block) .mf-card__done {
	position: absolute;
	right: 10px;
	bottom: 10px;
	top: auto;
	left: auto;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--mf-lima, #BEE260);
}

.mf-app:not(.mf-block) .mf-card__bar {
	height: 3px;
	margin-top: 6px;
	border-radius: 3px;
	background: rgba(58, 25, 29, 0.12);
	overflow: hidden;
}

.mf-app:not(.mf-block) .mf-card__bar span {
	display: block;
	height: 100%;
	background: var(--mf-vino, #55142A);
}

.mf-app:not(.mf-block) .mf-card__body {
	display: grid;
	gap: 4px;
	padding-top: 12px;
}

.mf-app:not(.mf-block) .mf-card__eyebrow {
	font-size: 12px;
	opacity: 0.65;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 1.5em;
}

.mf-app:not(.mf-block) .mf-card__title {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.12rem);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.15;
	letter-spacing: 0.005em;
}

.mf-app:not(.mf-block) .mf-card__sub {
	font-size: 14px;
	opacity: 0.75;
}

.mf-app:not(.mf-block) .mf-card__meta {
	display: flex;
	align-items: center;
	gap: 6px 12px;
	flex-wrap: wrap;
	font-size: 13px;
	opacity: 0.8;
	margin-top: 2px;
}

.mf-app:not(.mf-block) .mf-card--program .mf-folio {
	margin-bottom: 2px;
}

.mf-app:not(.mf-block) .mf-card.is-locked .mf-card__media img {
	filter: saturate(0.75);
}

/* ------------------------------------------------------------------ */
/* (07) Hoy                                                            */
/* ------------------------------------------------------------------ */

/* Dos columnas sobre la rejilla de 12 (8 + 4). Cada columna es cabecera +
   tarjeta; las tarjetas se estiran a la misma altura. */
.mf-app .mf-today__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--mfa-section) var(--mfa-gap);
}

.mf-app .mf-today__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mf-app .mf-today__col > .mf-feature,
.mf-app .mf-today__col > .mf-activity,
.mf-app .mf-today__col > .mf-empty {
	flex: 1 1 auto;
}

@media (min-width: 1024px) {
	.mf-app .mf-today__grid {
		grid-template-columns: repeat(var(--mfa-cols), minmax(0, 1fr));
		align-items: stretch;
	}

	.mf-app .mf-today__main {
		grid-column: span 8;
	}

	.mf-app .mf-today__side {
		grid-column: span 4;
	}
}

.mf-app .mf-feature {
	display: grid;
	border-radius: var(--mfa-radius);
	overflow: hidden;
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-feature__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--mf-vino, #55142A);
	overflow: hidden;
}

.mf-app .mf-feature__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mf-app .mf-feature__body {
	display: grid;
	gap: var(--mfa-s3);
	justify-items: start;
	align-content: end;
	padding: var(--mfa-pad);
}

.mf-app .mf-feature__title {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1.6rem, 1.1rem + 2vw, 3rem);
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.mf-app .mf-feature .mf-btn {
	margin-top: 6px;
}

.mf-app .mf-feature.is-done .mf-feature__media img {
	opacity: 0.6;
}

.mf-app .mf-feature--rest {
	background: var(--mf-rosa-polvo, #D7B2B5);
	color: var(--mf-burdeos, #3A191D);
}

@media (min-width: 760px) {
	.mf-app .mf-feature:not(.mf-feature--rest) {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}

	.mf-app .mf-feature__media {
		aspect-ratio: auto;
		min-height: 340px;
	}
}

.mf-app .mf-activity {
	display: flex;
	flex-direction: column;
	padding: var(--mfa-pad);
	border-radius: var(--mfa-radius);
	background: var(--mf-noche, #260B14);
	color: var(--mf-crema, #EDE8D5);
}

/* Columna flexible: el resumen arriba, la tira de la semana al pie, para
   que la tarjeta pueda estirarse a la altura de su vecina sin huecos raros. */
.mf-app .mf-activity {
	gap: var(--mfa-s5);
}

.mf-app .mf-activity .mf-activity__note {
	margin-top: 0;
}

.mf-app .mf-activity .mf-weekstrip {
	margin-top: auto;
}

.mf-app .mf-activity__body {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 28px);
	flex-wrap: wrap;
}

.mf-app .mf-activity__rings {
	flex: none;
	width: clamp(120px, 42%, 200px);
}

.mf-app .mf-activity__rings svg {
	width: 100%;
	height: auto;
}

.mf-app .mf-rings .mf-ring__track,
.mf-app .mf-rings .mf-ring__fill {
	fill: none;
	stroke-width: 9;
}

.mf-app .mf-rings .mf-ring__fill {
	stroke-linecap: round;
	transform: rotate(-90deg);
	transform-origin: 50% 50%;
	transition: stroke-dashoffset 1.4s var(--mfa-ease);
}

.mf-app .mf-ring.is-zero .mf-ring__fill {
	opacity: 0;
}

.mf-app .mf-ring--move .mf-ring__track {
	stroke: rgba(231, 181, 197, 0.18);
}

.mf-app .mf-ring--move .mf-ring__fill {
	stroke: var(--mf-rosa, #E7B5C5);
}

.mf-app .mf-ring--sessions .mf-ring__track {
	stroke: rgba(180, 222, 216, 0.18);
}

.mf-app .mf-ring--sessions .mf-ring__fill {
	stroke: var(--mf-menta, #B4DED8);
	transition-delay: 0.12s;
}

.mf-app .mf-ring--streak .mf-ring__track {
	stroke: rgba(190, 226, 96, 0.18);
}

.mf-app .mf-ring--streak .mf-ring__fill {
	stroke: var(--mf-lima, #BEE260);
	transition-delay: 0.24s;
}

.mf-app .mf-legend {
	display: grid;
	gap: var(--mfa-s3);
	flex: 1 1 110px;
}

.mf-app .mf-legend__row dt {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.8;
}

.mf-app .mf-legend__row dt::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.mf-app .mf-legend__row--move dt::before {
	background: var(--mf-rosa, #E7B5C5);
}

.mf-app .mf-legend__row--sessions dt::before {
	background: var(--mf-menta, #B4DED8);
}

.mf-app .mf-legend__row--streak dt::before {
	background: var(--mf-lima, #BEE260);
}

.mf-app .mf-legend dd {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.mf-app .mf-legend dd small {
	font-size: 0.5em;
	font-weight: 600;
	opacity: 0.6;
	margin-left: 3px;
}

.mf-app .mf-activity__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 14px;
	opacity: 0.85;
}

.mf-app .mf-activity__note .mf-icon {
	color: var(--mf-lima, #BEE260);
}

.mf-app .mf-weekstrip {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(237, 232, 213, 0.14);
}

.mf-app .mf-weekstrip__day {
	display: grid;
	justify-items: center;
	gap: 8px;
}

.mf-app .mf-weekstrip__name {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.6;
}

.mf-app .mf-weekstrip__dot {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-weekstrip__day.is-rest .mf-weekstrip__dot,
.mf-app .mf-weekstrip__day.is-none .mf-weekstrip__dot {
	background: radial-gradient(circle, rgba(237, 232, 213, 0.35) 2.5px, transparent 3px);
}

.mf-app .mf-weekstrip__day.is-class .mf-weekstrip__dot {
	border: 1.5px solid rgba(237, 232, 213, 0.65);
}

.mf-app .mf-weekstrip__day.is-done .mf-weekstrip__dot {
	background: var(--mf-lima, #BEE260);
	border-color: var(--mf-lima, #BEE260);
}

.mf-app .mf-weekstrip__day.is-skipped .mf-weekstrip__dot {
	border-style: dashed;
	opacity: 0.4;
}

.mf-app .mf-weekstrip__day.is-today .mf-weekstrip__name {
	opacity: 1;
	color: var(--mf-lima, #BEE260);
}

.mf-app .mf-nextup {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: var(--mfa-s1) var(--mfa-s4);
	padding: var(--mfa-pad);
	border-radius: var(--mfa-radius);
	background: rgba(58, 25, 29, 0.06);
	transition: background-color 0.2s;
}

.mf-app .mf-nextup:hover {
	background: rgba(58, 25, 29, 0.1);
}

.mf-app .mf-nextup__date {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.7;
}

.mf-app .mf-nextup__title {
	grid-column: 1;
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
}

.mf-app .mf-nextup__meta {
	grid-column: 1;
	font-size: 14px;
	opacity: 0.7;
}

.mf-app .mf-nextup .mf-icon {
	grid-column: 2;
	grid-row: 1 / span 3;
}

/* "Seguir viendo" + "Próxima clase" en la misma fila: la próxima clase
   llena su columna con la foto arriba. */
.mf-app .mf-today__pair {
	margin-top: var(--mfa-section);
}

.mf-app .mf-today__pair > .mf-section {
	margin-top: 0;
}

.mf-app .mf-today__pair .mf-row,
.mf-app .mf-today__pair .mf-nextup {
	flex: 1 1 auto;
}

.mf-app .mf-nextup--media {
	grid-template-rows: minmax(140px, 1fr) auto auto auto;
	align-items: end;
	padding: 0 0 var(--mfa-pad);
	overflow: hidden;
}

.mf-app .mf-nextup--media > :not(.mf-nextup__media) {
	margin-inline: var(--mfa-pad);
}

.mf-app .mf-nextup__media {
	grid-column: 1 / -1;
	align-self: stretch;
	position: relative;
	margin-bottom: var(--mfa-s3);
	overflow: hidden;
}

.mf-app .mf-nextup__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mf-app .mf-nextup--media .mf-icon {
	grid-row: 2 / span 3;
	align-self: center;
}

/* ------------------------------------------------------------------ */
/* (08) Biblioteca                                                     */
/* ------------------------------------------------------------------ */

.mf-app .mf-filters {
	display: grid;
	gap: 14px;
	margin-bottom: 18px;
}

.mf-app .mf-filters__top {
	display: flex;
	gap: 10px;
}

.mf-app .mf-search {
	position: relative;
	flex: 1;
	display: block;
}

.mf-app .mf-search .mf-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.6;
	pointer-events: none;
}

.mf-app .mf-search input {
	width: 100%;
	min-height: 52px;
	padding: 12px 18px 12px 50px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background: rgba(58, 25, 29, 0.07);
	color: inherit;
	font: inherit;
	font-size: 16px;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.2s, border-color 0.2s;
}

.mf-app .mf-search input:focus {
	outline: none;
	border-color: var(--mf-burdeos, #3A191D);
	background: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-filters__toggle {
	display: none;
}

.mf-app .mf-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mf-app .mf-chip {
	cursor: pointer;
	position: relative;
}

.mf-app .mf-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1.5px solid rgba(58, 25, 29, 0.22);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.mf-app .mf-chip:hover span {
	border-color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-chip:active span {
	transform: scale(0.96);
}

.mf-app .mf-chip input:checked + span {
	background: var(--mf-burdeos, #3A191D);
	border-color: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-chips--static {
	margin-top: 10px;
}

.mf-app .mf-filters__selects {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mf-app .mf-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.mf-app .mf-pill__label {
	position: absolute;
	left: 16px;
	top: 6px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.6;
	pointer-events: none;
}

.mf-app .mf-pill select {
	min-height: 46px;
	padding: 16px 36px 4px 16px;
	border: 1.5px solid rgba(58, 25, 29, 0.22);
	border-radius: 16px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	max-width: 220px;
}

.mf-app .mf-pill select:focus-visible {
	outline: 2px solid var(--mf-burdeos, #3A191D);
	outline-offset: 2px;
}

.mf-app .mf-pill .mf-icon {
	position: absolute;
	right: 12px;
	pointer-events: none;
}

.mf-app .mf-pill.is-set select {
	background: var(--mf-burdeos, #3A191D);
	border-color: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-pill.is-set .mf-pill__label,
.mf-app .mf-pill.is-set .mf-icon {
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-pill select option {
	color: var(--mf-burdeos, #3A191D);
	background: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-sheet__head {
	display: none;
}

.mf-app .mf-filters__more {
	display: grid;
	gap: 12px;
}

.mf-app .mf-filters__actions {
	display: flex;
	gap: 8px;
}

.mf-app.mf-js .mf-filters__actions [type="submit"] {
	display: none;
}

.mf-app .mf-results-count {
	font-size: 14px;
	opacity: 0.7;
	margin-bottom: 16px;
}

.mf-app [data-mf-class-grid][aria-busy="true"] {
	opacity: 0.45;
	transition: opacity 0.2s;
}

.mf-app .mf-more {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

/* Escritorio: selectores y «Limpiar» en una sola línea. */
@media (min-width: 960px) {
	.mf-app .mf-filters__more {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--mfa-s2);
	}
}

/* Hoja de filtros en el teléfono (solo con JS). */
@media (max-width: 959px) {
	.mf-app .mf-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin-inline: calc(-1 * max(var(--mfa-gutter), env(safe-area-inset-left)));
		padding-inline: max(var(--mfa-gutter), env(safe-area-inset-left));
	}

	.mf-app--embed .mf-chips {
		margin-inline: 0;
		padding-inline: 0;
	}

	.mf-app .mf-chips::-webkit-scrollbar {
		display: none;
	}

	.mf-app.mf-js .mf-filters__toggle {
		display: inline-flex;
		padding: 0 16px;
		min-height: 52px;
	}

	.mf-app.mf-js .mf-filters__more {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 80;
		max-height: 85dvh;
		overflow-y: auto;
		padding: 20px max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
		border-radius: 24px 24px 0 0;
		background: var(--mf-crema, #EDE8D5);
		transform: translateY(105%);
		visibility: hidden;
		transition: transform 0.35s var(--mfa-ease), visibility 0s 0.35s;
	}

	.mf-app.mf-js .mf-filters__more.is-open {
		transform: translateY(0);
		visibility: visible;
		transition: transform 0.35s var(--mfa-ease);
	}

	.mf-app.mf-js .mf-sheet__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.mf-app.mf-js .mf-filters__selects {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.mf-app.mf-js .mf-pill select {
		width: 100%;
		max-width: none;
	}

	.mf-app.mf-js .mf-pill {
		display: flex;
	}

	.mf-app.mf-js .mf-filters__actions {
		position: sticky;
		bottom: 0;
		padding-top: 8px;
		background: var(--mf-crema, #EDE8D5);
	}

	.mf-app.mf-js .mf-filters__actions > * {
		flex: 1;
	}

	.mf-app.mf-js .mf-filters__actions [type="submit"] {
		display: inline-flex;
	}
}

.mf-app .mf-backdrop {
	position: fixed;
	inset: 0;
	z-index: 70;
	background: rgba(38, 11, 20, 0.5);
	animation: mf-fade 0.25s ease;
}

@keyframes mf-fade {
	from {
		opacity: 0;
	}
}

/* ------------------------------------------------------------------ */
/* (09) Reproductor                                                    */
/* ------------------------------------------------------------------ */

.mf-app .mf-player-page {
	background: var(--mf-noche, #260B14);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app--embed .mf-player-page {
	border-radius: var(--mfa-radius);
	overflow: hidden;
}

.mf-app--embed .mf-player-page .mf-wrap {
	padding-inline: clamp(16px, 3vw, 32px);
}

.mf-app .mf-player {
	position: relative;
	background: var(--mf-noche, #260B14);
}

.mf-app .mf-player__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: calc(100dvh - 120px);
	margin-inline: auto;
	overflow: hidden;
	background: var(--mf-noche, #260B14);
}

.mf-app--page .mf-player__stage {
	max-height: 100dvh;
}

.mf-app .mf-player.is-locked .mf-player__stage {
	aspect-ratio: auto;
	min-height: min(100dvh, 720px);
	display: grid;
	place-items: center;
}

.mf-app .mf-player__video,
.mf-app .mf-player__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--mf-noche, #260B14);
}

.mf-app .mf-player__poster {
	object-fit: cover;
	opacity: 0.35;
}

/* Antes de reproducir, la foto de portada (vertical) llena el cuadro 16:9. */
.mf-app .mf-player[data-state="idle"] .mf-player__video,
.mf-app .mf-player[data-state="loading"] .mf-player__video {
	object-fit: cover;
}

.mf-app .mf-player__video::cue {
	font-family: var(--mf-font-text, "Neue Helvena", "Helvetica Neue", Arial, sans-serif);
	background: rgba(38, 11, 20, 0.78);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-player__top {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: max(14px, env(safe-area-inset-top)) max(var(--mfa-gutter), env(safe-area-inset-right)) 14px max(var(--mfa-gutter), env(safe-area-inset-left));
	/* Velo que se desvanece (no una franja con borde duro sobre el póster). */
	background: linear-gradient(to bottom, rgba(38, 11, 20, 0.75), rgba(38, 11, 20, 0));
	transition: opacity 0.35s, transform 0.35s var(--mfa-ease);
}

.mf-app .mf-player__back {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(237, 232, 213, 0.12);
	transition: background-color 0.2s;
}

.mf-app .mf-player__back:hover {
	background: rgba(237, 232, 213, 0.22);
}

.mf-app .mf-player__heading {
	min-width: 0;
}

.mf-app .mf-player__eyebrow {
	font-size: 12px;
	opacity: 0.7;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mf-app .mf-player__title {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1rem, 0.9rem + 0.8vw, 1.6rem);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.05;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mf-app .mf-player__demo {
	margin-left: auto;
}

.mf-app .mf-player__start {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 12px;
	width: 100%;
	color: var(--mf-crema, #EDE8D5);
	background: rgba(38, 11, 20, 0.35);
}

.mf-app .mf-player__start-icon {
	display: grid;
	place-items: center;
	width: clamp(72px, 10vw, 104px);
	height: clamp(72px, 10vw, 104px);
	border-radius: 50%;
	background: var(--mf-lima, #BEE260);
	color: var(--mf-burdeos, #3A191D);
	transition: transform 0.25s var(--mfa-ease);
}

.mf-app .mf-player__start-icon .mf-icon {
	margin-left: 4px;
	fill: currentColor;
}

.mf-app .mf-player__start:hover .mf-player__start-icon {
	transform: scale(1.06);
}

.mf-app .mf-player__start:active .mf-player__start-icon {
	transform: scale(0.96);
}

.mf-app .mf-player__start-label {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4rem);
}

.mf-app .mf-player__start-meta {
	font-size: 14px;
	opacity: 0.75;
}

.mf-app .mf-player__spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	border: 3px solid rgba(237, 232, 213, 0.2);
	border-top-color: var(--mf-lima, #BEE260);
	animation: mf-spin 0.9s linear infinite;
	display: none;
}

@keyframes mf-spin {
	to {
		transform: rotate(360deg);
	}
}

.mf-app .mf-player[data-state="loading"] .mf-player__spinner,
.mf-app .mf-player.is-buffering .mf-player__spinner {
	display: block;
}

.mf-app .mf-player:not([data-state="idle"]) .mf-player__start {
	display: none;
}

.mf-app .mf-player__hud {
	position: absolute;
	right: max(var(--mfa-gutter), env(safe-area-inset-right));
	top: calc(max(14px, env(safe-area-inset-top)) + 72px);
	z-index: 3;
	display: grid;
	justify-items: end;
	gap: 14px;
	text-align: right;
	pointer-events: none;
	transition: opacity 0.35s;
}

.mf-app .mf-player[data-state="idle"] .mf-player__hud,
.mf-app .mf-player[data-state="idle"] .mf-player__controls,
.mf-app .mf-player[data-state="loading"] .mf-player__controls {
	opacity: 0;
	pointer-events: none;
}

.mf-app .mf-hud__stat {
	display: grid;
	padding: 8px 14px;
	border-radius: 14px;
	background: rgba(38, 11, 20, 0.62);
}

.mf-app .mf-hud__value {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.4rem);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.mf-app .mf-hud__stat:first-child .mf-hud__value {
	color: var(--mf-lima, #BEE260);
}

.mf-app .mf-hud__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.72;
}

.mf-app .mf-hud__chapter {
	display: grid;
	gap: 2px;
	max-width: 280px;
	padding: 10px 14px;
	border-radius: 14px;
	background: rgba(38, 11, 20, 0.62);
}

.mf-app .mf-hud__now {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.25rem);
	line-height: 1.1;
}

.mf-app .mf-hud__next {
	font-size: 13px;
	opacity: 0.75;
}

.mf-app .mf-player__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: grid;
	gap: 6px;
	padding: 10px max(var(--mfa-gutter), env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(var(--mfa-gutter), env(safe-area-inset-left));
	background: rgba(38, 11, 20, 0.72);
	transition: opacity 0.35s, transform 0.35s var(--mfa-ease);
}

.mf-app .mf-player.is-ui-hidden .mf-player__controls,
.mf-app .mf-player.is-ui-hidden .mf-player__top {
	opacity: 0;
	pointer-events: none;
}

.mf-app .mf-player.is-ui-hidden .mf-player__controls {
	transform: translateY(8px);
}

.mf-app .mf-player.is-ui-hidden .mf-player__top {
	transform: translateY(-8px);
}

.mf-app .mf-player.is-ui-hidden {
	cursor: none;
}

.mf-app .mf-scrub {
	position: relative;
	height: 26px;
	display: flex;
	align-items: center;
	cursor: pointer;
	touch-action: none;
	border-radius: 4px;
}

.mf-app .mf-scrub__segments {
	display: flex;
	gap: 3px;
	width: 100%;
}

.mf-app .mf-scrub__seg {
	position: relative;
	flex-basis: 0;
	height: 5px;
	border-radius: 3px;
	background: rgba(237, 232, 213, 0.22);
	overflow: hidden;
	transition: height 0.2s;
}

.mf-app .mf-scrub:hover .mf-scrub__seg,
.mf-app .mf-scrub:focus-visible .mf-scrub__seg,
.mf-app .mf-scrub.is-dragging .mf-scrub__seg {
	height: 9px;
}

.mf-app .mf-scrub__seg i {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-scrub__seg.is-warmup i {
	background: var(--mf-rosa, #E7B5C5);
}

.mf-app .mf-scrub__seg.is-rest i {
	background: var(--mf-menta, #B4DED8);
}

.mf-app .mf-scrub__seg.is-cooldown i {
	background: var(--mf-rosa-polvo, #D7B2B5);
}

.mf-app .mf-scrub__seg.is-current {
	background: rgba(237, 232, 213, 0.34);
}

.mf-app .mf-scrub__thumb {
	position: absolute;
	top: 50%;
	left: 0;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--mf-crema, #EDE8D5);
	transform: scale(0.75);
	transition: transform 0.2s;
}

.mf-app .mf-scrub:hover .mf-scrub__thumb,
.mf-app .mf-scrub.is-dragging .mf-scrub__thumb,
.mf-app .mf-scrub:focus-visible .mf-scrub__thumb {
	transform: scale(1);
}

.mf-app .mf-scrub__tip {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 0;
	transform: translateX(-50%);
	padding: 5px 10px;
	border-radius: 8px;
	background: var(--mf-crema, #EDE8D5);
	color: var(--mf-noche, #260B14);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
}

.mf-app .mf-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.mf-app .mf-controls__group {
	display: flex;
	align-items: center;
	gap: 4px;
}

.mf-app .mf-controls__time {
	margin-left: 10px;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
	white-space: nowrap;
}

.mf-app .mf-ctrl {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--mf-crema, #EDE8D5);
	transition: background-color 0.2s, transform 0.15s;
}

.mf-app .mf-ctrl:hover {
	background: rgba(237, 232, 213, 0.12);
}

.mf-app .mf-ctrl:active {
	transform: scale(0.92);
}

.mf-app .mf-ctrl[aria-pressed="true"],
.mf-app .mf-ctrl[aria-expanded="true"] {
	background: rgba(237, 232, 213, 0.2);
}

.mf-app .mf-ctrl--main {
	width: 52px;
	height: 52px;
	background: var(--mf-crema, #EDE8D5);
	color: var(--mf-noche, #260B14);
}

.mf-app .mf-ctrl--main:hover {
	background: var(--mf-lima, #BEE260);
}

.mf-app .mf-ctrl--main .mf-icon--play {
	fill: currentColor;
	margin-left: 3px;
}

.mf-app .mf-ctrl__pause,
.mf-app .mf-player[data-state="playing"] .mf-ctrl__play {
	display: none;
}

.mf-app .mf-player[data-state="playing"] .mf-ctrl__pause {
	display: block;
}

.mf-app .mf-player :focus-visible {
	outline-color: var(--mf-lima, #BEE260);
}

.mf-app .mf-menu {
	position: relative;
}

.mf-app .mf-menu__list {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	display: grid;
	min-width: 160px;
	padding: 6px;
	border-radius: 14px;
	background: var(--mf-noche, #260B14);
	border: 1px solid rgba(237, 232, 213, 0.18);
}

.mf-app .mf-menu__list button {
	padding: 10px 12px;
	border-radius: 8px;
	text-align: left;
	font-size: 14px;
}

.mf-app .mf-menu__list button:hover {
	background: rgba(237, 232, 213, 0.1);
}

.mf-app .mf-menu__list button[aria-checked="true"] {
	color: var(--mf-lima, #BEE260);
	font-weight: 700;
}

.mf-app .mf-drawer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	width: min(380px, 100%);
	background: var(--mf-noche, #260B14);
	border-left: 1px solid rgba(237, 232, 213, 0.14);
	animation: mf-slide-in 0.35s var(--mfa-ease);
}

@keyframes mf-slide-in {
	from {
		transform: translateX(24px);
		opacity: 0;
	}
}

.mf-app .mf-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: max(14px, env(safe-area-inset-top)) 14px 10px 20px;
}

.mf-app .mf-drawer__title {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mf-app .mf-drawer__list {
	overflow-y: auto;
	padding: 0 10px max(14px, env(safe-area-inset-bottom));
}

.mf-app .mf-chapter {
	display: grid;
	grid-template-columns: 52px 1fr auto;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 10px;
	border-radius: 12px;
	text-align: left;
	transition: background-color 0.2s;
}

.mf-app .mf-chapter:hover {
	background: rgba(237, 232, 213, 0.08);
}

.mf-app .mf-chapter.is-current {
	background: rgba(237, 232, 213, 0.12);
}

.mf-app .mf-chapter.is-current .mf-chapter__title {
	color: var(--mf-lima, #BEE260);
}

.mf-app .mf-chapter__time {
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	opacity: 0.7;
}

.mf-app .mf-chapter__title {
	font-weight: 600;
	font-size: 15px;
}

.mf-app .mf-chapter__kind {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(237, 232, 213, 0.12);
}

.mf-app .mf-chapter__kind.is-warmup {
	background: var(--mf-rosa, #E7B5C5);
	color: var(--mf-noche, #260B14);
}

.mf-app .mf-chapter__kind.is-rest {
	background: var(--mf-menta, #B4DED8);
	color: var(--mf-noche, #260B14);
}

.mf-app .mf-chapter__kind.is-cooldown {
	background: var(--mf-rosa-polvo, #D7B2B5);
	color: var(--mf-noche, #260B14);
}

.mf-app .mf-player__error {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 16px;
	padding: 24px;
	text-align: center;
	background: rgba(38, 11, 20, 0.9);
}

.mf-app .mf-player__lock {
	position: relative;
	z-index: 2;
	padding: 96px 16px 32px;
}

.mf-app .mf-paywall {
	display: grid;
	justify-items: center;
	gap: 14px;
	max-width: 520px;
	margin-inline: auto;
	padding: clamp(24px, 4vw, 40px);
	text-align: center;
	border-radius: var(--mfa-radius);
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-paywall__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--mf-lima, #BEE260);
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-paywall__title {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
	line-height: 1;
}

.mf-app .mf-paywall__text {
	opacity: 0.85;
}

.mf-app .mf-paywall__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 6px;
}

/* Pantalla de cierre. */
.mf-app .mf-done {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: grid;
	place-items: center;
	padding: 24px;
	overflow-y: auto;
	background: var(--mf-noche, #260B14);
	outline: none;
}

.mf-app .mf-done__inner {
	display: grid;
	justify-items: center;
	gap: 14px;
	text-align: center;
	animation: mf-rise 0.6s var(--mfa-ease);
}

@keyframes mf-rise {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
}

.mf-app .mf-done__rings svg {
	width: clamp(96px, 16vw, 140px);
	height: auto;
}

.mf-app .mf-done__title {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3.4rem);
	line-height: 0.95;
}

.mf-app .mf-done__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(80px, 1fr));
	gap: clamp(12px, 3vw, 40px);
	margin-block: 8px;
}

.mf-app .mf-done__stats dt {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.7;
}

.mf-app .mf-done__stats dd {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.6rem);
	line-height: 1;
	color: var(--mf-lima, #BEE260);
	font-variant-numeric: tabular-nums;
}

.mf-app .mf-done__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.mf-app .mf-player:fullscreen,
.mf-app .mf-player:-webkit-full-screen {
	width: 100%;
	height: 100%;
}

.mf-app .mf-player:fullscreen .mf-player__stage {
	aspect-ratio: auto;
	height: 100%;
	max-height: none;
}

.mf-app .mf-player:-webkit-full-screen .mf-player__stage {
	aspect-ratio: auto;
	height: 100%;
	max-height: none;
}

/* Teléfono vertical: el HUD baja debajo del video. */
@media (max-width: 699px) {
	.mf-app .mf-player__stage {
		overflow: visible;
	}

	.mf-app .mf-player:not(:fullscreen) .mf-player__hud {
		position: static;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		text-align: left;
		padding: 12px var(--mfa-gutter) 0;
		margin-top: calc(56.25vw);
	}

	.mf-app .mf-player:not(:fullscreen) .mf-hud__chapter {
		flex: 1 1 100%;
		max-width: none;
	}

	.mf-app .mf-player:not(:fullscreen) .mf-player__stage {
		aspect-ratio: auto;
		height: auto;
		max-height: none;
	}

	.mf-app .mf-player:not(:fullscreen):not(.is-locked) .mf-player__video,
	.mf-app .mf-player:not(:fullscreen):not(.is-locked) .mf-player__start {
		height: 56.25vw;
		bottom: auto;
	}

	.mf-app .mf-player:not(:fullscreen) .mf-player__controls {
		position: relative;
		margin-top: 12px;
		background: transparent;
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	.mf-app .mf-player:not(:fullscreen) .mf-player__top {
		position: relative;
		background: var(--mf-noche, #260B14);
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	.mf-app .mf-player:not(:fullscreen):not(.is-locked) .mf-player__video,
	.mf-app .mf-player:not(:fullscreen):not(.is-locked) .mf-player__start {
		top: 72px;
	}

	.mf-app .mf-player:not(:fullscreen) .mf-player__hud {
		margin-top: calc(56.25vw);
	}

	.mf-app .mf-player[data-state="idle"]:not(:fullscreen) .mf-player__hud {
		opacity: 0.5;
	}

	.mf-app .mf-player:not(:fullscreen) .mf-drawer {
		position: fixed;
		width: 100%;
		border-left: 0;
		z-index: 95;
	}

	.mf-app .mf-player:not(:fullscreen) .mf-done {
		position: fixed;
		z-index: 95;
	}

	.mf-app .mf-controls__time {
		margin-left: 4px;
		font-size: 12px;
	}

	.mf-app .mf-player__controls {
		grid-template-columns: minmax(0, 1fr);
	}

	.mf-app .mf-controls,
	.mf-app .mf-controls__group {
		gap: 0;
		min-width: 0;
	}

	.mf-app .mf-ctrl {
		width: 40px;
		height: 40px;
	}

	.mf-app .mf-ctrl--main {
		width: 50px;
		height: 50px;
	}

	.mf-app .mf-player [data-mf-pip] {
		display: none;
	}

	.mf-app .mf-player.is-locked .mf-player__lock {
		padding-top: 24px;
	}
}

.mf-app .mf-player-info {
	padding-block: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 72px);
}

.mf-app .mf-player-info__grid {
	display: grid;
	gap: var(--mfa-section) var(--mfa-gap);
}

.mf-app .mf-player-info__grid > * {
	display: grid;
	gap: var(--mfa-s4);
	align-content: start;
	min-width: 0;
}

.mf-app .mf-player-info__grid .mf-section__head {
	margin-bottom: 0;
}

@media (min-width: 900px) {
	.mf-app .mf-player-info__grid {
		grid-template-columns: repeat(var(--mfa-cols), minmax(0, 1fr));
	}

	.mf-app .mf-player-info__about {
		grid-column: 1 / span 6;
	}

	.mf-app .mf-player-info__outline {
		grid-column: 8 / span 5;
	}
}

.mf-app .mf-prose--light {
	color: rgba(237, 232, 213, 0.86);
}

.mf-app .mf-h3--light {
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-player-info__music {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	opacity: 0.75;
}

.mf-app .mf-outline {
	display: grid;
}

.mf-app .mf-outline li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0 12px 16px;
	border-bottom: 1px solid rgba(237, 232, 213, 0.12);
	position: relative;
	font-size: 15px;
}

.mf-app .mf-outline li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-outline li.is-warmup::before {
	background: var(--mf-rosa, #E7B5C5);
}

.mf-app .mf-outline li.is-rest::before {
	background: var(--mf-menta, #B4DED8);
}

.mf-app .mf-outline li.is-cooldown::before {
	background: var(--mf-rosa-polvo, #D7B2B5);
}

.mf-app .mf-outline li span:last-child {
	opacity: 0.65;
	font-variant-numeric: tabular-nums;
}

.mf-app .mf-player-page .mf-card {
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-player-page .mf-card__media {
	background: var(--mf-vino, #55142A);
}

.mf-app .mf-player-page .mf-card__duration {
	background: var(--mf-noche, #260B14);
	color: var(--mf-crema, #EDE8D5);
}

/* ------------------------------------------------------------------ */
/* (10) Programa                                                       */
/* ------------------------------------------------------------------ */

.mf-app .mf-cover {
	display: grid;
	background: var(--mf-noche, #260B14);
	color: var(--mf-crema, #EDE8D5);
	margin-bottom: clamp(32px, 4vw, 64px);
}

.mf-app--embed .mf-cover {
	border-radius: var(--mfa-radius);
	overflow: hidden;
}

.mf-app .mf-cover__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--mf-vino, #55142A);
	overflow: hidden;
}

.mf-app .mf-cover__media img {
	/* La foto llena el espacio sin imponer su alto (las portadas son 4:5). */
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mf-app .mf-cover__media .mf-card__placeholder {
	color: rgba(237, 232, 213, 0.14);
}

.mf-app .mf-cover__body {
	display: grid;
	gap: 16px;
	align-content: end;
	justify-items: start;
	padding: clamp(24px, 4vw, 64px) max(var(--mfa-gutter), env(safe-area-inset-right)) clamp(28px, 4vw, 64px) max(var(--mfa-gutter), env(safe-area-inset-left));
}

.mf-app .mf-cover__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 8px;
}

.mf-app .mf-cover .mf-progressline {
	width: min(100%, 360px);
	background: rgba(237, 232, 213, 0.18);
}

.mf-app .mf-fineprint--light {
	color: var(--mf-crema, #EDE8D5);
}

@media (min-width: 900px) {
	.mf-app .mf-cover {
		grid-template-columns: 1fr 1fr;
		/* Alto acotado (la foto ya no lo impone): "Continuar" siempre a la vista. */
		min-height: min(78vh, 820px);
	}

	.mf-app .mf-cover__media {
		aspect-ratio: auto;
		order: 2;
	}

	.mf-app .mf-cover__body {
		padding-left: max(var(--mfa-gutter), calc((100vw - var(--mfa-max)) / 2 + var(--mfa-gutter)));
	}

	.mf-app--embed .mf-cover__body {
		padding-left: clamp(24px, 4vw, 56px);
	}
}

.mf-app .mf-program__grid {
	display: grid;
	gap: clamp(32px, 4vw, 64px);
}

@media (min-width: 1024px) {
	.mf-app .mf-program__grid {
		grid-template-columns: repeat(var(--mfa-cols), minmax(0, 1fr));
		column-gap: var(--mfa-gap);
		align-items: start;
	}

	.mf-app .mf-program__grid > :first-child {
		grid-column: 1 / span 4;
	}

	.mf-app .mf-program__grid > :last-child {
		grid-column: 6 / span 7;
	}

	.mf-app .mf-program__about {
		position: sticky;
		top: calc(var(--mfa-admin) + var(--mfa-top) + 24px);
	}
}

.mf-app .mf-people {
	display: grid;
	gap: 12px;
}

.mf-app .mf-people__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mf-app .mf-people__photo {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--mf-rosa, #E7B5C5);
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
}

.mf-app .mf-people__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mf-app .mf-people__item small {
	display: block;
	font-size: 13px;
	opacity: 0.7;
}

.mf-app .mf-module + .mf-module {
	margin-top: clamp(28px, 3vw, 44px);
}

.mf-app .mf-module__head,
.mf-app .mf-planweek__head {
	padding-bottom: var(--mfa-s3);
	border-bottom: 1.5px solid var(--mf-burdeos, #3A191D);
}

.mf-app .mf-lesson {
	border-bottom: 1px solid rgba(58, 25, 29, 0.14);
}

.mf-app .mf-lesson__link {
	display: grid;
	grid-template-columns: 32px 72px 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 14px 4px;
	transition: background-color 0.2s;
}

.mf-app .mf-lesson__link:hover {
	background: rgba(58, 25, 29, 0.04);
}

.mf-app .mf-lesson__num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid rgba(58, 25, 29, 0.3);
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 700;
	font-size: 13px;
}

.mf-app .mf-lesson.is-done .mf-lesson__num {
	background: var(--mf-lima, #BEE260);
	border-color: var(--mf-lima, #BEE260);
}

.mf-app .mf-lesson.is-started .mf-lesson__num {
	border-color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-lesson__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: var(--mf-rosa-polvo, #D7B2B5);
}

.mf-app .mf-lesson__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mf-app .mf-lesson__text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.mf-app .mf-lesson__title {
	font-weight: 600;
	line-height: 1.25;
}

.mf-app .mf-lesson__meta {
	font-size: 13px;
	opacity: 0.7;
}

.mf-app .mf-lesson__bar {
	display: block;
	height: 3px;
	margin-top: 6px;
	border-radius: 3px;
	background: rgba(58, 25, 29, 0.12);
	overflow: hidden;
	max-width: 200px;
}

.mf-app .mf-lesson__bar span {
	display: block;
	height: 100%;
	background: var(--mf-vino, #55142A);
}

.mf-app .mf-lesson.is-locked .mf-lesson__link {
	opacity: 0.72;
}

/* ------------------------------------------------------------------ */
/* (11) Mi plan                                                        */
/* ------------------------------------------------------------------ */

.mf-app .mf-plan__layout {
	display: grid;
	gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 1100px) {
	.mf-app .mf-plan__layout {
		grid-template-columns: repeat(var(--mfa-cols), minmax(0, 1fr));
		gap: var(--mfa-gap);
		align-items: start;
	}

	.mf-app .mf-plan__layout > :first-child {
		grid-column: 1 / span 3;
	}

	.mf-app .mf-plan__layout > :last-child {
		grid-column: 4 / span 9;
	}

	.mf-app .mf-plan__side {
		position: sticky;
		top: calc(var(--mfa-admin) + var(--mfa-top) + 24px);
	}
}

.mf-app .mf-plan__summary {
	display: grid;
	gap: var(--mfa-s4);
	padding: var(--mfa-pad);
	border-radius: var(--mfa-radius);
	background: var(--mf-rosa-polvo, #D7B2B5);
}

.mf-app .mf-facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.mf-app .mf-facts dt {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.7;
}

.mf-app .mf-facts dd {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	font-size: 1.25rem;
	text-transform: uppercase;
	line-height: 1.1;
}

.mf-app .mf-plan__summary .mf-progressline {
	background: rgba(58, 25, 29, 0.14);
}

.mf-app .mf-plan__summary .mf-progressline span {
	background: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-plan__weeks {
	display: grid;
	gap: clamp(28px, 3vw, 44px);
}


.mf-app .mf-planweek__days {
	display: grid;
	gap: 8px;
}

.mf-app .mf-day {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	padding: 12px;
	border-radius: var(--mfa-radius-sm);
	background: rgba(58, 25, 29, 0.04);
	transition: background-color 0.2s, outline-color 0.2s;
	outline: 2px dashed transparent;
	outline-offset: -2px;
}

.mf-app .mf-day.is-today {
	background: rgba(190, 226, 96, 0.3);
}

.mf-app .mf-day.is-past {
	opacity: 0.68;
}

.mf-app .mf-day.is-drop {
	outline-color: var(--mf-burdeos, #3A191D);
	background: rgba(180, 222, 216, 0.4);
}

.mf-app .mf-day__date {
	display: grid;
	align-content: start;
	gap: 2px;
}

.mf-app .mf-day__name {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.7;
}

.mf-app .mf-day__num {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	font-size: 1.6rem;
	line-height: 1;
}

.mf-app .mf-day__date .mf-tag {
	margin-top: 4px;
	padding: 3px 7px;
	font-size: 9px;
}

.mf-app .mf-day__items {
	display: grid;
	gap: 8px;
	align-content: start;
	min-width: 0;
}

.mf-app .mf-day__rest {
	align-self: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.45;
}

.mf-app .mf-planitem {
	display: grid;
	gap: 8px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
	transition: transform 0.2s var(--mfa-ease), opacity 0.2s;
}

.mf-app .mf-planitem[draggable="true"] {
	cursor: grab;
}

.mf-app .mf-planitem.is-dragging {
	opacity: 0.4;
	transform: scale(0.98);
}

.mf-app .mf-planitem.is-done {
	background: var(--mf-menta, #B4DED8);
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-planitem.is-skipped {
	background: transparent;
	color: var(--mf-burdeos, #3A191D);
	border: 1.5px dashed rgba(58, 25, 29, 0.35);
}

.mf-app .mf-planitem.is-skipped .mf-planitem__title {
	text-decoration: line-through;
	opacity: 0.6;
}

.mf-app .mf-planitem__link {
	display: grid;
	gap: 2px;
}

.mf-app .mf-planitem__title {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	line-height: 1.15;
}

.mf-app .mf-planitem__meta {
	font-size: 12px;
	opacity: 0.75;
}

.mf-app .mf-planitem__status:empty {
	display: none;
}

.mf-app .mf-planitem__actions {
	display: flex;
	gap: var(--mfa-s2);
	flex-wrap: wrap;
}

.mf-app .mf-planitem .mf-btn--ghost {
	border-color: rgba(237, 232, 213, 0.35);
}

.mf-app .mf-planitem.is-skipped .mf-btn--ghost {
	border-color: rgba(58, 25, 29, 0.3);
}

@media (min-width: 1280px) {
	.mf-app .mf-planweek__days {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}

	.mf-app .mf-day {
		grid-template-columns: 1fr;
		align-content: start;
		min-height: 170px;
		padding: 10px;
	}

	.mf-app .mf-day__date {
		grid-auto-flow: column;
		justify-content: start;
		align-items: baseline;
		gap: 6px;
	}

	.mf-app .mf-day__date .mf-tag {
		margin-top: 0;
	}

	.mf-app .mf-planitem {
		padding: 10px;
	}

	.mf-app .mf-planitem__title {
		font-size: 12.5px;
	}

	.mf-app .mf-planitem .mf-btn--xs {
		padding: 0 0.55em;
		min-height: 26px;
		font-size: 10px;
	}
}

/* ------------------------------------------------------------------ */
/* (12) Progreso                                                       */
/* ------------------------------------------------------------------ */

.mf-app .mf-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mfa-gap);
}

/* Cinco cifras en dos columnas: la última ocupa la fila entera. */
.mf-app .mf-stats > :last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

@media (min-width: 720px) {
	.mf-app .mf-stats {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.mf-app .mf-stats > :last-child:nth-child(odd) {
		grid-column: auto;
	}
}

.mf-app .mf-stat {
	display: grid;
	gap: var(--mfa-s2);
	align-content: space-between;
	padding: var(--mfa-pad);
	border-radius: var(--mfa-radius);
	background: rgba(58, 25, 29, 0.06);
}

.mf-app .mf-stat:first-child {
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-stat--lima {
	background: var(--mf-lima, #BEE260);
}

.mf-app .mf-stat__label {
	order: 2;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.72;
}

.mf-app .mf-stat__value {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3.6rem);
	line-height: 0.95;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.mf-app .mf-chart {
	display: grid;
	gap: 10px;
}

.mf-app .mf-chart svg {
	width: 100%;
	height: clamp(160px, 22vw, 260px);
	overflow: visible;
}

.mf-app .mf-chart__bar {
	fill: var(--mf-rosa-polvo, #D7B2B5);
	transform-box: fill-box;
	transform-origin: 50% 100%;
}

.mf-app .mf-chart__bar.is-current {
	fill: var(--mf-burdeos, #3A191D);
}

.mf-app.mf-js .mf-chart.is-animating .mf-chart__bar {
	transform: scaleY(0);
}

.mf-app.mf-js .mf-chart .mf-chart__bar {
	transition: transform 0.8s var(--mfa-ease);
	transition-delay: calc(var(--i, 0) * 60ms);
}

.mf-app .mf-chart__base {
	stroke: rgba(58, 25, 29, 0.3);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.mf-app .mf-chart__goal {
	stroke: var(--mf-vino, #55142A);
	stroke-width: 1.5;
	stroke-dasharray: 6 6;
	vector-effect: non-scaling-stroke;
}

.mf-app .mf-chart__labels {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	text-align: center;
	font-size: 11px;
}

.mf-app .mf-chart__labels li {
	display: grid;
	gap: 2px;
}

.mf-app .mf-chart__labels strong {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.mf-app .mf-chart__labels span {
	opacity: 0.6;
	white-space: nowrap;
}

.mf-app .mf-chart__labels .is-current span {
	opacity: 1;
	font-weight: 700;
}

.mf-app .mf-chart figcaption {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mf-app .mf-chart__goal-key {
	width: 22px;
	border-top: 1.5px dashed var(--mf-vino, #55142A);
}

.mf-app .mf-progress__cols {
	display: grid;
	gap: 0 clamp(28px, 4vw, 64px);
}

@media (min-width: 1024px) {
	.mf-app .mf-progress__cols {
		grid-template-columns: repeat(var(--mfa-cols), minmax(0, 1fr));
		column-gap: var(--mfa-gap);
	}

	.mf-app .mf-progress__cols > :first-child {
		grid-column: 1 / span 7;
	}

	.mf-app .mf-progress__cols > :last-child {
		grid-column: 9 / span 4;
	}
}

.mf-app .mf-list {
	display: grid;
}

.mf-app .mf-list__row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(58, 25, 29, 0.14);
}

.mf-app .mf-list__row > .mf-list__num:last-child:not(:nth-child(3)) {
	grid-column: 3;
}

.mf-app .mf-list__date {
	display: grid;
	text-align: center;
	line-height: 1;
	grid-row: span 2;
}

.mf-app .mf-list__date strong {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 1.4rem;
	font-weight: 800;
}

.mf-app .mf-list__date small {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.7;
	margin-top: 3px;
}

.mf-app .mf-list__main {
	display: grid;
	min-width: 0;
	grid-row: span 2;
}

.mf-app .mf-list__main a,
.mf-app .mf-list__main > span {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mf-app .mf-list__main a:hover {
	text-decoration: underline;
}

.mf-app .mf-list__main small {
	font-size: 13px;
	opacity: 0.65;
}

.mf-app .mf-list__num {
	text-align: right;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mf-app .mf-list__num.is-refund {
	color: var(--mf-vino, #55142A);
}

.mf-app .mf-list__est {
	display: block;
	font-size: 11px;
	opacity: 0.6;
}

/* Historial: minutos y kcal en la misma línea, filas compactas. */
.mf-app .mf-list--sessions .mf-list__row {
	grid-template-columns: 44px minmax(0, 1fr) auto minmax(64px, auto);
}

.mf-app .mf-list--sessions .mf-list__row > .mf-list__num:last-child:not(:nth-child(3)) {
	grid-column: 4;
}

.mf-app .mf-list--sessions .mf-list__est {
	margin-top: 1px;
}

.mf-app .mf-completed {
	display: grid;
	gap: 4px;
}

.mf-app .mf-completed a {
	display: grid;
	grid-template-columns: 52px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 12px;
	transition: background-color 0.2s;
}

.mf-app .mf-completed a:hover {
	background: rgba(58, 25, 29, 0.05);
}

.mf-app .mf-completed__thumb {
	display: block;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--mf-rosa-polvo, #D7B2B5);
}

.mf-app .mf-completed__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mf-app .mf-completed__title {
	font-weight: 600;
	line-height: 1.25;
}

/* ------------------------------------------------------------------ */
/* (13) Perfil y facturación                                           */
/* ------------------------------------------------------------------ */

.mf-app .mf-settings {
	gap: 0;
}

.mf-app .mf-settings .mf-help {
	margin: -6px 0 16px;
}

.mf-app .mf-consent {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: var(--mfa-radius-sm);
	background: rgba(58, 25, 29, 0.06);
	font-size: 14px;
}

.mf-app .mf-consent.is-on {
	background: var(--mf-menta, #B4DED8);
}

.mf-app .mf-savebar {
	padding-block: 8px 24px;
}

.mf-app .mf-toggles li + li {
	border-top: 1px solid rgba(58, 25, 29, 0.12);
}

.mf-app .mf-linklist li + li {
	border-top: 1px solid rgba(58, 25, 29, 0.12);
}

.mf-app .mf-linklist a,
.mf-app .mf-linklist button {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 0;
	text-align: left;
	font-weight: 500;
	transition: opacity 0.2s;
}

.mf-app .mf-linklist a:hover,
.mf-app .mf-linklist button:hover {
	opacity: 0.75;
}

.mf-app .mf-linklist span {
	flex: 1;
}

.mf-app .mf-linklist small {
	font-size: 12px;
	opacity: 0.6;
}

.mf-app .mf-linklist .is-danger {
	color: var(--mf-vino, #55142A);
}

.mf-app .mf-profile__end {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 24px;
	border-top: 1.5px solid var(--mf-burdeos, #3A191D);
}

.mf-app .mf-access {
	display: grid;
	gap: 10px;
}

.mf-app .mf-access__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--mfa-s4);
	padding: var(--mfa-pad);
	border-radius: var(--mfa-radius);
	background: rgba(58, 25, 29, 0.06);
}

/* Acciones de una suscripción (cancelar / seguir). */
.mf-app .mf-access__actions {
	flex-basis: 100%;
	display: flex;
	justify-content: flex-end;
}

.mf-app .mf-access__item.is-past {
	opacity: 0.7;
}

.mf-app .mf-access__name {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: 1.05rem;
}

.mf-app .mf-access__meta {
	font-size: 14px;
	opacity: 0.72;
}

/* ------------------------------------------------------------------ */
/* (14) Precios y equipo (marketing)                                   */
/* ------------------------------------------------------------------ */

.mf-app:not(.mf-block) .mf-block__head {
	display: grid;
	gap: 12px;
	margin-bottom: clamp(20px, 3vw, 40px);
}

.mf-app:not(.mf-block) .mf-block__foot {
	display: flex;
	justify-content: center;
	margin-top: clamp(24px, 3vw, 40px);
}

.mf-app:not(.mf-block) .mf-pricing {
	display: grid;
	gap: var(--mfa-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
	align-items: stretch;
}

@media (min-width: 1100px) {
	.mf-app:not(.mf-block) .mf-pricing[data-count="2"] {
		grid-template-columns: repeat(2, minmax(0, 420px));
		justify-content: center;
	}
}

.mf-app:not(.mf-block) .mf-price {
	/* Filas compartidas entre tarjetas (cabecera, nombre, descripción, precio,
	   prueba, ventajas, botón): títulos y precios quedan a la misma altura. */
	display: grid;
	grid-row: span 7;
	grid-template-rows: subgrid;
	align-content: start;
	gap: var(--mfa-s3);
	padding: var(--mfa-pad);
	border-radius: var(--mfa-radius);
	background: rgba(58, 25, 29, 0.06);
}

.mf-app:not(.mf-block) .mf-price.is-featured {
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app:not(.mf-block) .mf-price__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 26px;
}

.mf-app:not(.mf-block) .mf-price__name {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem);
	line-height: 1.05;
	text-wrap: balance;
}

.mf-app:not(.mf-block) .mf-price__desc {
	font-size: 15px;
	opacity: 0.8;
}

.mf-app:not(.mf-block) .mf-price__amount {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-self: end;
}

.mf-app:not(.mf-block) .mf-price__value {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.6rem);
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mf-app:not(.mf-block) .mf-price__period {
	font-size: 14px;
	opacity: 0.7;
}

.mf-app:not(.mf-block) .mf-price__trial {
	font-size: 14px;
	font-weight: 600;
}

.mf-app:not(.mf-block) .mf-price.is-featured .mf-price__trial {
	color: var(--mf-lima, #BEE260);
}

.mf-app:not(.mf-block) .mf-price__list {
	display: grid;
	gap: 10px;
	font-size: 15px;
	margin-bottom: 8px;
}

.mf-app:not(.mf-block) .mf-price__list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.mf-app:not(.mf-block) .mf-price__list .mf-icon {
	margin-top: 3px;
}

.mf-app:not(.mf-block) .mf-price .mf-btn {
	margin-top: auto;
}

/* Un solo plan dentro de la app: sin índice (01) dentro de la tarjeta y,
   con espacio, en horizontal (precio a la izquierda, ventajas y botón a la
   derecha) en vez de una tarjeta alta y vacía. */
.mf-app:not(.mf-block) .mf-pricing[data-count="1"] .mf-price .mf-folio {
	display: none;
}

.mf-app:not(.mf-block) .mf-pricing[data-count="1"] .mf-price__head:not(:has(.mf-tag)) {
	display: none;
}

@media (min-width: 760px) {
	.mf-app:not(.mf-block) .mf-pricing[data-count="1"] .mf-price {
		display: grid;
		grid-row: auto;
		grid-template-rows: none;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-content: start;
		gap: var(--mfa-s3) var(--mfa-pad);
	}

	.mf-app:not(.mf-block) .mf-pricing[data-count="1"] .mf-price > * {
		grid-column: 1;
	}

	.mf-app:not(.mf-block) .mf-pricing[data-count="1"] .mf-price > .mf-price__list {
		grid-column: 2;
		grid-row: 1 / span 4;
		align-self: start;
		margin: 0;
	}

	.mf-app:not(.mf-block) .mf-pricing[data-count="1"] .mf-price > .mf-btn {
		grid-column: 2;
		margin-top: 0;
	}
}

.mf-app:not(.mf-block) .mf-pricing + .mf-fineprint {
	margin-top: 16px;
	text-align: center;
}

.mf-app:not(.mf-block) .mf-person {
	display: grid;
	gap: 6px;
	align-content: start;
}

.mf-app:not(.mf-block) .mf-person__link {
	display: grid;
	gap: 6px;
}

.mf-app:not(.mf-block) .mf-person__media {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--mfa-radius);
	overflow: hidden;
	background: var(--mf-rosa, #E7B5C5);
	margin-bottom: 8px;
}

.mf-app:not(.mf-block) .mf-person__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--mfa-ease);
}

.mf-app:not(.mf-block) .mf-person__link:hover img {
	transform: scale(1.04);
}

.mf-app:not(.mf-block) .mf-person__name {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.6rem);
	line-height: 1;
}

.mf-app:not(.mf-block) .mf-person__role {
	font-size: 14px;
	opacity: 0.72;
}

.mf-app:not(.mf-block) .mf-person__bio {
	font-size: 15px;
	opacity: 0.85;
}

/* ------------------------------------------------------------------ */
/* (15) Acceso                                                         */
/* ------------------------------------------------------------------ */

.mf-app .mf-auth {
	display: grid;
	min-height: calc(100dvh - var(--mfa-top) - var(--mfa-admin));
}

.mf-app--page.mf-screen--login .mf-main,
.mf-app--page.mf-screen--register .mf-main,
.mf-app--page.mf-screen--reset .mf-main {
	padding-bottom: 0;
}

.mf-app .mf-auth--embed {
	min-height: 0;
}

.mf-app .mf-auth__aside {
	display: none;
}

@media (min-width: 960px) {
	.mf-app .mf-auth:not(.mf-auth--embed) {
		grid-template-columns: 1fr 1fr;
	}

	/* Panel de marca: foto de fondo con tinte plano y el contenido agrupado y
	   centrado en la altura visible (sticky), sin huecos vacíos en pantallas altas. */
	.mf-app .mf-auth__aside {
		position: relative;
		display: block;
		overflow: hidden;
		background: var(--mf-noche, #260B14);
		color: var(--mf-crema, #EDE8D5);
	}

	.mf-app .mf-auth__photo {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.mf-app .mf-auth__aside.has-photo::after {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(38, 11, 20, 0.62);
	}

	.mf-app .mf-auth__inner {
		position: sticky;
		top: calc(var(--mfa-admin) + var(--mfa-top));
		z-index: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: clamp(20px, 2.4vw, 36px);
		min-height: calc(100dvh - var(--mfa-top) - var(--mfa-admin));
		/* Alineado al borde izquierdo del contenedor (logo de la barra). */
		padding: clamp(32px, 5vw, 80px) clamp(32px, 5vw, 80px) clamp(32px, 5vw, 80px) max(var(--mfa-gutter), calc((100vw - var(--mfa-max)) / 2 + var(--mfa-gutter)));
	}

	.mf-app .mf-auth__inner > * {
		max-width: 560px;
	}
}

.mf-app .mf-auth__isotype {
	width: clamp(44px, 4vw, 64px);
	height: auto;
	color: var(--mf-rosa, #E7B5C5);
}

.mf-app .mf-auth__big {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(3rem, 1rem + 4vw, 6.5rem);
	line-height: 0.88;
	letter-spacing: -0.03em;
}

.mf-app .mf-auth__points {
	display: grid;
	gap: 10px;
	font-size: 15px;
	opacity: 0.85;
}

.mf-app .mf-auth__points li::before {
	content: "— ";
	color: var(--mf-lima, #BEE260);
}

.mf-app .mf-auth__main {
	display: grid;
	place-items: center;
	padding: clamp(28px, 5vw, 64px) max(var(--mfa-gutter), env(safe-area-inset-right)) clamp(40px, 6vw, 80px) max(var(--mfa-gutter), env(safe-area-inset-left));
}

.mf-app--embed .mf-auth__main {
	padding: 0;
	place-items: start;
}

.mf-app .mf-auth__box {
	display: grid;
	gap: 18px;
	width: min(100%, 440px);
}

.mf-app .mf-auth__box > .mf-h1 {
	font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
}

.mf-app .mf-auth__or {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.55;
}

.mf-app .mf-auth__or::before,
.mf-app .mf-auth__or::after {
	content: "";
	flex: 1;
	border-top: 1px solid rgba(58, 25, 29, 0.25);
}

.mf-app .mf-auth__legal {
	text-align: center;
}

.mf-app .mf-auth__switch {
	text-align: center;
	font-size: 15px;
}

.mf-app .mf-auth__switch a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mf-app .mf-auth__box > .mf-lang {
	justify-self: center;
}

.mf-app .mf-planpill {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 10px;
	padding: 12px 16px;
	border-radius: var(--mfa-radius-sm);
	background: var(--mf-lima, #BEE260);
	font-size: 14px;
}

.mf-app .mf-planpill span {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 12px;
	margin-right: auto;
}

/* ------------------------------------------------------------------ */
/* (16) Pago                                                           */
/* ------------------------------------------------------------------ */

.mf-app .mf-checkout {
	padding-top: clamp(20px, 3vw, 40px);
}

.mf-app .mf-checkout__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	margin-top: 24px;
}

.mf-app .mf-checkout__grid > * {
	min-width: 0;
}

@media (min-width: 960px) {
	.mf-app .mf-checkout__grid {
		grid-template-columns: repeat(var(--mfa-cols), minmax(0, 1fr));
		gap: var(--mfa-gap);
		align-items: start;
	}

	.mf-app .mf-checkout__grid > :first-child {
		grid-column: 1 / span 6;
	}

	.mf-app .mf-checkout__grid > :last-child {
		grid-column: 8 / span 5;
	}
}

.mf-app .mf-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

.mf-app .mf-total {
	display: grid;
	margin-top: 8px;
}

.mf-app .mf-total > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid rgba(58, 25, 29, 0.16);
}

.mf-app .mf-total dd {
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.mf-app .mf-total dd small {
	opacity: 0.65;
}

.mf-app .mf-total__trial {
	color: var(--mf-vino, #55142A);
}

.mf-app .mf-total__due {
	border-top: 1.5px solid var(--mf-burdeos, #3A191D) !important;
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	font-size: 1.2rem;
}

.mf-app .mf-paybox {
	display: grid;
	gap: var(--mfa-s4);
	padding: var(--mfa-pad);
	border-radius: var(--mfa-radius);
	background: rgba(58, 25, 29, 0.06);
}

@media (min-width: 960px) {
	.mf-app .mf-paybox {
		position: sticky;
		top: calc(var(--mfa-admin) + var(--mfa-top) + 24px);
	}
}

.mf-app .mf-paybox .mf-banner {
	margin: 0;
}

.mf-app .mf-paybox__note {
	text-align: center;
}

.mf-app .mf-testmode {
	display: grid;
	gap: 14px;
	justify-items: stretch;
	padding: 18px;
	border: 2px dashed var(--mf-vino, #55142A);
	border-radius: var(--mfa-radius-sm);
}

.mf-app .mf-testmode > .mf-link {
	justify-self: center;
}

.mf-app .mf-testmode__flag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--mf-rosa, #E7B5C5);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mf-app .mf-testcard {
	display: grid;
	gap: 12px;
	padding: 18px;
	border-radius: 14px;
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-testcard__split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mf-app .mf-testcard__row {
	display: grid;
	gap: 2px;
}

.mf-app .mf-testcard__row span {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.65;
}

.mf-app .mf-testcard__row output {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* (17) Cuestionario                                                   */
/* ------------------------------------------------------------------ */

.mf-app .mf-onb {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: calc(100dvh - var(--mfa-top) - var(--mfa-admin));
}

.mf-app--page.mf-screen--onboarding .mf-main {
	padding-bottom: 0;
}

.mf-app--embed .mf-onb {
	min-height: 0;
}

.mf-app .mf-onb__progress {
	position: sticky;
	top: calc(var(--mfa-top) + var(--mfa-admin) + env(safe-area-inset-top));
	z-index: 5;
	height: 4px;
	background: rgba(58, 25, 29, 0.12);
}

.mf-app--embed .mf-onb__progress {
	position: relative;
	top: 0;
	border-radius: 4px;
}

.mf-app .mf-onb__progress span {
	display: block;
	height: 100%;
	background: var(--mf-burdeos, #3A191D);
	transition: width 0.5s var(--mfa-ease);
}

.mf-app .mf-onb__form {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.mf-app .mf-step {
	flex: 1;
	width: 100%;
	max-width: 820px;
	margin-inline: auto;
	padding: clamp(32px, 6vw, 88px) max(var(--mfa-gutter), env(safe-area-inset-right)) 32px max(var(--mfa-gutter), env(safe-area-inset-left));
}

.mf-app .mf-step__inner {
	display: grid;
	gap: 18px;
	align-content: start;
}

.mf-app .mf-step__title {
	outline: none;
}

/* La palabra manuscrita puede abrir una línea: su trazo inicial no se sale
   de la columna. */
.mf-app .mf-step__title .mf-script,
.mf-app .mf-pagehead .mf-h1 .mf-script {
	display: inline-block;
	padding-inline-start: 0.16em;
}

.mf-app .mf-step.is-in-fwd {
	animation: mf-in-fwd 0.45s var(--mfa-ease);
}

.mf-app .mf-step.is-in-back {
	animation: mf-in-back 0.45s var(--mfa-ease);
}

@keyframes mf-in-fwd {
	from {
		opacity: 0;
		transform: translateX(40px);
	}
}

@keyframes mf-in-back {
	from {
		opacity: 0;
		transform: translateX(-40px);
	}
}

.mf-app .mf-options {
	display: grid;
	gap: 10px;
	margin-top: 6px;
}

@media (min-width: 640px) {
	.mf-app .mf-options--many {
		grid-template-columns: 1fr 1fr;
	}
}

.mf-app .mf-option {
	position: relative;
	cursor: pointer;
}

.mf-app .mf-option__box {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 2px 14px;
	min-height: 64px;
	padding: 16px 18px;
	border-radius: 16px;
	border: 1.5px solid rgba(58, 25, 29, 0.2);
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.mf-app .mf-option:hover .mf-option__box {
	border-color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-option:active .mf-option__box {
	transform: scale(0.985);
}

.mf-app .mf-option__label {
	font-weight: 600;
	font-size: 17px;
}

.mf-app .mf-option__hint {
	grid-column: 1;
	font-size: 14px;
	opacity: 0.7;
}

.mf-app .mf-option__mark {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1.5px solid rgba(58, 25, 29, 0.3);
	color: transparent;
	transition: background-color 0.2s, border-color 0.2s;
}

.mf-app .mf-options--multi .mf-option__mark {
	border-radius: 8px;
}

.mf-app .mf-option input:checked + .mf-option__box {
	background: var(--mf-burdeos, #3A191D);
	border-color: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-option input:checked + .mf-option__box .mf-option__mark {
	background: var(--mf-lima, #BEE260);
	border-color: var(--mf-lima, #BEE260);
	color: var(--mf-burdeos, #3A191D);
}

.mf-app .mf-why {
	font-size: 15px;
}

.mf-app .mf-why summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	list-style: none;
}

.mf-app .mf-why summary::-webkit-details-marker {
	display: none;
}

.mf-app .mf-why p {
	margin-top: 10px;
	padding: 14px 16px;
	border-radius: var(--mfa-radius-sm);
	background: var(--mf-menta, #B4DED8);
	max-width: 40rem;
}

.mf-app .mf-numbers {
	display: grid;
	gap: 16px;
}

@media (min-width: 640px) {
	.mf-app .mf-numbers {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mf-app .mf-unit {
	position: relative;
	display: block;
}

.mf-app .mf-unit .mf-input {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 1.4rem;
	font-weight: 700;
	min-height: 64px;
	padding-right: 52px;
}

.mf-app .mf-unit__label {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	opacity: 0.6;
	pointer-events: none;
}

.mf-app .mf-consents {
	display: grid;
	gap: 10px;
}

.mf-app .mf-onb__nav {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 8px 12px;
	padding: 14px max(var(--mfa-gutter), env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(var(--mfa-gutter), env(safe-area-inset-left));
	background: var(--mf-crema, #EDE8D5);
	border-top: 1px solid rgba(58, 25, 29, 0.12);
}

.mf-app .mf-onb__nav [data-mf-onb-back] {
	grid-column: 1;
}

.mf-app .mf-onb__nav [data-mf-onb-next] {
	grid-column: 3;
}

.mf-app .mf-onb__count {
	grid-column: 2;
	grid-row: 1;
	text-align: center;
	font-size: 13px;
	opacity: 0.65;
	font-variant-numeric: tabular-nums;
}

.mf-app .mf-onb__nav .mf-form__error {
	grid-column: 1 / -1;
	grid-row: 2;
}

.mf-app .mf-onb.is-ready .mf-onb__nav {
	display: none;
}

.mf-app .mf-preview {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.mf-app .mf-preview li {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--mfa-radius-sm);
	background: rgba(58, 25, 29, 0.06);
}

.mf-app .mf-preview li.is-class {
	background: var(--mf-burdeos, #3A191D);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app .mf-preview__day {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}

.mf-app .mf-preview__title {
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 15px;
}

.mf-app .mf-preview li:not(.is-class) .mf-preview__title {
	font-family: inherit;
	font-weight: 500;
	text-transform: none;
	opacity: 0.6;
}

.mf-app .mf-preview__meta {
	font-size: 13px;
	opacity: 0.75;
}

.mf-app .mf-step__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

/* ------------------------------------------------------------------ */
/* (18) Pantallas muy grandes: se compone, no se estira                */
/* ------------------------------------------------------------------ */

@media (min-width: 1920px) {
	.mf-app {
		--mfa-top: 72px;
	}
}

/* ------------------------------------------------------------------ */
/* (19) Movimiento reducido: todo instantáneo                          */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.mf-app *,
	.mf-app *::before,
	.mf-app *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}

	.mf-app .mf-btn:active:not(:disabled),
	.mf-app .mf-chip:active span,
	.mf-app .mf-option:active .mf-option__box,
	.mf-app .mf-ctrl:active,
	.mf-app .mf-tabbar__link:active {
		transform: none;
	}

	.mf-app .mf-card__link:hover .mf-card__media img,
	.mf-app .mf-person__link:hover img {
		transform: none;
	}

	.mf-app .mf-player__spinner {
		animation: mf-spin 2.4s linear infinite !important;
	}
}

/* Reproductor a sangre: sin franja crema al pie. */
.mf-app--immersive {
	background: var(--mf-noche, #260B14);
	color: var(--mf-crema, #EDE8D5);
}

.mf-app--page.mf-app--immersive .mf-main {
	padding-bottom: 0;
}

.mf-app .mf-display .mf-script {
	font-size: 0.92em;
}

/* Teléfonos: dos columnas de clases, más catálogo a la vista. */
@media (max-width: 599px) {
	.mf-app:not(.mf-block) .mf-grid--classes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.mf-app:not(.mf-block) .mf-grid--classes .mf-card__title {
		font-size: 0.9rem;
	}

	.mf-app:not(.mf-block) .mf-grid--classes .mf-card__eyebrow {
		font-size: 11px;
	}
}

@media (max-width: 599px) {
	.mf-app:not(.mf-block) .mf-row--programs {
		grid-auto-columns: min(56%, 220px);
	}

	.mf-app:not(.mf-block) .mf-row--programs .mf-card__media {
		aspect-ratio: 1;
	}

	.mf-app:not(.mf-block) .mf-row--programs .mf-card__sub {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Salvaguardas de ancho en teléfonos: las rejillas de una columna no  */
/* deben crecer más que la pantalla por un hijo ancho (inputs, montos). */
/* ------------------------------------------------------------------ */

.mf-app .mf-paybox,
.mf-app .mf-form,
.mf-app .mf-testmode {
	grid-template-columns: minmax(0, 1fr);
}

.mf-app .mf-input,
.mf-app input,
.mf-app select,
.mf-app textarea {
	min-width: 0;
	max-width: 100%;
}

/* Barra inferior del onboarding en teléfonos: el botón final ("Arma mi plan")
   es más largo; el contador se encoge y el botón no se sale de la pantalla. */
@media (max-width: 480px) {
	.mf-app .mf-onb__nav {
		gap: 10px;
	}
	.mf-app .mf-onb__nav > .mf-btn {
		flex-shrink: 1;
		min-width: 0;
		white-space: nowrap;
	}
	.mf-app .mf-onb__nav .mf-btn--lg {
		padding-inline: 18px;
	}
	.mf-app .mf-onb__count {
		flex: 1 1 auto;
		min-width: 0;
		font-size: 0.75rem;
		text-align: center;
		white-space: nowrap;
	}
}

/* Las reglas globales del tema (`.mf .mf-form label`) no deben cambiar los
   campos de la plataforma cuando va incrustada en páginas del sitio. */
.mf-app .mf-form label.mf-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.mf-app .mf-form label.mf-field {
	display: block;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: normal;
	text-transform: none;
}

/* Enlace de vuelta sobre el título (Ajustes → Perfil). */
.mf-app .mf-backlink {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	justify-self: start;
	font-family: var(--mf-font-display, "Satoshi", "Helvetica Neue", Arial, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
	opacity: 0.72;
}

.mf-app .mf-backlink:hover {
	opacity: 1;
}

/* Línea de la prueba gratis reservada en todas las tarjetas (también en las
   del tema): sin prueba queda vacía pero ocupa su alto y los precios no saltan. */
.mf-app .mf-price__trial.is-empty {
	min-height: 1.4em;
	visibility: hidden;
}

/* Pago cuando ya es miembro: acciones en fila, separadas. */
.mf-app .mf-checkout__done-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mfa-s3);
	margin-top: var(--mfa-s5);
}
