/* AVAV Core · Hero */

.avh {
	/* Tema AVAV (por defecto) */
	--avh-accent: #2A3EB1;
	--avh-accent-ink: #FFFFFF;
	--avh-panel: #1B1F4B;
	--avh-panel-ink: #FFFFFF;
	--avh-mark: #C8202F;
	--avh-shade-rgb: 12, 14, 38;
	--avh-display: inherit;
	--avh-title-transform: none;
	--avh-title-weight: 700;
	--avh-title-spacing: -0.02em;
	--avh-btn-radius: 3px;
	--avh-radius: 0px;
	--avh-ease: cubic-bezier(.65, 0, .25, 1);
	--avh-speed: 1.1s;
	--avh-pad-x: clamp(20px, 6vw, 96px);
	--avh-ui-h: 78px;

	position: relative;
	overflow: hidden;
	isolation: isolate;
	height: min(calc(var(--avh-h, 85) * 1vh), var(--avh-hmax, 900px));
	min-height: 460px;
	color: #FFFFFF;
	background: var(--avh-panel);
	border-radius: var(--avh-radius);
	-webkit-font-smoothing: antialiased;
}
@supports (height: 1svh) {
	.avh { height: min(calc(var(--avh-h, 85) * 1svh), var(--avh-hmax, 900px)); }
}

.avh--lolagaos {
	--avh-accent: #C9B97F;
	--avh-accent-ink: #0E0E0E;
	--avh-panel: #0E0E0E;
	--avh-panel-ink: #F2EEE4;
	--avh-mark: #C9B97F;
	--avh-shade-rgb: 8, 8, 8;
	--avh-display: 'Oswald', 'Bebas Neue', 'Arial Narrow', sans-serif;
	--avh-title-transform: uppercase;
	--avh-title-weight: 600;
	--avh-title-spacing: 0;
	--avh-btn-radius: 0;
}

.avh *, .avh *::before, .avh *::after { box-sizing: border-box; }

/* ------------------------------------------------------------------ */
/* Pista y diapositivas (todas apiladas en la misma celda: sin saltos) */
/* ------------------------------------------------------------------ */

.avh-track {
	position: relative;
	display: grid;
	height: 100%;
	touch-action: pan-y;
}
.avh-slide {
	grid-area: 1 / 1;
	position: relative;
	overflow: hidden;
	min-width: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity var(--avh-speed) ease, visibility 0s linear var(--avh-speed);
}
.avh-slide.is-active {
	z-index: 3;
	visibility: visible;
	opacity: 1;
	transition: opacity var(--avh-speed) ease, visibility 0s;
}
.avh-slide.is-leaving { z-index: 2; visibility: visible; }
.avh-slide.is-prep { transition: none !important; }

/* Deslizar */
.avh--fx-slide .avh-slide {
	opacity: 1;
	transform: translate3d(calc(var(--avh-dir, 1) * 100%), 0, 0);
	transition: transform var(--avh-speed) var(--avh-ease), visibility 0s linear var(--avh-speed);
}
.avh--fx-slide .avh-slide.is-active {
	transform: none;
	transition: transform var(--avh-speed) var(--avh-ease), visibility 0s;
}
.avh--fx-slide .avh-slide.is-leaving {
	transform: translate3d(calc(var(--avh-dir, 1) * -35%), 0, 0);
	transition: transform var(--avh-speed) var(--avh-ease);
}
.avh--fx-slide .avh-slide.is-leaving .avh-media { opacity: .5; transition: opacity var(--avh-speed) ease; }

