/* ═══════════════════════════════════════════════════════════
   RECETAS · el aspecto del cuaderno

   La idea (Daniel, 25/11/2026): «que parezca escrita a mano y con
   dibujos hechos a mano… que navegar te recuerde a un libro de
   recetas». Así que todo es papel:

   · Una libreta de espiral, de hojas rayadas con margen rojo. El texto
     se apoya en las rayas: cada cosa ocupa renglones enteros (--r).
   · La receta original va en boli azul. Lo que cambia cada uno (sus
     mejoras, sus pósits) va en SU boli, con otra letra, como cuando
     alguien apunta algo en el margen.
   · Las tapas son de tela de cuadros (vichy) con una etiqueta.
   · Pasar de receta es pasar la hoja.

   ⚠ CSP estricta: nada de style="…" en el HTML. Lo que depende de un
   dato va en data-css="--var:valor" (ui.js → estilar()).
   ═══════════════════════════════════════════════════════════ */

@font-face { font-family: 'Mano texto'; src: url(letras/texto.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mano texto'; src: url(letras/texto-negrita.woff) format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Mano titulo'; src: url(letras/titulo.woff) format('woff'); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --papel: #fbf6ea;
  --papel-hondo: #f3ead6;
  --raya: rgba(70, 116, 184, .24);
  --margen: rgba(213, 84, 84, .5);
  --tinta: #22345e;
  --tinta-suave: #4b5a7e;
  --lapiz: #6d655a;
  --lapiz-claro: #a2998a;
  --rojo: #c0392b;
  --tomate: #d9603f;
  --fresa: #c94f74;
  --boli: var(--rojo);
  --rotulador: rgba(255, 222, 66, .58);
  --rotulador-tomate: rgba(240, 120, 88, .32);
  --rotulador-fresa: rgba(232, 110, 150, .3);
  --pos-amarillo: #fde98c;
  --pos-rosa: #f9cad5;
  --pos-azul: #cfe3f5;
  --pos-verde: #d4ebc6;
  --pos-naranja: #fbd2a2;
  --mesa: #cdb08a;
  --sombra: 0 1px 1px rgba(60, 40, 20, .12), 0 6px 18px rgba(60, 40, 20, .18);
  --r: 32px;
  --margen-izq: 54px;
  --margen-der: 30px;
  --letra-texto: 'Mano texto', 'Kalam', 'Comic Sans MS', cursive;
  --letra-titulo: 'Mano titulo', 'Caveat', 'Mano texto', cursive;
  --a-mano: 255px 14px 225px 16px / 16px 225px 14px 255px;
  --a-mano-2: 20px 230px 18px 250px / 240px 16px 230px 20px;
  --seguro-arriba: env(safe-area-inset-top, 0px);
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--letra-texto);
  font-size: 20px;
  line-height: var(--r);
  color: var(--tinta);
  background: var(--mesa) url(img/papel.webp);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px dashed var(--tomate); outline-offset: 3px; border-radius: 6px; }
.g { width: 1.1em; height: 1.1em; vertical-align: -.2em; flex: none; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── La libreta ─────────────────────────────────────────── */
#app { position: fixed; inset: 0; display: flex; justify-content: center; }
.libro {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  perspective: 2200px;
  perspective-origin: 0 50%;
}
@media (min-width: 560px) {
  .libro { margin: 16px 0; height: calc(100% - 32px); }
}

/* La espiral: no se mueve al pasar las hojas. */
.espiral {
  position: absolute;
  z-index: 30;
  left: -4px;
  top: calc(var(--seguro-arriba) + 18px);
  bottom: 18px;
  width: 30px;
  background: url(img/anilla.svg) repeat-y 0 0 / 30px 32px;
  pointer-events: none;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .15));
}

