/* Carrusel de fichas (8/11/2026): tarjetas redondeadas con fondo suave del color de cada tipo. El color de texto sigue el modo del tema. */
.mv-carr,
.mv-carr * {
	box-sizing: border-box;
}

.mv-carr {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-block: 32px;
	color: var(--mv-ink);
}

.mv-carr__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.mv-carr .mv-carr__title {
	min-width: 0;
	margin: 0;
	font-family: var(--mv-display);
	font-size: clamp(22px, 3.6vw, 30px);
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.mv-carr__ctl {
	display: flex;
	flex-shrink: 0;
	gap: 8px;
}

.mv-carr__ctl[hidden] {
	display: none;
}

.mv-carr__ctl button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mv-paper-2);
	color: var(--mv-ink);
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 0 var(--mv-hair), 0 4px 10px rgba(0, 0, 0, .12);
	transition: background .15s, color .15s;
}

.mv-carr__ctl button:hover:enabled {
	background: var(--mv-spot);
	color: var(--mv-spot-ink);
}

.mv-carr__ctl button:disabled {
	opacity: .4;
	cursor: default;
	box-shadow: none;
}

.mv-carr__track {
	display: flex;
	gap: 18px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 6px 4px 22px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 4px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.mv-carr__track::-webkit-scrollbar {
	display: none;
}

.mv-carr__item {
	flex: 0 0 clamp(224px, 66vw, 276px);
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
}

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

.mv-carr .mv-ficha {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 10px 10px 16px;
	border: 1px solid var(--mv-hair);
	border-radius: 22px;
	background: var(--mv-paper-2);
	color: var(--mv-ink);
	text-decoration: none;
	box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	overflow-wrap: anywhere;
}

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

.mv-carr .mv-ficha:focus-visible,
.mv-carr__track:focus-visible,
.mv-carr__ctl button:focus-visible {
	outline: 3px solid var(--mv-spot);
	outline-offset: 3px;
}

/* La foto flota sobre un degradado del color del tipo; multiplicar funde los fondos blancos de las fotos. */
.mv-ficha__foto {
	position: relative;
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 14px;
	background: linear-gradient(155deg, color-mix(in srgb, var(--mv-ficha-acento) 30%, #ffffff), #f4f2ed 75%);
}

.mv-carr .mv-ficha__foto img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform .35s ease;
}

.mv-ficha:hover .mv-ficha__foto img,
.mv-ficha:focus-visible .mv-ficha__foto img {
	transform: scale(1.06);
}

.mv-ficha__tipo {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 1;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--mv-ficha-acento);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.mv-ficha__marca {
	margin-top: 6px;
	padding-inline: 6px;
	font-size: 12px;
	color: var(--mv-ink-2);
}

.mv-ficha__nombre {
	padding-inline: 6px;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
}

.mv-ficha__datos {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 2px 0;
	padding-inline: 6px;
	font-size: 12px;
}

.mv-ficha__datos > span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--mv-paper);
	border: 1px solid var(--mv-hair);
}

.mv-ficha__potencia i {
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mv-hair);
}

.mv-ficha__potencia i.on {
	background: var(--mv-ficha-acento);
}

.mv-ficha__precio {
	padding-inline: 6px;
	font-size: 19px;
	font-weight: 700;
}

.mv-ficha__precio small {
	font-size: 12px;
	font-weight: 400;
	color: var(--mv-ink-2);
}

.mv-ficha__ver {
	margin-top: auto;
	padding: 8px 6px 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--mv-accent-text);
}

.mv-ficha:hover .mv-ficha__ver,
.mv-ficha:focus-visible .mv-ficha__ver {
	text-decoration: underline;
}

.mv-carr .mv-carr__nota {
	margin: 0;
	font-size: 12px;
	color: var(--mv-ink-2);
}

.mv-carr__track.is-dragging {
	cursor: grabbing;
	user-select: none;
	scroll-snap-type: none;
}

@media (max-width: 599px) {
	.mv-carr__prev,
	.mv-carr__next {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mv-carr__track {
		scroll-behavior: auto;
	}

	.mv-carr .mv-ficha,
	.mv-carr .mv-ficha__foto img {
		transition: none;
		transform: none;
	}
}

.mv-carr__ctl .mv-carr__auto {
	font-size: 13px;
}
