/*
 * «Noche dorada» (registro v1.12): el diseño del sitio. Todo va bajo body.lv-noche.
 * Cómo funciona: los componentes de sitio.css y motor.css toman sus colores de la paleta --lv-*;
 * aquí esa paleta se redefine en versión noche, así todo el sitio cambia junto. Lo que necesita un trato
 * especial (botones, secciones profundas, encabezado, pie, héroes) se ajusta más abajo.
 * Lectura larga (guías): texto sobre una hoja clara, cómoda para leer.
 */
body.lv-noche {
	/* Paleta del sitio en versión noche. */
	--lv-aire: #0E1C2B;
	--lv-blanco: #13263A;
	--lv-profundo: #EEF3F2;
	--lv-piedra: #A7B6C2;
	--lv-linea: rgba(238, 243, 242, .12);
	--lv-salvia-oscuro: #245443;
	/* Color de los enlaces de texto (en zonas claras se redefine). */
	--n-enlace: #F4C77D;
	--n-noche: #0A1622;
	--n-noche-2: #13293D;
	--n-noche-3: #1B3550;
	--n-tinta: #EEF3F2;
	--n-niebla: #A7B6C2;
	--n-ambar: #F4A93B;
	--n-ambar-hondo: #D9861A;
	--n-salvia: #2F6B57;
	--n-salvia-luz: #6FB396;
	--n-hoja: #F4F7F6;
	--n-texto: #13293D;
	--n-texto-suave: #4A5D6E;
	--n-linea: rgba(238, 243, 242, .12);
	--n-linea-clara: rgba(19, 41, 61, .12);
	/* Etiquetas pequeñas en Figtree (ya servida por el sitio): sin pedir fuentes a terceros. */
	--n-mono: "Figtree", system-ui, sans-serif;
	background: var(--n-noche);
	color: var(--n-tinta);
}