.pagina {
  position: absolute;
  inset: 0 12px 0 0;
  display: flex;
  flex-direction: column;
  background: var(--papel) url(img/papel.webp);
  border-radius: 3px 10px 10px 3px;
  box-shadow:
    1px 0 0 #e6dcc6, 2px 0 0 #fbf6ea, 3px 0 0 #ddd2ba, 4px 0 0 #f7f0e0, 5px 0 0 #d6caaf,
    0 10px 28px rgba(55, 35, 15, .32);
  transform-origin: 0 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  will-change: transform;
}
/* Los agujeros de la espiral */
.pagina::before {
  content: '';
  position: absolute;
  z-index: 3;
  left: 8px;
  top: calc(var(--seguro-arriba) + 18px);
  bottom: 18px;
  width: 12px;
  background: radial-gradient(circle at 6px 16px, #b9a98a 0 4.2px, #e4d8bf 4.6px 5.4px, transparent 5.8px) repeat-y 0 0 / 12px 32px;
  pointer-events: none;
}
/* La sombra que cae sobre la hoja mientras se pasa */
.pagina::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(to right, rgba(40, 25, 10, .38), rgba(40, 25, 10, .08) 55%, rgba(40, 25, 10, 0));
  opacity: 0;
  transition: opacity .55s ease;
}
.pagina.en-sombra::after { opacity: 1; }
.pagina.girando { box-shadow: 0 0 0 1px #e6dcc6, 12px 6px 30px rgba(55, 35, 15, .38); }

/* Las hojas de color: los separadores de Platos y Postres */
.pagina.separador.plato { background-color: #f6d7c8; }
.pagina.separador.postre { background-color: #f7d6df; }
.pagina.suelta { inset: 0; border-radius: 10px 10px 0 0; }

/* ── Las pestañas del canto ─────────────────────────────── */
.pestanas {
  position: absolute;
  z-index: 25;
  right: 0;
  top: calc(var(--seguro-arriba) + 96px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pestana {
  position: relative;
  writing-mode: vertical-rl;
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .02em;
  width: 26px;
  padding: 14px 0 14px 6px;
  color: #3b2a1e;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 2px 4px rgba(60, 40, 20, .25);
  transform: translateX(4px);
  transition: transform .25s ease;
}
.pestana.indice { background: #f3e3b3; }
.pestana.plato { background: #ee9c80; }
.pestana.postre { background: #ef9fb9; }
.pestana.activa { transform: translateX(0); }
.pestana::after { content: ''; position: absolute; inset: -6px -4px -6px -10px; }

/* ── Cabecera de cada hoja ──────────────────────────────── */
.cabecera {
  flex: none;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: calc(var(--seguro-arriba) + 6px) calc(var(--margen-der) - 6px) 4px calc(var(--margen-izq) - 10px);
}
.cabecera .hueco { flex: 1; }
.cabecera .num-pagina { font-family: var(--letra-titulo); font-size: 19px; color: var(--lapiz); margin-right: 4px; }
.volver {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 8px 0 2px;
  font-family: var(--letra-titulo);
  font-size: 22px;
  font-weight: 600;
  color: var(--tinta-suave);
}
.volver svg { width: 22px; height: 22px; }

.boton-icono {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--tinta);
  position: relative;
}
.boton-icono svg { width: 26px; height: 26px; }
.boton-icono:active { background: rgba(34, 52, 94, .08); }
.boton-icono.lleno svg path { fill: var(--rojo); stroke: var(--rojo); }
.boton-icono .punto {
  position: absolute; top: 7px; right: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--rojo); box-shadow: 0 0 0 2px var(--papel);
}

.yo-boton {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding-right: 6px;
  font-family: var(--letra-titulo); font-size: 21px; font-weight: 600; color: var(--tinta-suave);
}
.inicial {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border: 2.2px solid var(--boli);
  border-radius: var(--a-mano);
  color: var(--boli);
  font-family: var(--letra-titulo); font-weight: 700; font-size: 21px; line-height: 1;
}

/* ── Lo que se escribe en la hoja ───────────────────────── */
.contenido {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 var(--margen-der) calc(var(--seguro-abajo) + 120px) var(--margen-izq);
}
.rayado {
  background-image:
    linear-gradient(to right, transparent 41px, var(--margen) 41px, var(--margen) 42.6px, transparent 42.6px, transparent 46px, var(--margen) 46px, var(--margen) 47px, transparent 47px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 22.6px, var(--raya) 22.6px, var(--raya) 23.8px, transparent 23.8px, transparent var(--r));
  background-attachment: local, local;
}

.contenido > *, .bloque > * { margin-top: 0; margin-bottom: 0; }
p { margin: 0; }
.renglon { height: var(--r); }
.dos-renglones { height: calc(var(--r) * 2); }

.titulo-pagina {
  position: relative;
  top: 6px;
  margin: 0;
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 46px;
  line-height: calc(var(--r) * 2);
  color: var(--tinta);
  letter-spacing: -.005em;
  overflow-wrap: anywhere;
}
.titulo-pagina.largo { font-size: 38px; }
.subrayado {
  display: inline;
  background: url(img/subrayado.svg) no-repeat 0 92% / 100% 12px;
  padding-bottom: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.apartado {
  position: relative;
  top: -2px;
  margin: var(--r) 0 0;
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 30px;
  line-height: var(--r);
  color: var(--tinta);
}
.rotulador {
  background: linear-gradient(100deg, transparent 1%, var(--rotulador) 3%, var(--rotulador) 97%, transparent 99%) no-repeat 0 78% / 100% 52%;
  padding: 0 6px;
  margin-left: -6px;
}
.rotulador.tomate { --rotulador: var(--rotulador-tomate); }
.rotulador.fresa { --rotulador: var(--rotulador-fresa); }

.lapiz { color: var(--lapiz); }
.pequeno { font-size: 17px; }
.boli { color: var(--boli); font-family: var(--letra-titulo); font-size: 1.14em; font-weight: 600; }
.a-mano-otra { font-family: var(--letra-titulo); font-size: 1.15em; }

/* Los sellos de tinta («EJEMPLO», «¡NUEVO!») */
.sello {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--letra-texto);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .14em;
  padding: 4px 6px 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(-4deg);
  opacity: .85;
}
.sello.ejemplo { color: #7a6f60; }
.sello.nuevo { color: var(--rojo); transform: rotate(-6deg); }

/* ── Botones dibujados ─────────────────────────────────── */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 18px;
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.1;
  color: var(--tinta);
  border: 2.4px solid var(--tinta);
  border-radius: var(--a-mano);
  background: rgba(255, 255, 255, .35);
  transition: transform .12s ease, background .2s;
}
.boton svg { width: 22px; height: 22px; flex: none; }
.boton:active { transform: translateY(1px) rotate(-.6deg); }
.boton.principal { background: linear-gradient(100deg, transparent 3%, var(--rotulador) 6%, var(--rotulador) 94%, transparent 97%) no-repeat 0 60% / 100% 78%, rgba(255, 255, 255, .4); }
.boton.rojo { color: var(--rojo); border-color: var(--rojo); }
.boton.suave { border-style: dashed; border-width: 2px; color: var(--tinta-suave); }
.boton.ancho { width: 100%; }
.boton[disabled] { opacity: .45; pointer-events: none; }
.boton.cargando { opacity: .7; pointer-events: none; }
.boton.cargando::after { content: '…'; }

.enlace { font-family: var(--letra-titulo); font-weight: 700; font-size: 21px; color: var(--tinta-suave); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; min-height: 32px; display: inline-flex; align-items: center; }
.enlace.rojo { color: var(--rojo); }

.fila-botones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0 12px; }

/* El botón redondo de apuntar receta */
.flotante {
  position: absolute;
  z-index: 20;
  right: calc(var(--margen-der) - 6px);
  bottom: calc(var(--seguro-abajo) + 76px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 48% 52% 50% 50% / 52% 47% 53% 48%;
  background: #f6c84c;
  color: #3b2a1e;
  border: 2.4px solid #3b2a1e;
  box-shadow: 2px 4px 0 rgba(59, 42, 30, .25);
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  transform: rotate(-4deg);
}
.flotante svg { width: 30px; height: 30px; margin-bottom: 1px; }
.flotante:active { transform: rotate(-4deg) translateY(2px); box-shadow: 1px 2px 0 rgba(59, 42, 30, .25); }

/* ── La esquina doblada para pasar la hoja ─────────────── */
.esquinas {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--seguro-abajo) + 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 0 calc(var(--seguro-abajo) + 8px) 34px;
  pointer-events: none;
  background: linear-gradient(to top, var(--papel) 40%, rgba(251, 246, 234, 0));
}
.pagina.separador .esquinas { background: none; }
.esquinas a { pointer-events: auto; }
.esquina-atras {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; max-width: 46%;
  font-family: var(--letra-titulo); font-size: 19px; font-weight: 600; color: var(--lapiz);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.esquina-atras svg { width: 20px; height: 20px; flex: none; }
.esquina-adelante {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  max-width: 62%;
  min-height: 56px;
  padding: 0 62px 2px 10px;
  font-family: var(--letra-titulo); font-size: 19px; font-weight: 600; color: var(--lapiz);
  text-align: right;
}
.esquina-adelante .que { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esquina-adelante::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: calc(-1 * var(--seguro-abajo) - 8px);
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, transparent 49%, #d9ccb0 50%, #efe5cf 66%, #f8f2e4 100%);
  box-shadow: -3px -3px 6px rgba(70, 45, 20, .18);
  border-top-left-radius: 6px;
  transition: width .2s, height .2s;
}
.esquina-adelante:active::after { width: 72px; height: 72px; }

/* ── La tapa (pantalla de entrar) ──────────────────────── */
.tapa {
  position: absolute;
  inset: 0 12px 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--seguro-arriba) + 24px) 26px calc(var(--seguro-abajo) + 24px) 40px;
  border-radius: 4px 14px 14px 4px;
  background-color: #c3392c;
  background-image:
    linear-gradient(rgba(255, 255, 255, .34) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255, 255, 255, .34) 50%, transparent 50%),
    url(img/papel.webp);
  background-size: 34px 34px, 34px 34px, 512px 512px;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .12), inset 12px 0 18px -8px rgba(0, 0, 0, .35), 0 12px 32px rgba(55, 35, 15, .4);
  transform-origin: 0 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow-y: auto;
}
.tapa.abriendo { transition: transform .95s cubic-bezier(.45, .05, .3, 1), opacity .95s; transform: rotateY(-108deg); }
.etiqueta {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 24px 20px;
  background: var(--papel) url(img/papel.webp);
  border-radius: 16px;
  box-shadow: 0 0 0 3px var(--papel), 0 0 0 5px #3b2a1e, 0 0 0 9px var(--papel), 0 8px 24px rgba(0, 0, 0, .35);
  text-align: center;
  transform: rotate(-1deg);
}
.etiqueta h1 {
  margin: 0;
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 50px;
  line-height: 1;
  color: #3b2a1e;
}
.etiqueta .de { margin-top: 6px; font-size: 18px; line-height: 1.35; color: var(--lapiz); }
.etiqueta img.dibujo-tapa { width: 210px; height: auto; margin: 4px auto -6px; display: block; }
.etiqueta form { text-align: left; margin-top: 12px; }
.etiqueta .boton { width: 100%; margin-top: 14px; }
.etiqueta .error { margin-top: 10px; }
.tapa .pie { margin-top: 26px; color: rgba(255, 255, 255, .92); font-size: 15px; line-height: 1.4; text-align: center; max-width: 320px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.tapa .pie svg { width: 16px; height: 16px; vertical-align: -2px; }

/* ── Formularios: se escribe en los renglones ──────────── */
.campo { display: block; margin-top: 6px; }
.campo > span, .etiqueta-campo {
  display: block;
  font-family: var(--letra-titulo);
  font-size: 19px;
  font-weight: 600;
  line-height: 24px;
  color: var(--lapiz);
}
.linea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 6px 2px 2px;
  border: 0;
  border-bottom: 2px solid rgba(34, 52, 94, .45);
  border-radius: 0;
  background: transparent;
  font-family: var(--letra-texto);
  font-size: 21px;
  line-height: 32px;
  color: var(--tinta);
  outline: none;
  transition: border-color .2s;
}
.linea:focus { border-bottom-color: var(--tomate); }
.linea::placeholder { color: var(--lapiz-claro); opacity: 1; }
textarea.linea {
  resize: none;
  min-height: calc(var(--r) * 3 + 8px);
  padding: 0 2px;
  border-bottom: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 22.6px, var(--raya) 22.6px, var(--raya) 23.8px, transparent 23.8px, transparent var(--r));
  background-attachment: local;
  overflow: hidden;
}
textarea.linea:focus { background-color: rgba(255, 222, 66, .08); }
.campo .ayuda { display: block; font-size: 16px; line-height: 22px; color: var(--lapiz-claro); margin-top: 4px; }
.error { color: var(--rojo); font-family: var(--letra-titulo); font-size: 20px; font-weight: 600; line-height: 1.25; }
.error:empty { display: none; }
.campo.mal .linea { border-bottom-color: var(--rojo); }
.ojo-clave { position: relative; }
.ojo-clave .linea { padding-right: 46px; }
.ojo-clave button { position: absolute; right: -6px; bottom: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--lapiz); }
.ojo-clave button svg { width: 22px; height: 22px; }

