/* Movicio: páginas del Black Friday. Mismo lenguaje que /ofertas/. */
.mv-bf-cab,
.mv-bf-cab *,
.mv-bf-temas,
.mv-bf-temas * {
	box-sizing: border-box;
	min-width: 0;
}

/* Cabecera compacta: una franja con la cuenta atrás y el aviso de Telegram */
.mv-bf-cab {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	max-width: 100%;
	margin: 0 0 clamp(20px, 3vw, 32px);
	padding: 16px clamp(16px, 3vw, 28px);
	border: 1px solid var(--mv-hair);
	border-left: 6px solid var(--mv-spot);
	border-radius: var(--mv-radius, 3px);
	background: var(--mv-paper-2);
	color: var(--mv-ink);
	overflow-wrap: anywhere;
}

@media (min-width: 760px) {
	.mv-bf-cab {
		min-height: 120px;
		flex-wrap: nowrap;
	}
}

.mv-bf-cab__info {
	flex: 1 1 320px;
}

.mv-bf-cab__info > p {
	margin: 0;
}

.mv-bf-cab__kicker {
	margin-bottom: 6px !important;
	color: var(--mv-accent-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mv-bf-cab__count {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 6px;
	font-family: var(--mv-display);
	line-height: 1.1;
}

.mv-bf-cab__faltan {
	margin-right: 4px;
	color: var(--mv-ink-2);
	font-size: 1rem;
	font-weight: 700;
}

.mv-bf-cab__count span {
	color: var(--mv-ink);
	font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.mv-bf-cab__count small {
	margin-right: 8px;
	color: var(--mv-ink-2);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.mv-bf-cab__ya {
	color: var(--mv-ink);
	font-family: var(--mv-display);
	font-weight: 800;
	font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
	line-height: 1.2;
}

.mv-bf-cab__fechas {
	margin-top: 6px !important;
	color: var(--mv-ink-2);
	font-size: 0.82rem;
	line-height: 1.4;
}

.mv-bf-cab__aviso {
	display: flex;
	flex: 0 1 280px;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	font-size: 13px;
}

.mv-bf-cab__aviso a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 18px;
	border-radius: 999px;
	background: #2aabee;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.mv-bf-cab__aviso a:hover,
.mv-bf-cab__aviso a:focus-visible {
	background: #1d8fca;
	color: #fff;
}

.mv-bf-cab__aviso small {
	color: var(--mv-ink-2);
	font-size: 12px;
	line-height: 1.4;
}

/* Las cuatro páginas: tarjetas con las tres mejores ofertas de cada una */
.mv-bf-temas {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	max-width: 100%;
	margin: 1em 0 2em;
	padding: 0;
	list-style: none;
	overflow-wrap: anywhere;
}

@media (min-width: 600px) {
	.mv-bf-temas {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.mv-bf-temas {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.mv-bf-temas__i {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--mv-hair);
	border-radius: var(--mv-radius, 3px);
	background: var(--mv-paper-2);
	color: var(--mv-ink);
	list-style: none;
}

.mv-bf-temas__i a {
	color: var(--mv-accent-text);
}

.mv-bf-temas a:focus-visible {
	outline: 3px solid var(--mv-spot);
	outline-offset: 3px;
}

.mv-bf-temas .mv-bf-temas__cab {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--mv-ink);
	text-decoration: none;
}

.mv-bf-temas__e {
	font-size: 1.8rem;
	line-height: 1;
}

.mv-bf-temas__t {
	font-family: var(--mv-display);
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1.2;
}

.mv-bf-temas__n {
	margin: 0;
	color: var(--mv-ink-2);
	font-size: 13px;
	line-height: 1.4;
}

.mv-bf-temas__top {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-bf-temas__top li {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 8px 0 0;
	border-top: 1px solid var(--mv-hair);
	font-size: 14px;
	line-height: 1.35;
}

.mv-bf-temas__nom a {
	color: var(--mv-ink);
	font-weight: 600;
	text-decoration: none;
}

.mv-bf-temas__nom a:hover {
	text-decoration: underline;
}

.mv-bf-temas__precio {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.mv-bf-temas__precio strong {
	font-size: 17px;
}

.mv-bf-temas__dto {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--mv-spot);
	color: var(--mv-spot-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

.mv-bf-temas__tienda {
	color: var(--mv-ink-2);
	font-size: 12px;
}

.mv-bf-temas__pie {
	margin: auto 0 0;
	padding-top: 4px;
	font-size: 14px;
}

.mv-bf-temas__pie a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
}

/* Rejilla de rebajas con las tarjetas del tema */
.mv-bf-rejilla {
	margin-top: 1em !important;
}

/* Ofertas y textos pequeños */
.mv-bf-sub {
	margin: 1.4em 0 0.5em;
	font-family: var(--mv-text);
	font-weight: 600;
	font-size: 1.15rem;
	text-transform: none;
	color: var(--mv-ink);
}

.mv-bf-vacio {
	padding: 1em 1.2em;
	border: 1px dashed var(--mv-hair);
	border-radius: 3px;
	background: var(--mv-paper-2);
	color: var(--mv-ink-2);
}

.mv-bf-vacio p:last-child {
	margin-bottom: 0;
}

.mv-bf-nota {
	font-size: 0.82rem;
	color: var(--mv-ink-2);
}

.mv-bf-mas {
	font-weight: 600;
	color: var(--mv-accent-text);
}

/* Precios de hoy */
.mv-bf-precios {
	overflow-x: auto;
	max-width: 100%;
	margin: 1em 0 0.6em;
	border: 1px solid var(--mv-hair);
	border-radius: 3px;
	background: var(--mv-paper);
	box-shadow: none;
}

.mv-bf-precios table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9rem;
	font-family: var(--mv-text);
}

.mv-bf-precios th,
.mv-bf-precios td {
	padding: 0.65em 0.8em;
	border: 0;
	border-bottom: 1px solid var(--mv-hair);
	text-align: left;
	vertical-align: middle;
}

.mv-bf-precios thead th {
	background: var(--mv-paper-2);
	color: var(--mv-ink-2);
	font-family: var(--mv-text);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: normal;
	text-transform: none;
}

.mv-bf-precios tbody th a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--mv-ink);
	font-weight: 600;
	text-decoration: none;
}

.mv-bf-precios tbody th a:hover {
	color: var(--mv-accent-text);
	text-decoration: underline;
}

.mv-bf-precios td small {
	margin-left: 0.3em;
	color: var(--mv-ink-2);
}

.mv-bf-precios tr.is-oferta {
	background: color-mix(in oklab, var(--mv-spot) 7%, var(--mv-paper));
}

.mv-bf-precios__of {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-left: 0.4em;
	padding: 0.25em 0.6em;
	background: var(--mv-spot);
	color: var(--mv-spot-ink);
	font-family: var(--mv-text);
	font-weight: 600;
	font-size: 0.8rem;
	text-decoration: none;
	text-transform: none;
	border-radius: 3px;
}

/* Más Black Friday (en el tablón, pegado bajo la cabecera) */
.mv-bf-otras.mv-bf-otras--tablon {
	margin: 1.2em 0 1.6em;
	padding: 0;
	border: 0;
}

.mv-bf-otras.mv-bf-otras--tablon p {
	font-size: 1.05rem;
}

/* Más Black Friday */
.mv-bf-otras {
	margin: 2em 0 0;
	padding: 1.2em 0 0;
	border-top: 1px solid var(--mv-hair);
}

.mv-bf-otras p {
	margin: 0 0 0.5em;
	font-family: var(--mv-text);
	font-weight: 600;
	font-style: normal;
	font-size: 1.05rem;
	text-transform: none;
	color: var(--mv-ink);
}

.mv-bf-otras ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-bf-otras li {
	margin: 0;
}

.mv-bf-otras a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.4em 0.9em;
	border: 1px solid var(--mv-hair);
	border-radius: 3px;
	background: var(--mv-paper-2);
	color: var(--mv-ink);
	font-family: var(--mv-text);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	text-transform: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mv-bf-otras a:hover,
.mv-bf-otras a:focus-visible {
	background: var(--mv-paper);
	border-color: var(--mv-accent-text);
	color: var(--mv-accent-text);
}

/* Juegos rebajados: mismo lenguaje que las tarjetas de /ofertas/ y en dos columnas cuando caben (20/11/2026). */
.mv-bf-ofertas .mv-ofm {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
	gap: 10px;
}
.mv-bf-ofertas .mv-ofm__item {
	margin: 0;
	border: 1px solid var(--mv-hair);
	border-radius: 14px;
	background: var(--mv-paper-2);
	min-width: 0;
}
.mv-bf-ofertas .mv-ofm__item {
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "dto name" "dto precio" "dto meta" "go go";
	align-content: start;
}
.mv-bf-ofertas .mv-ofm__go {
	margin-top: 6px;
	text-align: center;
}

/* Elementos solo de móvil: en escritorio no se ven (20/11/2026). */
.mv-bf-saltos,
.mv-bf-mas-juegos {
	display: none;
}

/* Versión móvil más amigable (20/11/2026): cabecera compacta, barra de saltos, carrusel de temas, juegos compactos y textos plegables. */
@media (max-width: 599px) {
	/* 1. Cabecera compacta */
	.mv-bf-cab {
		gap: 10px;
		margin-bottom: 12px;
		padding: 12px 14px;
	}
	.mv-bf-cab__info {
		flex: 1 1 100%;
	}
	.mv-bf-cab__kicker {
		margin-bottom: 4px !important;
		overflow: hidden;
		font-size: 11px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.mv-bf-cab__count {
		flex-wrap: nowrap;
		gap: 0 4px;
		white-space: nowrap;
	}
	.mv-bf-cab__faltan {
		margin-right: 2px;
		font-size: 14px;
	}
	.mv-bf-cab__count span {
		font-size: 22px;
	}
	.mv-bf-cab__count small {
		margin-right: 6px;
		font-size: 10px;
		letter-spacing: 0.02em;
	}
	.mv-bf-cab__ya {
		font-size: 1.05rem;
	}
	.mv-bf-cab__fechas {
		margin-top: 4px !important;
		font-size: 12px;
	}
	.mv-bf-cab__aviso {
		flex: 1 1 100%;
		align-items: stretch;
	}
	.mv-bf-cab__aviso a {
		justify-content: center;
		width: 100%;
		min-height: 44px;
		padding: 0 18px;
	}
	.mv-bf-cab__aviso small {
		display: none;
	}

	/* 2. Barra de saltos fija */
	.mv-bf-saltos {
		position: sticky;
		top: 0;
		z-index: 5;
		display: flex;
		gap: 8px;
		margin: 0 -16px 12px;
		padding: 8px 16px;
		overflow-x: auto;
		background: var(--mv-paper);
		scrollbar-width: none;
	}
	.mv-bf-saltos::-webkit-scrollbar {
		display: none;
	}
	.mv-bf-saltos a {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		min-height: 40px;
		padding: 0 14px;
		border: 1px solid var(--mv-hair);
		border-radius: 999px;
		color: var(--mv-ink);
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
		white-space: nowrap;
	}
	.mv-bf-sub {
		scroll-margin-top: 64px;
	}

	/* 3. «Elige tu consola» como carrusel */
	.mv-bf-temas {
		display: flex;
		gap: 12px;
		margin-inline: -16px;
		padding: 0 16px 8px;
		overflow-x: auto;
		scroll-padding-inline: 16px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.mv-bf-temas::-webkit-scrollbar {
		display: none;
	}
	.mv-bf-temas > li {
		flex: 0 0 82%;
		min-width: 0;
		scroll-snap-align: start;
	}

	/* 4. Juegos compactos */
	.mv-bf-ofertas .mv-ofm__item {
		grid-template-columns: auto minmax(0, 1fr) 44px;
		grid-template-areas: "dto name go" "dto precio go" "dto meta go";
		align-items: center;
		gap: 2px 10px;
		padding: 10px 12px;
	}
	.mv-bf-ofertas .mv-ofm__dto {
		width: 44px;
		height: 44px;
		font-size: 0.95rem;
	}
	.mv-bf-ofertas .mv-ofm__go {
		position: static;
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		font-size: 0;
	}
	.mv-bf-ofertas .mv-ofm__go::before {
		content: "→";
		color: var(--mv-accent-text);
		font-size: 20px;
		line-height: 1;
	}
	/* Toda la fila lleva a la tienda; el nombre sigue yendo a la ficha */
	.mv-bf-ofertas .mv-ofm__go::after {
		content: "";
		position: absolute;
		inset: 0;
	}
	.mv-bf-ofertas .mv-ofm__name a {
		position: relative;
		z-index: 1;
	}
	.mv-bf-ofertas .mv-ofm:not(.is-abierta) > li:nth-child(n+7) {
		display: none;
	}
	.mv-bf-mas-juegos {
		display: block;
		width: 100%;
		min-height: 44px;
		margin: 0 0 1.2em;
		border: 1px solid var(--mv-hair);
		border-radius: 999px;
		background: var(--mv-paper-2);
		color: var(--mv-ink);
		font-size: 15px;
		font-weight: 600;
		cursor: pointer;
	}
	.mv-bf-mas-juegos[hidden] {
		display: none;
	}

	/* 5. Textos plegables (los crea el JS) */
	.mv-bf-plegable {
		margin: 0;
		border-top: 1px solid var(--mv-hair);
	}
	.mv-bf-plegable:last-of-type {
		border-bottom: 1px solid var(--mv-hair);
	}
	.mv-bf-plegable summary {
		min-height: 44px;
		padding: 12px 0;
		border-bottom: 1px solid var(--mv-hair);
		font-size: 18px;
		font-weight: 600;
		line-height: 1.4;
		cursor: pointer;
	}
	.mv-bf-plegable:not([open]) summary {
		border-bottom: 0;
	}
	.mv-bf-plegable > :not(summary) {
		margin: 12px 0 16px;
	}
}
@media (max-width: 599px) {
	/* De borde a borde: gana a «.mv-ancho-pagina .entry-content > *», que pone el margen a 0. */
	.mv-ancho-pagina .entry-content > .mv-bf-temas,
	.mv-ancho-pagina .entry-content > .mv-bf-saltos {
		margin-inline: -16px;
		max-width: none;
	}
}