/* Cortinilla */
.avh--fx-wipe .avh-slide {
	opacity: 1;
	clip-path: inset(0 0 0 100%);
	transition: clip-path var(--avh-speed) var(--avh-ease), visibility 0s linear var(--avh-speed);
}
.avh--fx-wipe.is-back .avh-slide { clip-path: inset(0 100% 0 0); }
.avh--fx-wipe .avh-slide.is-active {
	clip-path: inset(0 0 0 0);
	transition: clip-path var(--avh-speed) var(--avh-ease), visibility 0s;
}
.avh--fx-wipe .avh-slide.is-leaving { clip-path: inset(0 0 0 0); transition: none; }
.avh--fx-wipe .avh-slide .avh-media,
.avh--fx-wipe .avh-slide .avh-poster { transform: scale(1.08); transition: transform calc(var(--avh-speed) * 1.6) var(--avh-ease); }
.avh--fx-wipe .avh-slide.is-active .avh-media,
.avh--fx-wipe .avh-slide.is-active .avh-poster,
.avh--fx-wipe .avh-slide.is-leaving .avh-media,
.avh--fx-wipe .avh-slide.is-leaving .avh-poster { transform: none; }

/* Ken Burns: zoom lento hacia el punto focal */
.avh--fx-kenburns .avh-slide.is-active .avh-img,
.avh--fx-kenburns .avh-slide.is-leaving .avh-img {
	transform-origin: var(--avh-fx, 50%) var(--avh-fy, 50%);
	animation: avh-kenburns calc(var(--avh-int, 7000ms) + 2.5s) linear both;
}
.avh--fx-kenburns.is-paused .avh-slide.is-active .avh-img { animation-play-state: paused; }
@keyframes avh-kenburns {
	from { transform: scale(1); }
	to { transform: scale(1.12); }
}

/* ------------------------------------------------------------------ */
/* Imagen                                                             */
/* ------------------------------------------------------------------ */

.avh-media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: var(--avh-panel);
}
.avh-media picture { display: block; width: 100%; height: 100%; }
.avh .avh-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Degradado: abajo para el texto, arriba para la cabecera transparente */
.avh-shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(var(--avh-shade-rgb), .55) 0, rgba(var(--avh-shade-rgb), 0) calc(var(--avh-safe, 110px) + 80px)),
		linear-gradient(to top, rgba(var(--avh-shade-rgb), min(1, calc(var(--avh-ov, .45) + .3))) 0%, rgba(var(--avh-shade-rgb), var(--avh-ov, .45)) 30%, rgba(var(--avh-shade-rgb), calc(var(--avh-ov, .45) * .25)) 65%, rgba(var(--avh-shade-rgb), 0) 100%);
}
.avh-side--left.avh-l--full .avh-shade {
	background:
		linear-gradient(to bottom, rgba(var(--avh-shade-rgb), .55) 0, rgba(var(--avh-shade-rgb), 0) calc(var(--avh-safe, 110px) + 80px)),
		linear-gradient(to right, rgba(var(--avh-shade-rgb), var(--avh-ov, .45)) 0%, rgba(var(--avh-shade-rgb), calc(var(--avh-ov, .45) * .4)) 45%, rgba(var(--avh-shade-rgb), 0) 75%),
		linear-gradient(to top, rgba(var(--avh-shade-rgb), min(1, calc(var(--avh-ov, .45) + .2))) 0%, rgba(var(--avh-shade-rgb), 0) 60%);
}
.avh-side--right.avh-l--full .avh-shade {
	background:
		linear-gradient(to bottom, rgba(var(--avh-shade-rgb), .55) 0, rgba(var(--avh-shade-rgb), 0) calc(var(--avh-safe, 110px) + 80px)),
		linear-gradient(to left, rgba(var(--avh-shade-rgb), var(--avh-ov, .45)) 0%, rgba(var(--avh-shade-rgb), calc(var(--avh-ov, .45) * .4)) 45%, rgba(var(--avh-shade-rgb), 0) 75%),
		linear-gradient(to top, rgba(var(--avh-shade-rgb), min(1, calc(var(--avh-ov, .45) + .2))) 0%, rgba(var(--avh-shade-rgb), 0) 60%);
}

/* ------------------------------------------------------------------ */
/* Texto                                                              */
/* ------------------------------------------------------------------ */

.avh-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: calc(var(--avh-safe, 110px) + 24px) var(--avh-pad-x) calc(var(--avh-ui-h) + 28px);
	pointer-events: none;
}
.avh-v--center .avh-content { align-items: center; }
.avh-side--center .avh-content { justify-content: center; text-align: center; }
.avh-side--right .avh-content { justify-content: flex-end; }
.avh-inner { max-width: 46rem; min-width: 0; }
.avh-side--center .avh-inner { max-width: 54rem; }

