/* Blanco y negro, esquinas vivas, Archivo (manual de Rukan). El color fuerte queda libre para el cliente. */
:root { --negro: #000; --gris: #4D4C47; --linea: #E6E5DF; --rojo: #a4231b; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--negro); font: 17px/1.5 Archivo, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
header { display: flex; align-items: baseline; gap: 14px; padding: 14px 20px; border-bottom: 2px solid var(--negro); }
header strong { font-size: 23px; font-stretch: 118%; font-weight: 780; }
header .enlace { margin-left: auto; }
main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 40px; line-height: 1.1; font-stretch: 118%; font-weight: 780; margin: 0 0 6px; }
h2 { font-size: 23px; font-stretch: 112%; font-weight: 650; margin: 0; }
h3 { font-size: 18px; font-stretch: 112%; font-weight: 650; margin: 24px 0 0; }
.sub { color: var(--gris); font-size: 14px; margin: 0; }
.error { color: var(--rojo); font-size: 14px; margin: 8px 0; }
.error:empty { display: none; }
label { display: block; font-size: 14px; margin: 14px 0 4px; }
input:not([type=checkbox]), textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--gris); border-radius: 0; background: #fff; color: var(--negro); }
textarea { font-size: 14px; margin: 12px 0 6px; white-space: pre; }
button, .boton { font: inherit; font-weight: 650; min-height: 44px; padding: 8px 18px; border: 1px solid var(--negro); border-radius: 0; background: #fff; color: var(--negro); cursor: pointer; }
.lleno { background: var(--negro); color: #fff; }
button:disabled { opacity: .35; cursor: default; }
.enlace { border: 0; padding: 8px 4px; text-decoration: underline; background: transparent; }
:focus-visible { outline: 3px solid #1b63d8; outline-offset: 2px; }
.angosto { max-width: 360px; margin: 6vh auto 0; }
.angosto button { width: 100%; margin-top: 20px; }
.cabeza { margin-bottom: 18px; }
.barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.barra input[type=search] { flex: 1 1 240px; width: auto; }
.tilde { display: flex; gap: 8px; align-items: center; margin: 0; min-height: 44px; }
.tilde input { width: 18px; height: 18px; accent-color: #000; }
#lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
#lista li { border-bottom: 1px solid var(--linea); }
#lista li.vacio { padding: 28px 0; color: var(--gris); }
#lista button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; width: 100%; text-align: left; border: 0; padding: 12px 4px; font-weight: 400; }
#lista button:hover { background: #f6f6f3; }
#lista b { font-weight: 650; overflow-wrap: anywhere; }
#lista .cuenta { grid-row: span 2; align-self: center; font-size: 14px; white-space: nowrap; }
#lista .cuenta.falta { color: var(--gris); border-bottom: 2px dashed var(--gris); }
.paginas { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 18px; }
dialog { width: min(640px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); border: 2px solid var(--negro); border-radius: 0; padding: 0; }
dialog::backdrop { background: rgb(0 0 0 / .5); }
.dialogo { padding: 20px; }
.d-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fila { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
#fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
#fotos figure { margin: 0; }
#fotos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--linea); }
#fotos button { width: 100%; font-size: 14px; border: 0; text-decoration: underline; font-weight: 400; }
.boton { display: inline-flex; align-items: center; margin: 0; font-size: 17px; }
input.oculto:not([type=checkbox]) { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; }
label[for=subir]:has(+ input:focus-visible) { outline: 3px solid #1b63d8; outline-offset: 2px; }
@media (max-width: 560px) {
  header .sub { display: none; }
  h1 { font-size: 30px; }
  .dos { grid-template-columns: 1fr; }
  .barra button { flex: 1 1 140px; }
}