/* Píldoras dibujadas para elegir */
.elegir { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 2px 14px;
  font-family: var(--letra-titulo);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--tinta-suave);
  border: 1.8px solid rgba(34, 52, 94, .55);
  border-radius: var(--a-mano-2);
  background: rgba(255, 255, 255, .35);
  white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; }
.chip[aria-pressed="true"], .chip.activo {
  color: var(--tinta);
  border-color: var(--tinta);
  background: linear-gradient(100deg, transparent 3%, var(--rotulador) 6%, var(--rotulador) 94%, transparent 97%) no-repeat 0 60% / 100% 80%;
}
.chip.tomate[aria-pressed="true"] { --rotulador: rgba(240, 120, 88, .45); }
.chip.fresa[aria-pressed="true"] { --rotulador: rgba(232, 110, 150, .42); }
.carril { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; margin: 0 calc(-1 * var(--margen-der)) 0 0; scrollbar-width: none; }
.carril::-webkit-scrollbar { display: none; }

.contador { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.contador button {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border: 1.8px solid var(--tinta-suave);
  border-radius: 50%;
  color: var(--tinta-suave);
  position: relative;
}
.contador button::after { content: ''; position: absolute; inset: -8px; }
.contador button svg { width: 16px; height: 16px; }
.contador output { min-width: 34px; text-align: center; font-family: var(--letra-titulo); font-weight: 700; font-size: 26px; color: var(--tinta); }

/* ── El índice ─────────────────────────────────────────── */
.resumen-libro { color: var(--lapiz); }
.buscador { display: flex; align-items: flex-end; gap: 6px; height: calc(var(--r) * 2); }
.buscador svg { width: 24px; height: 24px; flex: none; margin-bottom: 8px; color: var(--tinta-suave); }
.buscador .linea { flex: 1; }
.parte {
  position: relative;
  top: -3px;
  margin: var(--r) 0 0;
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 36px;
  line-height: calc(var(--r) * 2);
}
.parte a { display: inline-flex; align-items: baseline; gap: 10px; }
.parte .cuantas { font-family: var(--letra-texto); font-size: 17px; font-weight: 400; color: var(--lapiz); }
.capitulo {
  position: relative;
  top: -2px;
  margin: 0;
  font-family: var(--letra-texto);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: var(--r);
  color: var(--lapiz);
}
.entradas { list-style: none; padding: 0; margin: 0; }
.entrada { display: flex; align-items: baseline; gap: 6px; min-height: var(--r); line-height: var(--r); }
.entrada .nombre { flex: 0 1 auto; }
.entrada .nombre .quien { color: var(--lapiz); font-size: 16px; white-space: nowrap; }
.entrada .relleno { flex: 1 1 18px; min-width: 18px; border-bottom: 2.5px dotted rgba(34, 52, 94, .35); transform: translateY(-7px); }
.entrada .num { flex: none; font-family: var(--letra-titulo); font-size: 21px; font-weight: 700; min-width: 22px; text-align: right; }
.entrada { position: relative; }
.entrada .nombre .sello { font-size: 9.5px; padding: 2px 4px 1px; margin-left: 4px; vertical-align: 2px; }
/* Las marcas van en el margen, a la izquierda de la raya roja, como notas a mano */
.al-margen { position: absolute; left: -46px; top: 0; width: 40px; height: var(--r); display: flex; align-items: center; justify-content: flex-end; gap: 2px; padding-right: 4px; }
.al-margen svg { width: 15px; height: 15px; }
.al-margen .corazon path { fill: var(--rojo); stroke: var(--rojo); }
.al-margen .mota { width: 8px; height: 8px; }
.al-margen .estrella-nueva { width: 17px; height: 17px; color: var(--rojo); }
.al-margen .estrella-nueva path { fill: rgba(192, 57, 43, .25); }
.leyenda-margen { font-size: 15px; line-height: 22px; color: var(--lapiz); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.leyenda-margen .g { width: 15px; height: 15px; }
.leyenda-margen .estrella-nueva { color: var(--rojo); }
.leyenda-margen .estrella-nueva path { fill: rgba(192, 57, 43, .25); }
.leyenda-margen .corazon path { fill: var(--rojo); stroke: var(--rojo); }
.mota { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--rojo)); vertical-align: 1px; }
.sin-resultados { color: var(--lapiz); }

