/* Cartelería — visor de kiosko (documento a pantalla completa, sin el theme). */

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
}

body.lht-kiosk {
	cursor: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #fff;
	/* Unidad tipográfica: el lado largo en horizontal. La tipografía se mide en
	   múltiplos de --u para verse igual al rotar el televisor. */
	--u: 1vmax;
}

.lht-kiosk-stage {
	position: fixed;
	inset: 0;
	overflow: hidden;
}

/* ---- Orientación vertical: lienzo 9:16 centrado ----
   En un monitor horizontal queda con bandas negras a los lados (previsualización);
   en un televisor montado de pie (viewport vertical) ocupa toda la pantalla.
   La unidad pasa a basarse en el ALTO del lienzo, que es su lado largo. */
body.lht-kiosk-vertical {
	--u: 1vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.lht-kiosk-vertical .lht-kiosk-stage {
	position: relative;
	inset: auto;
	height: 100vh;
	width: 56.25vh;
	max-width: 100vw;
}

/* Capas de diapositiva, apiladas; solo la activa es visible. */
.lht-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 1;
	pointer-events: none;
}

.lht-slide.is-active {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}

.lht-kiosk-transition-fade .lht-slide { transition: opacity .8s ease; }
.lht-kiosk-transition-slide .lht-slide { transform: translateX(48px); transition: opacity .6s ease, transform .6s ease; }
.lht-kiosk-transition-slide .lht-slide.is-active { transform: translateX(0); }
.lht-kiosk-transition-none .lht-slide { transition: none; }

.lht-slide-inner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---- Imagen ---- */
.lht-slide-image {
	position: absolute;
	inset: 0;
	background-position: center center;
	background-repeat: no-repeat;
}

/* ---- PDF / Web / Vídeo: llenan la pantalla ---- */
.lht-slide-pdf,
.lht-slide-web {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

.lht-slide-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.lht-slide-youtube {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.lht-slide-youtube iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* «Cubrir»: agranda el iframe 16:9 hasta llenar la pantalla (sin franjas negras). */
.lht-slide-youtube.is-cover iframe {
	inset: auto;
	left: 50%;
	top: 50%;
	width: 177.78vh;
	height: 100vh;
	min-width: 100vw;
	min-height: 56.25vw;
	transform: translate(-50%, -50%);
}

/* ---- Noticias ---- */
.lht-slide-news {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: #1A1A1A;
}

.lht-slide-news__media {
	position: absolute;
	inset: 0;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* Degradado: limpio arriba (luce la imagen destacada) y oscuro abajo (contraste del texto). */
.lht-slide-news.has-image .lht-slide-news__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .45) 64%, rgba(0, 0, 0, .92) 100%);
}

.lht-slide-news__body {
	position: relative;
	z-index: 2;
	padding: 4.5vh 7% 6vh;
	max-width: 100%;
}

.lht-slide-news__kicker {
	display: inline-block;
	font-size: calc(1.4 * var(--u));
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #ba9e60;
	margin-bottom: 1vh;
}

.lht-slide-news__title {
	margin: 0 0 1.2vh;
	font-size: calc(3.4 * var(--u));
	line-height: 1.08;
	font-weight: 800;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
}

.lht-slide-news__excerpt {
	margin: 0;
	font-size: calc(1.7 * var(--u));
	line-height: 1.4;
	color: #f3efe7;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---- Texto / Anuncio ---- */
.lht-slide-text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1A1A1A;
	text-align: center;
}

.lht-slide-text__bg {
	position: absolute;
	inset: 0;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: .35;
}

.lht-slide-text__inner {
	position: relative;
	z-index: 2;
	padding: 6vh 8vw;
	max-width: 86%;
}

.lht-slide-text__pretitle {
	display: block;
	font-size: calc(1.8 * var(--u));
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #ba9e60;
	margin-bottom: 2vh;
}

.lht-slide-text__title {
	margin: 0 0 2vh;
	font-size: calc(5.5 * var(--u));
	line-height: 1.04;
	font-weight: 800;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

.lht-slide-text__subtitle {
	margin: 0 0 2vh;
	font-size: calc(3 * var(--u));
	line-height: 1.2;
	color: #f3efe7;
}

.lht-slide-text__body {
	margin: 0;
	font-size: calc(2 * var(--u));
	line-height: 1.45;
	color: #e8e2d6;
}

/* ---- Pantalla vacía ---- */
.lht-kiosk-empty {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #1A1A1A;
}

.lht-kiosk-empty__title { font-size: calc(3 * var(--u)); font-weight: 800; margin: 0 0 1vh; color: #ba9e60; }
.lht-kiosk-empty__msg { font-size: calc(1.8 * var(--u)); margin: 0; color: #cfc7b8; }

/* ---- Barra de progreso ---- */
.lht-kiosk-progress {
	position: fixed;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 0;
	background: #c3360e;
	z-index: 10;
	transition: width linear;
}
