/* Test de portátiles: el mismo lenguaje visual que las fichas del carrusel. */
.mv-quiz {
	--mv-ficha-acento: #7b4bd4;
	--mv-ficha-luz: #ffffff;
	--mv-ficha-base: #f4f2ed;
	--mv-ficha-tinta: #ffffff;
	max-width: 100%;
	min-width: 0;
	color: var(--mv-ink);
}

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

.mv-quiz-activo .mv-carr { display: none; }

.mv-quiz .mv-ficha--nintendo { --mv-ficha-acento: #e60012; }
.mv-quiz .mv-ficha--pc { --mv-ficha-acento: #0a8fd6; }
.mv-quiz .mv-ficha--retro { --mv-ficha-acento: #f08a00; }
.mv-quiz .mv-ficha--otra { --mv-ficha-acento: #7b4bd4; }

.mv-quiz .mv-quiz__intro,
.mv-quiz .mv-result,
.mv-quiz .mv-reveal {
	position: relative;
	padding: clamp(18px, 4vw, 32px);
	border: 1px solid var(--mv-hair);
	border-radius: 22px;
	background: var(--mv-paper-2);
	box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45);
}

.mv-quiz .mv-quiz__intro-text { gap: 16px; }

.mv-quiz .mv-quiz__kicker,
.mv-quiz .mv-result__kicker {
	margin: 0;
	color: var(--mv-ink-2);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mv-quiz .mv-quiz__title,
.mv-quiz .mv-result__name {
	margin: 0;
	font-family: var(--mv-display);
	font-size: clamp(30px, 4.5vw, 48px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.035em;
	overflow-wrap: anywhere;
}

.mv-quiz .mv-quiz__lead { max-width: 65ch; font-size: 16px; }
.mv-quiz .mv-quiz__badges { display: flex; flex-wrap: wrap; gap: 8px; }

.mv-quiz .mv-quiz__badges li:nth-child(n) {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border: 1px solid var(--mv-hair);
	border-radius: 999px;
	background: var(--mv-paper);
	color: var(--mv-ink-2);
	font-size: 12px;
}

.mv-quiz .mv-quiz__badges li + li::before { content: none; }
.mv-quiz .mv-quiz__badges strong { font-weight: 700; }
.mv-quiz .mv-quiz__starts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.mv-quiz button.mv-quiz__start,
.mv-quiz button.mv-quiz__submit,
.mv-quiz button.mv-quiz__back,
.mv-quiz button.mv-result__compare,
.mv-quiz button.mv-result__share,
.mv-quiz button.mv-result__restart,
.mv-quiz .mv-result__links a.cta,
.mv-quiz .mv-result__links a.mb-tool-aff {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	height: auto;
	max-width: 100%;
	margin: 0;
	padding: 11px 22px;
	border: 1px solid var(--mv-spot);
	border-radius: 999px;
	background: var(--mv-spot);
	color: var(--mv-spot-ink);
	font: 600 15px/1.4 var(--mv-text);
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	box-shadow: none;
	transform: none;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease;
}

.mv-quiz button.mv-quiz__start { min-height: 54px; font-size: 16px; }

.mv-quiz button.mv-quiz__start--rapida,
.mv-quiz button.mv-quiz__back,
.mv-quiz button.mv-result__share,
.mv-quiz button.mv-result__restart {
	border-color: var(--mv-hair);
	background: var(--mv-paper);
	color: var(--mv-ink);
}

.mv-quiz button:hover,
.mv-quiz .mv-result__links a.cta:hover,
.mv-quiz .mv-result__links a.mb-tool-aff:hover { transform: translateY(-2px); }

.mv-quiz button.mv-quiz__start--rapida:hover,
.mv-quiz button.mv-quiz__back:hover,
.mv-quiz button.mv-result__share:hover,
.mv-quiz button.mv-result__restart:hover {
	background: color-mix(in srgb, var(--mv-spot) 10%, var(--mv-paper));
	color: var(--mv-ink);
	border-color: var(--mv-spot);
}

.mv-quiz button:focus-visible,
.mv-quiz a:focus-visible,
.mv-quiz .mv-quiz__opt:has(input:focus-visible) {
	outline: 3px solid var(--mv-spot);
	outline-offset: 3px;
}

.mv-quiz .mv-quiz__progress { gap: 14px; }
.mv-quiz .mv-quiz__step { font-weight: 600; }
.mv-quiz .mv-quiz__pips { height: 6px; gap: 5px; background: none; border-radius: 999px; }

.mv-quiz.is-js .mv-quiz__pips li,
.mv-quiz .mv-quiz__pips li {
	height: 6px;
	border: 0;
	border-radius: 999px;
	background: var(--mv-hair);
}

.mv-quiz.is-js .mv-quiz__pips li.is-done { background: var(--mv-spot); }
.mv-quiz.is-js .mv-quiz__pips li.is-current {
	background: color-mix(in srgb, var(--mv-spot) 45%, var(--mv-paper));
}

.mv-quiz .mv-quiz__q legend {
	align-items: center;
	gap: 12px;
	font-size: clamp(21px, 3vw, 28px);
	font-weight: 700;
	line-height: 1.25;
}

.mv-quiz .mv-quiz__num {
	display: inline-grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--mv-spot);
	color: var(--mv-spot-ink);
	font-size: 16px;
	line-height: 1;
}

.mv-quiz .mv-quiz__opts {
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
}

.mv-quiz .mv-quiz__opt {
	grid-template-columns: 26px 44px minmax(0, 1fr);
	gap: 10px;
	min-height: 108px;
	padding: 16px;
	border: 1px solid var(--mv-hair);
	border-radius: 18px;
	background: var(--mv-paper-2);
	color: var(--mv-ink);
	box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45);
	transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.mv-quiz .mv-quiz__opt:hover { transform: translateY(-3px); border-color: var(--mv-spot); }

.mv-quiz .mv-quiz__opt:has(input:checked) {
	padding: 15px;
	border: 2px solid var(--mv-spot);
	background: color-mix(in srgb, var(--mv-spot) 14%, var(--mv-paper-2));
	color: var(--mv-ink);
}

.mv-quiz .mv-quiz__letter {
	width: 26px;
	height: 26px;
	border: 1px solid var(--mv-hair);
	border-radius: 50%;
	background: var(--mv-paper);
	color: var(--mv-ink-2);
	font-size: 12px;
}

.mv-quiz .mv-quiz__icon {
	width: 44px;
	height: 44px;
	padding: 9px;
	border-radius: 50%;
	background: var(--mv-paper);
	color: var(--mv-ink);
}

.mv-quiz .mv-quiz__opt:has(input:checked) .mv-quiz__letter,
.mv-quiz .mv-quiz__opt:has(input:checked) .mv-quiz__icon {
	background: var(--mv-spot);
	color: var(--mv-spot-ink);
	border-color: var(--mv-spot);
}

.mv-quiz .mv-quiz__label { font-weight: 700; font-size: 16px; }
.mv-quiz .mv-quiz__label small { font-size: 12px; line-height: 1.45; }
.mv-quiz .mv-quiz__nav { flex-wrap: wrap; }
.mv-quiz .mv-quiz__nav .mv-quiz__submit { margin-left: auto; }
.mv-quiz .mv-quiz__result { margin-top: 24px; }

/* El tipo de la foto también da color al borde de la tarjeta principal. */
.mv-quiz .mv-result:has(.mv-ficha--nintendo) { --mv-ficha-acento: #e60012; }
.mv-quiz .mv-result:has(.mv-ficha--pc) { --mv-ficha-acento: #0a8fd6; }
.mv-quiz .mv-result:has(.mv-ficha--retro) { --mv-ficha-acento: #f08a00; }

.mv-quiz .mv-result {
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mv-quiz .mv-result:hover {
	transform: translateY(-5px);
	border-color: var(--mv-ficha-acento);
	box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .55);
}

.mv-quiz .mv-result__name { margin-block: 8px 24px; }
.mv-quiz .mv-result__name a { text-decoration: none; }
.mv-quiz .mv-result__name a:hover { text-decoration: underline; }

.mv-quiz .mv-result__grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px 28px;
	align-items: start;
}

.mv-quiz .mv-result__stage {
	position: relative;
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 0;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(155deg, color-mix(in srgb, var(--mv-ficha-acento) 30%, var(--mv-ficha-luz)), var(--mv-ficha-base) 75%);
}

.mv-quiz .mv-result__foto {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
	background: none;
}

.mv-quiz .mv-result__stage .mv-ficha__tipo {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	max-width: calc(100% - 24px);
	padding: 4px 10px;
	border: 0;
	border-radius: 999px;
	background: var(--mv-ficha-acento);
	color: var(--mv-ficha-tinta);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	box-shadow: none;
}

.mv-quiz .mv-result__stamp {
	grid-column: 1;
	grid-row: 2;
	justify-self: center;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 4px;
	width: 136px;
	height: 136px;
	aspect-ratio: 1;
	border: 0;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--mv-paper-2) 80%, transparent 81%),
		conic-gradient(var(--mv-spot) calc(var(--pct) * 1%), var(--mv-hair) 0);
	color: var(--mv-ink);
	text-align: center;
}

.mv-quiz .mv-result__stamp strong { font-size: 34px; font-weight: 700; line-height: 1; }
.mv-quiz .mv-result__stamp span { font-size: 12px; font-weight: 400; }
.mv-quiz .mv-result__body { grid-column: 2; grid-row: 1 / span 2; }
.mv-quiz .mv-result__summary { margin-top: 0; color: var(--mv-ink-2); }
.mv-quiz .mv-result__why-title { font-weight: 700; }

.mv-quiz .mv-result__why li,
.mv-quiz .mv-result__cons li {
	position: relative;
	min-height: 24px;
	padding-left: 34px;
	margin-bottom: 10px;
	font-size: 14px;
}

.mv-quiz .mv-result__why li::before,
.mv-quiz .mv-result__cons li::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
}

.mv-quiz .mv-result__why li::before {
	content: "✓";
	background: color-mix(in srgb, var(--mv-green) 18%, var(--mv-paper));
	color: color-mix(in srgb, var(--mv-green) 65%, var(--mv-ink));
}

.mv-quiz .mv-result__cons li::before {
	content: "!";
	background: color-mix(in srgb, var(--mv-orange) 18%, var(--mv-paper));
	color: color-mix(in srgb, var(--mv-orange) 65%, var(--mv-ink));
}

.mv-quiz .mv-result__price { color: var(--mv-ink-2); font-size: 13px; }
.mv-quiz .mv-result__price strong { font-size: clamp(28px, 4vw, 36px); font-weight: 700; }
.mv-quiz .mv-result__links { gap: 10px 16px; }
.mv-quiz .mv-result__read { text-decoration: underline; text-underline-offset: 3px; }

/* Con foto: miniatura, texto (porcentaje y nombre) y precio en una sola fila. */
.mv-quiz .mv-result__alts { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--mv-hair); }
.mv-quiz .mv-result__alts-title { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.mv-quiz .mv-result__alts ul { gap: 12px; }

.mv-quiz .mv-result__alts li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 4px 12px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--mv-hair);
	border-radius: 18px;
	background: var(--mv-paper);
	transition: transform .2s ease, border-color .2s ease;
}

.mv-quiz .mv-result__alts li:hover { transform: translateY(-3px); border-color: var(--mv-ficha-acento); }

.mv-quiz .mv-result__alt-foto {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 64px;
	height: 64px;
	object-fit: contain;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(155deg, color-mix(in srgb, var(--mv-ficha-acento) 30%, var(--mv-ficha-luz)), var(--mv-ficha-base) 75%);
	mix-blend-mode: multiply;
}

.mv-quiz .mv-result__alts .mv-result__alt-pct {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	min-width: 0;
	padding: 3px 9px;
	border: 1px solid var(--mv-hair);
	border-radius: 999px;
	background: color-mix(in srgb, var(--mv-spot) 12%, var(--mv-paper));
	color: var(--mv-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
}

.mv-quiz .mv-result__alts .mv-result__alt-name {
	grid-column: 2;
	grid-row: 1 / span 2;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.mv-quiz .mv-result__alts .mv-result__alt-name small { font-size: 12px; font-weight: 400; color: var(--mv-ink-2); }
.mv-quiz .mv-result__alts .mv-result__alt-name a { min-height: 44px; }

.mv-quiz .mv-result__alts .mv-result__alt-price {
	grid-column: 3;
	grid-row: 1 / span 2;
	font-size: 14px;
	font-weight: 700;
	text-align: right;
	color: var(--mv-ink);
}

.mv-quiz .mv-result__alt--foto .mv-result__alt-pct { grid-column: 2; grid-row: 1; }
.mv-quiz .mv-result__alt--foto .mv-result__alt-name { grid-column: 2; grid-row: 2; }
.mv-quiz .mv-result__actions { gap: 10px; }

.mv-quiz .mv-result__warn,
.mv-quiz .mv-result__notes {
	padding: 14px;
	border: 1px solid var(--mv-hair);
	border-radius: 14px;
	background: var(--mv-paper);
	color: var(--mv-ink-2);
}

.mv-quiz .mv-result--empty .mv-result__none { font-size: 18px; line-height: 1.5; }
.mv-quiz .mv-screen { border-radius: 14px; }
.mv-quiz .mv-reveal__bar { border-radius: 999px; }

@media (max-width: 760px) {
	.mv-quiz .mv-result__grid { grid-template-columns: minmax(0, 1fr); }
	.mv-quiz .mv-result__stage { grid-column: 1; grid-row: 1; }
	.mv-quiz .mv-result__stamp { grid-column: 1; grid-row: 2; }
	.mv-quiz .mv-result__body { grid-column: 1; grid-row: 3; }
}

@media (max-width: 480px) {
	.mv-quiz .mv-quiz__opts { grid-template-columns: minmax(0, 1fr); }
	.mv-quiz .mv-quiz__starts > button { width: 100%; }
	.mv-quiz .mv-result__actions > button { width: 100%; }
	.mv-quiz .mv-result__alts li { gap: 4px 8px; padding: 10px; }
	.mv-quiz .mv-result__alts .mv-result__alt-price { max-width: 64px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.mv-quiz *,
	.mv-quiz *::before,
	.mv-quiz *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.mv-quiz .mv-result:hover,
	.mv-quiz .mv-result__alts li:hover,
	.mv-quiz .mv-quiz__opt:hover,
	.mv-quiz button:hover,
	.mv-quiz .mv-result__links a:hover { transform: none; }
}

/* Ajustes del 8/11: el medallón de encaje flota sobre la foto y las opciones no se salen del recuadro. */
.mv-quiz .mv-result__stamp {
	grid-column: 1;
	grid-row: 1;
	align-self: end;
	justify-self: end;
	z-index: 2;
	width: 104px;
	height: 104px;
	margin: 0 12px 12px 0;
	box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6);
}
.mv-quiz .mv-result__stamp strong { font-size: 26px; }
.mv-quiz .mv-result__stamp span { font-size: 11px; }
.mv-quiz .mv-result__body { grid-row: 1; }
.mv-quiz .mv-quiz__q,
.mv-quiz .mv-quiz__opts,
.mv-quiz .mv-quiz__opt { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
	.mv-quiz .mv-result__stamp { grid-column: 1; grid-row: 1; }
	.mv-quiz .mv-result__body { grid-column: 1; grid-row: 2; }
}

.mv-quiz .mv-result__stamp strong { font-size: 22px; }
.mv-quiz .mv-result__alt-foto {
	mix-blend-mode: normal;
	background: linear-gradient(155deg, #fbf3ea, #f1eee8);
	object-fit: contain;
	padding: 4px;
}

.mv-quiz .mv-result__stamp { justify-items: center; text-align: center; padding: 0; }
.mv-quiz .mv-result__stamp strong,
.mv-quiz .mv-result__stamp span { display: block; width: 72px; text-align: center; margin: 0; }