/* Pósit de novedades */
.posit {
  --pos: var(--pos-amarillo);
  position: relative;
  padding: 18px 16px 14px;
  background: var(--pos) url(img/papel.webp);
  box-shadow: 0 1px 1px rgba(60, 40, 20, .1), 2px 8px 14px -6px rgba(60, 40, 20, .35);
  border-radius: 2px 2px 16px 2px / 2px 2px 6px 2px;
  font-family: var(--letra-titulo);
  font-size: 21px;
  line-height: 1.3;
  color: var(--tinta);
}
.posit.rosa { --pos: var(--pos-rosa); }
.posit.azul { --pos: var(--pos-azul); }
.posit.verde { --pos: var(--pos-verde); }
.posit.naranja { --pos: var(--pos-naranja); }
.posit::before {
  /* el celo */
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  transform: rotate(-3deg);
}
.novedades { margin: 14px 0 var(--r); transform: rotate(-1.2deg); }
.novedades h3 { margin: 0 0 4px; font-size: 23px; font-weight: 700; }
.novedades ul { margin: 0; padding: 0; list-style: none; }
.novedades li { padding: 2px 0; }
.novedades li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.novedades .cerrar-posit { position: absolute; top: 4px; right: 4px; }

/* ── El separador de cada parte ────────────────────────── */
.separador .contenido { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 10px; }
.separador .gran-titulo { font-family: var(--letra-titulo); font-weight: 700; font-size: 74px; line-height: 1; margin: 24px 0 0; }
.separador .dibujo-separador { width: min(320px, 100%); height: auto; margin: 10px 0; }
.separador .capitulos { list-style: none; padding: 0; margin: 6px 0 0; font-size: 21px; line-height: 38px; }
.separador .capitulos a { border-bottom: 2px dotted rgba(34, 52, 94, .35); }
.separador .capitulos .n { color: var(--lapiz); font-size: 17px; }
.separador .lema { margin-top: 18px; color: var(--lapiz); font-size: 18px; line-height: 1.4; max-width: 280px; }

