/*
 * EENDA
 * Marketing, Desarrollo & Consulting
 * www.eenda.com
 * © 2026
 */

/*
 * Novelia — hoja del front (pensada primero para el móvil)
 *
 * El diseño está en .github/DESIGN.md; aquí se aplica. Los puntos de corte
 * viven en responsive.css, siempre con min-width: lo de este archivo es la
 * versión del móvil.
 *
 *   1. Tokens (temas Papel, Sepia y Noche)
 *   2. Puente con Bootstrap 5.3
 *   3. Base
 *   4. Accesibilidad y movimiento
 *   5. Iconos
 *   6. Botones y enlaces de acción
 *   7. Rótulos y secciones
 *   8. Cabecera y menú del móvil
 *   9. Portada y tarjeta de novela
 *  10. Inicio sin sesión: portadilla y abanico
 *  11. Inicio con sesión: saludo y «Seguir leyendo»
 *  12. Primera página
 *  13. Más leídas
 *  14. Categorías
 *  15. Para quien escribe
 *  16. Texto de lectura
 *  17. Avisos
 *  18. Pie y selector de tema
 *  19. Distintivo de contenido de muestra
 *
 * Regla de la casa: antes de escribir una clase, comprobar que Bootstrap no
 * la resuelve ya. Aquí va la identidad (color, tipografía, ritmo) y lo propio
 * de Novelia; la rejilla, el espaciado y los componentes los pone Bootstrap.
 * Clases propias con prefijo nv-, nunca xp- (es del core).
 */


/* ==========================================================================
   1. Tokens
   ========================================================================== */

/*
 * Tokens con nombre de función: cada tema solo cambia valores. Los contrastes
 * están verificados (DESIGN §4.6); si se cambia un valor, se recalcula su
 * fila.
 */
:root,
[data-bs-theme="light"]{
	--nv-fondo: #F7F3EC;
	--nv-superficie: #FCFAF6;
	--nv-hondo: #EFE8DC;
	--nv-linea: #DDD3C3;
	--nv-linea-fuerte: #8A7C6A;
	--nv-texto: #1F1B16;
	--nv-texto-suave: #5B5148;
	--nv-texto-tenue: #6E6357;
	--nv-acento: #A94C25;
	--nv-acento-fuerte: #8A3D1D;
	--nv-acento-velo: #F4E3D8;
	--nv-sobre-acento: #FCFAF6;
	--nv-enlace-rgb: 138, 61, 29;
	--nv-exito: #2E6B3E;
	--nv-aviso: #7F5300;
	--nv-error: #A32638;
	--nv-info: #2C5878;
}

/* Sepia: variante del tema claro. Hereda de Papel los colores de estado. */
[data-nv-tema="sepia"]{
	--nv-fondo: #F2E8D2;
	--nv-superficie: #F8F1E1;
	--nv-hondo: #E8DCC2;
	--nv-linea: #D6C6A6;
	--nv-linea-fuerte: #8B7A5C;
	--nv-texto: #3A2E22;
	--nv-texto-suave: #665542;
	--nv-texto-tenue: #6F5D48;
	--nv-acento: #9E4722;
	--nv-acento-fuerte: #82391A;
	--nv-acento-velo: #EDD5C0;
	--nv-sobre-acento: #F8F1E1;
	--nv-enlace-rgb: 130, 57, 26;
}

/* Noche. Aquí «fuerte» es más claro: más contraste con el fondo. */
[data-bs-theme="dark"]{
	--nv-fondo: #17140F;
	--nv-superficie: #211D18;
	--nv-hondo: #100E0B;
	--nv-linea: #3A332A;
	--nv-linea-fuerte: #776A59;
	--nv-texto: #EDE6D9;
	--nv-texto-suave: #BCB1A1;
	--nv-texto-tenue: #A09585;
	--nv-acento: #E2875A;
	--nv-acento-fuerte: #EEA27C;
	--nv-acento-velo: #3B2619;
	--nv-sobre-acento: #17140F;
	--nv-enlace-rgb: 238, 162, 124;
	--nv-exito: #7FBF8E;
	--nv-aviso: #E2B45A;
	--nv-error: #F08A8F;
	--nv-info: #8DB8D8;
}

:root{
	--nv-fuente-titulo: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--nv-fuente-lectura: "Literata", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--nv-fuente-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--nv-radio-sm: 4px;
	--nv-radio: 6px;
	--nv-radio-pildora: 999px;

	--nv-sombra-1: 0 1px 2px rgb(31 27 22 / .06), 0 2px 8px rgb(31 27 22 / .05);
	--nv-sombra-2: 0 2px 4px rgb(31 27 22 / .06), 0 12px 32px -8px rgb(31 27 22 / .18);
	--nv-sombra-portada: 0 1px 2px rgb(31 27 22 / .15), 0 10px 24px -10px rgb(31 27 22 / .45);
	--nv-sombra-portada-alta: 0 2px 4px rgb(31 27 22 / .08), 0 16px 32px -10px rgb(31 27 22 / .5);

	--nv-transicion: .15s ease-out;
}


/* ==========================================================================
   2. Puente con Bootstrap 5.3
   ========================================================================== */

/*
 * style.css se carga después de Bootstrap: con la misma especificidad gana lo
 * nuestro. Donde Bootstrap usa un selector de componente hay que repetirlo
 * (DESIGN §15.4).
 */
:root,
[data-bs-theme]{
	--bs-body-font-family: var(--nv-fuente-ui);
	--bs-body-bg: var(--nv-fondo);
	--bs-body-color: var(--nv-texto);
	--bs-emphasis-color: var(--nv-texto);
	--bs-secondary-color: var(--nv-texto-suave);
	--bs-tertiary-bg: var(--nv-hondo);
	--bs-border-color: var(--nv-linea);
	--bs-heading-color: var(--nv-texto);
	--bs-link-color-rgb: var(--nv-enlace-rgb);        /* el <a> suelto usa la tripleta… */
	--bs-link-hover-color-rgb: var(--nv-enlace-rgb);
	--bs-link-color: var(--nv-acento-fuerte);         /* …y .btn-link, .nav y .pagination, el hex */
	--bs-link-hover-color: var(--nv-acento-fuerte);
	--bs-border-radius: 4px;
	--bs-border-radius-sm: 4px;
	--bs-border-radius-lg: 6px;
}

.btn-primary{
	--bs-btn-color: var(--nv-sobre-acento);
	--bs-btn-bg: var(--nv-acento);
	--bs-btn-border-color: var(--nv-acento);
	--bs-btn-hover-color: var(--nv-sobre-acento);
	--bs-btn-hover-bg: var(--nv-acento-fuerte);
	--bs-btn-hover-border-color: var(--nv-acento-fuerte);
	--bs-btn-active-color: var(--nv-sobre-acento);
	--bs-btn-active-bg: var(--nv-acento-fuerte);
	--bs-btn-active-border-color: var(--nv-acento-fuerte);
	--bs-btn-disabled-color: var(--nv-sobre-acento);
	--bs-btn-disabled-bg: var(--nv-acento);
	--bs-btn-disabled-border-color: var(--nv-acento);
}

.form-control,
.form-select{
	min-height: 44px;
	background-color: var(--nv-superficie);
	border-color: var(--nv-linea-fuerte);
	color: var(--nv-texto);
}

.form-control::placeholder{
	color: var(--nv-texto-tenue);
	opacity: 1;
}

/* Bootstrap fija aquí su azul: hay que sobrescribir la regla entera. */
.form-control:focus,
.form-select:focus{
	background-color: var(--nv-superficie);
	border-color: var(--nv-acento);
	box-shadow: 0 0 0 1px var(--nv-acento);
	color: var(--nv-texto);
}

.dropdown-menu{
	--bs-dropdown-bg: var(--nv-superficie);
	--bs-dropdown-color: var(--nv-texto);
	--bs-dropdown-border-color: var(--nv-linea);
	--bs-dropdown-border-radius: var(--nv-radio);
	--bs-dropdown-link-color: var(--nv-texto);
	--bs-dropdown-link-hover-color: var(--nv-texto);
	--bs-dropdown-link-hover-bg: var(--nv-hondo);
	--bs-dropdown-link-active-color: var(--nv-texto);
	--bs-dropdown-link-active-bg: var(--nv-acento-velo);
	--bs-dropdown-divider-bg: var(--nv-linea);
	--bs-dropdown-item-padding-y: .5rem;
	--bs-dropdown-box-shadow: var(--nv-sombra-2);
	box-shadow: var(--bs-dropdown-box-shadow);
}

.offcanvas{
	--bs-offcanvas-bg: var(--nv-fondo);
	--bs-offcanvas-color: var(--nv-texto);
	--bs-offcanvas-border-color: var(--nv-linea);
}


/* ==========================================================================
   3. Base
   ========================================================================== */

