/* ==========================================================================
   ENDÉMICO · HOJAS PARA LA BITÁCORA (A5, dos caras)
   Colores fijos de imprenta: tinta, naranja y un verde claro. No cambian en
   modo oscuro, porque representan papel impreso.
   ========================================================================== */
.a5{
  --h-papel:#FBFAF6; --h-tinta:#1B2420; --h-tinta-2:#4C5751; --h-naranja:#C9541F; --h-verde:#BFD9B4; --h-verde-2:#7FAE84; --h-hoja:#DCE8D2; --h-linea:rgba(27,36,32,.3);
  width:148mm; height:210mm; flex:none; box-sizing:border-box; padding:9mm 10mm 8mm; overflow:hidden;
  display:flex; flex-direction:column; gap:3.4mm;
  background:var(--h-papel); color:var(--h-tinta);
  font-family:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif; font-size:8.4pt; line-height:1.42;
}
.a5 *{box-sizing:border-box}
.a5 h2,.a5 h3{font-family:"Gloock","Iowan Old Style","Palatino Linotype",Georgia,serif; font-weight:400; margin:0; letter-spacing:-.005em}
.a5 p{margin:0}
.h-cab{display:flex; justify-content:space-between; gap:6mm; font-size:6.2pt; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--h-tinta-2); padding-bottom:2mm; border-bottom:.35mm solid var(--h-tinta)}
.h-titulo{display:grid; gap:.6mm}
.h-serie{font-size:6.6pt; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--h-naranja)}
.h-titulo h2{font-size:31pt; line-height:1}
.h-cientifico{font-style:italic; font-size:9.4pt; color:var(--h-tinta-2)}