/* ── La receta ─────────────────────────────────────────── */
.versiones {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 6px 0 2px;
  margin: 0 calc(-1 * var(--margen-der)) 0 -4px;
  height: calc(var(--r) * 2);
  align-items: flex-end;
  scrollbar-width: none;
}
.versiones::-webkit-scrollbar { display: none; }
.version-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 14px;
  font-family: var(--letra-titulo);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: var(--tinta-suave);
  background: var(--papel-hondo);
  border: 1.6px solid rgba(34, 52, 94, .25);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform: translateY(6px);
  transition: transform .2s;
}
.version-tab .mota { width: 10px; height: 10px; }
.version-tab[aria-selected="true"] { background: #fffdf6; color: var(--tinta); transform: translateY(0); box-shadow: 0 -2px 6px rgba(60, 40, 20, .12); }
.version-tab.mejora[aria-selected="true"] { color: var(--c); }
.version-tab.nueva-mejora { border-style: dashed; background: transparent; }
.version-tab svg { width: 16px; height: 16px; }

.quien-es { color: var(--lapiz); }
.quien-es b { color: var(--tinta); font-weight: 400; }

.lamina {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--r) * 7);
  margin: 0;
}
.lamina img {
  max-height: calc(var(--r) * 7 - 8px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: rotate(-1.5deg);
}
.lamina.subida img { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .04)); }

.datos { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; min-height: var(--r); }
.dato { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: var(--r); }
.dato svg { width: 22px; height: 22px; color: var(--tinta-suave); flex: none; }
.dato .viejo { margin-right: 2px; }
.cucharas { display: inline-flex; gap: 1px; }
.cucharas svg { width: 21px; height: 21px; }
.cucharas .apagada { opacity: .25; }

