/* ==================================================================
   CATÁLOGO DE VÍDEOS — Norte Vanguardia
   Estilos del buscador, los filtros y la rejilla.
   Todo va marcado con "nv-" para no interferir con Astra.
   ================================================================== */

.nv-catalogo,
.nv-buscador {
	--nv-azul:          #1B3A6B;
	--nv-azul-oscuro:   #12294D;
	--nv-dorado:        #E8B04B;
	--nv-dorado-oscuro: #C08A2E;
	--nv-crema:         #F5F1E8;
	--nv-texto:         #2C3E50;
	--nv-texto-suave:   #5A6B7D;
	--nv-linea:         #D9D2C4;
	--nv-radio:         8px;
	font-family: 'Source Sans 3', system-ui, sans-serif;
}

.nv-catalogo [hidden],
.nv-buscador [hidden] {
	display: none !important;
}

/* Texto solo para lectores de pantalla. */
.nv-oculto {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.nv-catalogo :focus-visible,
.nv-buscador :focus-visible {
	outline: 3px solid var(--nv-dorado);
	outline-offset: 3px;
}


/* ---------- Buscador ---------- */

.nv-buscador {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	width: 100%;
}

.nv-campo {
	flex: 1 1 320px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border-radius: var(--nv-radio);
	padding: 0 18px;
	min-height: 58px;
	margin: 0;
}

.nv-campo svg {
	flex-shrink: 0;
	color: var(--nv-texto-suave);
}

.nv-campo input[type="search"] {
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	flex: 1;
	min-width: 0;
	font-size: 18px;
	font-family: inherit;
	color: var(--nv-texto);
	padding: 0;
	margin: 0;
	height: auto;
}

.nv-campo input::placeholder {
	color: var(--nv-texto-suave);
	opacity: 1;
}

.nv-boton-dorado {
	background: var(--nv-dorado);
	color: var(--nv-azul-oscuro);
	border: 0;
	border-radius: var(--nv-radio);
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	padding: 0 30px;
	min-height: 58px;
	cursor: pointer;
	transition: background .18s;
}

.nv-boton-dorado:hover {
	background: #f0bd63;
	color: var(--nv-azul-oscuro);
}


/* ---------- Filtros ---------- */

.nv-filtros-titulo {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--nv-dorado-oscuro);
	margin: 0 0 16px;
}

.nv-filtros {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nv-filtros li {
	margin: 0;
	list-style: none;
}

.nv-filtro {
	background: #fff;
	border: 1px solid var(--nv-linea);
	border-radius: 999px;
	padding: 11px 22px;
	font-family: inherit;
	font-size: 17px;
	color: var(--nv-azul);
	display: flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	transition: border-color .18s, background .18s;
}

.nv-filtro:hover {
	border-color: var(--nv-dorado-oscuro);
	background: #fffdf8;
	color: var(--nv-azul);
}

.nv-filtro[aria-pressed="true"] {
	background: var(--nv-azul);
	border-color: var(--nv-azul);
	color: #fff;
}

.nv-cuenta {
	background: rgba(27, 58, 107, .09);
	color: var(--nv-azul);
	border-radius: 999px;
	padding: 1px 9px;
	font-size: 14px;
	font-weight: 700;
}

.nv-filtro[aria-pressed="true"] .nv-cuenta {
	background: rgba(255, 255, 255, .22);
	color: #fff;
}


/* ---------- Línea de resumen ---------- */

.nv-resumen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 17px;
	color: var(--nv-texto-suave);
	margin: 28px 0 30px;
}

.nv-limpiar {
	background: none;
	border: 0;
	font-family: inherit;
	font-size: 17px;
	color: var(--nv-dorado-oscuro);
	text-decoration: underline;
	padding: 4px;
	cursor: pointer;
}


/* ---------- Bloque de cada tema ---------- */

.nv-bloque {
	margin-bottom: 52px;
}

.nv-bloque:last-child {
	margin-bottom: 0;
}

.nv-bloque-cabecera {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--nv-linea);
}

.nv-bloque-cabecera h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--nv-azul);
	margin: 0;
}

.nv-bloque-cuenta {
	font-size: 16px;
	color: var(--nv-texto-suave);
	white-space: nowrap;
}


/* ---------- Rejilla ---------- */

.nv-rejilla {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nv-tarjeta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
}

.nv-etiqueta {
	align-self: flex-start;
	background: rgba(27, 58, 107, .09);
	color: var(--nv-azul);
	border-radius: 999px;
	padding: 4px 13px;
	font-size: 14px;
	font-weight: 700;
}