.avh .avh-kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: inherit;
}
.avh .avh-kicker::before {
	content: "";
	flex: none;
	width: 28px;
	height: 3px;
	background: var(--avh-mark);
}
.avh .avh-title {
	margin: 0;
	padding: 0;
	font-family: var(--avh-display);
	font-size: clamp(2rem, 1.2rem + 2.9vw, 4.4rem);
	font-weight: var(--avh-title-weight);
	line-height: 1.04;
	letter-spacing: var(--avh-title-spacing);
	text-transform: var(--avh-title-transform);
	color: inherit;
	text-wrap: balance;
	overflow-wrap: anywhere;
	hyphens: auto;
}
.avh .avh-title em { font-style: italic; font-weight: inherit; }
.avh .avh-text {
	max-width: 38em;
	margin: 18px 0 0;
	font-size: clamp(1rem, .9rem + .35vw, 1.25rem);
	line-height: 1.5;
	color: inherit;
	opacity: .9;
	text-wrap: pretty;
}
.avh-side--center .avh-text { margin-left: auto; margin-right: auto; }
.avh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
	pointer-events: auto;
}
.avh-side--center .avh-actions { justify-content: center; }

.avh .avh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--avh-btn-radius);
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.avh .avh-btn--primary { background: var(--avh-accent); color: var(--avh-accent-ink); border-color: var(--avh-accent); }
.avh .avh-btn--primary:hover { background: #FFFFFF; color: var(--avh-panel); border-color: #FFFFFF; }
.avh .avh-btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .8); }
.avh .avh-btn--ghost:hover { background: #FFFFFF; color: var(--avh-panel); border-color: #FFFFFF; }
.avh .avh-btn:focus-visible,
.avh button:focus-visible,
.avh .avh-cover:focus-visible,
.avh .avh-poster__link:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(0, 0, 0, .45); }

/* Toda la diapositiva enlazada */
.avh-cover { position: absolute; inset: 0; z-index: 1; }
.avh-cover:focus-visible { outline-offset: -6px !important; }

/* Animación del texto (solo con JS; sin JS se ve todo) */
.avh--anim.is-ready .avh-slide .avh-inner > * {
	opacity: 0;
	transform: translate3d(0, 26px, 0);
	transition: opacity .5s ease, transform .5s ease;
}
.avh--anim.is-ready .avh-slide.is-shown .avh-inner > * {
	opacity: 1;
	transform: none;
	transition: opacity .8s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.avh--anim.is-ready .avh-slide.is-shown .avh-inner > :nth-child(1) { transition-delay: .35s; }
.avh--anim.is-ready .avh-slide.is-shown .avh-inner > :nth-child(2) { transition-delay: .47s; }
.avh--anim.is-ready .avh-slide.is-shown .avh-inner > :nth-child(3) { transition-delay: .59s; }
.avh--anim.is-ready .avh-slide.is-shown .avh-inner > :nth-child(4) { transition-delay: .71s; }

/* ------------------------------------------------------------------ */
/* Split: imagen 60 % / panel 40 %                                    */
/* ------------------------------------------------------------------ */

.avh-l--split {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	background: var(--avh-panel);
	color: var(--avh-panel-ink);
}
.avh-l--split .avh-media { position: relative; inset: auto; grid-row: 1; grid-column: 2; }
.avh-l--split .avh-content {
	position: relative;
	inset: auto;
	grid-row: 1;
	grid-column: 1;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	padding: calc(var(--avh-safe, 110px) + 16px) clamp(24px, 4vw, 72px) calc(var(--avh-ui-h) + 20px) var(--avh-pad-x);
}
.avh-l--split.avh-side--right { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.avh-l--split.avh-side--right .avh-media { grid-column: 1; }
.avh-l--split.avh-side--right .avh-content { grid-column: 2; padding-left: clamp(24px, 4vw, 72px); padding-right: var(--avh-pad-x); }
.avh-l--split .avh-title { font-size: clamp(1.8rem, 1rem + 2.2vw, 3.4rem); }
.avh-l--split .avh-actions { justify-content: flex-start; }
.avh-l--split .avh-media::after {
	/* Arriba, para que la cabecera transparente se lea también sobre la foto */
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: calc(var(--avh-safe, 110px) + 60px);
	background: linear-gradient(to bottom, rgba(var(--avh-shade-rgb), .5), rgba(var(--avh-shade-rgb), 0));
	pointer-events: none;
}
.avh-l--split .avh-btn--ghost { color: var(--avh-panel-ink); }

/* Sin imagen: panel de color a todo el ancho */
.avh-slide.is-noimg { display: block; background: var(--avh-panel); color: var(--avh-panel-ink); }
.avh-slide.is-noimg .avh-media {
	background:
		radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--avh-accent) 55%, transparent) 0%, transparent 60%),
		radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--avh-mark) 30%, transparent) 0%, transparent 60%),
		var(--avh-panel);
}
.avh-slide.is-noimg .avh-content { position: absolute; inset: 0; align-items: flex-end; }
.avh-slide.is-noimg .avh-inner { max-width: 58rem; }