.nota-mejora {
  position: relative;
  margin: calc(var(--r) / 2) 0 calc(var(--r) / 2);
  padding: 8px 12px 10px 14px;
  border: 2px solid var(--c);
  border-radius: var(--a-mano-2);
  color: var(--c);
  font-family: var(--letra-titulo);
  font-size: 22px;
  line-height: 1.3;
  background: rgba(255, 255, 255, .45);
}
.nota-mejora .quien { font-weight: 700; }
.nota-mejora .cuando { color: var(--lapiz); font-size: 16px; font-family: var(--letra-texto); }
.nota-mejora .alternar { margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.nota-mejora .alternar button { font-family: var(--letra-texto); font-size: 16px; color: var(--tinta-suave); text-decoration: underline; min-height: 32px; }

.ingredientes { list-style: none; padding: 0; margin: 0; }
.ingredientes li { position: relative; }
.ingredientes .subtitulo { font-weight: 700; color: var(--tinta); padding-left: 0; }
.ingredientes .subtitulo::before { display: none; }
.ingredientes label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ingredientes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.casilla {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 3px;
  border: 2px solid var(--tinta-suave);
  border-radius: 3px 5px 4px 6px / 6px 3px 5px 4px;
  display: grid;
  place-items: center;
  transform: rotate(-3deg);
}
.casilla svg { width: 22px; height: 22px; opacity: 0; color: var(--tomate); transform: translate(2px, -3px) scale(1.15); transition: opacity .15s; }
.ingredientes input:checked + .casilla svg { opacity: 1; }
.ingredientes input:checked ~ .texto { color: var(--lapiz-claro); text-decoration: line-through 1.6px var(--lapiz-claro); }
.ingredientes input:focus-visible + .casilla { outline: 2.5px dashed var(--tomate); outline-offset: 3px; }

.pasos { list-style: none; padding: 0; margin: 0; counter-reset: paso; }
.pasos > li { position: relative; padding-left: 40px; margin-bottom: var(--r); counter-increment: paso; }
.pasos > li::before {
  content: counter(paso);
  position: absolute;
  left: -2px;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: url(img/circulo.svg) no-repeat center / contain;
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--tinta);
}
.pasos > li.quitado::before { opacity: .4; }
.reloj-paso {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 6px;
  margin: 0 1px;
  height: 28px;
  vertical-align: 1px;
  line-height: 26px;
  border: 1.6px dashed var(--tomate);
  border-radius: var(--a-mano-2);
  color: #a8442a;
  font-family: var(--letra-texto);
  font-size: 18px;
  background: rgba(255, 255, 255, .5);
}
.reloj-paso svg { width: 17px; height: 17px; }

.trucos { padding-left: 2px; }
.acciones-receta { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 0 20px; }
.acciones-receta .boton { font-size: 21px; padding: 4px 14px; }
.hecha-veces { color: var(--lapiz); font-size: 17px; line-height: 24px; }

/* Lo que cambia una mejora: lo viejo tachado y lo nuevo en el boli de quien la hizo */
.tachado {
  color: var(--lapiz-claro);
  text-decoration: line-through 2.4px var(--c, var(--rojo));
  text-decoration-skip-ink: none;
}
.anadido {
  color: var(--c, var(--rojo));
  font-family: var(--letra-titulo);
  font-weight: 600;
  font-size: 1.16em;
  line-height: 1;
}
/* Lo que se corrige dentro de una línea va un poco por encima, como escrito sobre lo tachado */
.tachado + .anadido { position: relative; top: -.42em; margin-left: 2px; }
.linea-nueva::after {
  content: 'nuevo';
  margin-left: 6px;
  font-family: var(--letra-titulo);
  font-size: 15px;
  color: var(--c, var(--rojo));
  border: 1.4px solid currentColor;
  border-radius: 10px;
  padding: 0 6px;
  vertical-align: 2px;
}
.ingredientes li.linea-quitada .texto, .pasos li.quitado > .texto-paso { color: var(--lapiz-claro); text-decoration: line-through 2.4px var(--c, var(--rojo)); }