body{
	font-family: var(--nv-fuente-ui);
	background-color: var(--nv-fondo);
	color: var(--nv-texto);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4{
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-variation-settings: "SOFT" 50;
	font-optical-sizing: auto;
	color: var(--nv-texto);
	text-wrap: balance;
}

a{
	text-underline-offset: .18em;
	text-decoration-thickness: 1px;
}

a:hover{
	text-decoration-thickness: 2px;
}

::selection{
	background-color: var(--nv-acento-velo);
	color: var(--nv-texto);
}

img{
	max-width: 100%;
	height: auto;
}

.nv-meta{
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem .375rem;
	font-size: .8125rem;
	color: var(--nv-texto-suave);
}

.nv-meta strong{
	font-weight: 600;
	color: var(--nv-texto);
}

.nv-meta a{
	color: var(--nv-texto-suave);
}

.nv-estado{
	font-weight: 500;
}

.nv-estado--completa{
	color: var(--nv-exito);
}

.nv-estado--en-curso{
	color: var(--nv-texto-suave);
}


/* ==========================================================================
   4. Accesibilidad y movimiento
   ========================================================================== */

:focus-visible{
	outline: 2px solid var(--nv-acento);
	outline-offset: 2px;
}

/* Bootstrap quita el contorno en estos o les pone su halo azul. */
.btn:focus-visible,
.nav-link:focus-visible,
.page-link:focus,
.form-check-input:focus,
.dropdown-item:focus-visible{
	outline: 2px solid var(--nv-acento);
	outline-offset: 2px;
	box-shadow: none;
}

.nv-saltar:focus{
	position: fixed;
	top: .75rem;
	left: .75rem;
	z-index: 1100;
	padding: .75rem 1rem;
	border-radius: var(--nv-radio-sm);
	background-color: var(--nv-superficie);
	color: var(--nv-texto);
	box-shadow: var(--nv-sombra-2);
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce){
	*,
	*::before,
	*::after{
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}


/* ==========================================================================
   5. Iconos
   ========================================================================== */

/* Lucide como SVG en línea (nv_icono() en custom.php). */
.nv-icono{
	width: 1.25em;
	height: 1.25em;
	flex: none;
	vertical-align: -.25em;
}

.nv-icono--sm{
	width: 1em;
	height: 1em;
}

.nv-icono--valoracion{
	width: 1.125em;
	height: 1.125em;
	color: var(--nv-acento);
}


/* ==========================================================================
   6. Botones y enlaces de acción
   ========================================================================== */

.btn{
	--bs-btn-font-family: var(--nv-fuente-ui);
	--bs-btn-font-weight: 600;
	--bs-btn-padding-x: 1.125rem;
	--bs-btn-padding-y: .5rem;
	--bs-btn-border-radius: var(--nv-radio-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 44px;
}

.btn-lg{
	--bs-btn-padding-x: 1.5rem;
	--bs-btn-font-size: 1.0625rem;
	--bs-btn-border-radius: var(--nv-radio-sm);
	min-height: 52px;
}

.btn-sm{
	--bs-btn-padding-x: .875rem;
	--bs-btn-font-size: .875rem;
	--bs-btn-border-radius: var(--nv-radio-sm);
	min-height: 40px;
}

.btn .nv-icono{
	width: 1.125rem;
	height: 1.125rem;
}

.nv-btn-secundario{
	--bs-btn-color: var(--nv-texto);
	--bs-btn-bg: transparent;
	--bs-btn-border-color: var(--nv-texto);
	--bs-btn-hover-color: var(--nv-texto);
	--bs-btn-hover-bg: var(--nv-hondo);
	--bs-btn-hover-border-color: var(--nv-texto);
	--bs-btn-active-color: var(--nv-texto);
	--bs-btn-active-bg: var(--nv-hondo);
	--bs-btn-active-border-color: var(--nv-texto);
	--bs-btn-disabled-color: var(--nv-texto);
	--bs-btn-disabled-border-color: var(--nv-texto);
}

.nv-btn-texto{
	--bs-btn-color: var(--nv-texto);
	--bs-btn-bg: transparent;
	--bs-btn-border-color: transparent;
	--bs-btn-hover-color: var(--nv-texto);
	--bs-btn-hover-bg: var(--nv-hondo);
	--bs-btn-hover-border-color: transparent;
	--bs-btn-active-color: var(--nv-texto);
	--bs-btn-active-bg: var(--nv-hondo);
	--bs-btn-active-border-color: transparent;
	--bs-btn-disabled-color: var(--nv-texto-suave);
	--bs-btn-disabled-border-color: transparent;
	--bs-btn-font-size: .9375rem;
	--bs-btn-padding-x: .875rem;
}

.nv-btn-texto--suave{
	--bs-btn-color: var(--nv-texto-suave);
	--bs-btn-font-weight: 500;
}

.btn[aria-busy="true"] .nv-icono{
	animation: nv-girar 1s linear infinite;
}

@keyframes nv-girar{
	to{ transform: rotate(360deg); }
}

.nv-enlace-flecha{
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	min-height: 44px;
	font-weight: 600;
	color: var(--nv-acento-fuerte);
	text-decoration: none;
}

.nv-enlace-flecha:hover{
	color: var(--nv-acento-fuerte);
	text-decoration: underline;
}

.nv-enlace-flecha .nv-icono{
	width: 1.125rem;
	height: 1.125rem;
	transition: transform var(--nv-transicion);
}

.nv-enlace-flecha:hover .nv-icono{
	transform: translateX(2px);
}

.nv-boton-icono{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--nv-radio-sm);
	background: transparent;
	color: var(--nv-texto);
}

.nv-boton-icono:hover{
	background-color: var(--nv-hondo);
}


/* ==========================================================================
   7. Rótulos y secciones
   ========================================================================== */

.nv-antetitulo{
	margin: 0;
	font-family: var(--nv-fuente-ui);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nv-texto-suave);
}

.nv-seccion{
	padding-bottom: 3.5rem;
}

.nv-seccion__cabeza{
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .25rem 1.5rem;
	padding-bottom: 1rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--nv-linea);
}

.nv-seccion__cabeza--lista{
	margin-bottom: .25rem;
}

.nv-seccion__cabeza--limpia{
	align-items: center;
	padding-bottom: 0;
	margin-bottom: 1.5rem;
	border-bottom: 0;
}

.nv-seccion__titulo{
	margin: 0;
	font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
	line-height: 1.2;
}


/* ==========================================================================
   8. Cabecera y menú del móvil
   ========================================================================== */

.nv-centinela{
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
}

.nv-cabecera{
	position: sticky;
	top: 0;
	z-index: 1020;
	background-color: var(--nv-fondo);
	border-bottom: 1px solid var(--nv-linea);
	transition: box-shadow var(--nv-transicion);
}

.nv-cabecera.is-fija{
	box-shadow: var(--nv-sombra-1);
}

.nv-cabecera__barra{
	display: flex;
	align-items: center;
	gap: .75rem 2rem;
	min-height: 56px;
	padding-block: .375rem;
}

.nv-marca{
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	color: var(--nv-texto);
	text-decoration: none;
}

.nv-marca:hover{
	color: var(--nv-texto);
}

/* El marcapáginas (DESIGN §3.2): cinta terracota con la «n». */
.nv-marca__simbolo{
	display: flex;
	justify-content: center;
	width: 20px;
	height: 32px;
	padding-top: 4px;
	box-sizing: border-box;
	background-color: var(--nv-acento);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
	color: var(--nv-sobre-acento);
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
}

.nv-marca__nombre{
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-variation-settings: "SOFT" 50, "opsz" 144;
	font-size: 1.625rem;
	letter-spacing: -.01em;
	line-height: 1;
}

.nv-nav{
	align-items: center;
	gap: 1.5rem;
}

.nv-nav__enlace{
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--nv-texto);
	font-weight: 500;
	text-decoration: none;
}

.nv-nav__enlace:hover{
	color: var(--nv-texto);
	border-bottom-color: var(--nv-linea-fuerte);
}

.nv-nav__enlace.is-activo{
	border-bottom-color: var(--nv-acento);
}

.nv-menu .dropdown-item{
	display: flex;
	align-items: center;
	gap: .625rem;
	min-height: 44px;
}

.nv-menu .dropdown-item .nv-icono{
	color: var(--nv-texto-suave);
}

.nv-menu__cabeza{
	font-weight: 600;
	color: var(--nv-texto);
}

.nv-buscador{
	position: relative;
	flex: 1 1 220px;
	max-width: 360px;
	margin-left: auto;
	align-items: center;
}

.nv-buscador > .nv-icono{
	position: absolute;
	left: .875rem;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--nv-texto-tenue);
	pointer-events: none;
}

.nv-buscador .form-control{
	padding-left: 2.625rem;
	font-size: .9375rem;
}

.nv-cabecera__acciones{
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-left: auto;
}

.nv-cabecera__entrar{
	align-items: center;
	min-height: 44px;
	padding: 0 .5rem;
	color: var(--nv-texto);
	font-weight: 600;
	text-decoration: none;
}

.nv-cabecera__entrar:hover{
	color: var(--nv-texto);
	text-decoration: underline;
}

.nv-avatar{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--nv-radio-pildora);
	background-color: var(--nv-hondo);
	color: var(--nv-texto);
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-size: 1.1875rem;
	line-height: 1;
}

.nv-avatar:hover,
.nv-avatar[aria-expanded="true"]{
	background-color: var(--nv-acento-velo);
}

.nv-menu-movil .offcanvas-header{
	border-bottom: 1px solid var(--nv-linea);
}

.nv-buscador--menu{
	display: flex;
	max-width: none;
	margin: 0 0 1.5rem;
}

.nv-menu-movil__lista{
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-menu-movil__enlace{
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 48px;
	border-bottom: 1px solid var(--nv-linea);
	color: var(--nv-texto);
	font-weight: 500;
	text-decoration: none;
}

.nv-menu-movil__enlace:hover{
	color: var(--nv-texto);
}

.nv-menu-movil__enlace.is-activo{
	font-weight: 600;
	box-shadow: inset 0 -2px 0 var(--nv-acento);
}

.nv-menu-movil__enlace .nv-icono{
	color: var(--nv-texto-suave);
}

.nv-menu-movil__titulo{
	margin: 1.75rem 0 .25rem;
}

.nv-menu-movil__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 2rem;
}


/* ==========================================================================
   9. Portada y tarjeta de novela
   ========================================================================== */

/* DESIGN §8.5. 2:3 siempre; el lomo, a la izquierda, más recto. */
.nv-portada{
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 2px 4px 4px 2px;
	background-color: var(--nv-hondo);
	box-shadow: var(--nv-sombra-portada);
	object-fit: cover;
}

/*
 * Portada de tela (DESIGN §4.4): el texto escala con el ancho de la portada.
 *
 * La portada es el contenedor (cqw = 1 % de SU ancho) y no lleva relleno: el
 * relleno va en la caja interior, también en cqw. Con padding en % sobre la
 * propia portada fallaba: el % se calcula sobre el contenedor del padre (en
 * el abanico, la franja entera) y además encogía la caja de contenido sobre
 * la que se miden los cqw. Los títulos salían diminutos.
 */
.nv-portada--tela{
	container-type: inline-size;
	color: #F7F3EC;
}

/*
 * Cada medida en cqw lleva antes una fija: un navegador sin container
 * queries (Safari < 16, Firefox < 110) ignora la segunda y usa la primera.
 */
.nv-portada__caja{
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.5rem 1rem 1rem 1.25rem;
	padding: 16cqw 12cqw 12cqw 16cqw;
}

/* El lomo: el único degradado permitido, porque imita un objeto real. */
.nv-portada--tela::before{
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 6px;
	background: linear-gradient(90deg, rgb(0 0 0 / .22), rgb(0 0 0 / 0));
}