/* ------------------------------------------------------------------ */
/* Cartel: imagen entera sobre fondo difuminado (sin bandas)          */
/* ------------------------------------------------------------------ */

.avh-backdrop {
	position: absolute;
	inset: -60px;
	background-color: var(--avh-panel);
	background-position: center;
	background-size: cover;
	filter: blur(44px) saturate(1.15) brightness(.62);
	transform: scale(1.1);
}
.avh-backdrop--color { inset: 0; filter: none; transform: none; }
.avh-poster {
	position: absolute;
	inset: calc(var(--avh-safe, 110px) + 8px) var(--avh-pad-x) calc(var(--avh-ui-h) + 8px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.avh-poster picture,
.avh-poster__link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.avh .avh-poster__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
}
.avh-poster__link { border-radius: 4px; }

/* ------------------------------------------------------------------ */
/* Navegación: capítulos con barra de progreso                        */
/* ------------------------------------------------------------------ */

.avh-ui {
	position: absolute;
	inset: auto 0 0;
	z-index: 6;
	display: flex;
	align-items: flex-end;
	gap: 24px;
	min-height: var(--avh-ui-h);
	padding: 0 var(--avh-pad-x) 22px;
	color: #FFFFFF;
	pointer-events: none;
}
.avh-ui > * { pointer-events: auto; }
.avh-nav { display: flex; flex: 1 1 auto; gap: 18px; min-width: 0; }

.avh .avh-tab {
	all: unset;
	box-sizing: border-box;
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	max-width: 230px;
	padding: 10px 0 0;
	font-size: 12px;
	line-height: 1.35;
	letter-spacing: .02em;
	color: inherit;
	opacity: .62;
	cursor: pointer;
	transition: opacity .3s ease;
}
.avh .avh-tab { display: flex; flex-wrap: wrap; align-items: baseline; }
.avh .avh-tab:hover, .avh .avh-tab.is-active { opacity: 1; }
.avh .avh-tab:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 4px; }
.avh-tab__num { flex: none; font-weight: 700; margin-right: 8px; font-variant-numeric: tabular-nums; }
.avh-tab__label { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.avh-tab__bar {
	display: block;
	flex: 0 0 100%;
	height: 2px;
	margin-top: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, .3);
}
.avh-tab__bar i {
	display: block;
	height: 100%;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
}
.avh-tab.is-active .avh-tab__bar i { animation: avh-progress var(--avh-int, 7000ms) linear forwards; }
.avh.is-paused .avh-tab.is-active .avh-tab__bar i { animation-play-state: paused; }
.avh--manual .avh-tab.is-active .avh-tab__bar i { animation: none; transform: scaleX(1); }
@keyframes avh-progress { to { transform: scaleX(1); } }