/* Los pósits de la familia */
.positos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; padding: 18px 0 10px; }
.positos .posit { font-size: 19px; min-height: 120px; padding: 20px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.positos .posit:nth-child(3n + 1) { transform: rotate(-2deg); }
.positos .posit:nth-child(3n + 2) { transform: rotate(1.6deg); }
.positos .posit:nth-child(3n) { transform: rotate(-.6deg); }
.posit .tipo { font-family: var(--letra-texto); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(59, 42, 30, .6); display: flex; align-items: center; gap: 4px; }
.posit .tipo svg { width: 14px; height: 14px; }
.posit .texto-posit { flex: 1; color: var(--c, var(--tinta)); overflow-wrap: anywhere; }
.posit .firma { font-family: var(--letra-texto); font-size: 14px; line-height: 1.2; color: rgba(59, 42, 30, .7); display: flex; justify-content: space-between; align-items: flex-end; gap: 4px; }
.posit .firma button { color: rgba(59, 42, 30, .6); width: 32px; height: 32px; display: grid; place-items: center; margin: -8px -8px -6px 0; }
.posit .firma button svg { width: 18px; height: 18px; }
.posit.nuevo-posit { outline: 2px solid var(--rojo); outline-offset: 3px; }
.nuevo-posit-boton {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed rgba(34, 52, 94, .4);
  border-radius: 4px;
  color: var(--tinta-suave);
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
  padding: 10px;
}
.nuevo-posit-boton svg { width: 30px; height: 30px; }

/* ── Hojas que suben desde abajo (y el velo) ───────────── */
.velo { position: fixed; inset: 0; z-index: 80; background: rgba(40, 28, 15, .38); opacity: 0; transition: opacity .3s; }
.velo.visible { opacity: 1; }
.hoja {
  position: fixed;
  z-index: 81;
  left: 50%;
  bottom: 0;
  width: min(100%, 520px);
  max-height: 88%;
  display: flex;
  flex-direction: column;
  background: var(--papel) url(img/papel.webp);
  border-radius: 18px 22px 0 0 / 14px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(40, 28, 15, .3);
  transform: translate(-50%, 104%) rotate(.4deg);
  transition: transform .32s cubic-bezier(.2, .8, .3, 1);
}
.hoja.visible { transform: translate(-50%, 0) rotate(0); }
.hoja .agarre { width: 100%; height: 22px; margin: 0; flex: none; touch-action: none; background: radial-gradient(ellipse 27px 2.5px at 50% 13px, rgba(34, 52, 94, .22) 98%, transparent 100%); }
.hoja .titulo-hoja { margin: 4px 22px 0; font-family: var(--letra-titulo); font-weight: 700; font-size: 32px; line-height: 1.15; }
.hoja .cuerpo-hoja { overflow-y: auto; padding: 6px 22px calc(var(--seguro-abajo) + 20px); }
.hoja .cuerpo-hoja p { line-height: 1.45; margin: 6px 0; }
.hoja .botones-hoja { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 14px; }
.menu-hoja { list-style: none; margin: 4px 0 0; padding: 0; }
.menu-hoja li + li { border-top: 1.5px dashed rgba(34, 52, 94, .18); }
.menu-hoja button, .menu-hoja a { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; text-align: left; font-family: var(--letra-titulo); font-size: 23px; font-weight: 600; color: var(--tinta); }
.menu-hoja svg { width: 26px; height: 26px; flex: none; color: var(--tinta-suave); }
.menu-hoja .rojo, .menu-hoja .rojo svg { color: var(--rojo); }
.menu-hoja small { display: block; font-family: var(--letra-texto); font-size: 15px; font-weight: 400; color: var(--lapiz); line-height: 1.2; }

.colores-posit { display: flex; gap: 10px; padding: 8px 0; }
.colores-posit button { width: 40px; height: 40px; border-radius: 3px 3px 10px 3px; box-shadow: 1px 2px 4px rgba(60, 40, 20, .3); }
.colores-posit button[aria-pressed="true"] { outline: 2.5px solid var(--tinta); outline-offset: 3px; }
.colores-posit .amarillo { background: var(--pos-amarillo); }
.colores-posit .rosa { background: var(--pos-rosa); }
.colores-posit .azul { background: var(--pos-azul); }
.colores-posit .verde { background: var(--pos-verde); }
.colores-posit .naranja { background: var(--pos-naranja); }
.hoja .posit.escribir { margin: 14px 4px 4px; transform: rotate(-.8deg); }
.hoja .posit.escribir textarea { width: 100%; min-height: 120px; border: 0; background: transparent; resize: none; font-family: var(--letra-titulo); font-size: 23px; line-height: 1.3; color: var(--c, var(--tinta)); outline: none; }

/* ── Avisos: un pósit pequeño abajo ────────────────────── */
.avisos { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--seguro-abajo) + 22px); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92%, 420px); }
.aviso {
  padding: 12px 18px;
  background: var(--pos-amarillo) url(img/papel.webp);
  box-shadow: 2px 6px 14px -4px rgba(60, 40, 20, .45);
  font-family: var(--letra-titulo);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--tinta);
  border-radius: 2px 2px 12px 2px;
  transform: rotate(-1.5deg) translateY(30px);
  opacity: 0;
  transition: transform .3s, opacity .3s;
}
.aviso.visible { transform: rotate(-1.5deg) translateY(0); opacity: 1; }
.aviso.mal { background-color: var(--pos-rosa); color: #7d1f15; }

/* ── El editor ─────────────────────────────────────────── */
.editor .cabecera .boton { min-height: 40px; font-size: 21px; padding: 2px 16px; }
.editor .bloque { margin-top: 18px; }
.editor .fila { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.editor .fila > * { flex: 1 1 140px; }
.editor .tipo-elegir .chip { font-size: 23px; min-height: 46px; padding: 2px 22px; }
.pasos-editor { list-style: none; padding: 0; margin: 0; counter-reset: paso; }
.pasos-editor li { position: relative; display: flex; gap: 8px; align-items: flex-start; counter-increment: paso; margin-bottom: 8px; }
.pasos-editor li::before { content: counter(paso); flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: url(img/circulo.svg) no-repeat center / contain; font-family: var(--letra-titulo); font-weight: 700; font-size: 20px; }
.pasos-editor textarea.linea { flex: 1; min-height: calc(var(--r) * 2); }
.pasos-editor .quitar { flex: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--lapiz); }
.pasos-editor .quitar svg { width: 18px; height: 18px; }
.dibujo-editor { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
.dibujo-editor .vista { width: 150px; height: 112px; display: grid; place-items: center; border: 2px dashed rgba(34, 52, 94, .35); border-radius: 8px; background: rgba(255, 255, 255, .3); }
.dibujo-editor .vista img { max-width: 140px; max-height: 104px; object-fit: contain; }
.dibujo-editor .vista span { color: var(--lapiz-claro); font-size: 15px; text-align: center; padding: 6px; line-height: 1.2; }
.guardado-borrador { font-size: 15px; color: var(--lapiz-claro); line-height: 1.2; }

/* ── El modo cocina ────────────────────────────────────── */
.cocina .contenido { padding-top: 6px; }
.cocina .paso-grande { font-size: 27px; line-height: 44px; min-height: 40vh; padding-top: 6px; }
.cocina .paso-grande .reloj-paso { font-size: 22px; height: 34px; }
.cocina .numero-paso { font-family: var(--letra-titulo); font-size: 26px; color: var(--lapiz); font-weight: 700; }
.cocina .pasa { position: sticky; bottom: calc(var(--seguro-abajo) - 120px); display: flex; gap: 12px; padding: 12px 0 14px; background: linear-gradient(to top, var(--papel) 75%, rgba(251, 246, 234, 0)); z-index: 2; }
.cocina .contenido { padding-bottom: calc(var(--seguro-abajo) + 130px); }
.cocina .pasa .boton { flex: 1; min-height: 64px; font-size: 26px; }
.cocina .encendida { display: flex; align-items: center; gap: 6px; color: var(--lapiz); font-size: 15px; line-height: 1.2; margin-top: 18px; }
.cocina .encendida svg { width: 18px; height: 18px; }
.cocina details summary { cursor: pointer; font-family: var(--letra-titulo); font-weight: 700; font-size: 24px; color: var(--tinta-suave); list-style: none; min-height: 44px; display: flex; align-items: center; gap: 6px; }
.cocina details summary::-webkit-details-marker { display: none; }
.cocina details summary svg { width: 20px; height: 20px; transition: transform .2s; }
.cocina details[open] summary svg { transform: rotate(90deg); }
.cocina .puntitos-pasos { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.cocina .puntitos-pasos button { width: 30px; height: 30px; border-radius: 50%; border: 1.6px solid var(--tinta-suave); font-family: var(--letra-titulo); font-size: 17px; font-weight: 700; color: var(--tinta-suave); }
.cocina .puntitos-pasos button[aria-current="step"] { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.cocina .puntitos-pasos button.hecho { background: rgba(34, 52, 94, .12); }

/* ── Los relojes de cocina que van corriendo ───────────── */
.relojes { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(var(--seguro-abajo) + 10px); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: min(96%, 500px); pointer-events: none; }
.reloj-cocina {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  background: #fff7e0 url(img/papel.webp);
  border: 2px solid var(--tomate);
  border-radius: var(--a-mano);
  box-shadow: 0 4px 12px rgba(60, 40, 20, .3);
  font-family: var(--letra-titulo);
  font-weight: 700;
  font-size: 22px;
  color: #8a3420;
}
.reloj-cocina svg { width: 22px; height: 22px; }
.reloj-cocina .que { font-family: var(--letra-texto); font-weight: 400; font-size: 14px; color: var(--lapiz); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reloj-cocina button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--lapiz); }
.reloj-cocina button svg { width: 16px; height: 16px; }
.reloj-cocina.sonando { background-color: var(--pos-rosa); animation: tiembla .5s infinite; }
@keyframes tiembla { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* ── Tu cuaderno y la familia ──────────────────────────── */
.ficha { padding: 10px 0; border-bottom: 1.5px dashed rgba(34, 52, 94, .2); }
.ficha:last-child { border-bottom: 0; }
.ficha .arriba { display: flex; align-items: center; gap: 10px; }
.ficha .arriba .nombre { font-family: var(--letra-titulo); font-weight: 700; font-size: 25px; line-height: 1.1; flex: 1; }
.ficha .arriba .nombre small { display: block; font-family: var(--letra-texto); font-weight: 400; font-size: 15px; color: var(--lapiz); }
.ficha .detalle { color: var(--lapiz); font-size: 16px; line-height: 1.35; margin-top: 4px; }
.bolis { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.bolis button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 2px 12px; border-radius: var(--a-mano-2); border: 1.8px solid transparent; font-family: var(--letra-titulo); font-weight: 700; font-size: 21px; color: var(--c); }
.bolis button[aria-pressed="true"] { border-color: var(--c); background: rgba(255, 255, 255, .5); }
.bolis button svg { width: 22px; height: 22px; }
.clave-grande { font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 26px; letter-spacing: .06em; background: #fff; border: 2px dashed var(--tinta); padding: 10px 12px; border-radius: 8px; text-align: center; margin: 10px 0; user-select: all; }
.lista-sencilla { list-style: none; padding: 0; margin: 0; }
.lista-sencilla li { padding: 6px 0; border-bottom: 1.5px dashed rgba(34, 52, 94, .15); line-height: 1.35; font-size: 18px; }
.lista-sencilla li:last-child { border-bottom: 0; }

/* ── Cargando ──────────────────────────────────────────── */
.cargando { display: grid; place-items: center; height: 100%; }
.cargando-texto { font-family: var(--letra-titulo); font-size: 26px; color: var(--lapiz); }
.cargando-texto::after { content: ''; animation: puntos 1.2s steps(4) infinite; }
@keyframes puntos { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

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

/* En pantallas grandes, la libreta centrada sobre la mesa */
@media (min-width: 560px) {
  .pestanas { right: 0; }
  .contenido { padding-bottom: 140px; }
}
@media print {
  body { background: #fff; overflow: visible; }
  #app, .libro { position: static; height: auto; }
  .pagina { position: static; box-shadow: none; }
  .cabecera, .esquinas, .pestanas, .espiral, .flotante, .versiones, .acciones-receta, .positos .nuevo-posit-boton { display: none !important; }
  .contenido { overflow: visible; }
}
