/* Videos del ciclo de charlas (mu-plugins/la-youtube-video.php).
 * Usa los tokens --la-* del tema hijo; los fallbacks son los mismos valores. */

.la-yt {
	margin: 0;
}

.la-yt__pantalla {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--la-ink, #1a2744);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--la-shadow-sm, 0 1px 3px rgba(26, 39, 68, .10));
}

.la-yt__play {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
}

.la-yt__play img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.la-yt__play::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(26, 39, 68, .45), rgba(26, 39, 68, 0) 55%);
	transition: opacity var(--la-transition, 200ms ease);
}

.la-yt__boton {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: var(--la-blue, #476EC2);
	box-shadow: var(--la-shadow, 0 4px 12px rgba(26, 39, 68, .13));
	transition: background var(--la-transition, 200ms ease), transform var(--la-transition, 200ms ease);
}

.la-yt__boton::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -11px 0 0 -7px;
	border-style: solid;
	border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #fff;
}

.la-yt__play:hover .la-yt__boton,
.la-yt__play:focus-visible .la-yt__boton {
	background: var(--la-blue-deep, #3558a8);
	transform: scale(1.06);
}

.la-yt__play:focus-visible {
	outline: 3px solid var(--la-amber, #c49a3c);
	outline-offset: -3px;
}

.la-yt__duracion {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(26, 39, 68, .85);
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.la-yt__pantalla iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.la-yt__pie {
	margin-top: 10px;
}

.la-yt__titulo {
	margin: 0 0 4px;
	color: var(--la-ink, #1a2744);
	font-size: 17px;
	line-height: 1.3;
}

.la-yt__fecha {
	margin: 0;
	color: var(--la-ink-mid, #2d3f6b);
	font-size: 14px;
	line-height: 1.4;
}

.la-yt__desc {
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 1.5;
}

.la-yt__enlace {
	display: inline-block;
	margin-top: 6px;
	font-size: 14px;
}

.la-yt__grilla {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 28px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (prefers-reduced-motion: reduce) {
	.la-yt__boton,
	.la-yt__play::before {
		transition: none;
	}
}