.avh-controls { display: flex; gap: 8px; flex: none; }
.avh .avh-btn-ico {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: #FFFFFF;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .35);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease;
}
.avh .avh-btn-ico:hover { background: #FFFFFF; color: var(--avh-panel); }
.avh .avh-btn-ico svg { display: block; }
.avh-i-play { display: none !important; }
.avh.is-user-paused .avh-i-play { display: block !important; }
.avh.is-user-paused .avh-i-pause { display: none !important; }

/* Puntos */
.avh--nav-dots .avh-nav { flex: 0 1 auto; gap: 10px; align-items: center; }
.avh--nav-dots .avh-tab {
	flex: none;
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	background: currentColor;
	opacity: .45;
}
.avh--nav-dots .avh-tab.is-active { opacity: 1; transform: scale(1.25); }
.avh--nav-dots .avh-tab__num,
.avh--nav-dots .avh-tab__label { display: none; }
.avh--nav-dots .avh-tab__bar { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.avh--nav-dots .avh-ui { justify-content: space-between; align-items: center; }

/* Una sola diapositiva */
.avh--single .avh-content { padding-bottom: 48px; }
.avh--single .avh-poster { bottom: 24px; }

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

@media (max-width: 767px) {
	.avh {
		--avh-pad-x: 20px;
		--avh-ui-h: 64px;
		height: calc(var(--avh-hm, 78) * 1vh);
		min-height: 520px;
		max-height: none;
	}
	@supports (height: 1svh) {
		.avh { height: calc(var(--avh-hm, 78) * 1svh); }
	}
	.avh-content { padding-top: calc(var(--avh-safe, 110px) * .7 + 16px); }
	.avh-v--center .avh-content { align-items: flex-end; }
	.avh-side--right .avh-content { justify-content: flex-start; }
	.avh-side--left.avh-l--full .avh-shade,
	.avh-side--right.avh-l--full .avh-shade,
	.avh-shade {
		background:
			linear-gradient(to bottom, rgba(var(--avh-shade-rgb), .5) 0, rgba(var(--avh-shade-rgb), 0) 160px),
			linear-gradient(to top, rgba(var(--avh-shade-rgb), min(1, calc(var(--avh-ov, .45) + .35))) 0%, rgba(var(--avh-shade-rgb), var(--avh-ov, .45)) 40%, rgba(var(--avh-shade-rgb), 0) 80%);
	}
	.avh .avh-title { font-size: clamp(1.75rem, 1.1rem + 4.2vw, 2.5rem); }
	.avh .avh-title, .avh .avh-text {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.avh .avh-title { -webkit-line-clamp: 5; }
	.avh .avh-text { -webkit-line-clamp: 3; margin-top: 12px; font-size: 1rem; }
	.avh .avh-kicker { margin-bottom: 12px; font-size: 12px; }
	.avh-actions { margin-top: 20px; gap: 10px; }
	.avh .avh-btn { min-height: 44px; padding: 10px 20px; font-size: 13px; }

	/* Split en vertical: imagen arriba, texto abajo */
	.avh-l--split,
	.avh-l--split.avh-side--right {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 40%) minmax(0, 1fr);
	}
	.avh-l--split .avh-media,
	.avh-l--split.avh-side--right .avh-media { grid-column: 1; grid-row: 1; }
	.avh-l--split .avh-content,
	.avh-l--split.avh-side--right .avh-content {
		grid-column: 1;
		grid-row: 2;
		align-items: flex-start;
		padding: 24px var(--avh-pad-x) calc(var(--avh-ui-h) + 8px);
	}
	.avh-l--split .avh-content { overflow: hidden; }
	.avh-l--split .avh-title { font-size: clamp(1.4rem, 1rem + 3vw, 1.9rem); -webkit-line-clamp: 4; }
	.avh-l--split .avh-text { -webkit-line-clamp: 2; }
	.avh-l--split .avh-kicker { margin-bottom: 10px; }
	.avh-l--split .avh-actions { margin-top: 16px; }

	.avh-poster { inset: calc(var(--avh-safe, 110px) * .7) 12px calc(var(--avh-ui-h) + 4px); }

	/* Capítulos → barras tipo «historias» */
	.avh-ui { gap: 12px; padding-bottom: 16px; align-items: center; }
	.avh-nav { gap: 6px; }
	.avh .avh-tab { padding: 0; opacity: 1; max-width: none; }
	.avh-tab__num, .avh-tab__label { display: none; }
	.avh-tab__bar { margin: 0; height: 3px; border-radius: 2px; }
	.avh .avh-btn-ico { width: 38px; height: 38px; }
	.avh-prev, .avh-next { display: none !important; }
}

/* ------------------------------------------------------------------ */
/* Reducir movimiento: todo pasa a fundido corto, sin zoom ni barridos */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.avh { --avh-speed: .35s; }
	.avh .avh-slide,
	.avh .avh-slide.is-active,
	.avh .avh-slide.is-leaving {
		transform: none !important;
		clip-path: none !important;
		transition: opacity var(--avh-speed) ease, visibility 0s linear var(--avh-speed);
	}
	.avh .avh-slide:not(.is-active) { opacity: 0; }
	.avh .avh-slide.is-active { opacity: 1; transition: opacity var(--avh-speed) ease, visibility 0s; }
	.avh .avh-img { animation: none !important; transform: none !important; }
	.avh .avh-media, .avh .avh-poster { transform: none !important; }
	.avh--anim.is-ready .avh-slide .avh-inner > * { opacity: 1; transform: none; transition: none; }
}

/* Editor de Elementor: sin animaciones de carga */
.elementor-editor-active .avh--anim.is-ready .avh-slide .avh-inner > * { opacity: 1; transform: none; }

/* ================================================================== */
/* 0.5 · Vídeo de fondo                                               */
/* ================================================================== */

.avh-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .8s ease;
	pointer-events: none;
}
.avh-video.is-playing { opacity: 1; }
.avh--fx-kenburns .avh-slide.has-video .avh-img { animation: none; }

