/* MOS Flow — autodiagnóstico. Hereda la tipografía del tema; los colores se ajustan
   sobrescribiendo estas variables desde el CSS del sitio. */
.mfq {
	--mfq-accent: #2f5d50;
	--mfq-accent-ink: #ffffff;
	--mfq-line: rgba(0, 0, 0, .18);
	--mfq-muted: rgba(0, 0, 0, .62);
	--mfq-danger: #b3261e;
	max-width: 720px;
	min-height: 70vh;
	margin: 0 auto;
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

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

.mfq-step { display: flex; flex-direction: column; gap: 14px; }
.mfq-step p { margin: 0; }

.mfq-title { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.2; text-wrap: balance; }
.mfq-desc { font-size: 1.05rem; line-height: 1.55; }
.mfq-count { color: var(--mfq-muted); font-size: .9rem; letter-spacing: .04em; }

.mfq label { font-weight: 600; }
.mfq input:not([type="checkbox"]), .mfq textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid var(--mfq-line);
	border-radius: 10px;
	font: inherit;
	background: #fff;
	color: inherit;
}
.mfq textarea { resize: vertical; }
.mfq .mfq-check { display: flex; align-items: flex-start; gap: 8px; }
.mfq .mfq-check input { width: auto; min-height: 0; margin-top: .3em; }
.mfq-note { color: var(--mfq-muted); font-size: .95rem; }

/* Campo trampa para bots: fuera de la vista y del orden de tabulación. */
.mfq .mfq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.mfq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 12px 24px;
	border: 1px solid var(--mfq-line);
	border-radius: 12px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.mfq-btn:disabled { opacity: .5; cursor: wait; }
.mfq-btn:focus-visible, .mfq-back:focus-visible, .mfq input:focus-visible { outline: 3px solid var(--mfq-accent); outline-offset: 2px; }
.mfq-primary { background: var(--mfq-accent); border-color: var(--mfq-accent); color: var(--mfq-accent-ink); align-self: flex-start; margin-top: 8px; }

.mfq-options { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.mfq-option { flex: 1 1 160px; }
.mfq-option:hover, .mfq-option.is-picked { border-color: var(--mfq-accent); box-shadow: inset 0 0 0 1px var(--mfq-accent); }

.mfq-back {
	align-self: flex-start;
	background: none;
	border: 0;
	padding: 6px 0;
	color: var(--mfq-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.mfq-error { color: var(--mfq-danger); font-weight: 600; }
.mfq-error:empty { display: none; }

/* Video o audio de ayuda */
.mfq-media { display: flex; flex-direction: column; gap: 6px; }
.mfq-media-label { color: var(--mfq-muted); font-size: .9rem; }
.mfq-video, .mfq-embed { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.mfq-video { display: block; }
.mfq-embed { position: relative; overflow: hidden; }
.mfq-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mfq-audio { width: 100%; }

.mfq-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.mfq-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--mfq-line); overflow: hidden; }
.mfq-bar span { display: block; height: 100%; background: var(--mfq-accent); transition: width .25s; }
.mfq-pct { color: var(--mfq-muted); font-size: .85rem; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.mfq-bar span { transition: none; }
}