/* ---------- Base: títulos y enlaces (Elementor impone colores oscuros; aquí se corrigen) ---------- */
body.lv-noche :where(h1, h2, h3, h4, h5, h6) { color: inherit; }
body.lv-noche :where(.site-main) a:not([class]) { color: var(--n-enlace); }
body.lv-noche :where(.site-main) a:not([class]):hover { color: #FFD89B; }
body.lv-noche ::selection { background: rgba(244, 169, 59, .35); color: #fff; }
body.lv-noche :focus-visible { outline-color: var(--n-ambar); }


/* ---------- Encabezado de vidrio y menú ---------- */
body.lv-noche .lv-cabecera { background: rgba(10, 22, 34, .72); border-bottom-color: var(--n-linea); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
body.lv-noche .lv-marca, body.lv-noche.lv-sitio a.lv-marca { color: var(--n-tinta); }
body.lv-noche .lv-menu { gap: 4px; padding: 4px; border-radius: 999px; background: rgba(238, 243, 242, .05); box-shadow: inset 0 0 0 1px var(--n-linea); }
body.lv-noche .lv-menu a, body.lv-noche.lv-sitio .lv-menu a { display: block; padding: 8px 16px; border-radius: 999px; color: var(--n-niebla); font-size: 15px; text-decoration: none; transition: color .2s, background .2s; }
body.lv-noche .lv-menu a:hover { color: var(--n-tinta); background: rgba(238, 243, 242, .07); text-decoration: none; }
body.lv-noche .lv-menu a[aria-current="page"], body.lv-noche .lv-menu .current-menu-item > a { color: var(--n-noche); background: var(--n-tinta); text-decoration: none; }
/* Al bajar se esconde y al subir reaparece (noche.js pone .lv-cabecera-oculta). */
body.lv-noche .lv-cabecera { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
body.lv-noche .lv-cabecera.lv-cabecera-oculta { transform: translateY(-100%); }

/* ---------- Encabezados de página (todas las páginas internas) ---------- */
body.lv-noche .lv-cabeza { position: relative; padding-block: 36px 64px; background: transparent; overflow: hidden; isolation: isolate; }
body.lv-noche .lv-cabeza::before, body.lv-noche .lv-cabeza::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
body.lv-noche .lv-cabeza::before { width: 560px; height: 560px; right: -160px; top: -240px; background: radial-gradient(circle, rgba(244, 169, 59, .32), transparent 65%); animation: lv-n-flota 22s ease-in-out infinite alternate; }
body.lv-noche .lv-cabeza::after { width: 480px; height: 480px; left: -220px; bottom: -280px; background: radial-gradient(circle, rgba(47, 107, 87, .55), transparent 65%); animation: lv-n-flota 28s ease-in-out infinite alternate-reverse; }
body.lv-noche .lv-cabeza h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 900; letter-spacing: -.045em; line-height: 1; color: var(--n-tinta); }
body.lv-noche .lv-linea-libro { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--n-ambar); }
body.lv-noche .lv-linea-libro::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
/* Textos que en el diseño anterior eran blancos sobre fondo oscuro: siguen blancos. */
body.lv-noche :is(.lv-profunda .lv-titulo-seccion, .lv-caja-herramienta h2, .lv-accion b, .lv-recorrido h3, .lv-compromisos b, .lv-avatar, .lv-reproductor) { color: #fff; }
body.lv-noche :is(.lv-seccion.lv-profunda, .lv-caja-herramienta) { color: var(--n-tinta); }
body.lv-noche .lv-migas, body.lv-noche .lv-migas a, body.lv-noche.lv-sitio .lv-migas a { color: var(--n-niebla); text-decoration: none; }
body.lv-noche .lv-migas a:hover { color: var(--n-tinta); }
body.lv-noche .lv-migas li + li::before { color: rgba(238, 243, 242, .25); }

/* ---------- Secciones y tarjetas ---------- */
body.lv-noche .lv-seccion.lv-aire { background: linear-gradient(180deg, rgba(19, 41, 61, .55), rgba(19, 41, 61, .25)); }
body.lv-noche .lv-seccion.lv-profunda { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(70% 90% at 100% 0%, rgba(244, 169, 59, .16), transparent 60%), linear-gradient(160deg, #13293D, #0A1622); box-shadow: inset 0 1px 0 var(--n-linea), inset 0 -1px 0 var(--n-linea); }
body.lv-noche .lv-titulo-seccion { font-weight: 800; letter-spacing: -.035em; }
body.lv-noche .lv-titulo-seccion em { font-style: italic; color: var(--n-ambar); }
/* Tarjetas: profundidad, borde suave y brillo al pasar el mouse (el foco sigue al cursor con noche.js). */
body.lv-noche :is(.lv-episodio, .lv-metodo li, .lv-personaje, .lv-vacio, .lv-canales, .lv-semana, .lv-caja-accion) { background: linear-gradient(160deg, rgba(27, 53, 80, .85), rgba(19, 41, 61, .55)); box-shadow: inset 0 0 0 1px var(--n-linea); }
body.lv-noche a.lv-episodio, body.lv-noche.lv-sitio a.lv-episodio { --mx: 50%; --my: 50%; position: relative; overflow: hidden; isolation: isolate; color: var(--n-tinta); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
body.lv-noche a.lv-episodio::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(244, 169, 59, .16), transparent 45%); transition: opacity .35s; }
body.lv-noche a.lv-episodio:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(244, 169, 59, .38), 0 30px 60px -30px rgba(0, 0, 0, .85); }
body.lv-noche a.lv-episodio:hover::before { opacity: 1; }
body.lv-noche .lv-episodio .lv-num, body.lv-noche .lv-semana b, body.lv-noche .lv-relacionados a span { color: var(--n-ambar); }
body.lv-noche .lv-metodo li::before { background: rgba(244, 169, 59, .14); color: var(--n-ambar); box-shadow: 0 0 24px rgba(244, 169, 59, .25); }
body.lv-noche .lv-relacionados a, body.lv-noche.lv-sitio .lv-relacionados a { background: rgba(238, 243, 242, .03); box-shadow: inset 0 0 0 1px var(--n-linea); color: var(--n-tinta); }
body.lv-noche .lv-relacionados a:hover { box-shadow: inset 0 0 0 1px rgba(244, 169, 59, .45); }
body.lv-noche .lv-lista-puntos li { border-bottom-color: var(--n-linea); }
body.lv-noche .lv-retrato { background: conic-gradient(from 210deg, #F4A93B, #6FB396, #D9861A, #F4A93B); padding: 4px; box-shadow: none; color: var(--n-tinta); }
body.lv-noche .lv-retrato > * { position: relative; }
body.lv-noche .lv-nota-ia { background: rgba(238, 243, 242, .04); box-shadow: inset 0 0 0 1px var(--n-linea); }
body.lv-noche .lv-aire .lv-nota-ia { background: rgba(238, 243, 242, .04); }
body.lv-noche .lv-inicial { background: var(--n-ambar); color: var(--n-noche); }
body.lv-noche .lv-inicial-sofia { background: var(--n-salvia-luz); color: var(--n-noche); }
body.lv-noche .lv-pendiente { background: rgba(244, 169, 59, .16); color: #FFD89B; }

/* Episodio, libro y herramienta */
body.lv-noche .lv-sitio .lv-reproductor, body.lv-noche.lv-sitio .lv-reproductor { background: radial-gradient(90% 120% at 80% 0%, rgba(244, 169, 59, .35), transparent 55%), linear-gradient(160deg, #1B3550, #0A1622); box-shadow: inset 0 0 0 1px var(--n-linea), 0 40px 80px -40px #000; }
body.lv-noche .lv-reproductor .lv-play { box-shadow: 0 0 0 10px rgba(244, 169, 59, .15), 0 10px 30px rgba(0, 0, 0, .4); }
body.lv-noche .lv-pepitas li { background: linear-gradient(160deg, rgba(27, 53, 80, .85), rgba(19, 41, 61, .55)); box-shadow: inset 0 0 0 1px var(--n-linea); }
body.lv-noche .lv-pepitas li::before { background: rgba(244, 169, 59, .16); color: var(--n-ambar); }
body.lv-noche .lv-caja-herramienta { background: radial-gradient(120% 120% at 100% 0%, rgba(244, 169, 59, .26), transparent 55%), linear-gradient(150deg, #1B3550, #0A1622); box-shadow: inset 0 0 0 1px rgba(244, 169, 59, .22), 0 30px 60px -35px #000; }
body.lv-noche .lv-accion { background: rgba(238, 243, 242, .05); }
body.lv-noche .lv-ficha-libro { background: linear-gradient(160deg, rgba(27, 53, 80, .85), rgba(19, 41, 61, .55)); box-shadow: inset 0 0 0 1px var(--n-linea); }
body.lv-noche .lv-portada { background: linear-gradient(160deg, #1B3550, #0A1622); color: var(--n-tinta); box-shadow: 0 14px 24px -12px #000; }
body.lv-noche details.lv-fuentes { box-shadow: inset 0 0 0 1px var(--n-linea); }

/* Biblioteca */
body.lv-noche .lv-pestanas { box-shadow: inset 0 0 0 1px var(--n-linea); background: rgba(238, 243, 242, .04); }
body.lv-noche .lv-pestanas a, body.lv-noche.lv-sitio .lv-pestanas a { color: var(--n-niebla); }
body.lv-noche .lv-pestanas a:hover { color: var(--n-tinta); }
body.lv-noche .lv-pestanas a[aria-current="page"], body.lv-noche.lv-sitio .lv-pestanas a[aria-current="page"] { background: var(--n-tinta); color: var(--n-noche); }
body.lv-noche .lv-filtros a, body.lv-noche.lv-sitio .lv-filtros a { box-shadow: inset 0 0 0 1px var(--n-linea); color: var(--n-tinta); }
body.lv-noche .lv-filtros a[aria-current="page"] { background: rgba(244, 169, 59, .14); box-shadow: inset 0 0 0 1px rgba(244, 169, 59, .55); color: #FFD89B; }
body.lv-noche .lv-sello-acceso { background: rgba(111, 179, 150, .14); color: var(--n-salvia-luz); }

/* Formularios, cuentas, Mi espacio y herramientas: mismo lenguaje */
body.lv-noche .lv-cuenta-aviso { background: rgba(111, 179, 150, .1); border-left-color: var(--n-salvia-luz); color: var(--n-tinta); }
body.lv-noche .lv-cuenta-error { background: rgba(226, 109, 90, .12); border-left-color: #E26D5A; }
body.lv-noche .lv-cuenta-lista a, body.lv-noche.lv-sitio .lv-cuenta-lista a { background: rgba(238, 243, 242, .03); color: var(--n-tinta); }
body.lv-noche .lv-formulario form, body.lv-noche .lv-cuenta-form { background: linear-gradient(160deg, rgba(27, 53, 80, .85), rgba(19, 41, 61, .55)); box-shadow: inset 0 0 0 1px var(--n-linea); }
body.lv-noche .lv-formulario .lv-formulario-boton, body.lv-noche .lv-cuenta .lv-cuenta-form button[type="submit"] { background: var(--n-ambar); color: var(--n-noche); }
body.lv-noche .lv-motor { --m-boton: #F4A93B; --m-bien: #6FB396; --m-linea: rgba(238, 243, 242, .16); }
body.lv-noche .lv-app { --a-linea: rgba(238, 243, 242, .16); }
body.lv-noche .lv-app-menu a, body.lv-noche.lv-sitio .lv-app-menu a { color: var(--n-niebla); }
body.lv-noche .lv-app-menu a:hover { color: var(--n-tinta); }
body.lv-noche .lv-app-menu a[aria-current="page"] { color: var(--n-tinta); background: rgba(244, 169, 59, .16); }
body.lv-noche .lv-cuenta-lista a, body.lv-noche .lv-app-entradas li { box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .14); }
body.lv-noche :is(.lv-formulario, .lv-cuenta-form) :is(input[type="text"], input[type="email"], textarea) { border-color: rgba(238, 243, 242, .2); color: var(--n-tinta); }
body.lv-noche .lv-motor .lv-m-boton, body.lv-noche .lv-motor a.lv-m-boton { color: var(--n-noche); }
body.lv-noche .lv-app { --a-boton: #F4A93B; }
body.lv-noche .lv-app a.lv-app-boton, body.lv-noche .lv-app button.lv-app-boton { color: var(--n-noche); }
body.lv-noche .lv-app .lv-app-chips button[aria-pressed="true"] { background: var(--n-ambar); color: var(--n-noche); border-color: var(--n-ambar); }

/* Páginas de texto (legales) */
body.lv-noche .lv-indice { background: rgba(238, 243, 242, .04); box-shadow: inset 0 0 0 1px var(--n-linea); }
body.lv-noche .lv-indice a, body.lv-noche.lv-sitio .lv-indice a { color: var(--n-tinta); }
body.lv-noche .lv-indice ol { padding-left: 0; list-style: none; } /* Los títulos ya traen su número. */
body.lv-noche .lv-indice a:hover { color: var(--n-ambar); }
body.lv-noche .lv-texto th { background: rgba(238, 243, 242, .06); }

/* ---------- Pie ---------- */
body.lv-noche .lv-pie { position: relative; overflow: hidden; background: var(--n-noche); border-top: 1px solid var(--n-linea); }
body.lv-noche .lv-entrar, body.lv-noche.lv-sitio a.lv-entrar { margin-right: -12px; color: var(--n-niebla); }
body.lv-noche a.lv-entrar:hover { color: var(--n-tinta); }
/* Bloque «Lee la guía» del episodio */
body.lv-noche .lv-caja-guia { padding: 28px; border-radius: 22px; background: linear-gradient(160deg, rgba(47, 107, 87, .22), rgba(19, 41, 61, .5)); box-shadow: inset 0 0 0 1px rgba(111, 179, 150, .3); }
body.lv-noche .lv-caja-guia h2 { margin: 8px 0 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
body.lv-noche .lv-caja-guia h2 a, body.lv-noche.lv-sitio .lv-caja-guia h2 a { color: var(--n-tinta); text-decoration: none; }
body.lv-noche .lv-caja-guia h2 a:hover { color: var(--n-salvia-luz); }
body.lv-noche .lv-caja-guia .lv-etiqueta { color: var(--n-salvia-luz); }
body.lv-noche .lv-pie h2, body.lv-noche .lv-pie-titulo { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--n-niebla); }
body.lv-noche .lv-pie a:hover { color: var(--n-ambar); }
.lv-gigante { display: none; }
body.lv-noche .lv-gigante { display: block; margin: 56px 0 0; font: 900 clamp(64px, 18vw, 250px)/.8 "Figtree", system-ui, sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(238, 243, 242, .14); white-space: nowrap; user-select: none; }
body.lv-noche .lv-gigante em { font-style: italic; -webkit-text-stroke: 1px rgba(244, 169, 59, .4); }

/* Menú inferior del celular, estilo app (template-parts/barra-app.php) */
.lv-barra-app { display: none; }
@media (max-width: 960px) {
	body.lv-noche .lv-barra-app { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: block; padding: 0 6px env(safe-area-inset-bottom, 0px); background: rgba(10, 22, 34, .88); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 1px 0 rgba(238, 243, 242, .1), 0 -18px 40px -24px #000; font-family: var(--lv-fuente); }
	body.lv-noche .lv-barra-app ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; padding: 0; list-style: none; }
	body.lv-noche .lv-barra-app a, body.lv-noche.lv-sitio .lv-barra-app a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-height: 62px; padding: 8px 2px 8px; color: var(--n-niebla); font-size: 10.5px; font-weight: 600; line-height: 1.1; letter-spacing: 0; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .2s, transform .15s; }
	body.lv-noche .lv-barra-app a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	body.lv-noche .lv-barra-app svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
	body.lv-noche .lv-barra-app a:hover { color: var(--n-tinta); }
	body.lv-noche .lv-barra-app a:active { transform: scale(.92); }
	body.lv-noche .lv-barra-app a:focus-visible { outline: 2px solid var(--n-ambar); outline-offset: -4px; border-radius: 12px; }
	/* Botón activo: ícono ámbar, texto claro y una rayita de luz arriba. */
	body.lv-noche .lv-barra-app a[aria-current="page"] { color: var(--n-tinta); }
	body.lv-noche .lv-barra-app a[aria-current="page"] svg { color: var(--n-ambar); filter: drop-shadow(0 0 8px rgba(244, 169, 59, .45)); }
	body.lv-noche .lv-barra-app a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 24px; height: 3px; margin-left: -12px; border-radius: 0 0 3px 3px; background: var(--n-ambar); box-shadow: 0 0 12px rgba(244, 169, 59, .7); }
	/* Botón central: círculo ámbar que sobresale de la barra. */
	body.lv-noche .lv-barra-app-centro a, body.lv-noche.lv-sitio .lv-barra-app-centro a { color: var(--n-tinta); font-weight: 700; }
	body.lv-noche .lv-barra-app-boton { display: grid; place-items: center; width: 56px; height: 56px; margin-top: -30px; border-radius: 50%; background: radial-gradient(circle at 32% 25%, #FFD08A, var(--n-ambar) 55%, var(--n-ambar-hondo)); color: var(--n-noche); box-shadow: 0 0 0 5px var(--n-noche), 0 12px 28px -6px rgba(244, 169, 59, .75); transition: box-shadow .25s; }
	body.lv-noche .lv-barra-app-boton svg { width: 26px; height: 26px; color: var(--n-noche); stroke-width: 2; }
	body.lv-noche .lv-barra-app-centro a:hover .lv-barra-app-boton { box-shadow: 0 0 0 5px var(--n-noche), 0 16px 34px -6px rgba(244, 169, 59, .95); }
	/* Espacio para que el menú no tape el final de la página. */
	body.lv-noche.lv-con-barra { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}
/* Celulares angostos: «ACCIONABLE» necesita ~67 px; se gana espacio sin achicar los íconos. */
@media (max-width: 400px) {
	body.lv-noche .lv-barra-app { padding-inline: 2px; }
	body.lv-noche .lv-barra-app a, body.lv-noche.lv-sitio .lv-barra-app a { padding-inline: 0; }
}
@media (max-width: 370px) {
	body.lv-noche .lv-barra-app a, body.lv-noche.lv-sitio .lv-barra-app a { font-size: 10px; letter-spacing: -.05em; }
}

/* Aparición al bajar: el contenido es visible en reposo; solo se asienta al entrar (noche.js). */
.lv-js .lv-revela { transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s; }
.lv-js .lv-revela:not(.dentro) { transform: translateY(24px); opacity: .45; }
@media (prefers-reduced-motion: reduce) {
	.lv-js .lv-revela:not(.dentro) { transform: none; opacity: 1; }
	body.lv-noche .lv-cabeza::before, body.lv-noche .lv-cabeza::after { animation: none; }
	body.lv-noche .lv-cabecera, body.lv-noche .lv-barra-app a { transition: none; }
}

/* Barra de progreso de lectura */
.lv-n-progreso { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px; background: transparent; pointer-events: none; }
.lv-n-progreso span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--n-salvia-luz), var(--n-ambar)); box-shadow: 0 0 12px rgba(244, 169, 59, .6); }

/* ---------- Héroe ---------- */
.lv-n-heroe { position: relative; padding: 56px 0 120px; overflow: hidden; isolation: isolate; }
.lv-n-heroe::before, .lv-n-heroe::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.lv-n-heroe::before { width: 620px; height: 620px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(244, 169, 59, .38), transparent 65%); animation: lv-n-flota 20s ease-in-out infinite alternate; }
.lv-n-heroe::after { width: 520px; height: 520px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(47, 107, 87, .6), transparent 65%); animation: lv-n-flota 26s ease-in-out infinite alternate-reverse; }
@keyframes lv-n-flota { to { transform: translate(-60px, 40px) scale(1.1); } }
body.lv-noche .lv-n-heroe .lv-migas, body.lv-noche .lv-n-heroe .lv-migas a { color: var(--n-niebla); }
body.lv-noche .lv-n-heroe .lv-migas li + li::before { color: rgba(238, 243, 242, .25); }
.lv-n-ceja { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; font: 700 13px/1.3 var(--n-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--n-ambar); }
.lv-n-ceja::before { content: ""; width: 22px; height: 1px; background: currentColor; }
body.lv-noche .lv-n-heroe h1 { max-width: 20ch; margin-top: 16px; font-size: clamp(36px, 5.6vw, 68px); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--n-tinta); }
.lv-n-bajada { max-width: 40em; margin-top: 22px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--n-niebla); }
.lv-n-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; font-size: 15px; color: var(--n-niebla); }
.lv-n-meta span { display: inline-flex; align-items: center; gap: 8px; }
.lv-n-meta svg { width: 16px; height: 16px; color: var(--n-ambar); }
.lv-n-temas { display: flex; flex-wrap: wrap; gap: 8px; }
body.lv-noche .lv-n-temas a { padding: 4px 12px; border-radius: 999px; background: rgba(238, 243, 242, .07); box-shadow: inset 0 0 0 1px var(--n-linea); color: var(--n-tinta); font-size: 13.5px; text-decoration: none; }
body.lv-noche .lv-n-temas a:hover { box-shadow: inset 0 0 0 1px rgba(244, 169, 59, .5); }

/* ---------- Hoja de lectura ---------- */
.lv-n-hoja { --n-enlace: #2F6B57; position: relative; margin: -72px clamp(8px, 1.5vw, 20px) 0; padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); border-radius: clamp(28px, 4vw, 48px); background: var(--n-hoja); color: var(--n-texto); box-shadow: 0 -30px 60px -40px rgba(0, 0, 0, .6); }
.lv-n-rejilla { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lv-n-indice { position: sticky; top: 104px; font-size: 15px; }
.lv-n-indice p { margin: 0 0 12px; font: 700 12px/1 var(--n-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--n-texto-suave); }
.lv-n-indice ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--n-linea-clara); }
.lv-n-indice li { margin: 0; }
body.lv-noche .lv-n-indice a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; color: var(--n-texto-suave); line-height: 1.35; text-decoration: none; transition: color .2s, border-color .2s; }
body.lv-noche .lv-n-indice a:hover { color: var(--n-texto); }
body.lv-noche .lv-n-indice a.activo { border-left-color: var(--n-ambar); color: var(--n-texto); font-weight: 700; }
.lv-n-indice details { display: none; }

/* Texto del artículo */
.lv-n-articulo { max-width: 68ch; font-size: 19px; line-height: 1.75; color: var(--n-texto); }
.lv-n-articulo > :first-child { margin-top: 0; }
.lv-n-articulo :where(p, ul, ol) { margin: 0 0 22px; }
.lv-n-articulo h2 { scroll-margin-top: 100px; margin: 56px 0 18px; font-size: clamp(27px, 2.8vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--n-texto); }
.lv-n-articulo h3 { margin: 34px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--n-texto); }
.lv-n-articulo ul, .lv-n-articulo ol { padding-left: 24px; }
.lv-n-articulo li { margin-bottom: 10px; }
.lv-n-articulo li::marker { color: var(--n-ambar-hondo); font-weight: 700; }
.lv-n-articulo strong { color: var(--n-texto); }
body.lv-noche .lv-n-articulo a { color: var(--n-salvia); text-decoration-color: rgba(47, 107, 87, .35); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body.lv-noche .lv-n-articulo a:hover { text-decoration-color: var(--n-salvia); }
.lv-n-articulo .lv-pendiente { font-size: .78em; }
/* Frase destacada (propia, no una cita del autor) */
.lv-n-articulo .lv-g-destacado { margin: 40px 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--n-ambar); font-size: clamp(23px, 2.3vw, 28px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; color: var(--n-texto); }

/* Tarjetas dentro del texto */
.lv-g-etiqueta { margin: 0 0 6px !important; font: 700 12px/1.3 var(--n-mono); letter-spacing: .08em; text-transform: uppercase; }
.lv-g-titulo { margin: 0 0 8px !important; font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.lv-g-resumen { margin: 0 0 40px; padding: 24px 26px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--n-linea-clara), 0 20px 40px -30px rgba(19, 41, 61, .4); }
.lv-g-resumen .lv-g-etiqueta { color: var(--n-salvia); }
.lv-g-resumen ul { margin: 6px 0 0 !important; padding: 0 !important; list-style: none; }
.lv-g-resumen li { position: relative; margin: 0 0 10px; padding-left: 30px; font-size: 17.5px; line-height: 1.55; }
.lv-g-resumen li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--n-salvia) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.lv-g-tarjeta { position: relative; margin: 40px 0; padding: 28px; border-radius: 24px; overflow: hidden; isolation: isolate; font-size: 17px; line-height: 1.6; }
.lv-g-tarjeta p { margin: 0 0 10px !important; }
.lv-g-herramienta { background: radial-gradient(120% 120% at 100% 0%, rgba(244, 169, 59, .28), transparent 55%), linear-gradient(150deg, var(--n-noche-3), var(--n-noche)); color: var(--n-tinta); box-shadow: 0 30px 60px -35px rgba(10, 22, 34, .9); }
.lv-g-herramienta .lv-g-etiqueta { color: var(--n-ambar); }
.lv-g-herramienta .lv-g-titulo { color: #fff; font-size: 28px; }
.lv-g-herramienta p { color: var(--n-niebla); }
.lv-g-herramienta .lv-g-dato { font: 700 13px var(--n-mono); color: var(--n-salvia-luz); }
body.lv-noche .lv-n-articulo a.lv-g-boton { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 14px 24px; border-radius: 999px; background: var(--n-ambar); color: var(--n-noche); font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(244, 169, 59, .7); transition: transform .2s; }
body.lv-noche .lv-n-articulo a.lv-g-boton:hover { transform: translateY(-2px); }
.lv-g-episodio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; background: linear-gradient(150deg, rgba(47, 107, 87, .14), rgba(47, 107, 87, .04)); box-shadow: inset 0 0 0 1px rgba(47, 107, 87, .25); }
.lv-g-episodio .lv-g-etiqueta { color: var(--n-salvia); }
.lv-g-play { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--n-salvia); color: #fff; box-shadow: 0 0 0 7px rgba(47, 107, 87, .15); }
.lv-g-play svg { margin-left: 3px; }
.lv-g-libro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; background: #fff; box-shadow: 0 0 0 1px var(--n-linea-clara); }
.lv-g-libro .lv-g-etiqueta { color: var(--n-ambar-hondo); }
.lv-g-portada { display: grid; place-items: center; width: 96px; aspect-ratio: 2 / 3; padding: 10px; border-radius: 6px; background: linear-gradient(160deg, var(--n-noche-3), var(--n-noche)); color: var(--n-tinta); font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; box-shadow: 0 14px 24px -12px rgba(19, 41, 61, .6); object-fit: cover; }
.lv-g-aviso { font-size: 13px !important; color: var(--n-texto-suave); }
body.lv-noche .lv-n-articulo a.lv-g-enlace { font-weight: 700; text-decoration: none; }
/* Ejercicio para completar (tarjeta de hábito, dos columnas…) y recuadro de ayuda en temas sensibles. */
.lv-g-ejercicio { background: #fff; box-shadow: 0 0 0 1px var(--n-linea-clara), 0 20px 40px -30px rgba(19, 41, 61, .4); }
.lv-g-ejercicio .lv-g-etiqueta { color: var(--n-salvia); }
.lv-g-ejercicio ol, .lv-g-ejercicio ul { margin: 8px 0 0 !important; }
.lv-g-ejercicio li { margin-bottom: 8px; }
.lv-g-ayuda { background: rgba(226, 109, 90, .07); box-shadow: inset 0 0 0 1px rgba(226, 109, 90, .4); }
.lv-g-ayuda .lv-g-etiqueta { color: #B4493A; }
.lv-g-ayuda ul { margin: 8px 0 12px !important; }

/* Cierre de la guía */
.lv-n-cierre { margin-top: 64px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: radial-gradient(90% 120% at 0% 0%, rgba(244, 169, 59, .22), transparent 55%), linear-gradient(150deg, var(--n-noche-3), var(--n-noche-2)); color: var(--n-tinta); }
.lv-n-cierre h2 { margin: 10px 0 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.lv-n-cierre p { margin: 0 0 18px; color: var(--n-niebla); font-size: 18px; }
.lv-n-cierre .lv-n-ceja { margin: 0; }
.lv-n-cierre .lv-formulario form { background: rgba(10, 22, 34, .5); box-shadow: inset 0 0 0 1px var(--n-linea); color: var(--n-tinta); }
.lv-n-cierre .lv-formulario label { color: var(--n-tinta); }
.lv-n-cierre .lv-formulario input[type="text"], .lv-n-cierre .lv-formulario input[type="email"] { background: rgba(238, 243, 242, .08); border-color: rgba(238, 243, 242, .2); color: var(--n-tinta); }
.lv-n-cierre .lv-formulario .lv-formulario-boton { background: var(--n-ambar); color: var(--n-noche); }
.lv-n-cierre .lv-formulario-nota, .lv-n-cierre .lv-opcional { color: var(--n-niebla); }
body.lv-noche .lv-n-cierre .lv-formulario a { color: var(--n-ambar); }
.lv-n-firma { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--n-linea-clara); font-size: 15px; color: var(--n-texto-suave); }
.lv-n-firma svg { flex: none; width: 40px; }

/* Más guías */
.lv-n-mas { padding: clamp(64px, 8vw, 100px) 0; }
body.lv-noche .lv-n-mas h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--n-tinta); }
.lv-n-tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
body.lv-noche a.lv-n-guia { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 26px; border-radius: 24px; background: linear-gradient(160deg, rgba(27, 53, 80, .9), rgba(19, 41, 61, .6)); box-shadow: inset 0 0 0 1px var(--n-linea); color: var(--n-tinta); text-decoration: none; transition: transform .3s, box-shadow .3s; }
body.lv-noche a.lv-n-guia:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(244, 169, 59, .4), 0 30px 50px -30px #000; }
.lv-n-guia .lv-g-etiqueta { color: var(--n-ambar); }
.lv-n-guia strong { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.lv-n-guia span:last-child { margin-top: auto; font-size: 14.5px; color: var(--n-niebla); }
.lv-n-vacio { margin-top: 24px; color: var(--n-niebla); }

/* Pie más cerca de la noche */
body.lv-noche .lv-pie { background: var(--n-noche); border-top: 1px solid var(--n-linea); }

/* ---------- Celular ---------- */
@media (max-width: 960px) {
	.lv-n-rejilla { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.lv-n-indice { position: static; margin-bottom: 28px; }
	.lv-n-indice > p, .lv-n-indice > ol { display: none; }
	.lv-n-indice details { display: block; padding: 4px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--n-linea-clara); }
	.lv-n-indice summary { padding: 12px 0; font-weight: 700; cursor: pointer; }
	.lv-n-indice details ol { margin-bottom: 12px; }
	.lv-n-tarjetas { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.lv-n-heroe { padding: 36px 0 100px; }
	.lv-n-articulo { font-size: 18px; line-height: 1.7; }
	.lv-g-tarjeta { margin: 32px -6px; padding: 24px 20px; }
	.lv-g-episodio, .lv-g-libro { grid-template-columns: minmax(0, 1fr); }
	.lv-n-hoja { margin-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.lv-n-heroe::before, .lv-n-heroe::after { animation: none; }
	body.lv-noche a.lv-n-guia, body.lv-noche .lv-n-articulo a.lv-g-boton { transition: none; }
}


/* ===== Tarjetas de episodio tipo «story» (7 nov. 2026) ===== */
.lv-episodios:has(.lv-ep-story) { gap: 22px; align-items: stretch; }
.lv-ep-story, .lv-sitio a.lv-ep-story, body.lv-noche a.lv-ep-story { display: flex; flex-direction: column; gap: 16px; aspect-ratio: 3 / 5; padding: 28px 26px 26px; border-radius: 30px; }
.lv-ep-story h3 { margin: 0; font-size: clamp(22px, 2vw, 26px); line-height: 1.18; letter-spacing: -.015em; }
.lv-ep-story .lv-perlitas { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.lv-ep-story .lv-perlitas li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; font-style: italic; color: rgba(238, 243, 242, .86); }
.lv-ep-story .lv-perlitas li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #F4A93B, rgba(244, 169, 59, .15)); }
.lv-ep-story .lv-libro { margin-top: auto; }
.lv-ep-story .lv-libro-con-portada img { width: 52px; }
.lv-ep-story.lv-episodio-pronto { aspect-ratio: 3 / 5; }
@media (max-width: 1000px) and (min-width: 701px) { .lv-episodios:has(.lv-ep-story) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
	.lv-episodios:has(.lv-ep-story) { display: flex; overflow-x: auto; gap: 14px; margin-right: -16px; padding: 0 16px 14px 0; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
	.lv-ep-story, .lv-sitio a.lv-ep-story, body.lv-noche a.lv-ep-story { flex: 0 0 82%; scroll-snap-align: start; aspect-ratio: auto; min-height: 440px; }
}

/* ----- Story v2: libro arriba, invitación al pie (7 nov. 2026) ----- */
.lv-ep-story, .lv-sitio a.lv-ep-story, body.lv-noche a.lv-ep-story, .lv-ep-story.lv-episodio-pronto { aspect-ratio: auto; min-height: 640px; gap: 18px; }
.lv-ep-story .lv-ep-cabecera { display: flex; align-items: flex-end; gap: 18px; }
.lv-ep-story .lv-ep-portada { position: relative; flex: none; width: 118px; transform: rotate(-2.5deg); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.lv-ep-story .lv-ep-portada::before { content: ""; position: absolute; inset: 10% -14% -8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 169, 59, .42), transparent 72%); filter: blur(6px); }
.lv-ep-story .lv-ep-portada img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 22px 40px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12); }
.lv-ep-story:hover .lv-ep-portada { transform: rotate(0deg) translateY(-4px) scale(1.04); }
.lv-ep-story .lv-ep-datos { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-bottom: 4px; }
.lv-ep-story .lv-ep-datos .lv-num { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lv-ep-story .lv-ep-fecha { font-size: 13px; color: rgba(238, 243, 242, .62); }
.lv-ep-story .lv-ep-libro { margin-top: 8px; font-size: 14px; line-height: 1.35; color: rgba(238, 243, 242, .88); }
.lv-ep-story .lv-ep-libro i { font-weight: 700; }
.lv-ep-story .lv-ep-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 18px; border-radius: 999px; background: var(--n-ambar, #F4A93B); color: var(--n-noche, #0A1622); font-size: 15px; font-weight: 800; line-height: 1.2; box-shadow: 0 12px 28px -12px rgba(244, 169, 59, .7); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.lv-ep-story .lv-ep-cta b { font-size: 18px; transition: transform .3s; }
.lv-ep-story:hover .lv-ep-cta b { transform: translateX(5px); }
.lv-ep-story .lv-ep-cta-espera { background: none; border: 1px dashed rgba(244, 169, 59, .55); color: #F4A93B; box-shadow: none; justify-content: center; }
.lv-ep-story .lv-perlitas { flex: 0 1 auto; justify-content: flex-start; margin-bottom: 6px; }
@media (max-width: 700px) { .lv-ep-story, .lv-sitio a.lv-ep-story, body.lv-noche a.lv-ep-story { min-height: 560px; } }
.lv-ep-story .lv-ep-cabecera { min-height: 192px; }
