/* Biblioteca Lev — paleta "Ciruela y menta"
   Tipografía: Outfit (títulos) y Figtree (texto), servidas desde /fonts. */

@font-face { font-family: "Outfit"; src: url("/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --ciruela: #4a2a5e;
  --ciruela-oscura: #391f49;
  --menta: #5fd3b0;
  --menta-oscura: #2c6b57;
  --fondo: #fbf8fc;
  --tinta: #1d1622;
  --texto: #433b4a;
  --suave: #5b5363;
  --lavanda: #e6dcf2;
  --menta-suave: #d8f3e9;
  --rosa: #fde1e6;
  --sobre-ciruela: #e2d6ea;
  --borde: #ebe3ef;
  --pie-texto: #dcd5e1;
  --blanco: #ffffff;
  --titulos: "Outfit", "Segoe UI", system-ui, sans-serif;
  --cuerpo: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radio: 24px;
  --sombra: 0 16px 32px rgba(74, 42, 94, .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--cuerpo); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ciruela); }
a:hover { color: var(--ciruela-oscura); }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--menta-oscura); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tinta); color: var(--blanco); padding: 10px 16px; border-radius: 10px; }
.saltar:focus { top: 12px; color: var(--blanco); }
.icono { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- Botones y chips */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 2px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.boton:hover { transform: translateY(-2px); }
.boton--chico { min-height: 44px; padding: 0 12px; font-size: 14px; border-radius: 12px; flex: 1; }
.boton--chico .icono { width: 18px; height: 18px; }
.boton--primario { background: var(--ciruela); color: var(--fondo); }
.boton--primario:hover { background: var(--ciruela-oscura); color: var(--fondo); }
.boton--acento { background: var(--menta); color: var(--tinta); }
.boton--acento:hover { background: #4cc79f; color: var(--tinta); }
.boton--oscuro { background: var(--tinta); color: var(--fondo); }
.boton--oscuro:hover { background: #000; color: var(--fondo); }
.boton--borde { background: transparent; border-color: #d6cddd; color: var(--tinta); }
.boton--borde:hover { border-color: var(--ciruela); color: var(--ciruela); }
.boton--desactivado { background: var(--borde); color: var(--suave); cursor: default; }
.boton--desactivado:hover { transform: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; text-decoration: none; }
.chip--claro { background: var(--lavanda); color: var(--ciruela); }
.chip--lavanda { background: var(--lavanda); color: var(--ciruela-oscura); }
.chip--menta { background: var(--menta-suave); color: var(--menta-oscura); }
a.chip:hover { filter: brightness(.96); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.enlace-flecha { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ciruela); }
.enlace-flecha .icono { transition: transform .2s ease; }
.enlace-flecha:hover .icono { transform: translateX(4px); }

/* ---------------------------------------------------------------- Cabecera y pie */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 252, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.cabecera__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 14px; padding-bottom: 14px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinta); }
.marca img { width: 58px; }
.marca span { font-family: var(--titulos); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 26px; font-weight: 600; font-size: 15px; }
.menu a { color: var(--tinta); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--menta); color: var(--tinta); }
.cabecera__accion { min-height: 44px; }
@media (max-width: 760px) {
  .cabecera__fila { gap: 6px 16px; }
  .marca img { width: 46px; }
  .marca span { font-size: 19px; }
  .menu { order: 3; width: 100%; gap: 4px 20px; font-size: 14px; overflow-x: auto; flex-wrap: nowrap; }
  .menu a { white-space: nowrap; }
  .cabecera__accion { padding: 0 14px; font-size: 14px; }
}

.pie { background: var(--tinta); color: var(--pie-texto); margin-top: 48px; font-size: 14px; }
.pie a { color: var(--pie-texto); }
.pie a:hover { color: var(--blanco); }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 24px; }
.pie__marca { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.pie__marca img { width: 54px; }
.pie__marca strong { font-family: var(--titulos); font-size: 17px; color: var(--blanco); }
.pie__menu { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.pie__menu a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.pie__menu .icono { width: 15px; height: 15px; }
.pie__legal { padding-bottom: 32px; font-size: 13px; color: #b7aec0; }

/* ---------------------------------------------------------------- Portadas */
.portada { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 4 / 5; border-radius: 16px; padding: 18px; overflow: hidden; background: var(--ciruela); color: var(--fondo); }
.portada--grande { aspect-ratio: 2 / 3; border-radius: 18px; padding: 24px; box-shadow: 0 22px 40px rgba(74, 42, 94, .28); }
.portada--imagen { padding: 0; background: var(--lavanda); }
.portada--imagen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada__forma { position: absolute; left: -30px; top: -30px; width: 120px; height: 120px; border-radius: 34px; transform: rotate(20deg); transition: transform .4s ease; }
.portada--grande .portada__forma { width: 180px; height: 180px; border-radius: 48px; left: -50px; top: -50px; }
.portada__chip { position: absolute; top: 14px; right: 14px; background: var(--fondo); color: var(--tinta); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portada__titulo { position: relative; font-family: var(--titulos); font-weight: 800; font-size: 24px; line-height: 1.02; letter-spacing: -.02em; overflow-wrap: anywhere; }
.portada--grande .portada__titulo { font-size: clamp(26px, 3.4vw, 38px); }
.portada__autor { position: relative; font-size: 13px; font-weight: 600; opacity: .85; }
.portada--c1 { background: var(--ciruela); color: var(--fondo); } .portada--c1 .portada__forma { background: var(--menta); }
.portada--c2 { background: var(--lavanda); color: var(--tinta); } .portada--c2 .portada__forma { background: var(--ciruela); }
.portada--c3 { background: var(--menta-suave); color: var(--tinta); } .portada--c3 .portada__forma { background: var(--menta); }
.portada--c4 { background: var(--menta); color: var(--tinta); } .portada--c4 .portada__forma { background: var(--lavanda); }
.portada--c5 { background: var(--tinta); color: var(--fondo); } .portada--c5 .portada__forma { background: var(--ciruela); }
.portada--c6 { background: var(--rosa); color: var(--tinta); } .portada--c6 .portada__forma { background: var(--lavanda); }

/* ---------------------------------------------------------------- Tarjeta de libro */
.tarjeta { display: flex; flex-direction: column; gap: 10px; background: var(--blanco); border-radius: var(--radio); padding: 14px; box-shadow: 0 2px 8px rgba(29, 22, 34, .06); transition: transform .25s ease, box-shadow .25s ease; }
.tarjeta:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.tarjeta:hover .portada__forma { transform: rotate(40deg) scale(1.1); }
.tarjeta__portada { display: block; text-decoration: none; }
.tarjeta__cuerpo { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; flex: 1; }
.tarjeta__titulo { font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.tarjeta__titulo a { color: var(--tinta); text-decoration: none; }
.tarjeta__titulo a:hover { color: var(--ciruela); }
.tarjeta__autor { font-size: 13px; font-weight: 600; color: var(--menta-oscura); }
.tarjeta__resumen { font-size: 14px; color: var(--suave); }
.tarjeta__acciones { display: flex; gap: 8px; padding: 4px; }

/* ---------------------------------------------------------------- Inicio: héroe */
.heroe-envoltura { padding-top: 12px; }
.heroe { background: var(--ciruela); color: var(--fondo); border-radius: 36px; padding: 56px 56px 0; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; overflow: hidden; }
.heroe__texto { flex: 1 1 480px; min-width: 0; padding-bottom: 56px; }
.heroe__texto .chip { margin-bottom: 22px; }
.heroe h1 { font-weight: 800; font-size: clamp(44px, 6.2vw, 76px); line-height: .98; letter-spacing: -.04em; margin-bottom: 18px; }
.heroe h1 em { font-style: normal; color: var(--menta); }
.heroe__texto > p { font-size: 19px; color: var(--sobre-ciruela); max-width: 520px; margin-bottom: 30px; }
.buscador { display: flex; background: var(--fondo); border-radius: 18px; padding: 6px; max-width: 560px; gap: 6px; }
.buscador input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 14px; font-size: 17px; color: var(--tinta); }
.buscador input:focus { outline: none; }
.buscador:focus-within { box-shadow: 0 0 0 3px var(--menta); }
.buscador .boton { min-height: 48px; border-radius: 14px; }
.buscador--claro { background: var(--blanco); border: 2px solid var(--borde); }
.buscador--claro .boton { padding: 0 14px; }

.estante { flex: 1 1 400px; min-width: 0; height: 360px; display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.lomo { display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform-origin: bottom; border-radius: 8px 8px 0 0; padding: 14px 0; font-family: var(--titulos); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; transition: transform .3s ease; animation: subir .7s cubic-bezier(.2, .8, .2, 1) both; }
.lomo:hover { transform: translateY(-14px); }
@keyframes subir { from { translate: 0 100%; } to { translate: 0 0; } }
.lomo--1 { width: 46px; height: 300px; animation-delay: .05s; } .lomo--2 { width: 40px; height: 250px; animation-delay: .1s; }
.lomo--3 { width: 54px; height: 330px; animation-delay: .15s; } .lomo--4 { width: 42px; height: 270px; animation-delay: .2s; }
.lomo--5 { width: 48px; height: 310px; animation-delay: .25s; } .lomo--6 { width: 38px; height: 240px; animation-delay: .3s; }
.lomo--7 { width: 52px; height: 290px; animation-delay: .35s; } .lomo--8 { width: 44px; height: 320px; animation-delay: .4s; }
.lomo--9 { width: 40px; height: 260px; animation-delay: .45s; } .lomo--10 { width: 50px; height: 300px; animation-delay: .5s; }
.lomo--c1 { background: var(--menta); color: var(--tinta); } .lomo--c2 { background: var(--fondo); color: var(--ciruela); }
.lomo--c3 { background: var(--lavanda); color: var(--ciruela); } .lomo--c4 { background: var(--menta-suave); color: var(--tinta); }
.lomo--c5 { background: var(--tinta); color: var(--fondo); } .lomo--c6 { background: var(--rosa); color: var(--tinta); }
@media (max-width: 760px) {
  .heroe { padding: 36px 22px 0; border-radius: 28px; gap: 8px; }
  .heroe__texto { padding-bottom: 28px; }
  .heroe__texto > p { font-size: 17px; }
  .estante { height: 200px; gap: 5px; }
  .lomo { font-size: 12px; padding: 10px 0; }
  .lomo--1, .lomo--3, .lomo--5, .lomo--7, .lomo--9 { height: 190px; } .lomo--2, .lomo--4, .lomo--6, .lomo--8, .lomo--10 { height: 160px; }
  .lomo--9, .lomo--10 { display: none; }
}

/* ---------------------------------------------------------------- Secciones */
.seccion { padding-top: 56px; }
.seccion--compacta { padding-top: 24px; }
.seccion__cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 16px; margin-bottom: 22px; }
.seccion__cabecera h2 { font-weight: 800; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.035em; }

.colecciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.coleccion { min-height: 170px; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; text-decoration: none; color: var(--tinta); transition: transform .25s ease, box-shadow .25s ease; }
.coleccion:hover { transform: translateY(-6px); box-shadow: var(--sombra); color: var(--tinta); }
.coleccion .icono { width: 32px; height: 32px; }
.coleccion__titulo { display: block; font-family: var(--titulos); font-weight: 700; font-size: 25px; line-height: 1.1; letter-spacing: -.02em; }
.coleccion__sub { display: block; font-size: 14px; color: var(--suave); margin-top: 4px; }
.coleccion--lavanda { background: var(--lavanda); }
.coleccion--menta { background: var(--menta-suave); }
.coleccion--acento { background: var(--menta); }
.coleccion--acento .coleccion__sub { color: var(--tinta); }
.coleccion--rosa { background: var(--rosa); }
.coleccion--oscuro, .coleccion--oscuro:hover { background: var(--tinta); color: var(--fondo); }
.coleccion--ciruela, .coleccion--ciruela:hover { background: var(--ciruela); color: var(--fondo); }
.coleccion--oscuro .coleccion__sub, .coleccion--ciruela .coleccion__sub { color: var(--pie-texto); }

/* Píldoras de nivel */
.pildoras { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pildora { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 18px; border-radius: 16px; border: 2px solid var(--borde); background: var(--blanco); color: var(--tinta); font-weight: 700; font-size: 15px; line-height: 1.15; text-align: left; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.pildora small { font-size: 12px; font-weight: 500; opacity: .8; }
.pildora:hover { border-color: var(--ciruela); transform: translateY(-2px); }
.pildora[aria-pressed="true"] { background: var(--ciruela); border-color: var(--ciruela); color: var(--fondo); }
.pildoras--columna { flex-direction: column; gap: 6px; margin-bottom: 0; }
.pildoras--columna .pildora { flex-direction: row; justify-content: space-between; align-items: center; min-height: 46px; }

/* Carril deslizable */
.carril { display: flex; gap: 20px; overflow-x: auto; padding: 4px 4px 24px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--lavanda) transparent; }
.carril > .tarjeta { flex: 0 0 250px; scroll-snap-align: start; }
.carril:focus-visible { outline-offset: 0; }
.vacio { color: var(--suave); padding: 12px 0; }
.vacio--caja { background: var(--blanco); border: 2px dashed var(--borde); border-radius: var(--radio); padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Lectura del mes y recomendación */
.duo { display: flex; flex-wrap: wrap; gap: 20px; }
.mes { flex: 1 1 560px; min-width: 0; background: var(--menta-suave); border-radius: 32px; padding: 44px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.mes__portada { flex: 0 0 180px; display: block; transform: rotate(-4deg); transition: transform .3s ease; }
.mes__portada:hover { transform: rotate(0) scale(1.03); }
.mes__texto { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mes__texto h2 { font-weight: 800; font-size: 40px; }
.mes__autor { font-weight: 700; color: var(--menta-oscura); }
.antetitulo { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--menta-oscura); }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cita { flex: 1 1 360px; min-width: 0; margin: 0; background: var(--ciruela); color: var(--fondo); border-radius: 32px; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.cita blockquote { margin: 0; font-family: var(--titulos); font-weight: 600; font-size: 26px; line-height: 1.25; }
.cita figcaption, .cita p { color: var(--sobre-ciruela); }
.cita h2 { font-weight: 800; font-size: 38px; }
.cita .boton { align-self: flex-start; }
@media (max-width: 760px) {
  .mes, .cita { padding: 28px; border-radius: 26px; }
  .mes__portada { flex-basis: 140px; }
  .mes__texto h2 { font-size: 32px; }
}

/* ---------------------------------------------------------------- Páginas internas */
.cabecera-pagina { padding-top: 28px; padding-bottom: 28px; }
.cabecera-pagina h1 { font-weight: 800; font-size: clamp(40px, 5.5vw, 64px); letter-spacing: -.04em; margin: 10px 0 10px; }
.cabecera-pagina > p { font-size: 18px; color: var(--suave); max-width: 640px; }
.cabecera-pagina--ficha { padding-bottom: 8px; }
.migas { font-size: 14px; color: var(--suave); }
.migas a { color: var(--suave); }

/* Catálogo */
.catalogo { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.filtros { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.filtros__grupo h2 { font-family: var(--cuerpo); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); margin-bottom: 12px; }
.chip-filtro { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--borde); background: var(--blanco); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s ease; }
.chip-filtro small { font-size: 12px; color: var(--suave); }
.chip-filtro:hover { border-color: var(--menta-oscura); }
.chip-filtro[aria-pressed="true"] { background: var(--menta); border-color: var(--menta); color: var(--tinta); }
.chip-filtro[aria-pressed="true"] small { color: var(--tinta); }
.resultados { flex: 999 1 560px; min-width: 0; }
.resultados__barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.resultados__resumen { font-weight: 700; color: var(--suave); }
.orden { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--suave); }
.orden select { min-height: 44px; padding: 0 12px; border: 2px solid var(--borde); border-radius: 12px; background: var(--blanco); color: var(--tinta); }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.rejilla--cuatro { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 760px) {
  .filtros { position: static; max-width: none; gap: 18px; }
  .pildoras--columna { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .pildoras--columna .pildora { flex-direction: column; align-items: flex-start; flex: none; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tarjeta { padding: 10px; border-radius: 18px; }
  .tarjeta__acciones { flex-direction: column; padding: 0; }
  .portada { padding: 12px; }
  .portada__titulo { font-size: 19px; }
  .tarjeta__resumen { display: none; }
}

/* Ficha */
.ficha { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 16px; }
.ficha__portada { flex: 0 1 320px; min-width: 220px; }
.ficha__datos { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ficha__datos h1 { font-weight: 800; font-size: clamp(38px, 5vw, 60px); letter-spacing: -.04em; }
.ficha__autor { font-size: 20px; font-weight: 600; color: var(--menta-oscura); }
.ficha__resumen { font-size: 19px; color: var(--texto); max-width: 640px; }
.prosa { color: var(--texto); max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.aviso { background: var(--rosa); padding: 14px 18px; border-radius: 14px; font-weight: 600; }
@media (max-width: 760px) { .ficha { gap: 24px; } .ficha__portada { flex-basis: 220px; margin: 0 auto; } }

/* 404 */
.error { padding-top: 64px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.error__codigo { font-family: var(--titulos); font-weight: 800; font-size: 120px; line-height: 1; color: var(--lavanda); }
.error h1 { font-weight: 800; font-size: clamp(34px, 5vw, 54px); max-width: 760px; }
.error > p { font-size: 18px; color: var(--suave); }
.error .buscador { width: 100%; }

/* ---------------------------------------------------------------- Lector de PDF */
.pagina-lector .pie { margin-top: 0; }
.lector { display: flex; flex-direction: column; min-height: calc(100vh - 88px); background: #ece6f0; }
.lector:fullscreen { min-height: 100vh; }
.lector__barra { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 24px; background: var(--blanco); border-bottom: 1px solid var(--borde); }
.lector__volver { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.lector__titulo { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--suave); }
.lector__titulo strong { color: var(--tinta); }
.lector__controles { display: flex; align-items: center; gap: 6px; }
.lector__pagina { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--suave); }
.lector__pagina input { width: 64px; min-height: 44px; text-align: center; border: 2px solid var(--borde); border-radius: 10px; background: var(--fondo); color: var(--tinta); }
.lector__separador { width: 1px; height: 28px; background: var(--borde); margin: 0 4px; }
.boton-icono { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--borde); background: var(--blanco); color: var(--tinta); cursor: pointer; text-decoration: none; }
.boton-icono:hover:not(:disabled) { border-color: var(--ciruela); color: var(--ciruela); }
.boton-icono:disabled { opacity: .4; cursor: default; }
.lector__area { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 28px 16px 48px; overflow: auto; touch-action: pan-y pinch-zoom; }
.lector__lienzo { background: var(--blanco); box-shadow: 0 8px 28px rgba(29, 22, 34, .18); border-radius: 4px; max-width: none; }
.lector__estado { margin: 60px auto; max-width: 480px; text-align: center; color: var(--suave); font-size: 17px; }
.lector__estado a { font-weight: 700; }
@media (max-width: 760px) {
  .oculto-movil { display: none !important; }
  .lector__barra { padding: 8px 12px; }
  .lector__titulo { order: -1; flex-basis: calc(100% - 60px); }
  .lector__controles { width: 100%; justify-content: space-between; }
  .lector__area { padding: 12px 0 32px; }
}
.pagina-lector .cabecera { position: static; }

/* ---------------------------------------------------------------- Ajustes */
.tarjeta__portada, .mes__portada { text-decoration: none; }
.portada__titulo { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.mes .portada__titulo { font-size: 28px; }
.catalogo > * { min-width: 0; }
@media (max-width: 760px) {
  .filtros { flex-basis: 100%; }
  #niveles .pildoras { flex-wrap: nowrap; overflow-x: auto; margin-left: -24px; margin-right: -24px; padding: 2px 24px 6px; scrollbar-width: none; }
  #niveles .pildora { flex: none; }
  .mes .portada__titulo { font-size: 22px; }
  .lector__volver { order: -2; }
}
