/* Lista de Episodios · 7 nov. 2026 · escenas a pantalla completa en celular (inspiración: ciaoenergy.com) */

.lv-ep-gigante { display: none; }
.lv-esc-final { display: none; }
.lv-esc-nav { display: none; }

@keyframes lv-esc-flota { from { transform: translateY(-6px) rotate(-1.5deg); } to { transform: translateY(8px) rotate(1deg); } }

@media (max-width: 700px) {
	html:has(.lv-escenas) { scroll-snap-type: y proximity; }

	/* Cabecera de la página: compacta, sin migas ni bajada */
	body.lv-noche .lv-seccion:has(.lv-escenas) { padding-block: 10px 0; }
	body.lv-noche .lv-seccion:has(.lv-escenas) .lv-migas { display: none; }
	body.lv-noche .lv-seccion:has(.lv-escenas) .lv-titulo-seccion { margin: 6px 0 14px; font-size: 26px; }
	body.lv-noche .lv-seccion:has(.lv-escenas) .lv-bajada { display: none; }
	.lv-proximamente-titulo { display: none; }

	/* Contenedor a todo el ancho; las dos listas se funden en una sola columna de escenas */
	.lv-escenas { display: flex; flex-direction: column; width: 100vw; margin-left: calc(50% - 50vw); }
	.lv-escenas .lv-episodios { display: contents; }
	.lv-escenas .lv-proximamente > .lv-ep-story { order: -1; }
	.lv-escenas .lv-esc-final { order: 99; }

	/* Escena */
	body.lv-noche .lv-escenas a.lv-ep-story,
	body.lv-noche .lv-escenas div.lv-ep-story {
		position: relative; flex: none; width: 100%; min-height: calc(100svh - 150px); margin: 0; padding: 30px 26px 34px; gap: 14px;
		border-radius: 0; box-shadow: none; overflow: hidden; isolation: isolate; scroll-snap-align: start; scroll-margin-top: 62px; aspect-ratio: auto; opacity: 1;
		background:
			radial-gradient(90% 46% at 50% 30%, color-mix(in srgb, var(--esc, #F4A93B) 34%, transparent), transparent 72%),
			linear-gradient(180deg, #0A1622, #0E1D2D);
		border-top: 1px solid rgba(238, 243, 242, .07);
	}
	body.lv-noche .lv-escenas a.lv-ep-story:hover { transform: none; box-shadow: none; }
	body.lv-noche .lv-escenas div.lv-ep-story.lv-episodio-pronto { border-style: none; border-top: 1px solid rgba(238, 243, 242, .07); }

	/* Número gigante en contorno, detrás de la carátula */
	.lv-escenas .lv-ep-gigante {
		display: block; position: absolute; z-index: -1; top: 36px; left: 50%; translate: -50% 0; font-size: 82vw; font-weight: 900; line-height: .8; letter-spacing: -.06em;
		color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--esc, #F4A93B) 60%, transparent); opacity: .55; pointer-events: none; white-space: nowrap;
	}

	/* Carátula grande, centrada y flotando */
	.lv-escenas .lv-ep-cabecera { flex-direction: column; align-items: center; gap: 18px; min-height: 0; margin-bottom: auto; text-align: center; }
	.lv-escenas .lv-ep-portada { width: min(46vw, 190px); transform: none; animation: lv-esc-flota 6s ease-in-out infinite alternate; }
	.lv-escenas .lv-ep-portada::before { inset: -16% -34% -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--esc, #F4A93B) 72%, transparent), transparent 74%); filter: blur(10px); }
	.lv-escenas .lv-ep-portada img { box-shadow: 0 28px 50px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14); }
	.lv-escenas .lv-ep-story:hover .lv-ep-portada { transform: none; }
	.lv-escenas .lv-ep-datos { align-items: center; padding: 0; }
	.lv-escenas .lv-ep-datos .lv-num { color: var(--esc, #F4A93B); font-size: 13px; }
	.lv-escenas .lv-ep-libro { margin-top: 4px; }

	/* Textos: pregunta grande, una perlita y el botón */
	.lv-escenas .lv-ep-story h3 { margin: 6px 0 0; font-size: clamp(25px, 7.4vw, 32px); line-height: 1.1; letter-spacing: -.025em; text-align: center; }
	.lv-escenas .lv-perlitas { flex: none; margin: 0; }
	.lv-escenas .lv-perlitas li { padding: 0; font-size: 15px; text-align: center; }
	.lv-escenas .lv-perlitas li::before { display: none; }
	.lv-escenas .lv-perlitas li:nth-child(n+2) { display: none; }
	.lv-escenas .lv-ep-cta { margin-top: 6px; }
	.lv-escenas .lv-ep-cta-espera { margin-top: 6px; }

	/* Revelado al llegar a la escena (solo si el JS está activo) */
	.lv-js-esc .lv-escenas .lv-ep-story :is(.lv-ep-portada, .lv-ep-datos, h3, .lv-perlitas, .lv-ep-cta) { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1); }
	.lv-js-esc .lv-escenas .lv-ep-story:not(.is-activa) :is(.lv-ep-portada, .lv-ep-datos, h3, .lv-perlitas, .lv-ep-cta) { opacity: 0; translate: 0 28px; }
	.lv-js-esc .lv-escenas .lv-ep-story.is-activa .lv-ep-datos { transition-delay: .08s; }
	.lv-js-esc .lv-escenas .lv-ep-story.is-activa h3 { transition-delay: .16s; }
	.lv-js-esc .lv-escenas .lv-ep-story.is-activa .lv-perlitas { transition-delay: .24s; }
	.lv-js-esc .lv-escenas .lv-ep-story.is-activa .lv-ep-cta { transition-delay: .32s; }

	/* El número gigante se mueve distinto al resto (parallax) */
	@supports (animation-timeline: view()) {
		.lv-escenas .lv-ep-gigante { animation: lv-esc-gig linear both; animation-timeline: view(); }
		@keyframes lv-esc-gig { from { translate: -50% 14%; } to { translate: -50% -14%; } }
	}

	/* Pantalla final */
	.lv-escenas .lv-esc-final { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: calc(100svh - 150px); padding: 40px 26px; text-align: center; scroll-snap-align: start; background: radial-gradient(90% 40% at 50% 20%, rgba(244, 169, 59, .16), transparent 70%), #0A1622; }
	.lv-esc-final h2 { margin: 0; font-size: clamp(28px, 8vw, 36px); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; }
	.lv-esc-final p { margin: 0 0 10px; color: rgba(238, 243, 242, .78); font-size: 17px; }
	.lv-esc-final .lv-btn { width: 100%; justify-content: center; }

	/* Puntos laterales + contador */
	.lv-esc-nav { position: fixed; z-index: 45; right: 10px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 12px 6px; border-radius: 999px; background: rgba(10, 22, 34, .55); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .12); }
	.lv-esc-nav b { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--esc-act, #F4A93B); font-variant-numeric: tabular-nums; }
	.lv-esc-nav button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(238, 243, 242, .35); cursor: pointer; transition: height .3s, background .3s; }
	.lv-esc-nav button.is-on { height: 24px; background: var(--esc-act, #F4A93B); }
	.lv-esc-nav[hidden] { display: none; }
	.lv-js-esc .lv-esc-nav { display: flex; }
	.lv-js-esc .lv-esc-nav[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html:has(.lv-escenas) { scroll-snap-type: none; }
	.lv-escenas .lv-ep-portada, .lv-escenas .lv-ep-gigante { animation: none !important; }
	.lv-js-esc .lv-escenas .lv-ep-story :is(.lv-ep-portada, .lv-ep-datos, h3, .lv-perlitas, .lv-ep-cta) { opacity: 1 !important; translate: none !important; transition: none !important; }
}


/* ===== Escritorio: escena ancha por episodio (7 nov. 2026) ===== */
@media (min-width: 701px) {
	html:has(.lv-escenas) { scroll-snap-type: y proximity; }
	body.lv-noche .lv-seccion:has(.lv-escenas) { padding-bottom: 0; }
	.lv-proximamente-titulo { display: none; }

	.lv-escenas { display: flex; flex-direction: column; width: 100vw; margin-left: calc(50% - 50vw); margin-top: 24px; }
	.lv-escenas .lv-episodios { display: contents; }
	.lv-escenas .lv-proximamente > .lv-ep-story { order: -1; }
	.lv-escenas .lv-esc-final { order: 99; }

	body.lv-noche .lv-escenas a.lv-ep-story,
	body.lv-noche .lv-escenas div.lv-ep-story {
		position: relative; flex: none; width: 100%; min-height: max(580px, calc(100svh - 110px)); margin: 0;
		padding: 56px max(40px, calc((100vw - 1120px) / 2)); border-radius: 0; box-shadow: none; overflow: hidden; isolation: isolate; aspect-ratio: auto; opacity: 1;
		display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-rows: auto auto auto auto; align-content: center; column-gap: 56px; row-gap: 20px;
		scroll-snap-align: start; scroll-margin-top: 104px;
		background:
			radial-gradient(60% 70% at 78% 48%, color-mix(in srgb, var(--esc, #F4A93B) 34%, transparent), transparent 72%),
			radial-gradient(40% 50% at 8% 100%, color-mix(in srgb, var(--esc, #F4A93B) 14%, transparent), transparent 70%),
			linear-gradient(180deg, #0A1622, #0E1D2D);
		border-top: 1px solid rgba(238, 243, 242, .07);
	}
	body.lv-noche .lv-escenas a.lv-ep-story:hover { transform: none; box-shadow: none; }
	body.lv-noche .lv-escenas div.lv-ep-story.lv-episodio-pronto { border-style: none; border-top: 1px solid rgba(238, 243, 242, .07); }

	/* Número gigante en contorno cruzando la escena */
	.lv-escenas .lv-ep-gigante {
		display: block; position: absolute; z-index: -1; right: max(24px, calc((100vw - 1120px) / 2 - 40px)); top: 50%; translate: 0 -50%;
		font-size: clamp(280px, 38vw, 560px); font-weight: 900; line-height: .78; letter-spacing: -.06em; white-space: nowrap; pointer-events: none;
		color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--esc, #F4A93B) 55%, transparent); opacity: .5;
	}

	/* Las dos mitades: la cabecera se "deshace" para ubicar carátula a la derecha y datos a la izquierda */
	.lv-escenas .lv-ep-cabecera { display: contents; }
	.lv-escenas .lv-ep-datos { grid-column: 1; grid-row: 1; align-items: flex-start; padding: 0; }
	.lv-escenas .lv-ep-datos .lv-num { color: var(--esc, #F4A93B); font-size: 14px; letter-spacing: .16em; }
	.lv-escenas .lv-ep-fecha { font-size: 14px; }
	.lv-escenas .lv-ep-libro { margin-top: 6px; font-size: 16px; }
	.lv-escenas .lv-ep-story h3 { grid-column: 1; grid-row: 2; margin: 0; max-width: 17ch; font-size: clamp(36px, 4vw, 58px); line-height: 1.03; letter-spacing: -.035em; }
	.lv-escenas .lv-perlitas { grid-column: 1; grid-row: 3; flex: none; gap: 14px; max-width: 46ch; margin: 4px 0 0; }
	.lv-escenas .lv-perlitas li { font-size: 17px; line-height: 1.5; }
	.lv-escenas .lv-ep-cta { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 10px; padding: 16px 26px; font-size: 16px; gap: 18px; }
	.lv-escenas .lv-ep-cta-espera { padding: 14px 26px; }

	.lv-escenas .lv-ep-portada { grid-column: 2; grid-row: 1 / span 4; align-self: center; justify-self: center; width: clamp(230px, 24vw, 330px); transform: none; animation: lv-esc-flota 6s ease-in-out infinite alternate; }
	.lv-escenas .lv-ep-portada::before { inset: -16% -34% -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--esc, #F4A93B) 72%, transparent), transparent 74%); filter: blur(14px); }
	.lv-escenas .lv-ep-portada img { border-radius: 8px; box-shadow: 0 40px 70px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .14); transform: perspective(900px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; will-change: transform; }
	.lv-escenas .lv-ep-story:hover .lv-ep-portada { transform: none; }

	/* Revelado al llegar */
	.lv-js-esc .lv-escenas .lv-ep-story :is(.lv-ep-portada, .lv-ep-datos, h3, .lv-perlitas, .lv-ep-cta) { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1); }
	.lv-js-esc .lv-escenas .lv-ep-story:not(.is-activa) :is(.lv-ep-portada, .lv-ep-datos, h3, .lv-perlitas, .lv-ep-cta) { opacity: 0; translate: 0 34px; }
	.lv-js-esc .lv-escenas .lv-ep-story.is-activa .lv-ep-datos { transition-delay: .06s; }
	.lv-js-esc .lv-escenas .lv-ep-story.is-activa h3 { transition-delay: .14s; }
	.lv-js-esc .lv-escenas .lv-ep-story.is-activa .lv-perlitas { transition-delay: .22s; }
	.lv-js-esc .lv-escenas .lv-ep-story.is-activa .lv-ep-cta { transition-delay: .3s; }

	@supports (animation-timeline: view()) {
		.lv-escenas .lv-ep-gigante { animation: lv-esc-gig-d linear both; animation-timeline: view(); }
		@keyframes lv-esc-gig-d { from { translate: 0 -40%; } to { translate: 0 -60%; } }
	}

	/* Pantalla final */
	.lv-escenas .lv-esc-final { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: max(460px, calc(100svh - 110px)); padding: 60px 40px; text-align: center; scroll-snap-align: start; background: radial-gradient(60% 50% at 50% 30%, rgba(244, 169, 59, .16), transparent 70%), #0A1622; }
	.lv-esc-final h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); font-weight: 900; line-height: 1.06; letter-spacing: -.03em; }
	.lv-esc-final p { margin: 0 0 12px; max-width: 46ch; color: rgba(238, 243, 242, .78); font-size: 19px; }
	.lv-esc-final .lv-btn { min-width: 280px; justify-content: center; }

	/* Riel de puntos */
	.lv-esc-nav { position: fixed; z-index: 45; right: 22px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 16px 8px; border-radius: 999px; background: rgba(10, 22, 34, .55); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .12); }
	.lv-esc-nav b { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--esc-act, #F4A93B); font-variant-numeric: tabular-nums; }
	.lv-esc-nav button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(238, 243, 242, .35); cursor: pointer; transition: height .3s, background .3s; }
	.lv-esc-nav button:hover { background: rgba(238, 243, 242, .7); }
	.lv-esc-nav button.is-on { height: 28px; background: var(--esc-act, #F4A93B); }
	.lv-js-esc .lv-esc-nav { display: flex; }
	.lv-js-esc .lv-esc-nav[hidden] { display: none; }
}
@media (min-width: 701px) and (max-width: 900px) {
	body.lv-noche .lv-escenas a.lv-ep-story, body.lv-noche .lv-escenas div.lv-ep-story { column-gap: 28px; padding-inline: 32px; }
	.lv-escenas .lv-ep-story h3 { font-size: 32px; }
}
@media (min-width: 701px) and (prefers-reduced-motion: reduce) {
	html:has(.lv-escenas) { scroll-snap-type: none; }
	.lv-escenas .lv-ep-portada img { transform: none !important; transition: none; }
}
@media (min-width: 701px) { .lv-escenas .lv-insignia-equipo { top: 26px; right: max(72px, calc((100vw - 1120px) / 2)); } }


/* Escritorio · ajuste 7 nov.: sin migas, título ni frase arriba; la primera escena sube y ocupa toda la pantalla; sin imán (evita los saltos) */
@media (min-width: 701px) {
	:root { --esc-top: 61px; }
	body.admin-bar { --esc-top: 93px; }
	html:has(.lv-escenas) { scroll-snap-type: none; }
	body.lv-noche .lv-seccion:has(.lv-escenas) { padding-block: 0; background: none; }
	body.lv-noche .lv-seccion:has(.lv-escenas) .lv-migas,
	body.lv-noche .lv-seccion:has(.lv-escenas) .lv-bajada { display: none; }
	body.lv-noche .lv-seccion:has(.lv-escenas) .lv-titulo-seccion { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	.lv-escenas { margin-top: 0; }
	body.lv-noche .lv-escenas a.lv-ep-story,
	body.lv-noche .lv-escenas div.lv-ep-story { min-height: max(600px, calc(100svh - var(--esc-top))); scroll-margin-top: var(--esc-top); }
	.lv-escenas .lv-esc-final { min-height: max(460px, calc(100svh - var(--esc-top))); }
}
/* Sin imán de scroll en ningún tamaño: provocaba saltos al bajar (7 nov. 2026) */
html:has(.lv-escenas) { scroll-snap-type: none; }


/* Metadatos mínimos en lugar de las perlitas (8 nov.): la lista promete, el episodio entrega */
.lv-ep-meta { display: block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: rgba(238, 243, 242, .66); }
@media (max-width: 700px) { .lv-escenas .lv-ep-meta { text-align: center; } }
@media (min-width: 701px) { .lv-escenas .lv-ep-meta { grid-column: 1; grid-row: 3; align-self: start; margin-top: -4px; } }

/* Desktop: la carátula de la tarjeta mide lo mismo que la del hero (viaje limpio, sin cambio de tamaño) */
@media (min-width: 1001px) { .lv-escenas .lv-ep-portada { width: calc(.38 * (100svh - 61px)); } }