.h-figura{margin:0; border:.3mm solid var(--h-linea); border-radius:3mm; background:#F3F1E9; padding:1mm 2mm}
.h-rana{display:block; width:100%; height:auto}
.h-rana .h-hoja{fill:var(--h-hoja,#DCE8D2); stroke:var(--h-tinta,#1B2420); stroke-width:1.3; stroke-linejoin:round}
.h-rana .h-nervio{fill:none; stroke:var(--h-tinta,#1B2420); stroke-width:.8; opacity:.45; stroke-linecap:round}
.h-rana .h-agua{fill:none; stroke:var(--h-tinta,#1B2420); stroke-width:1; opacity:.4; stroke-linecap:round}
.h-rana .h-gota{fill:none; stroke:var(--h-tinta,#1B2420); stroke-width:.9; opacity:.45}
.h-rana .h-huevos circle{fill:#fff; stroke:var(--h-tinta,#1B2420); stroke-width:.8}
.h-rana .h-pata{fill:none; stroke:var(--h-verde-2,#7FAE84); stroke-width:8.500; stroke-linecap:round; stroke-linejoin:round}
.h-rana .h-dedo line{stroke:var(--h-verde-2,#7FAE84); stroke-width:3; stroke-linecap:round}
.h-rana .h-yema{fill:var(--h-verde,#BFD9B4); stroke:var(--h-tinta,#1B2420); stroke-width:.7}
.h-rana .h-cuerpo{fill:var(--h-verde,#BFD9B4); stroke:var(--h-tinta,#1B2420); stroke-width:1.3}
.h-rana .h-vidrio{fill:#fff; opacity:.62}
.h-rana .h-corazon{fill:var(--h-naranja,#C9541F)}
.h-rana .h-mota{fill:var(--h-tinta,#1B2420); opacity:.55}
.h-rana .h-ojo circle{fill:#fff; stroke:var(--h-tinta,#1B2420); stroke-width:1.2}
.h-rana .h-pupila{fill:var(--h-tinta,#1B2420)}
.h-rana .h-rotulo path{fill:none; stroke:var(--h-naranja,#C9541F); stroke-width:.8}
.h-rana .h-rotulo text{font-family:"Instrument Sans",system-ui,sans-serif; font-size:8px; font-weight:600; letter-spacing:.04em; fill:var(--h-tinta,#1B2420)}

.h-bloque{display:grid; gap:1.3mm}
.h-bloque h3,.h-registro h3,.h-lista h3{font-size:13pt; line-height:1.1; display:flex; align-items:center; gap:2mm}
.h-nivel{flex:none; width:3.6mm; height:3.6mm; border-radius:50%; border:.35mm solid var(--h-tinta)}
.h-nivel.n2{background:radial-gradient(circle,var(--h-tinta) 0 28%,transparent 31%)}
.h-nivel.n3{background:var(--h-naranja); border-color:var(--h-naranja)}
.h-bloque p{text-wrap:pretty}
.h-campo ol{margin:0; padding:0; list-style:none; counter-reset:paso; display:grid; grid-template-columns:1fr 1fr; gap:1.6mm 5mm}
.h-campo li{counter-increment:paso; display:grid; grid-template-columns:4.4mm 1fr; gap:1.4mm}
.h-campo li::before{content:counter(paso); font-family:"Gloock",Georgia,serif; font-size:11pt; line-height:1; color:var(--h-naranja)}

.h-pie{margin-top:auto; display:flex; align-items:center; gap:5mm; padding-top:2mm; border-top:.25mm solid var(--h-linea); font-size:6.6pt; color:var(--h-tinta-2)}
.h-pie-fin{margin-left:auto; font-weight:600; letter-spacing:.08em; text-transform:uppercase}
.h-rombo{display:inline-block; width:1.9mm; height:1.9mm; background:var(--h-naranja,#C9541F); transform:rotate(45deg); margin:0 .8mm .2mm; vertical-align:middle}
.h-triangulo{display:inline-block; width:0; height:0; border-left:1.25mm solid transparent; border-right:1.25mm solid transparent; border-bottom:2.2mm solid var(--h-tinta,#1B2420); margin:0 .6mm .3mm; vertical-align:middle}

.h-registro{display:grid; gap:1.6mm; padding-top:2.6mm; border-top:.25mm solid var(--h-linea)}
.h-reg-grid{display:grid; grid-template-columns:1.15fr 1fr; gap:5mm}
.h-registro dl{margin:0; display:grid; gap:0}
.h-registro dl>div{display:grid; grid-template-columns:auto 1fr; align-items:end; gap:2mm; height:7.8mm}
.h-registro dt{font-size:6.6pt; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--h-tinta-2); padding-bottom:.7mm; white-space:nowrap}
.h-registro dd{margin:0; border-bottom:.25mm dotted var(--h-tinta); height:100%}
.h-registro .h-marcar dd{border:0; display:flex; align-items:end; gap:2.6mm; font-size:7.4pt; padding-bottom:.5mm}
.h-registro .h-marcar span{display:inline-flex; align-items:center; gap:1mm; white-space:nowrap}
.h-registro .h-marcar span::before{content:""; width:2.3mm; height:2.3mm; border:.3mm solid var(--h-tinta); border-radius:.4mm}
.h-dibujo{border:.3mm dashed var(--h-linea); border-radius:2.4mm; padding:2mm 2.6mm; font-size:6.8pt; color:var(--h-tinta-2); font-style:italic}

.h-lista{display:grid; grid-template-columns:1fr 31mm; gap:6mm; align-items:start; padding-top:2.6mm; border-top:.25mm solid var(--h-linea)}
.h-lista table{width:100%; border-collapse:collapse; margin-top:1.4mm; font-size:7.8pt}
.h-lista td{padding:.95mm 0; border-bottom:.2mm solid var(--h-linea); vertical-align:middle}
.h-lista td:last-child{text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--h-tinta-2); font-size:7pt}
.h-check{width:5mm}
.h-check::before{content:""; display:block; width:2.6mm; height:2.6mm; border:.3mm solid var(--h-tinta); border-radius:.4mm}
.h-nota{margin-top:1.6mm!important; font-size:6.6pt; color:var(--h-tinta-2)}
.h-qr{display:grid; gap:.8mm; justify-items:start; font-size:6.8pt; line-height:1.3}
.h-qr .qr{width:31mm; height:31mm; border:.3mm solid var(--h-tinta); border-radius:1.6mm; display:block}
.h-qr strong{font-family:"Gloock",Georgia,serif; font-weight:400; font-size:11pt; margin-top:1mm}
.h-qr code{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace; font-size:6.8pt; font-weight:600; color:var(--h-naranja)}
.h-colofon{margin-top:auto; padding-top:2mm; border-top:.35mm solid var(--h-tinta); font-size:5.9pt; line-height:1.4; color:var(--h-tinta-2); display:grid; gap:.8mm}
.h-colofon b{color:var(--h-tinta)}

/* Página independiente para imprimir (hoja.html) */
@page{size:148mm 210mm; margin:0}
body.solo-hoja{margin:0; background:#fff}
body.solo-hoja .a5{page-break-after:always; break-after:page}