/* ================================================================== */
/* 0.5 · Parallax (la imagen baja más despacio; lo mueve el JS)       */
/* ================================================================== */

.avh--parallax .avh-media,
.avh--parallax .avh-backdrop { translate: 0 var(--avh-par, 0px); will-change: translate; }

/* ================================================================== */
/* 0.5 · Diseño «Portada + lista lateral»                             */
/* ================================================================== */

@media (min-width: 768px) {
	.avh--d-list {
		--avh-list-w: clamp(300px, 30vw, 440px);
		--avh-ui-h: 0px;
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--avh-list-w);
	}
	.avh--d-list .avh-track { grid-column: 1; grid-row: 1; min-width: 0; }
	.avh--d-list .avh-ui {
		position: relative;
		inset: auto;
		grid-column: 2;
		grid-row: 1;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		min-height: 0;
		padding: calc(var(--avh-safe, 110px) + 8px) 0 0;
		background: var(--avh-panel);
		color: var(--avh-panel-ink);
		pointer-events: auto;
	}
	.avh--d-list .avh-nav {
		flex: 1 1 auto;
		flex-direction: column;
		gap: 0;
		min-height: 0;
		overflow-y: auto;
		scrollbar-width: thin;
	}
	.avh--d-list .avh-tab {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		column-gap: 16px;
		align-items: start;
		max-width: none;
		flex: none;
		padding: 16px 28px 14px;
		border-top: 1px solid rgba(255, 255, 255, .1);
		opacity: .7;
	}
	.avh--d-list .avh-tab:first-child { border-top: 0; }
	.avh--d-list .avh-tab.is-active { opacity: 1; background: rgba(255, 255, 255, .06); }
	.avh--d-list .avh-tab__thumb { grid-row: 1 / span 3; grid-column: 1; }
	.avh--d-list .avh-tab__num { display: none; }
	.avh--d-list .avh-tab__kicker {
		grid-column: 2;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .12em;
		text-transform: uppercase;
		color: var(--avh-mark);
		margin-bottom: 4px;
	}
	.avh--lolagaos.avh--d-list .avh-tab__kicker { color: var(--avh-accent); }
	.avh--d-list .avh-tab__label {
		grid-column: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		white-space: normal;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.3;
		text-overflow: clip;
	}
	.avh--d-list .avh-tab__bar { grid-column: 2; align-self: end; margin-top: 10px; background: rgba(255, 255, 255, .15); }
	.avh--d-list .avh-controls { justify-content: flex-end; padding: 14px 28px 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
	.avh--d-list .avh-btn-ico { color: var(--avh-panel-ink); }
	.avh--d-list .avh-content { padding-bottom: 56px; }
	.avh--d-list .avh-l--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.avh--d-list .avh-poster { bottom: 32px; }
}

