/* Manual de uso de CeluModelo. Se ve en /manual/ y se imprime a PDF con el
   mismo archivo. Fuente Manrope local (la CSP no deja Google Fonts). */
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
/* Manual de uso de una tienda de celulares: una columna de lectura, índice
   arriba, cada tarea con pasos numerados y su captura del sistema real. */
:root {
  --bg: #f6f8f8;
  --papel: #ffffff;
  --tinta: #0f172a;
  --suave: #475569;
  --linea: #dbe3e6;
  --acento: #0f766e;
  --acento-fondo: #e6f4f2;
  --aviso: #fff7e6;
  --aviso-borde: #e0a43a;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background: var(--bg); color: var(--tinta); font-family: var(--font);
  font-size: 16px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.hoja { max-width: 820px; margin: 0 auto; padding-block: 40px 64px; display: grid; gap: 44px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--acento); }
a:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.ante { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acento); }

header { display: grid; gap: 14px; }
header .bajada { color: var(--suave); font-size: 1.08rem; max-width: 62ch; }

.dos-partes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.parte { background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; }
.parte strong { font-size: 1rem; }
.parte span { color: var(--suave); font-size: .94rem; }

nav.indice { background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; padding: 18px 20px; }
nav.indice h2 { font-size: 1rem; margin-bottom: 8px; }
nav.indice ol { margin: 0; padding-left: 1.3rem; columns: 2 220px; column-gap: 28px; }
nav.indice li { break-inside: avoid; padding-block: 2px; }

section { display: grid; gap: 14px; scroll-margin-top: 16px; }
section > p, section > ol, section > ul { max-width: 66ch; }
.pasos { margin: 0; padding-left: 1.4rem; display: grid; gap: 6px; }
.pasos li::marker { color: var(--acento); font-weight: 800; }
ul.lista { margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.boton-txt { display: inline-block; font-weight: 700; font-size: .9em; padding: 0 .45em; border-radius: 6px; background: var(--acento-fondo); color: var(--tinta); border: 1px solid var(--linea); white-space: nowrap; }

figure { margin: 0; display: grid; gap: 8px; }
figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--linea); box-shadow: 0 8px 24px -14px rgba(15, 23, 42, .35); }
figure.celular { justify-items: center; }
figure.celular img { max-width: 320px; }
figcaption { color: var(--suave); font-size: .88rem; }

.nota { background: var(--aviso); border-left: 4px solid var(--aviso-borde); border-radius: 8px; padding: 12px 14px; font-size: .95rem; max-width: 66ch; }

.roles { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabla-envoltura { overflow-x: auto; border: 1px solid var(--linea); border-radius: 12px; background: var(--papel); }
.roles th, .roles td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.roles tr:last-child td { border-bottom: 0; }
.roles th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); }

footer { color: var(--suave); font-size: .85rem; border-top: 1px solid var(--linea); padding-top: 16px; }

.descargar { display: inline-flex; align-items: center; gap: .5rem; justify-self: start; background: var(--acento); color: #fff; text-decoration: none; font-weight: 700; padding: .6rem 1.1rem; border-radius: 10px; }
.descargar:hover { filter: brightness(.92); }

/* ---------- Impresión (de acá sale el PDF) ---------- */
@page { size: A4; margin: 16mm 15mm; }
@media print {
  body { background: #fff; font-size: 11pt; padding: 0; }
  .hoja { padding: 0; gap: 22px; max-width: none; }
  .descargar, nav.indice a::after { display: none; }
  nav.indice, .parte, .tabla-envoltura { break-inside: avoid; }
  section { break-inside: auto; }
  h2 { break-after: avoid; }
  figure { break-inside: avoid; }
  figure img { box-shadow: none; max-height: 120mm; width: auto; max-width: 100%; justify-self: center; }
  figure.celular img { max-height: 125mm; }
  a { color: var(--tinta); text-decoration: none; }
}