.nv-portada__titulo{
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-variation-settings: "SOFT" 50;
	font-size: 1rem;
	font-size: 9cqw;
	line-height: 1.08;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.nv-portada__pie{
	display: block;
	font-size: .625rem;
	font-size: 4.6cqw;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.nv-portada__filete{
	display: block;
	width: 60%;
	height: 1px;
	margin-bottom: .5rem;
	margin-bottom: 5cqw;
	background-color: rgb(247 243 236 / .55);
}

.nv-portada--mini{
	flex: none;
}

.nv-portada--mini.nv-portada--tela::before{
	width: 4px;
}

/* Las ocho telas. Solo para portadas por defecto, nunca en la interfaz. */
.nv-tela-0{ background-color: #6E2431; } /* burdeos */
.nv-tela-1{ background-color: #24483A; } /* botella */
.nv-tela-2{ background-color: #22344F; } /* marino */
.nv-tela-3{ background-color: #4B2C4A; } /* ciruela */
.nv-tela-4{ background-color: #3B4148; } /* pizarra */
.nv-tela-5{ background-color: #7A4F17; } /* ocre */
.nv-tela-6{ background-color: #93401E; } /* teja */
.nv-tela-7{ background-color: #4A5230; } /* musgo */

/* En Noche las sombras apenas se ven: la portada se recorta con un filo. */
[data-bs-theme="dark"] .nv-portada{
	box-shadow: 0 0 0 1px rgb(237 230 217 / .08), 0 10px 24px -10px rgb(0 0 0 / .6);
}

/* Estante: rejilla de tarjetas. De 2 columnas a 6 (responsive.css). */
.nv-estante{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 1.25rem;
}

.nv-tarjeta{
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.nv-tarjeta .nv-portada{
	margin-bottom: .625rem;
	transition: transform var(--nv-transicion), box-shadow var(--nv-transicion);
}

.nv-tarjeta:hover .nv-portada{
	transform: translateY(-2px);
	box-shadow: var(--nv-sombra-portada-alta);
}

.nv-tarjeta__titulo{
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 1.0625rem;
	line-height: 1.25;
}

.nv-tarjeta__titulo a{
	color: var(--nv-texto);
	text-decoration: none;
}

.nv-tarjeta:hover .nv-tarjeta__titulo a{
	text-decoration: underline;
}

.nv-tarjeta__autor{
	margin: 0;
	font-size: .875rem;
	color: var(--nv-texto-suave);
}


/* ==========================================================================
   10. Inicio sin sesión: portadilla y abanico
   ========================================================================== */

.nv-portadilla{
	padding-block: 2.5rem 3.5rem;
}

.nv-portadilla__rejilla{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2.5rem 3.5rem;
}

.nv-portadilla__texto{
	flex: 1 1 28rem;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.nv-portadilla__titulo{
	margin: 0;
	font-size: clamp(2.5rem, 2rem + 3vw, 4.25rem);
	line-height: 1.04;
	letter-spacing: -.015em;
}

.nv-portadilla__entrada{
	margin: 0;
	max-width: 34em;
	font-family: var(--nv-fuente-lectura);
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--nv-texto-suave);
}

.nv-portadilla__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	padding-top: .5rem;
}

.nv-abanico{
	flex: 1 1 20rem;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: .5rem 0 2.5rem;
}

.nv-abanico .nv-portada{
	width: clamp(7.5rem, 26vw, 13.5rem);
	flex: none;
	box-shadow: 0 2px 3px rgb(31 27 22 / .18), 0 24px 40px -16px rgb(31 27 22 / .55);
}

.nv-abanico .nv-portada:nth-child(1){
	z-index: 1;
	transform: rotate(-7deg) translateY(22px);
}

.nv-abanico .nv-portada:nth-child(2){
	z-index: 3;
	margin-left: -3.5rem;
}

.nv-abanico .nv-portada:nth-child(3){
	z-index: 2;
	margin-left: -3.5rem;
	transform: rotate(6deg) translateY(30px);
}


/* ==========================================================================
   11. Inicio con sesión: saludo y «Seguir leyendo»
   ========================================================================== */

.nv-hola{
	padding-block: 2.5rem;
}

.nv-hola__titulo{
	margin: 0;
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
	line-height: 1.15;
}

.nv-hola__entrada{
	margin: .25rem 0 0;
	color: var(--nv-texto-suave);
}

.nv-seguir{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-seguir__item{
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background-color: var(--nv-superficie);
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	transition: border-color var(--nv-transicion);
}

.nv-seguir__item:hover{
	border-color: var(--nv-linea-fuerte);
}

.nv-seguir__item .nv-portada{
	width: 60px;
}

.nv-seguir__datos{
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.nv-seguir__titulo{
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.25;
}

.nv-seguir__titulo a{
	color: var(--nv-texto);
	text-decoration: none;
}

.nv-seguir__item:hover .nv-seguir__titulo a{
	text-decoration: underline;
}

.nv-seguir__capitulo{
	margin: 0;
	overflow: hidden;
	font-size: .875rem;
	color: var(--nv-texto-suave);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nv-progreso{
	display: flex;
	align-items: center;
	gap: .625rem;
	margin: 0;
	padding-top: .375rem;
	font-size: .8125rem;
	color: var(--nv-texto-suave);
	font-variant-numeric: tabular-nums;
}

.nv-progreso__barra{
	flex: 1;
	height: 4px;
	overflow: hidden;
	border-radius: var(--nv-radio-pildora);
	background-color: var(--nv-linea);
}

.nv-progreso__barra > span{
	display: block;
	height: 100%;
	background-color: var(--nv-acento);
}


/* ==========================================================================
   12. Primera página
   ========================================================================== */

.nv-primera{
	margin-bottom: 3.5rem;
	padding-block: 2rem 2.5rem;
	background-color: var(--nv-superficie);
	border-block: 1px solid var(--nv-linea);
}

.nv-primera__cabeza{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	margin-bottom: 1.5rem;
}

.nv-primera__rotulo{
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .25rem 1rem;
}

.nv-primera__titulo{
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

.nv-primera__entrada{
	margin: 0;
	font-size: .875rem;
	color: var(--nv-texto-suave);
}

.nv-primera__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin-left: -.875rem;
}

.nv-primera__contenido{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.75rem 3.5rem;
}

.nv-primera__ficha{
	flex: 0 1 19rem;
	min-width: 15rem;
	display: flex;
	align-items: flex-start;
	gap: 1.125rem;
}

.nv-primera__ficha .nv-portada{
	width: 84px;
}

.nv-primera__datos{
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .375rem;
}

.nv-primera__novela{
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.2;
}

.nv-primera__datos .btn{
	align-self: flex-start;
	margin-top: .5rem;
}

.nv-primera__texto{
	flex: 1 1 32rem;
	min-width: 0;
	max-width: 64ch;
	font-size: 1.125rem;
}

.nv-primera__puntos{
	color: var(--nv-texto-tenue);
}

.nv-primera-aviso{
	margin-bottom: 3.5rem;
}


/* ==========================================================================
   13. Más leídas
   ========================================================================== */

.nv-ranking{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 3.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-ranking__item{
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-block: 1rem;
	border-bottom: 1px solid var(--nv-linea);
}

.nv-ranking__puesto{
	width: 2.25rem;
	flex: none;
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-size: 2rem;
	line-height: 1;
	text-align: center;
	color: var(--nv-texto-tenue);
	font-variant-numeric: oldstyle-nums;
}

.nv-ranking__item .nv-portada{
	width: 52px;
}

.nv-ranking__datos{
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .125rem;
}

.nv-ranking__titulo{
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.25;
}

.nv-ranking__titulo a{
	color: var(--nv-texto);
	text-decoration: none;
}

.nv-ranking__item:hover .nv-ranking__titulo a{
	text-decoration: underline;
}

.nv-ranking__valoracion{
	display: flex;
	align-items: center;
	gap: .375rem;
	margin: 0;
	font-size: .875rem;
	font-weight: 600;
}


/* ==========================================================================
   14. Categorías
   ========================================================================== */

.nv-categorias{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-categoria{
	display: flex;
	align-items: center;
	gap: .875rem;
	height: 100%;
	padding: 1rem 1.125rem;
	background-color: var(--nv-superficie);
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	color: var(--nv-texto);
	text-decoration: none;
	transition: border-color var(--nv-transicion);
}

.nv-categoria:hover{
	border-color: var(--nv-linea-fuerte);
	color: var(--nv-texto);
}

.nv-categoria:hover .nv-categoria__nombre{
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.nv-categoria__icono{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: var(--nv-radio-pildora);
	background-color: var(--nv-hondo);
	color: var(--nv-texto-suave);
}

.nv-categoria__nombre{
	display: block;
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-variation-settings: "SOFT" 50;
	font-size: 1.1875rem;
	line-height: 1.25;
}

.nv-categoria__total{
	display: block;
	font-size: .8125rem;
	color: var(--nv-texto-suave);
}


/* ==========================================================================
   15. Para quien escribe
   ========================================================================== */

.nv-escribir{
	padding-block: 3.5rem;
	background-color: var(--nv-hondo);
}

.nv-escribir__rejilla{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 2.5rem 4.5rem;
}

.nv-escribir__texto{
	flex: 1 1 22rem;
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.nv-escribir__titulo{
	margin: 0;
	font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.75rem);
	line-height: 1.1;
}

.nv-escribir__entrada{
	margin: 0;
	font-family: var(--nv-fuente-lectura);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--nv-texto-suave);
}

.nv-pasos{
	flex: 2 1 32rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-paso{
	display: flex;
	flex-direction: column;
	gap: .625rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--nv-linea-fuerte);
}

.nv-paso__numero{
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--nv-texto-tenue);
	font-variant-numeric: oldstyle-nums;
}

.nv-paso__titulo{
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.nv-paso__texto{
	margin: 0;
	font-size: .9375rem;
	color: var(--nv-texto-suave);
}


/* ==========================================================================
   16. Texto de lectura
   ========================================================================== */

/*
 * Párrafos separados por espacio y sin sangría (DESIGN §9.3), como los
 * escribe quien pega el texto. Las clases las pone nv_texto_capitulo().
 */
.nv-capitulo{
	font-family: var(--nv-fuente-lectura);
	line-height: 1.7;
	hyphens: auto;
	text-wrap: pretty;
	font-variant-numeric: oldstyle-nums;
}

.nv-capitulo p{
	margin: 0 0 1em;
}

.nv-capitulo p:last-child{
	margin-bottom: 0;
}

/*
 * La capitular no sale de su párrafo: si el primero es corto, el siguiente
 * empieza debajo de la letra y no a su lado.
 */
.nv-capitular{
	display: flow-root;
}

.nv-capitular::first-letter{
	float: left;
	padding: .09em .1em 0 0;
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-size: 3.5em;
	line-height: .8;
	color: var(--nv-acento);
}

.nv-escena{
	height: auto;
	margin: 2em 0;
	border: 0;
	opacity: 1;
	text-align: center;
}

.nv-escena::after{
	content: "⁂";
	font-size: 1.15em;
	color: var(--nv-texto-tenue);
}


/* ==========================================================================
   17. Avisos
   ========================================================================== */

.nv-aviso{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1rem;
	padding: .875rem 1.125rem;
	border-radius: var(--nv-radio);
	background-color: var(--nv-hondo);
	font-size: .9375rem;
}

.nv-aviso > .nv-icono{
	color: var(--nv-texto-suave);
}

.nv-aviso p{
	flex: 1 1 20rem;
	margin: 0;
}

/* El foco llega aquí por programa (al ocultar Primera página): sin contorno. */
.nv-aviso:focus{
	outline: none;
}


/* ==========================================================================
   18. Pie y selector de tema
   ========================================================================== */

.nv-pie{
	padding-block: 3.5rem 2rem;
	border-top: 1px solid var(--nv-linea);
	color: var(--nv-texto-suave);
}

.nv-pie .nv-marca__nombre{
	font-size: 1.5rem;
}

.nv-pie__descriptor{
	max-width: 22em;
	margin: .75rem 0 0;
	font-size: .875rem;
}

.nv-pie__titulo{
	margin: 0 0 .5rem;
	font-family: var(--nv-fuente-ui);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nv-texto);
}

.nv-pie__lista{
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-pie__lista a{
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--nv-texto-suave);
	text-decoration: none;
}

.nv-pie__lista a:hover{
	color: var(--nv-texto);
	text-decoration: underline;
}

.nv-pie__abajo{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nv-linea);
	font-size: .8125rem;
}

.nv-pie__copy{
	margin: 0;
}

.nv-tema{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.nv-tema__leyenda{
	float: left;
	width: auto;
	margin: 0 .25rem 0 0;
	padding: 0;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--nv-texto);
}

.nv-tema__opciones{
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
}

.nv-tema__opcion{
	position: relative;
}

.nv-tema__opcion input{
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nv-tema__opcion > span{
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	min-height: 36px;
	padding: 0 .75rem;
	border: 1px solid transparent;
	border-radius: var(--nv-radio-pildora);
	color: var(--nv-texto-suave);
	cursor: pointer;
}

.nv-tema__opcion > span:hover{
	color: var(--nv-texto);
}

.nv-tema__opcion input:checked + span{
	border-color: var(--nv-linea-fuerte);
	background-color: var(--nv-superficie);
	color: var(--nv-texto);
	font-weight: 600;
}

.nv-tema__opcion input:focus-visible + span{
	outline: 2px solid var(--nv-acento);
	outline-offset: 2px;
}

.nv-tema__muestra{
	width: 14px;
	height: 14px;
	border: 1px solid var(--nv-linea-fuerte);
	border-radius: var(--nv-radio-pildora);
}

.nv-tema__muestra--papel{ background: #F7F3EC; }
.nv-tema__muestra--sepia{ background: #F2E8D2; }
.nv-tema__muestra--noche{ background: #17140F; }
.nv-tema__muestra--sistema{ background: linear-gradient(135deg, #F7F3EC 50%, #17140F 50%); }


/* ==========================================================================
   20. Páginas: cabecera, migas, chips, vacíos
   ========================================================================== */

:root{
	--nv-alto-cabecera: 56px;
}

/* Un ancla no queda tapada por la cabecera fija. */
[id]{
	scroll-margin-top: calc(var(--nv-alto-cabecera) + 1rem);
}

.nv-pagina{
	padding-block: 1.75rem 3.5rem;
}

.nv-pagina-estrecha{
	max-width: 36rem;
	margin-inline: auto;
}

.nv-pagina__cabeza{
	margin-bottom: 2rem;
}

.nv-pagina__cabeza--acciones{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.nv-pagina__cabeza--icono{
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.nv-pagina__titulo{
	margin: 0;
	font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -.01em;
}

.nv-pagina__entrada{
	max-width: 40em;
	margin: .5rem 0 0;
	font-size: 1.0625rem;
	color: var(--nv-texto-suave);
}

.nv-pagina__nota{
	margin: 0;
	font-size: .9375rem;
	color: var(--nv-texto-suave);
}

.nv-migas ol{
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	font-size: .875rem;
	color: var(--nv-texto-suave);
}

.nv-migas li + li::before{
	content: "›";
	margin-right: .25rem;
	color: var(--nv-texto-tenue);
}

.nv-migas a{
	color: var(--nv-texto-suave);
}

.nv-migas [aria-current]{
	overflow: hidden;
	max-width: 24ch;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--nv-texto);
}

.nv-chip{
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	min-height: 28px;
	padding: 0 .75rem;
	border-radius: var(--nv-radio-pildora);
	background-color: var(--nv-hondo);
	color: var(--nv-texto-suave);
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.2;
}

.nv-chip .nv-icono{
	width: 1rem;
	height: 1rem;
}

.nv-chip--enlace{
	min-height: 44px;
	padding: 0 1.125rem;
	font-size: .9375rem;
	text-decoration: none;
}

.nv-chip--enlace:hover{
	background-color: var(--nv-acento-velo);
	color: var(--nv-texto);
}

.nv-chip--ia{
	border: 1px solid var(--nv-texto-suave);
	background-color: transparent;
}

.nv-chip--autor{
	min-height: 22px;
	padding: 0 .5rem;
	background-color: var(--nv-acento-velo);
	color: var(--nv-texto);
	font-size: .75rem;
}

.nv-chip--publicado{
	background-color: transparent;
	border: 1px solid var(--nv-exito);
	color: var(--nv-exito);
}

.nv-chip--borrador{
	background-color: transparent;
	border: 1px solid var(--nv-aviso);
	color: var(--nv-aviso);
}

.nv-chips,
.nv-etiquetas{
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-vacio{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .5rem;
	padding: 2rem 0;
}

.nv-vacio__icono{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: .5rem;
	border-radius: var(--nv-radio-pildora);
	background-color: var(--nv-hondo);
	color: var(--nv-texto-suave);
}

.nv-vacio__titulo{
	margin: 0;
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-variation-settings: "SOFT" 50;
	font-size: 1.375rem;
	line-height: 1.25;
}

.nv-vacio__texto{
	max-width: 34em;
	margin: 0;
	font-family: var(--nv-fuente-lectura);
	color: var(--nv-texto-suave);
}

.nv-vacio__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1rem;
}

.nv-vacio .btn{
	margin-top: .75rem;
}

.nv-vacio--sesion{
	align-items: center;
	padding-block: 4rem 5rem;
	text-align: center;
}

.nv-vacio--sesion .nv-vacio__titulo{
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
}


/* ==========================================================================
   21. Formularios
   ========================================================================== */

.form-label{
	margin-bottom: .375rem;
	font-weight: 600;
	font-size: .9375rem;
}

.nv-opcional{
	font-weight: 400;
	color: var(--nv-texto-suave);
}

.nv-ayuda{
	margin-top: .375rem;
	color: var(--nv-texto-suave);
	font-size: .875rem;
}

.nv-contador{
	font-variant-numeric: tabular-nums;
}

.nv-contador.is-cerca{
	color: var(--nv-aviso);
	font-weight: 600;
}

.nv-error{
	display: flex;
	align-items: flex-start;
	gap: .375rem;
	margin: .375rem 0 0;
	color: var(--nv-error);
	font-size: .875rem;
	font-weight: 500;
}

.nv-error:empty{
	display: none;
}

.nv-error .nv-icono{
	width: 1.125rem;
	height: 1.125rem;
	margin-top: .0625rem;
}

.form-control.is-invalid{
	border-color: var(--nv-error);
	background-image: none;
	padding-right: .75rem;
}

.form-control.is-invalid:focus{
	border-color: var(--nv-error);
	box-shadow: 0 0 0 1px var(--nv-error);
}

.form-control-lg{
	min-height: 52px;
	font-size: 1.125rem;
}

.form-check{
	min-height: 32px;
	padding-top: .25rem;
}

.form-check-input{
	border-color: var(--nv-linea-fuerte);
	background-color: var(--nv-superficie);
}

.form-check-input:checked{
	background-color: var(--nv-acento);
	border-color: var(--nv-acento);
}

.form-check-input:focus{
	border-color: var(--nv-acento);
}

.form-switch .form-check-input:checked{
	background-color: var(--nv-acento);
}

.input-group-text{
	background-color: var(--nv-hondo);
	border-color: var(--nv-linea-fuerte);
	color: var(--nv-texto-suave);
	font-size: .9375rem;
}

.nv-campo{
	margin-bottom: 1.5rem;
}

.nv-campo--doble{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

.nv-campo--grupo{
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.25rem .25rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
}

.nv-campo__leyenda{
	float: left;
	width: 100%;
	margin-bottom: .5rem;
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-variation-settings: "SOFT" 50;
	font-size: 1.1875rem;
}

.nv-campo__leyenda + *{
	clear: left;
}

.nv-campo__intro{
	margin: 0 0 1rem;
}

.nv-campo__cabeza{
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .25rem 1rem;
}

.nv-campo__enlace{
	font-size: .875rem;
}

.nv-campo__prosa{
	font-family: var(--nv-fuente-lectura);
	line-height: 1.6;
}

.nv-casillas{
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.5rem;
	margin-bottom: 1rem;
}

.nv-clave{
	position: relative;
}

.nv-clave .form-control{
	padding-right: 3.25rem;
}

.nv-clave__ver{
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--nv-texto-suave);
}

.nv-clave__ver:hover,
.nv-clave__ver[aria-pressed="true"]{
	color: var(--nv-texto);
}

.nv-enlace-boton{
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	min-height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--nv-acento-fuerte);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: .18em;
}

.nv-enlace-boton:hover{
	text-decoration-thickness: 2px;
}

.nv-btn-peligro{
	--bs-btn-color: var(--nv-error);
	--bs-btn-bg: transparent;
	--bs-btn-border-color: var(--nv-error);
	--bs-btn-hover-color: var(--nv-fondo);
	--bs-btn-hover-bg: var(--nv-error);
	--bs-btn-hover-border-color: var(--nv-error);
	--bs-btn-active-color: var(--nv-fondo);
	--bs-btn-active-bg: var(--nv-error);
	--bs-btn-active-border-color: var(--nv-error);
}

.nv-btn-peligro--lleno{
	--bs-btn-color: var(--nv-fondo);
	--bs-btn-bg: var(--nv-error);
}

.nv-boton__detalle{
	font-weight: 500;
	opacity: .9;
}

.nv-formulario__acciones{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin-top: .5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nv-linea);
}

.nv-interruptores{
	display: flex;
	flex-direction: column;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-superficie);
}

.nv-interruptor{
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 1.5rem;
	margin: 0;
	padding: 1.125rem 1.25rem;
}

.nv-interruptor + .nv-interruptor{
	border-top: 1px solid var(--nv-linea);
}

/* El interruptor a la derecha, el texto a la izquierda: se toca la fila entera. */
.nv-interruptor .form-check-input{
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 2.75rem;
	height: 1.5rem;
	margin: .125rem 0 0;
	float: none;
	cursor: pointer;
}

.nv-interruptor .form-check-label{
	grid-column: 1;
	grid-row: 1;
	font-weight: 600;
	cursor: pointer;
}

.nv-interruptor__ayuda{
	grid-column: 1;
	grid-row: 2;
	margin: .25rem 0 0;
	color: var(--nv-texto-suave);
	font-size: .9375rem;
}


/* ==========================================================================
   22. Diálogos
   ========================================================================== */

.modal{
	--bs-modal-bg: var(--nv-superficie);
	--bs-modal-color: var(--nv-texto);
	--bs-modal-border-color: var(--nv-linea);
	--bs-modal-border-radius: var(--nv-radio);
	--bs-modal-header-border-color: var(--nv-linea);
	--bs-modal-footer-border-color: var(--nv-linea);
	--bs-modal-box-shadow: var(--nv-sombra-2);
}

.nv-dialogo__titulo{
	margin: 0;
	font-size: 1.375rem;
}

.nv-dialogo__aviso{
	display: flex;
	align-items: center;
	gap: .5rem;
	color: var(--nv-error);
	font-weight: 600;
}


/* ==========================================================================
   23. Explorar y categorías: filtros, listado y paginación
   ========================================================================== */

.nv-listado__filtros .offcanvas-body{
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.nv-filtro{
	margin: 0;
	padding: 0;
	border: 0;
}

.nv-filtro__titulo{
	float: left;
	width: 100%;
	margin: 0 0 .5rem;
	font-family: var(--nv-fuente-ui);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nv-texto-suave);
}

.nv-filtro__titulo + *{
	clear: left;
}

.nv-filtro__lista{
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-filtro__enlace{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 40px;
	padding: 0 .75rem;
	border-radius: var(--nv-radio-sm);
	color: var(--nv-texto);
	text-decoration: none;
}

.nv-filtro__enlace:hover{
	background-color: var(--nv-hondo);
	color: var(--nv-texto);
}

.nv-filtro__enlace.is-actual{
	background-color: var(--nv-acento-velo);
	font-weight: 600;
}

.nv-filtro__cuenta{
	color: var(--nv-texto-suave);
	font-size: .8125rem;
	font-variant-numeric: tabular-nums;
}

.nv-filtro-form{
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.nv-js [data-nv-sin-js]{
	display: none !important;
}

.nv-listado__barra{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	margin-bottom: 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--nv-linea);
}

.nv-listado__total{
	margin: 0;
	font-weight: 600;
}

.nv-listado__controles{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
}

.nv-orden{
	display: flex;
	align-items: center;
	gap: .5rem;
}

.nv-orden__etiqueta{
	color: var(--nv-texto-suave);
	font-size: .875rem;
	white-space: nowrap;
}

.nv-orden .form-select{
	width: auto;
}

.nv-paginacion{
	margin-top: 3rem;
}

.pagination{
	--bs-pagination-color: var(--nv-texto);
	--bs-pagination-bg: transparent;
	--bs-pagination-border-color: var(--nv-linea);
	--bs-pagination-hover-color: var(--nv-texto);
	--bs-pagination-hover-bg: var(--nv-hondo);
	--bs-pagination-hover-border-color: var(--nv-linea-fuerte);
	--bs-pagination-active-color: var(--nv-sobre-acento);
	--bs-pagination-active-bg: var(--nv-acento);
	--bs-pagination-active-border-color: var(--nv-acento);
	--bs-pagination-disabled-color: var(--nv-texto-tenue);
	--bs-pagination-disabled-bg: transparent;
	--bs-pagination-disabled-border-color: var(--nv-linea);
	--bs-pagination-border-radius: var(--nv-radio-sm);
	flex-wrap: wrap;
	justify-content: center;
	gap: .375rem;
	margin: 0;
}

.page-link{
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	border-radius: var(--nv-radio-sm);
}

.page-item:not(:first-child) .page-link{
	margin-left: 0;
}

.page-link .nv-icono{
	width: 1rem;
	height: 1rem;
}


/* ==========================================================================
   24. Ficha de novela
   ========================================================================== */

.nv-ficha__cabeza{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	margin-bottom: 3rem;
}

.nv-ficha__portada{
	width: min(14rem, 60%);
	margin-inline: auto;
}

.nv-ficha__datos{
	display: flex;
	flex-direction: column;
	gap: .875rem;
	min-width: 0;
}

.nv-ficha__titulo{
	margin: 0;
	font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -.015em;
}

.nv-ficha__autor{
	display: flex;
	align-items: center;
	gap: .625rem;
	margin: 0;
	font-weight: 600;
}

.nv-ficha__autor a{
	color: var(--nv-texto);
}

.nv-ficha__cifras{
	display: flex;
	flex-wrap: wrap;
	gap: .375rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--nv-texto-suave);
	font-size: .9375rem;
}

.nv-ficha__cifras li{
	display: inline-flex;
	align-items: center;
	gap: .25rem;
}

.nv-ficha__cifras a{
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	color: var(--nv-texto-suave);
}

.nv-ficha__cifras strong{
	color: var(--nv-texto);
}

.nv-ficha__sinopsis{
	max-width: 36em;
	margin: .25rem 0 0;
	font-family: var(--nv-fuente-lectura);
	font-size: 1.125rem;
	line-height: 1.65;
}

.nv-ficha__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: .5rem;
}

.nv-ficha__accion{
	display: contents;
}

.nv-ficha__actualizada{
	margin: 0;
	color: var(--nv-texto-suave);
	font-size: .875rem;
}

.nv-ficha__ia{
	margin-bottom: 2.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-superficie);
}

.nv-ficha__ia-titulo{
	margin: 0 0 .75rem;
	font-size: 1.25rem;
}

.nv-ficha__ia-herramienta{
	margin: 0 0 .5rem;
}

.nv-ficha__ia-texto{
	max-width: 44em;
	margin: 0;
	font-family: var(--nv-fuente-lectura);
	color: var(--nv-texto-suave);
}

.nv-subnav{
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.5rem;
	margin-bottom: 2.5rem;
	padding-block: .5rem;
	border-block: 1px solid var(--nv-linea);
}

.nv-subnav a{
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	min-height: 44px;
	color: var(--nv-texto);
	font-weight: 600;
	text-decoration: none;
}

.nv-subnav a:hover{
	text-decoration: underline;
}

.nv-subnav__cuenta{
	color: var(--nv-texto-suave);
	font-weight: 400;
}

.nv-capitulos{
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-capitulos__enlace,
.nv-capitulos__fila{
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	align-items: baseline;
	column-gap: .75rem;
	row-gap: .125rem;
	padding: .875rem .5rem;
	border-bottom: 1px solid var(--nv-linea);
	color: var(--nv-texto);
	text-decoration: none;
}

a.nv-capitulos__enlace:hover{
	background-color: var(--nv-superficie);
	color: var(--nv-texto);
}

a.nv-capitulos__enlace:hover .nv-capitulos__titulo{
	text-decoration: underline;
}

.nv-capitulos__numero{
	grid-row: 1 / span 2;
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--nv-texto-tenue);
	text-align: right;
	font-variant-numeric: oldstyle-nums;
}

.nv-capitulos__titulo{
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-variation-settings: "SOFT" 50;
	font-size: 1.0625rem;
}

.nv-capitulos__titulo a{
	color: var(--nv-texto);
}

.nv-capitulos__datos{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem .75rem;
	color: var(--nv-texto-suave);
	font-size: .8125rem;
}

.nv-ficha__opiniones{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
}

.nv-resumen-valoracion{
	display: flex;
	flex-direction: column;
	gap: .375rem;
}

.nv-resumen-valoracion__nota{
	margin: 0;
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-size: 3.5rem;
	line-height: 1;
}

.nv-resumen-valoracion__estrellas{
	display: flex;
	gap: .125rem;
	margin: 0;
	color: var(--nv-acento);
}

.nv-resumen-valoracion__estrellas .nv-icono{
	width: 1.25rem;
	height: 1.25rem;
}

.nv-icono.is-llena,
.nv-icono--valoracion{
	fill: currentColor;
}

.nv-resumen-valoracion__total{
	margin: 0 0 1rem;
	color: var(--nv-texto-suave);
}

.nv-ficha__denunciar,
.nv-lector__denunciar{
	margin: 2rem 0 0;
	font-size: .875rem;
}

.nv-ficha__denunciar .nv-enlace-boton,
.nv-lector__denunciar .nv-enlace-boton{
	color: var(--nv-texto-suave);
}


/* ==========================================================================
   25. Valorar y comentar
   ========================================================================== */

.nv-valorar{
	margin-top: .5rem;
}

.nv-valorar__invitacion,
.nv-comentar__invitacion{
	margin: 0;
	color: var(--nv-texto-suave);
}

.nv-valorar__form{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .75rem;
}

.nv-estrellas{
	margin: 0;
	padding: 0;
	border: 0;
}

.nv-valorar__leyenda{
	float: left;
	width: 100%;
	margin-bottom: .25rem;
	font-size: .9375rem;
	font-weight: 600;
}

.nv-estrellas__grupo{
	clear: left;
	display: flex;
	gap: .125rem;
}

/* El radio es de verdad (flechas, lector de pantalla); se ve la estrella. */
.nv-estrellas__control{
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nv-estrellas__estrella{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--nv-radio-sm);
	color: var(--nv-acento);
	cursor: pointer;
}

.nv-estrellas__estrella .nv-icono{
	width: 1.75rem;
	height: 1.75rem;
	transition: transform var(--nv-transicion);
}

.nv-estrellas__estrella:hover .nv-icono{
	transform: scale(1.1);
}

.nv-estrellas__estrella.is-llena .nv-icono,
.nv-estrellas__control:checked + .nv-estrellas__estrella .nv-icono{
	fill: currentColor;
}

.nv-estrellas__control:focus-visible + .nv-estrellas__estrella{
	outline: 2px solid var(--nv-acento);
	outline-offset: 2px;
}

.nv-comentarios{
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.nv-comentarios--respuestas{
	gap: 1.25rem;
	margin: 1.25rem 0 0;
	padding-left: 1.5rem;
	border-left: 2px solid var(--nv-linea);
}

.nv-comentario__cabeza{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .375rem .625rem;
}

.nv-comentario__nombre{
	color: var(--nv-texto);
	font-weight: 600;
}

.nv-comentario__fecha{
	color: var(--nv-texto-suave);
	font-size: .8125rem;
}

.nv-comentario__texto{
	margin: .5rem 0 .25rem;
	padding-left: 2.625rem;
	font-family: var(--nv-fuente-lectura);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.nv-comentario__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	padding-left: 2.625rem;
}

.nv-comentario__accion{
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	min-height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--nv-texto-suave);
	font-size: .875rem;
	text-decoration: none;
}

.nv-comentario__accion:hover{
	color: var(--nv-texto);
	text-decoration: underline;
}

.nv-comentario__accion .nv-icono{
	width: 1rem;
	height: 1rem;
}

.nv-comentar__respondiendo{
	margin: 0 0 .75rem;
	padding: .5rem .75rem;
	border-radius: var(--nv-radio-sm);
	background-color: var(--nv-acento-velo);
	font-size: .9375rem;
}

.nv-comentar__fila{
	display: flex;
	align-items: flex-start;
	gap: .625rem;
}

.nv-comentar__campo{
	flex: 1;
	min-width: 0;
}

.nv-comentar__campo .btn{
	margin-top: .75rem;
}


/* ==========================================================================
   26. Avatares, perfil, búsqueda, filas y tarjetas de autor
   ========================================================================== */

.nv-avatar--32,
.nv-avatar--48,
.nv-avatar--96{
	flex: none;
}

.nv-avatar--32{
	width: 32px;
	height: 32px;
	font-size: .9375rem;
}

.nv-avatar--48{
	width: 48px;
	height: 48px;
	font-size: 1.375rem;
}

.nv-avatar--96{
	width: 96px;
	height: 96px;
	font-size: 2.75rem;
}

span.nv-avatar:hover{
	background-color: var(--nv-hondo);
}

.nv-perfil{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5rem 2rem;
	margin-bottom: 3rem;
}

.nv-perfil__datos{
	flex: 1 1 22rem;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.nv-perfil__nombre{
	margin: 0;
	font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
	line-height: 1.1;
}

.nv-perfil__cifras{
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--nv-texto-suave);
	font-size: .9375rem;
}

.nv-perfil__cifras strong{
	color: var(--nv-texto);
}

.nv-perfil__bio{
	max-width: 38em;
	margin: 0;
	font-family: var(--nv-fuente-lectura);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.nv-perfil__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: .25rem;
}

.nv-buscar__form{
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.25rem;
}

.nv-buscar__campo{
	position: relative;
	flex: 1 1 18rem;
	display: flex;
	align-items: center;
}

.nv-buscar__campo > .nv-icono{
	position: absolute;
	left: 1rem;
	color: var(--nv-texto-tenue);
	pointer-events: none;
}

.nv-buscar__campo .form-control{
	padding-left: 3rem;
}

.nv-buscar__resumen{
	margin: 0 0 2rem;
	font-size: 1.0625rem;
}

.nv-buscar__subtitulo{
	margin: 2.5rem 0 1.25rem;
	font-size: 1.25rem;
}

.nv-filas{
	display: flex;
	flex-direction: column;
}

.nv-fila{
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--nv-linea);
}

.nv-fila .nv-portada{
	width: 72px;
}

.nv-fila__datos{
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.nv-fila__titulo{
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.nv-fila__titulo a{
	color: var(--nv-texto);
	text-decoration: none;
}

.nv-fila:hover .nv-fila__titulo a{
	text-decoration: underline;
}

.nv-fila__sinopsis{
	display: -webkit-box;
	margin: .25rem 0 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-family: var(--nv-fuente-lectura);
	color: var(--nv-texto-suave);
}

.nv-fila__nota{
	margin: .25rem 0 0;
	font-size: .875rem;
	font-weight: 600;
}

.nv-autores{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.nv-autor-tarjeta{
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.125rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-superficie);
}

.nv-autor-tarjeta__datos{
	flex: 1;
	min-width: 0;
}

.nv-autor-tarjeta__nombre{
	margin: 0 0 .125rem;
	font-size: 1.125rem;
}

.nv-autor-tarjeta__nombre a{
	color: var(--nv-texto);
	text-decoration: none;
}

.nv-autor-tarjeta:hover .nv-autor-tarjeta__nombre a{
	text-decoration: underline;
}

.nv-autor-tarjeta__bio{
	display: -webkit-box;
	margin: .375rem 0 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--nv-texto-suave);
	font-size: .9375rem;
}

/* La acción va por encima del enlace que ocupa toda la tarjeta. */
.nv-autor-tarjeta__accion{
	position: relative;
	z-index: 2;
}


/* ==========================================================================
   27. Entrar, registro y recuperar
   ========================================================================== */

.nv-auth{
	padding-block: 2.5rem 4rem;
}

.nv-auth__caja{
	max-width: 28rem;
	margin-inline: auto;
	padding: 2rem 1.5rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-superficie);
}

.nv-auth__caja--centro{
	text-align: center;
}

.nv-auth__icono{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 1rem;
	border-radius: var(--nv-radio-pildora);
	background-color: var(--nv-hondo);
	color: var(--nv-exito);
}

.nv-auth__icono--aviso{
	color: var(--nv-aviso);
}

.nv-auth__icono .nv-icono{
	width: 1.75rem;
	height: 1.75rem;
}

.nv-auth__titulo{
	margin: 0 0 .5rem;
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
	line-height: 1.15;
}

.nv-auth__entrada{
	margin: 0 0 1.75rem;
	color: var(--nv-texto-suave);
}

.nv-auth__caja > .nv-aviso{
	margin-bottom: 1.5rem;
}

.nv-auth__boton{
	width: 100%;
}

.nv-auth__pie{
	margin: 1.5rem 0 0;
	color: var(--nv-texto-suave);
	text-align: center;
}


/* ==========================================================================
   28. Biblioteca y pestañas
   ========================================================================== */

.nv-pestanas{
	display: flex;
	gap: .25rem;
	margin-bottom: 2rem;
	overflow-x: auto;
	border-bottom: 1px solid var(--nv-linea);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.nv-pestanas__enlace{
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	flex: none;
	min-height: 48px;
	padding: 0 .875rem;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	color: var(--nv-texto-suave);
	font-weight: 600;
	text-decoration: none;
}

.nv-pestanas__enlace:hover{
	color: var(--nv-texto);
}

.nv-pestanas__enlace.is-actual{
	border-bottom-color: var(--nv-acento);
	color: var(--nv-texto);
}

.nv-pestanas__cuenta{
	min-width: 1.5rem;
	padding: 0 .375rem;
	border-radius: var(--nv-radio-pildora);
	background-color: var(--nv-hondo);
	font-size: .75rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   29. Ajustes
   ========================================================================== */

.nv-ajustes{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem 3rem;
	margin-top: 1.5rem;
}

.nv-ajustes-menu__lista{
	display: flex;
	gap: .25rem;
	margin: 0;
	padding: 0 0 .25rem;
	overflow-x: auto;
	list-style: none;
	border-bottom: 1px solid var(--nv-linea);
	-webkit-overflow-scrolling: touch;
}

.nv-ajustes-menu__enlace{
	display: flex;
	align-items: center;
	flex: none;
	min-height: 44px;
	padding: 0 .875rem;
	border-radius: var(--nv-radio-sm);
	color: var(--nv-texto);
	text-decoration: none;
	white-space: nowrap;
}

.nv-ajustes-menu__enlace:hover{
	background-color: var(--nv-hondo);
	color: var(--nv-texto);
}

.nv-ajustes-menu__enlace.is-actual{
	background-color: var(--nv-acento-velo);
	font-weight: 600;
}

.nv-ajustes__contenido{
	min-width: 0;
	max-width: 44rem;
}

.nv-ajustes__titulo{
	margin: 0;
	font-size: 1.75rem;
}

.nv-ajustes__entrada{
	margin: .375rem 0 1.75rem;
	color: var(--nv-texto-suave);
}

.nv-ajustes__bloque{
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--nv-linea);
}

.nv-ajustes__bloque--peligro{
	margin-top: 1rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--nv-error);
	border-radius: var(--nv-radio);
}

.nv-ajustes__subtitulo{
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.nv-ajustes__texto{
	max-width: 38em;
	margin: 0 0 1rem;
	color: var(--nv-texto-suave);
}

.nv-ajustes__muestra{
	margin: 2rem 0 0;
	padding: 1.5rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-fondo);
}

.nv-ajustes__muestra figcaption{
	margin-bottom: 1rem;
}

.nv-avatar-subida{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
}


/* ==========================================================================
   30. Ajustes de lectura (panel del lector y Ajustes › Lectura)
   ========================================================================== */

.nv-lectura-ajustes{
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.nv-lectura-ajustes__grupo{
	margin: 0;
	padding: 0;
	border: 0;
}

.nv-lectura-ajustes__leyenda{
	float: left;
	width: 100%;
	margin-bottom: .625rem;
	font-size: .9375rem;
	font-weight: 600;
}

.nv-lectura-ajustes__leyenda + *{
	clear: left;
}

.nv-tamano{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	max-width: 20rem;
	padding: .25rem;
	border: 1px solid var(--nv-linea-fuerte);
	border-radius: var(--nv-radio-sm);
}

.nv-tamano__boton{
	--bs-btn-border-color: transparent;
	--bs-btn-hover-border-color: transparent;
	min-width: 44px;
	padding-inline: .5rem;
}

.nv-tamano__a{
	font-family: var(--nv-fuente-lectura);
	line-height: 1;
}

.nv-tamano__a--menos{
	font-size: .9375rem;
}

.nv-tamano__a--mas{
	font-size: 1.375rem;
}

.nv-tamano__valor{
	font-variant-numeric: tabular-nums;
}

.nv-opciones{
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.nv-opcion__control{
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nv-opcion{
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid var(--nv-linea-fuerte);
	border-radius: var(--nv-radio-sm);
	background-color: var(--nv-superficie);
	color: var(--nv-texto);
	cursor: pointer;
}

.nv-opcion:hover{
	background-color: var(--nv-hondo);
}

.nv-opcion__control:checked + .nv-opcion{
	border-color: var(--nv-acento);
	box-shadow: inset 0 0 0 1px var(--nv-acento);
	background-color: var(--nv-acento-velo);
	font-weight: 600;
}

.nv-opcion__control:focus-visible + .nv-opcion{
	outline: 2px solid var(--nv-acento);
	outline-offset: 2px;
}

/* Las muestras del tema y de la letra se ven como lo que eligen. */
.nv-opcion[class*="nv-opcion--tema-"]::before{
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	border: 1px solid var(--nv-linea-fuerte);
	border-radius: var(--nv-radio-pildora);
}

.nv-opcion--tema-papel::before{ background: #F7F3EC; }
.nv-opcion--tema-sepia::before{ background: #F2E8D2; }
.nv-opcion--tema-noche::before{ background: #17140F; }
.nv-opcion--tema-sistema::before{ background: linear-gradient(135deg, #F7F3EC 50%, #17140F 50%); }

.nv-opcion--letra-remate{
	font-family: var(--nv-fuente-lectura);
}

.nv-opcion--letra-sin-remate{
	font-family: var(--nv-fuente-ui);
}

.nv-lectura-ajustes__pie{
	padding-top: 1rem;
	border-top: 1px solid var(--nv-linea);
}


/* ==========================================================================
   31. Escritorio
   ========================================================================== */

.nv-cifras{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 0 3rem;
}

.nv-cifras__item{
	padding: 1.125rem 1.25rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-superficie);
}

.nv-cifras__etiqueta{
	margin: 0 0 .25rem;
	color: var(--nv-texto-suave);
	font-size: .8125rem;
	font-weight: 500;
}

.nv-cifras__valor{
	margin: 0;
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-size: 2rem;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.nv-obras{
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-obra{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.25rem;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--nv-linea);
}

.nv-obra .nv-portada{
	width: 64px;
}

.nv-obra__datos{
	flex: 1 1 18rem;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .375rem;
}

.nv-obra__estado{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: 0;
}

.nv-obra__titulo{
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.nv-obra__titulo a{
	color: var(--nv-texto);
}

.nv-obra__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .5rem;
}

.nv-formulario__rejilla{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem 3rem;
}

.nv-formulario__principal{
	min-width: 0;
	max-width: 44rem;
}

.nv-portada-subida{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .75rem;
}

.nv-portada-subida__vista{
	width: 12rem;
}

.nv-portada-subida__vista .nv-portada{
	width: 100%;
}

.nv-portada--vacia{
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed var(--nv-linea-fuerte);
	background-color: var(--nv-superficie);
	box-shadow: none;
	color: var(--nv-texto-tenue);
}

.nv-portada--vacia .nv-icono{
	width: 2rem;
	height: 2rem;
}

/* El input de archivo no se ve, pero sigue siendo enfocable: su etiqueta hace de botón. */
.nv-portada-subida__control{
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nv-portada-subida__control:focus-visible + label{
	outline: 2px solid var(--nv-acento);
	outline-offset: 2px;
}


/* ==========================================================================
   32. Editor de capítulos
   ========================================================================== */

.nv-pagina--editor{
	padding-bottom: 1rem;
}

.nv-pagina--editor .nv-pagina__cabeza{
	margin-bottom: 0;
}

.nv-editor__barra{
	position: sticky;
	top: var(--nv-alto-cabecera);
	z-index: 10;
	padding-block: .625rem;
	border-block: 1px solid var(--nv-linea);
	background-color: var(--nv-fondo);
}

.nv-editor__barra-contenido{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
}

.nv-editor__estado{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
}

.nv-editor__cuenta{
	color: var(--nv-texto-suave);
	font-size: .875rem;
	font-variant-numeric: tabular-nums;
}

.nv-editor__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.nv-editor__cuerpo{
	padding-block: 2rem 3rem;
}

.nv-editor__cuerpo > .nv-aviso{
	max-width: 48rem;
	margin-bottom: 1.5rem;
}

.nv-editor__hoja{
	max-width: 48rem;
}

.nv-editor__titulo{
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	font-variation-settings: "SOFT" 50;
	font-size: 1.375rem;
}

.nv-editor__ayuda{
	margin: 0 0 .75rem;
}

.nv-editor__ayuda code{
	color: var(--nv-texto);
}

/* El texto se escribe con la letra con la que se leerá. */
.nv-editor__texto{
	min-height: 60vh;
	padding: 1.25rem 1.5rem;
	font-family: var(--nv-fuente-lectura);
	font-size: 1.0625rem;
	line-height: 1.7;
	resize: vertical;
	field-sizing: content;
}

.nv-editor__vista{
	padding: 1.5rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-superficie);
}

.nv-editor__vista .nv-antetitulo{
	margin-bottom: 1rem;
}

.nv-editor__vista-texto{
	max-width: 68ch;
	font-size: 1.125rem;
}

.nv-editor__guardado{
	min-height: 1.5rem;
	margin: .5rem 0 0;
	color: var(--nv-texto-suave);
	font-size: .875rem;
}

.nv-aviso--info{
	background-color: var(--nv-superficie);
	border: 1px solid var(--nv-linea);
}

.nv-aviso--error{
	border: 1px solid var(--nv-error);
	background-color: var(--nv-superficie);
}

.nv-aviso--error > .nv-icono{
	color: var(--nv-error);
}

/* Tras una acción que ha ido bien (nv_aviso(), parts/aviso.tpl). */
.nv-aviso--exito{
	border: 1px solid var(--nv-exito);
	background-color: var(--nv-superficie);
}

.nv-aviso--exito > .nv-icono{
	color: var(--nv-exito);
}

.nv-aviso__acciones{
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

/*
 * Dónde caen los avisos: debajo de la cabecera (el general), encima de un
 * formulario y dentro de los bloques de la ficha.
 */
.nv-aviso-general{
	padding-top: 1rem;
}

.nv-pagina > .nv-aviso,
.nv-ajustes__contenido > .nv-aviso,
.nv-formulario__errores,
.nv-editor__cuerpo > .nv-aviso--error{
	margin-bottom: 1.25rem;
}

.nv-valorar > .nv-aviso,
.nv-comentar > .nv-aviso{
	margin-bottom: .75rem;
}


/* ==========================================================================
   Avatar con foto y novelas retiradas
   ========================================================================== */

/* La foto ocupa todo el círculo; sin foto se ve la inicial. */
.nv-avatar{
	overflow: hidden;
}

.nv-avatar img{
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

.nv-chip--retirada{
	background-color: transparent;
	border: 1px solid var(--nv-error);
	color: var(--nv-error);
}

/*
 * «Capítulo nuevo» (parts/capitulos.nuevos.tpl), en Inicio y en la
 * Biblioteca. El acento, en velo: se ve sin competir con el botón principal.
 */
.nv-chip--nuevo{
	align-self: flex-start;
	background-color: var(--nv-acento-velo);
	color: var(--nv-acento-fuerte);
	font-weight: 600;
}

.nv-tarjeta .nv-chip--nuevo,
.nv-seguir__datos .nv-chip--nuevo{
	margin-top: .25rem;
}

/* Bajo los botones de la ficha: guardar es suscribirse. */
.nv-ficha__suscripcion{
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	margin: .75rem 0 0;
	color: var(--nv-texto-suave);
	font-size: .875rem;
}

.nv-ficha__suscripcion .nv-icono{
	flex: none;
	margin-top: .15em;
}

/* Editor: «Sin número» bajo el título del capítulo. */
.nv-editor__sin-numero{
	margin-top: .75rem;
}

/* Lector paginado: «Leer el capítulo entero» bajo los botones. */
.nv-lector__entero{
	margin: 1rem 0 0;
	text-align: center;
	font-size: .875rem;
}

.nv-obra__motivo{
	margin: 0;
	color: var(--nv-error);
	font-size: .875rem;
}


/* ==========================================================================
   33. Páginas de texto largo (normas, ayuda, legales) y 404
   ========================================================================== */

.nv-texto-largo{
	max-width: 46rem;
	margin-inline: auto;
}

.nv-texto-largo__cabeza{
	margin-bottom: 2rem;
}

.nv-texto-largo__titulo{
	margin: .25rem 0 .5rem;
	font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
	line-height: 1.1;
}

.nv-texto-largo__fecha{
	margin: 0;
	color: var(--nv-texto-suave);
	font-size: .875rem;
}

.nv-texto-largo > .nv-aviso{
	margin-bottom: 2rem;
}

.nv-texto-largo__indice{
	margin-bottom: 2.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-superficie);
}

.nv-texto-largo__indice ol{
	margin: 0;
	padding-left: 1.25rem;
}

.nv-texto-largo__indice li{
	padding-block: .25rem;
}

.nv-texto-largo__cuerpo{
	font-family: var(--nv-fuente-lectura);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.nv-texto-largo__cuerpo h2{
	margin: 2.5rem 0 .75rem;
	font-size: 1.5rem;
	line-height: 1.2;
}

.nv-texto-largo__cuerpo p,
.nv-texto-largo__cuerpo ul{
	margin: 0 0 1rem;
}

.nv-texto-largo__cuerpo li + li{
	margin-top: .375rem;
}

.nv-texto-largo__cuerpo code{
	padding: .0625rem .375rem;
	border-radius: var(--nv-radio-sm);
	background-color: var(--nv-hondo);
	color: var(--nv-texto);
	font-size: .9em;
}

.nv-texto-largo__entrada{
	font-size: 1.1875rem;
}

.nv-tabla{
	margin: 0 0 1.5rem;
	overflow-x: auto;
}

.nv-tabla .table{
	--bs-table-bg: transparent;
	--bs-table-color: var(--nv-texto);
	--bs-table-border-color: var(--nv-linea);
	margin: 0;
	font-family: var(--nv-fuente-ui);
	font-size: .9375rem;
}

.nv-pagina-error{
	padding-block: 4rem 5rem;
	text-align: center;
}

.nv-pagina-error__titulo{
	margin: .5rem 0 1rem;
	font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
	line-height: 1.1;
}

.nv-pagina-error__texto{
	margin: 0 auto 2rem;
	max-width: 32em;
	font-family: var(--nv-fuente-lectura);
	color: var(--nv-texto-suave);
}

.nv-pagina-error .nv-buscar__form{
	justify-content: center;
	text-align: left;
}

.nv-pagina-error__enlaces{
	margin: 2rem 0 0;
}


/* ==========================================================================
   34. EL LECTOR
   ========================================================================== */

/*
 * Preferencias de lectura (DESIGN §9.3 y §9.5). Las pone en <html> el script
 * de head.tpl antes de pintar; html[…] gana a :root en cualquier punto de
 * corte. Valores de una lista cerrada: nada de lo que llega de localStorage
 * se usa tal cual.
 */
/*
 * El ancho de la columna va en em del tamaño de lectura, no en ch: ch es el
 * ancho del «0» de la fuente del contenedor (la de la interfaz, más ancha que
 * Literata) y la columna salía a 860 px. 34em son unos 66 caracteres por
 * línea, y crece con el tamaño de letra elegido.
 */
:root{
	--nv-t-lectura: 1.125rem;
	--nv-lectura-interlineado: 1.7;
	--nv-lectura-ancho: 34em;
	--nv-lectura-fuente: var(--nv-fuente-lectura);
}

html[data-nv-paso="0"]{ --nv-t-lectura: 1rem; }
html[data-nv-paso="1"]{ --nv-t-lectura: 1.125rem; }
html[data-nv-paso="2"]{ --nv-t-lectura: 1.1875rem; }
html[data-nv-paso="3"]{ --nv-t-lectura: 1.3125rem; }
html[data-nv-paso="4"]{ --nv-t-lectura: 1.5rem; }

html[data-nv-interlineado="compacto"]{ --nv-lectura-interlineado: 1.55; }
html[data-nv-interlineado="normal"]{ --nv-lectura-interlineado: 1.7; }
html[data-nv-interlineado="amplio"]{ --nv-lectura-interlineado: 1.9; }

html[data-nv-ancho="estrecho"]{ --nv-lectura-ancho: 28em; }
html[data-nv-ancho="normal"]{ --nv-lectura-ancho: 34em; }
html[data-nv-ancho="ancho"]{ --nv-lectura-ancho: 40em; }

html[data-nv-letra="sin-remate"]{ --nv-lectura-fuente: var(--nv-fuente-ui); }
html[data-nv-letra="remate"]{ --nv-lectura-fuente: var(--nv-fuente-lectura); }

/* Cabecera de lectura: se esconde al bajar, dejando a la vista el progreso. */
.nv-cabecera--lector{
	transition: transform .25s ease-out, box-shadow var(--nv-transicion);
}

.nv-cabecera--lector.is-oculta{
	transform: translateY(calc(-100% + 3px));
}

.nv-cabecera--lector .nv-cabecera__barra{
	gap: .5rem 1rem;
}

/* Sin buscador que empuje (responsive.css ≥ 768): las acciones, a la derecha. */
.nv-cabecera--lector .nv-cabecera__acciones{
	margin-left: auto;
}

.nv-lector-volver{
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-width: 0;
	min-height: 44px;
	color: var(--nv-texto);
	font-weight: 600;
	text-decoration: none;
}

.nv-lector-volver:hover{
	color: var(--nv-texto);
}

.nv-lector-volver:hover .nv-lector-volver__texto{
	text-decoration: underline;
}

.nv-lector-volver__texto{
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nv-lector-posicion{
	display: none;
	color: var(--nv-texto-suave);
	font-size: .875rem;
	white-space: nowrap;
}

.nv-lector-progreso{
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	background-color: var(--nv-linea);
}

/* scaleX en vez de width: no recalcula el diseño a cada paso del scroll. */
.nv-lector-progreso > span{
	display: block;
	height: 100%;
	background-color: var(--nv-acento);
	transform: scaleX(0);
	transform-origin: left center;
}

.nv-indice .offcanvas-header{
	align-items: flex-start;
	border-bottom: 1px solid var(--nv-linea);
}

.nv-indice__titulo{
	margin: .25rem 0 0;
	font-size: 1.25rem;
	line-height: 1.2;
}

.nv-indice__lista{
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-indice__enlace{
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr) auto;
	align-items: baseline;
	gap: .5rem;
	padding: .75rem .5rem;
	border-radius: var(--nv-radio-sm);
	color: var(--nv-texto);
	text-decoration: none;
}

.nv-indice__enlace:hover{
	background-color: var(--nv-hondo);
	color: var(--nv-texto);
}

.nv-indice__enlace.is-actual{
	background-color: var(--nv-acento-velo);
	font-weight: 600;
}

.nv-indice__numero{
	color: var(--nv-texto-tenue);
	font-family: var(--nv-fuente-titulo);
	font-weight: 600;
	text-align: right;
	font-variant-numeric: oldstyle-nums;
}

.nv-indice__minutos{
	color: var(--nv-texto-suave);
	font-size: .8125rem;
	white-space: nowrap;
}

/*
 * Panel de ajustes: hoja inferior en el móvil, panel lateral desde md
 * (responsive.css). Bootstrap no tiene esa colocación «responsive», así que
 * la pone este CSS sobre su .offcanvas.
 */
.offcanvas.nv-ajustes-lectura{
	top: auto;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: auto;
	max-height: 85vh;
	max-height: 85dvh;
	border-top: 1px solid var(--nv-linea);
	border-radius: 12px 12px 0 0;
	transform: translateY(100%);
}

/* Abierto (y mientras se abre): en su sitio. Sin esto, la regla de arriba
   ganaría a la de Bootstrap durante la animación y el panel saltaría. */
.offcanvas.nv-ajustes-lectura.showing,
.offcanvas.nv-ajustes-lectura.show:not(.hiding){
	transform: none;
}

.nv-ajustes-lectura .offcanvas-header{
	border-bottom: 1px solid var(--nv-linea);
}

.nv-ajustes-lectura__titulo{
	margin: 0;
	font-size: 1.25rem;
}

.nv-retomar{
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	z-index: 1035;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.nv-retomar__caja{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1rem;
	width: auto;
	max-width: 36rem;
	padding: .75rem .75rem .75rem 1.25rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-superficie);
	box-shadow: var(--nv-sombra-2);
	pointer-events: auto;
}

.nv-retomar__texto{
	flex: 1 1 14rem;
	margin: 0;
	font-size: .9375rem;
}

.nv-lector{
	padding: 2.5rem 1.25rem 3rem;
}

.nv-lector__columna{
	max-width: var(--nv-lectura-ancho);
	margin-inline: auto;
	font-size: var(--nv-t-lectura);
}

.nv-lector__cabeza{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .625rem;
	padding-bottom: 2.25em;
	font-size: 1rem;
	text-align: center;
}

.nv-lector__antetitulo{
	letter-spacing: .1em;
	color: var(--nv-texto-tenue);
}

.nv-lector__titulo{
	margin: 0;
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	line-height: 1.1;
	letter-spacing: -.01em;
}

.nv-lector__meta{
	justify-content: center;
	font-size: .875rem;
}

.nv-lector__texto{
	font-family: var(--nv-lectura-fuente);
	font-size: var(--nv-t-lectura);
	line-height: var(--nv-lectura-interlineado);
	overflow-wrap: break-word;
}

.nv-lector__fin{
	padding-top: 3em;
	font-size: 1rem;
}

.nv-lector__fin-rotulo{
	margin: 0 0 1.5rem;
	color: var(--nv-texto-tenue);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-align: center;
	text-transform: uppercase;
}

.nv-lector__nav{
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.nv-lector__paso{
	flex: 1 1 15rem;
	justify-content: flex-start;
	min-height: 72px;
	padding: .75rem 1.125rem;
	text-align: left;
}

.nv-lector__paso--siguiente,
.nv-lector__paso--ficha{
	justify-content: flex-end;
	text-align: right;
}

.nv-lector__paso-texto{
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nv-lector__paso-rotulo{
	font-size: .8125rem;
	font-weight: 500;
	opacity: .9;
}

.nv-lector__paso-titulo{
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nv-lector__final{
	margin-top: 2rem;
	padding: 1.75rem 1.5rem;
	border: 1px solid var(--nv-linea);
	border-radius: var(--nv-radio);
	background-color: var(--nv-superficie);
	text-align: center;
}

.nv-lector__final-titulo{
	margin: 0 0 .5rem;
	font-size: 1.5rem;
	line-height: 1.2;
}

.nv-lector__final-texto{
	max-width: 32em;
	margin: 0 auto 1rem;
	color: var(--nv-texto-suave);
}

.nv-lector__final .nv-valorar__form{
	align-items: center;
}

.nv-lector__final .nv-valorar__leyenda{
	text-align: center;
}

.nv-lector__final .nv-estrellas__grupo{
	justify-content: center;
}

/* Sin sesión: crear una cuenta o entrar (parts/lectura.invitacion.tpl). */
.nv-lector__invitacion-acciones{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem;
}

.nv-lector--cerrado .nv-lector__invitacion{
	margin-top: 2.5rem;
}

.nv-lector__comentarios{
	margin-top: 2rem;
	border: 1px solid var(--nv-linea-fuerte);
	border-radius: var(--nv-radio-sm);
}

.nv-lector__comentarios-resumen{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 52px;
	padding: 0 1.125rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.nv-lector__comentarios-resumen::-webkit-details-marker{
	display: none;
}

.nv-lector__comentarios-resumen > span{
	display: inline-flex;
	align-items: center;
	gap: .625rem;
}

.nv-lector__comentarios-resumen:hover{
	background-color: var(--nv-hondo);
}

.nv-lector__comentarios-flecha{
	transition: transform var(--nv-transicion);
}

.nv-lector__comentarios[open] .nv-lector__comentarios-flecha{
	transform: rotate(180deg);
}

.nv-lector__comentarios-cuerpo{
	padding: 1.25rem 1.125rem 1.5rem;
	border-top: 1px solid var(--nv-linea);
}


/* Aviso breve («Enlace copiado»), creado por scripts.js. */
.nv-tostada{
	position: fixed;
	bottom: 1.25rem;
	left: 50%;
	z-index: 1090;
	max-width: calc(100% - 2rem);
	padding: .75rem 1.125rem;
	border-radius: var(--nv-radio);
	background-color: var(--nv-texto);
	color: var(--nv-fondo);
	box-shadow: var(--nv-sombra-2);
	font-size: .9375rem;
	font-weight: 500;
	opacity: 0;
	transform: translate(-50%, .5rem);
	transition: opacity var(--nv-transicion), transform var(--nv-transicion);
	pointer-events: none;
}

.nv-tostada.is-visible{
	opacity: 1;
	transform: translate(-50%, 0);
}


/* ==========================================================================
   35. Compatibilidad entre navegadores
   ========================================================================== */

html{
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* Safari parte palabras solo con el prefijo. */
.nv-capitulo,
.nv-texto-largo__cuerpo{
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* Un id en una ruta larga (un usuario, un correo) no rompe la columna. */
.nv-comentario__texto,
.nv-ficha__sinopsis,
.nv-perfil__bio{
	overflow-wrap: anywhere;
}

/* iOS amplía la página al enfocar un campo con letra de menos de 16 px. */
@supports (-webkit-touch-callout: none){
	.form-control,
	.form-select{
		font-size: max(1rem, 16px);
	}
}


/* ==========================================================================
   36. Impresión
   ========================================================================== */

/*
 * Un capítulo se imprime como un libro: sin interfaz, en negro sobre blanco,
 * con la letra de lectura. El resto de páginas, sin cabecera ni pie.
 */
@media print{
	.nv-cabecera,
	.nv-pie,
	.nv-retomar,
	.nv-saltar,
	.nv-lector__nav,
	.nv-lector__final,
	.nv-lector__comentarios,
	.nv-lector__denunciar,
	.offcanvas,
	.modal,
	.btn{
		display: none !important;
	}

	body{
		background: #fff !important;
		color: #000 !important;
	}

	.nv-lector{
		padding: 0;
	}

	.nv-lector__columna{
		max-width: none;
	}

	.nv-lector__texto{
		font-family: var(--nv-fuente-lectura);
		font-size: 12pt;
		line-height: 1.55;
		color: #000;
	}

	.nv-capitular::first-letter{
		color: #000;
	}

	a{
		color: #000;
		text-decoration: none;
	}
}
