/* Reporte A3 horizontal (420 × 297 mm) */
.pages { --z: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 0 40px; }
.page { zoom: var(--z); width: 420mm; height: 297mm; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.18); padding: 9mm 11mm 7mm; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); gap: 5mm; overflow: hidden; color: #1b1f1a; font-size: 9pt; line-height: 1.3; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

.rh { display: grid; grid-template-columns: 70mm minmax(0, 1fr) auto; gap: 8mm; align-items: center; border-bottom: 1.2mm solid #2f5d34; padding-bottom: 3mm; }
.logo { font-size: 17pt; color: #2f5d34; letter-spacing: -.02em; }
.logo b { color: #7a5230; }
.rh-sub { font-size: 8pt; color: #5b6558; text-transform: uppercase; letter-spacing: .06em; }
.rh-title { font-size: 15pt; font-weight: 750; }
.rh-meta { font-size: 10pt; color: #5b6558; }
.rh-right { display: flex; align-items: center; gap: 5mm; }
.rh-right .big { font-size: 26pt; font-weight: 800; color: #7a5230; }
.cal-n { background: #7a5230; color: #fff; border-radius: 2mm; padding: 2mm 5mm; text-align: center; min-width: 30mm; }
.cal-n span { display: block; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; }
.cal-n b { font-size: 24pt; line-height: 1; }
table.kv { border-collapse: collapse; }
table.kv th { text-align: left; color: #5b6558; font-weight: 600; padding: .6mm 3mm .6mm 0; white-space: nowrap; font-size: 8.5pt; vertical-align: top; }
table.kv td { padding: .6mm 0; font-weight: 600; }
table.kv.sm th, table.kv.sm td { font-size: 8pt; padding-top: .3mm; padding-bottom: .3mm; }

.rf { display: flex; justify-content: space-between; font-size: 7.5pt; color: #5b6558; border-top: .3mm solid #cfd6c8; padding-top: 2mm; }
.blk-t { font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #2f5d34; margin: 0 0 1.5mm; border-bottom: .3mm solid #d6dccf; padding-bottom: .8mm; }

/* Ficha */
.fb { display: grid; grid-template-columns: 58mm minmax(0, 1fr) 94mm; gap: 6mm; min-height: 0; }
table.hz { table-layout: fixed; }
table.hz th:nth-child(1) { width: 3.6%; } table.hz th:nth-child(2) { width: 5.2%; } table.hz th:nth-child(3), table.hz th:nth-child(4) { width: 8%; }
table.hz th:nth-child(5) { width: 7.6%; } table.hz th:nth-child(6) { width: 10.4%; } table.hz th:nth-child(7) { width: 10%; }
table.hz th:nth-child(8), table.hz th:nth-child(9) { width: 9%; } table.hz th:nth-child(10) { width: 10%; } table.hz th:nth-child(11) { width: 9.4%; }
table.hz th:nth-child(12) { width: 8.4%; } table.hz th:nth-child(13) { width: 7.4%; }
table.hz td { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.fb > div { min-height: 0; display: flex; flex-direction: column; }
.ph-wrap { display: grid; grid-template-columns: 13mm 1fr; gap: 2mm; flex: 1; min-height: 0; max-height: 170mm; }
.ph-main { border-radius: 1.5mm; overflow: hidden; background: #eef0ea; min-height: 0; }
.ph-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-others { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm; margin-top: 3mm; }
.ph-others div { position: relative; height: 38mm; border-radius: 1.5mm; overflow: hidden; background: #eef0ea; }
.ph-others img { width: 100%; height: 100%; object-fit: cover; }
.ph-others span { position: absolute; left: 1mm; bottom: 1mm; background: rgba(0,0,0,.55); color: #fff; font-size: 6.5pt; padding: .3mm 1.5mm; border-radius: 1mm; }
.pbar { position: relative; display: grid; grid-template-columns: 6mm 1fr; }
.pbar .ticks { position: relative; }
.pbar .tick { position: absolute; right: 1mm; transform: translateY(-50%); font-size: 6pt; color: #5b6558; }
.pbar .col { position: relative; border: .3mm solid #999; background: repeating-linear-gradient(45deg, #f4f4f0 0 1mm, #fff 1mm 2mm); }
.pbar .seg { position: absolute; left: 0; right: 0; border-bottom: .3mm solid rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.pbar .seg span { font-size: 6.5pt; font-weight: 700; background: rgba(255,255,255,.75); border-radius: 1mm; padding: 0 .6mm; }

table.rt { width: 100%; border-collapse: collapse; font-size: 8pt; }
table.rt th, table.rt td { border: .25mm solid #c9d0c2; padding: 1mm 1.4mm; vertical-align: top; text-align: left; }
table.rt thead th { background: #2f5d34; color: #fff; font-size: 7.3pt; font-weight: 650; vertical-align: middle; text-align: center; }
table.rt tbody th { background: #f3f5f0; font-weight: 600; }
table.hz td { font-size: 7.4pt; }

table.hz td i { color: #7a5230; font-style: normal; font-weight: 700; }
table.hz td.hn { text-align: center; background: #f4ece3; }
table.hz td.hn div { font-size: 7pt; color: #7a5230; }
table.hz tr.hobs td { font-size: 7.3pt; color: #444; border-top: 0; background: #fbfbf8; }
td.nw { white-space: nowrap; }
.sw { display: inline-block; width: 3mm; height: 3mm; border: .2mm solid rgba(0,0,0,.35); border-radius: .6mm; margin-right: 1mm; vertical-align: -.4mm; }
.c2-bottom { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 5mm; margin-top: auto; padding-top: 4mm; }
.obs { margin: 0; font-size: 8.5pt; white-space: pre-wrap; }
.mini { display: flex; gap: 4mm; margin-top: 2mm; font-size: 8pt; }

.rmap { border-radius: 1.5mm; border: .3mm solid #c9d0c2; background: #f3f5f0; }
.rmap svg { max-height: 118mm; }
.c3 .rmap { margin-bottom: 1mm; }
.coords { font-size: 7.5pt; color: #5b6558; margin-bottom: 3mm; }
.tex { margin-bottom: 2mm; }
.tex .bar { display: flex; height: 7mm; border-radius: 1mm; overflow: hidden; border: .25mm solid #b8a58c; }
.tex .bar span { display: flex; align-items: center; justify-content: center; font-size: 7pt; font-weight: 700; white-space: nowrap; overflow: hidden; }
.cls { margin: 1.5mm 0 3mm; font-size: 9pt; }
.q2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm; }
table.lab td { text-align: right; font-weight: 600; }
table.lab td.u { text-align: left; font-weight: 400; color: #5b6558; font-size: 7pt; }
.c3 table.lab { margin-bottom: 3mm; }
.pend { color: #8a5a00; background: #fdf0d8; padding: 1.5mm 2mm; border-radius: 1mm; font-size: 8pt; margin: 0 0 3mm; }
.nomap { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 30mm; color: #888; font-size: 8pt; }

/* Portada */
.cov { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8mm; min-height: 0; }
.cov-map { display: flex; flex-direction: column; min-height: 0; }
.cov-map .rmap { display: flex; align-items: center; justify-content: center; }
.cov-map .rmap svg { max-height: 215mm; width: 100%; }
table.sum td, table.sum th { text-align: center; }

@media print {
  @page { size: 420mm 297mm; margin: 0; }
  html, body { background: #fff !important; }
  .no-print, .topbar, .toast { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .pages { padding: 0; gap: 0; display: block; }
  .page { zoom: 1 !important; box-shadow: none; break-after: page; page-break-after: always; }
  .page:last-child { break-after: auto; page-break-after: auto; }
}

.c3 { min-width: 0; }
table.lab { table-layout: fixed; }
table.lab th { width: 50%; font-size: 7.4pt; }
table.lab td { width: 22%; }
table.lab td.u { width: 28%; font-size: 6.5pt; }