.nv-abrir {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: var(--nv-azul);
	border-radius: var(--nv-radio);
	overflow: hidden;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}

.nv-abrir:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 26px rgba(27, 58, 107, .28);
}

.nv-abrir img.nv-miniatura {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

/* Marcador de posición mientras no hay carátula. */
.nv-marco {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	text-align: center;
}

.nv-marco span {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.nv-marco--1 { background: linear-gradient(155deg, #1B3A6B, #0d1f3d); }
.nv-marco--2 { background: linear-gradient(155deg, #215184, #122b4f); }
.nv-marco--3 { background: linear-gradient(155deg, #8a6a2a, #3d2f14); }
.nv-marco--4 { background: linear-gradient(155deg, #123f52, #0a2230); }
.nv-marco--5 { background: linear-gradient(155deg, #2b4a7a, #16233d); }

.nv-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
	transition: background .2s, transform .2s;
}

.nv-play::after {
	content: "";
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent var(--nv-azul-oscuro);
	margin-left: 4px;
}

.nv-abrir:hover .nv-play {
	background: var(--nv-dorado);
	transform: translate(-50%, -50%) scale(1.08);
}

.nv-duracion {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: rgba(0, 0, 0, .78);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 4px;
}

.nv-titulo {
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	text-align: left;
}

.nv-titulo a {
	color: var(--nv-azul);
	text-decoration: none;
}

.nv-titulo a:hover {
	color: var(--nv-azul);
	text-decoration: underline;
}

.nv-descripcion {
	font-size: 16px;
	line-height: 1.45;
	color: var(--nv-texto-suave);
	margin: 0;
}


/* ---------- Sin resultados ---------- */

.nv-vacio {
	text-align: center;
	padding: 70px 20px;
	background: #fff;
	border-radius: var(--nv-radio);
	border: 1px dashed var(--nv-linea);
}

.nv-vacio h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 25px;
	color: var(--nv-azul);
	margin: 0 0 10px;
}

.nv-vacio p {
	color: var(--nv-texto-suave);
	margin: 0 0 22px;
}

.nv-aviso {
	font-size: 18px;
	color: var(--nv-texto-suave);
	text-align: center;
	padding: 40px 20px;
}


/* ---------- Móvil ---------- */

@media (max-width: 640px) {
	.nv-rejilla {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 18px;
	}

	.nv-bloque-cabecera {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.nv-play {
		width: 44px;
		height: 44px;
	}

	.nv-play::after {
		border-width: 9px 0 9px 14px;
	}
}


/* ---------- Respeta a quien pide menos animación ---------- */

@media (prefers-reduced-motion: reduce) {
	.nv-catalogo *,
	.nv-buscador * {
		transition: none !important;
	}

	.nv-abrir:hover {
		transform: none;
	}
}


/* ==================================================================
   FICHA INDIVIDUAL DEL VÍDEO
   ================================================================== */

.nv-ficha {
	--nv-azul:          #1B3A6B;
	--nv-azul-oscuro:   #12294D;
	--nv-dorado:        #E8B04B;
	--nv-dorado-oscuro: #C08A2E;
	--nv-crema:         #F5F1E8;
	--nv-texto:         #2C3E50;
	--nv-texto-suave:   #5A6B7D;
	--nv-claro:         #E8ECF4;
	--nv-linea:         #D9D2C4;
	--nv-radio:         8px;
	font-family: 'Source Sans 3', system-ui, sans-serif;
	background: var(--nv-crema);
	padding-bottom: 80px;
}

.nv-ficha-ancho {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Cabecera azul ---------- */

.nv-ficha-cabecera {
	background: var(--nv-azul);
	padding: 34px 0 38px;
	margin-bottom: 0;
}

.nv-volver {
	display: inline-block;
	color: var(--nv-dorado);
	font-size: 17px;
	text-decoration: none;
	margin-bottom: 18px;
}

.nv-volver:hover {
	color: var(--nv-dorado);
	text-decoration: underline;
}

.nv-etiqueta--oscura {
	display: inline-block;
	background: rgba(232, 176, 75, .18);
	color: var(--nv-dorado);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 14px;
	font-weight: 700;
}

.nv-ficha-titulo {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	margin: 14px 0 12px;
	max-width: 760px;
}

.nv-ficha-datos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--nv-claro);
	font-size: 16px;
	margin: 0;
}

/* ---------- Reproductor ---------- */

/* La tarjeta blanca que enmarca el vídeo. Fija su propio ancho y su
   centrado, para no depender de lo que haga el tema alrededor. */
.nv-reproductor-caja {
	width: 100%;
	max-width: 860px;
	margin: 34px auto 0;
	background: #fff;
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 10px 30px rgba(12, 41, 77, .10);
}

.nv-reproductor {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #0d1f3d;
	border-radius: 8px;
	overflow: hidden;
}

/* Vídeos verticales: Shorts y TikTok. */
.nv-reproductor--vertical {
	aspect-ratio: 9 / 16;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.nv-reproductor iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.nv-reproductor-aviso {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 28px;
	text-align: center;
}

.nv-reproductor-aviso p {
	color: var(--nv-claro);
	font-size: 17px;
	margin: 0;
	max-width: 420px;
}

/* ---------- Descripción ---------- */

.nv-ficha-texto {
	max-width: 720px;
	margin: 34px auto 0;
	font-size: 18px;
	line-height: 1.7;
	color: var(--nv-texto);
}

.nv-ficha-texto p {
	margin: 0 0 18px;
}

.nv-ficha-texto p:last-child {
	margin-bottom: 0;
}

.nv-ficha-texto a {
	color: var(--nv-dorado-oscuro);
}

/* ---------- Relacionados ---------- */

.nv-relacionados {
	margin-top: 56px;
}

.nv-ver-todos {
	color: var(--nv-dorado-oscuro);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.nv-ver-todos:hover {
	color: var(--nv-dorado-oscuro);
	text-decoration: underline;
}

.nv-relacionados .nv-rejilla {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.nv-ficha-pie {
	margin: 48px 0 0;
	text-align: center;
}

.nv-ficha-pie .nv-boton-dorado {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.nv-reproductor-aviso .nv-boton-dorado {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

/* ---------- Móvil ---------- */

@media (max-width: 640px) {
	.nv-ficha-titulo {
		font-size: 27px;
	}

	.nv-ficha-cabecera {
		padding: 24px 0 28px;
		margin-bottom: 0;
	}

	.nv-reproductor-caja {
		padding: 10px;
		border-radius: 10px;
	}

	.nv-relacionados .nv-rejilla {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}


/* ==================================================================
   LA FICHA OCUPA TODO EL ANCHO
   Astra reserva una columna lateral aunque no haya nada dentro.
   Estas tres reglas se la quitan solo en la ficha del vídeo.
   NO BORRAR: sin esto, la página se queda en el 70% de la pantalla
   y sobra una franja blanca a la derecha.
   ================================================================== */

.single-video #primary {
	width: 100%;
	max-width: 100%;
	float: none;
	margin: 0;
	padding: 0;
}

.single-video #secondary {
	display: none;
}

.single-video .site-content > .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
	display: block;
}


/* ==================================================================
   VÍDEOS DESTACADOS DE LA PORTADA
   ================================================================== */

.nv-fila-enlace {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 6px;
}

/* El bloque de destacados se pega al titular: el hueco grande
   venía de sumar el espacio del contenedor y el de esta fila. */
.nv-destacados {
	margin-top: -10px;
}

.nv-ver-catalogo {
	color: var(--nv-dorado-oscuro);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(192, 138, 46, .45);
	padding-bottom: 2px;
}

.nv-ver-catalogo:hover {
	color: var(--nv-dorado-oscuro);
	border-bottom-color: var(--nv-dorado-oscuro);
}

.nv-rejilla--destacados {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* La tarjeta es un botón: hay que quitarle el aspecto de botón. */
.nv-tarjeta-btn {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.nv-tarjeta-btn .nv-abrir {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: var(--nv-azul);
	border-radius: var(--nv-radio);
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}

.nv-tarjeta-btn:hover .nv-abrir,
.nv-tarjeta-btn:focus-visible .nv-abrir {
	transform: translateY(-4px);
	box-shadow: 0 10px 26px rgba(27, 58, 107, .28);
}

.nv-tarjeta-btn:hover .nv-play,
.nv-tarjeta-btn:focus-visible .nv-play {
	background: var(--nv-dorado);
	transform: translate(-50%, -50%) scale(1.08);
}

.nv-tarjeta-btn .nv-titulo {
	display: block;
	color: var(--nv-azul);
}

.nv-tarjeta-btn:hover .nv-titulo {
	text-decoration: underline;
}


/* ==================================================================
   VENTANA DEL VÍDEO
   ================================================================== */

.nv-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.nv-modal[hidden] {
	display: none !important;
}

.nv-modal-fondo {
	position: absolute;
	inset: 0;
	background: rgba(6, 23, 53, .88);
}

.nv-modal-caja {
	position: relative;
	width: 100%;
	max-width: 880px;
	max-height: 92vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	font-family: 'Source Sans 3', system-ui, sans-serif;
}

.nv-modal-cerrar {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(6, 23, 53, .82);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .18s;
}

.nv-modal-cerrar:hover {
	background: var(--nv-dorado-oscuro);
	color: #fff;
}

.nv-modal-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #0d1f3d;
	border-radius: var(--nv-radio);
	overflow: hidden;
}

.nv-modal-video--vertical {
	aspect-ratio: 9 / 16;
	max-width: 380px;
	margin: 0 auto;
}

.nv-modal-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.nv-modal-tema {
	display: inline-block;
	background: rgba(27, 58, 107, .09);
	color: var(--nv-azul);
	border-radius: 999px;
	padding: 4px 13px;
	font-size: 14px;
	font-weight: 700;
	margin: 16px 0 0;
}

.nv-modal-titulo {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--nv-azul);
	margin: 10px 0 0;
}

.nv-modal-ficha {
	display: inline-block;
	margin-top: 12px;
	color: var(--nv-dorado-oscuro);
	font-size: 16px;
	text-decoration: none;
	border-bottom: 1px solid rgba(192, 138, 46, .45);
}

.nv-modal-ficha:hover {
	color: var(--nv-dorado-oscuro);
	border-bottom-color: var(--nv-dorado-oscuro);
}

@media (max-width: 640px) {
	.nv-modal {
		padding: 12px;
	}

	.nv-modal-caja {
		padding: 14px;
	}

	.nv-rejilla--destacados {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}


/* ==================================================================
   CORRECCIONES SOBRE LOS ESTILOS DE ASTRA

   Astra pinta de fondo TODOS los botones, incluso al pasar el ratón.
   Como nuestras tarjetas son botones, ese color asomaba por arriba y
   por abajo. Aquí se le quita a los nuestros, en todos sus estados.
   ================================================================== */

.nv-catalogo .nv-tarjeta-btn,
.nv-catalogo .nv-tarjeta-btn:hover,
.nv-catalogo .nv-tarjeta-btn:focus,
.nv-catalogo .nv-tarjeta-btn:active {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit;
	padding: 0 !important;
}

.nv-tarjeta-btn:hover .nv-titulo {
	text-decoration: none;
	color: var(--nv-azul);
}

/* La X de cerrar: fuera del reproductor, y redonda de verdad. */
.nv-modal-caja {
	padding: 54px 20px 20px;
}

.nv-modal .nv-modal-cerrar {
	top: 8px;
	right: 14px;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px;
	padding: 0 !important;
	border-radius: 50% !important;
	background: rgba(6, 23, 53, .10) !important;
	color: var(--nv-azul) !important;
	font-size: 24px;
	line-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nv-modal .nv-modal-cerrar:hover,
.nv-modal .nv-modal-cerrar:focus {
	background: var(--nv-azul) !important;
	color: #fff !important;
}

@media (max-width: 640px) {
	.nv-modal-caja {
		padding: 50px 14px 14px;
	}
}


/* ==================================================================
   CARRUSEL DE DESTACADOS
   Seis tarjetas a la vista; el resto esperan a la derecha.
   Avanza de una en una con las flechas, o deslizando con el dedo.
   No se mueve solo: manda la persona.
   ================================================================== */

.nv-carrusel {
	position: relative;
}

.nv-pista {
	display: flex;
	gap: 26px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	list-style: none;
	margin: 0;
	padding: 6px 2px 10px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.nv-pista::-webkit-scrollbar {
	display: none;
}

.nv-pista > .nv-tarjeta {
	/* 5,4 en lugar de 5: cinco tarjetas enteras y un trozo de la
	   sexta asomando, que es lo que avisa de que hay más a la derecha. */
	flex: 0 0 calc((100% - 5 * 26px) / 5.4);
	scroll-snap-align: start;
}

/* Hueco invisible que mantiene alineadas las tarjetas
   de los vídeos que todavía no tienen tema asignado. */
.nv-etiqueta--vacia {
	background: transparent;
	visibility: hidden;
}

.nv-flecha {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	border: 1px solid var(--nv-linea) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--nv-azul) !important;
	font-size: 30px;
	line-height: 1;
	padding: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(27, 58, 107, .18);
	transition: background .18s, color .18s;
}

.nv-flecha:hover {
	background: var(--nv-azul) !important;
	color: #fff !important;
	border-color: var(--nv-azul) !important;
}

.nv-flecha--izq { left: -14px; }
.nv-flecha--der { right: -14px; }

.nv-flecha[hidden] {
	display: none !important;
}

@media (max-width: 1024px) {
	.nv-pista > .nv-tarjeta {
		flex: 0 0 calc((100% - 3 * 22px) / 4);
	}
	.nv-pista { gap: 22px; }
}

@media (max-width: 820px) {
	.nv-pista > .nv-tarjeta {
		flex: 0 0 calc((100% - 2 * 18px) / 3);
	}
	.nv-pista { gap: 18px; }
	.nv-flecha { display: none !important; }
}

@media (max-width: 560px) {
	.nv-pista > .nv-tarjeta {
		flex: 0 0 46%;
	}
	.nv-pista { gap: 14px; }
}


/* ==================================================================
   TÍTULOS A DOS LÍNEAS EN LA PORTADA

   Todas las tarjetas terminan a la misma altura, así la fila queda
   recta. Lo que sobra se corta con puntos suspensivos, pero el
   título completo sigue entero en el catálogo y en la ficha.
   ================================================================== */

.nv-destacados .nv-titulo {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}

/* La tarjeta reserva la misma altura para todas. */
.nv-pista > .nv-tarjeta {
	align-self: start;
}


/* ==================================================================
   ENCUESTA DE GENERACIONES
   ================================================================== */

.nv-encuesta {
	--nv-azul:          #1B3A6B;
	--nv-dorado:        #E8B04B;
	--nv-claro:         #E8ECF4;
	font-family: 'Source Sans 3', system-ui, sans-serif;
	width: 100%;
}

.nv-encuesta {
	display: grid;
}

.nv-encuesta-opciones,
.nv-encuesta-resultados {
	grid-area: 1 / 1;
}

.nv-encuesta-opciones[hidden]   { display: flex !important; }
.nv-encuesta-resultados[hidden] { display: block !important; }

.nv-encuesta [hidden] {
	visibility: hidden;
	pointer-events: none;
}

.nv-encuesta-opciones {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.nv-gen {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 11px 16px !important;
	border: 1px solid rgba(232, 176, 75, .45) !important;
	border-radius: 8px !important;
	background: rgba(255, 255, 255, .05) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 17px;
	text-align: left;
	cursor: pointer;
	transition: background .18s, border-color .18s;
}

.nv-gen:hover,
.nv-gen:focus-visible {
	background: rgba(232, 176, 75, .18) !important;
	border-color: var(--nv-dorado) !important;
	color: #fff !important;
}

.nv-gen-nombre {
	font-weight: 600;
}

.nv-gen-anios {
	font-size: 15px;
	color: var(--nv-claro);
	white-space: nowrap;
}

.nv-gen--enviando {
	opacity: .6;
	pointer-events: none;
}

/* ---------- Resultados ---------- */

.nv-barras {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nv-barra-cabecera {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	color: var(--nv-claro);
	font-size: 16px;
	margin-bottom: 5px;
}

.nv-barra--mia .nv-barra-cabecera {
	color: var(--nv-dorado);
	font-weight: 700;
}

.nv-barra-cifra {
	font-weight: 700;
	white-space: nowrap;
}

.nv-barra-pista {
	height: 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .13);
	overflow: hidden;
}

.nv-barra-relleno {
	height: 100%;
	border-radius: 999px;
	background: rgba(255, 255, 255, .45);
	transition: width .5s ease;
}

.nv-barra--mia .nv-barra-relleno {
	background: var(--nv-dorado);
}

.nv-encuesta-total {
	margin: 16px 0 0;
	font-size: 15px;
	color: var(--nv-claro);
	opacity: .85;
	text-align: center;
}

/* Vídeo subido al hosting: se comporta igual que el iframe
   dentro de la caja del reproductor. */
.nv-reproductor video,
.nv-modal-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #000;
	object-fit: contain;
}

/* Cuando el vídeo es propio y vertical, la tarjeta blanca se
   ciñe al ancho del reproductor en vez de ocupar 860px. */
.nv-ficha-ancho:has(.nv-reproductor--vertical video) .nv-reproductor-caja {
	max-width: 480px;
}

/* Ventana con vídeo propio vertical: la caja se ciñe al reproductor. */
.nv-modal-caja:has(.nv-modal-video--vertical video) {
	max-width: 480px;
}