.avh-tab__thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: 3px;
	background: rgba(255, 255, 255, .08);
}
.avh-tab__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border: 0;
	border-radius: 0;
}

/* ================================================================== */
/* 0.5 · Diseño «Cartelera»: fila de carteles verticales              */
/* ================================================================== */

.avh--d-cartelera {
	--avh-card-w: clamp(96px, 8.6vw, 150px);
	--avh-ui-h: calc(var(--avh-card-w) * 1.5 + 64px);
}
.avh--d-cartelera .avh-ui { align-items: flex-end; padding-bottom: 20px; }
.avh--d-cartelera .avh-nav {
	gap: 14px;
	align-items: flex-end;
	overflow-x: auto;
	overflow-y: visible;
	padding-top: 12px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
.avh--d-cartelera .avh-nav::-webkit-scrollbar { display: none; }
.avh--d-cartelera .avh-tab {
	flex: 0 0 var(--avh-card-w);
	max-width: none;
	padding: 0;
	opacity: .72;
	scroll-snap-align: start;
	transition: opacity .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}
.avh--d-cartelera .avh-tab:hover { opacity: 1; transform: translateY(-4px); }
.avh--d-cartelera .avh-tab.is-active { opacity: 1; transform: translateY(-8px); }
.avh--d-cartelera .avh-tab__thumb {
	flex: 0 0 100%;
	aspect-ratio: 2 / 3;
	margin-bottom: 8px;
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7);
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: outline-color .3s ease;
}
.avh--d-cartelera .avh-tab.is-active .avh-tab__thumb { outline-color: var(--avh-accent); }
.avh--d-cartelera .avh-tab__num { font-size: 11px; }
.avh--d-cartelera .avh-tab__label { font-size: 11px; }
.avh--d-cartelera .avh-tab__bar { margin-top: 8px; }
.avh--d-cartelera .avh-controls { align-self: flex-end; padding-bottom: 6px; }
.avh--d-cartelera .avh-shade {
	background:
		linear-gradient(to bottom, rgba(var(--avh-shade-rgb), .55) 0, rgba(var(--avh-shade-rgb), 0) calc(var(--avh-safe, 110px) + 80px)),
		linear-gradient(to top, rgba(var(--avh-shade-rgb), min(1, calc(var(--avh-ov, .45) + .4))) 0%, rgba(var(--avh-shade-rgb), var(--avh-ov, .45)) calc(var(--avh-ui-h) + 40px), rgba(var(--avh-shade-rgb), 0) 100%);
}
.avh-tab__thumb.is-empty { background: linear-gradient(135deg, var(--avh-accent), var(--avh-panel)); }

@media (max-width: 767px) {
	.avh--d-list .avh-tab__thumb,
	.avh--d-list .avh-tab__kicker { display: none; }

	.avh--d-cartelera { --avh-card-w: 70px; --avh-ui-h: calc(var(--avh-card-w) * 1.5 + 40px); }
	.avh--d-cartelera .avh-tab { opacity: .75; }
	.avh--d-cartelera .avh-tab__thumb { display: block; margin-bottom: 6px; }
	.avh--d-cartelera .avh-tab__num,
	.avh--d-cartelera .avh-tab__label { display: none; }
	.avh--d-cartelera .avh-nav { gap: 8px; }
	.avh--d-cartelera .avh-ui { padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.avh--parallax .avh-media,
	.avh--parallax .avh-backdrop { translate: none; }
	.avh--d-cartelera .avh-tab { transition: none; }
}
