.sheet{width:210mm;height:297mm;padding:8mm 12mm 8mm;font-family:Arial,Helvetica,sans-serif;}
.header-box{
  border:2.3px solid var(--blue);
  padding:5mm 7mm 4mm;
  height:69mm;
}
.logos{
  display:grid;
  grid-template-columns:23mm 1fr 23mm;
  align-items:center;
  gap:4mm;
  height:24mm;
}
.logo{display:flex;align-items:center;justify-content:center;height:22mm}
.logo img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.logo.center{height:25mm}
.cert-title{
  text-align:center;
  margin:1mm 0 2.5mm;
  font-size:13pt;
  line-height:1;
  font-style:italic;
  font-weight:800;
  color:var(--gold);
}
.company{font-size:9.2pt;line-height:1.27;font-weight:700;margin-left:4mm}

.folio{
  width:34mm; margin:8mm 4mm 2mm auto;
  border:2px solid var(--blue-dark);border-radius:4mm;text-align:center;overflow:hidden
}
.folio-label{font-size:12pt;font-weight:700;color:#525c68;padding:1.3mm 0}
.folio-dash{border-top:1.5px dashed var(--blue-dark)}
.folio-num{font-size:16pt;font-weight:800;color:#874710;padding:1.8mm 0 2mm}

.line-row{
  display:flex;align-items:flex-end;gap:2mm;margin:4.4mm 4mm 0;font-size:9pt;font-weight:700
}
.line-label{white-space:nowrap}
.line-value{
  flex:1;border-bottom:1px solid #111;min-height:5mm;padding:0 1mm 1mm;
  text-transform:uppercase;font-weight:700;
}
.extra-line{margin:1.5mm 4mm 0;border-bottom:1px solid #111;height:3mm}

.unit-row{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;
  gap:1.7mm;margin-top:5mm;font-size:8.25pt;font-weight:700;text-transform:uppercase
}
.mini{min-width:14mm;border-bottom:1px solid #111;text-align:center;padding:0 1mm 1mm;display:inline-block}
.dates{
  display:flex;justify-content:center;align-items:flex-end;gap:2.2mm;
  margin-top:7mm;font-size:8.2pt;font-weight:700
}
.date-val{min-width:22mm;border-bottom:1px solid #111;text-align:center;padding-bottom:1mm}

.cert-checks{margin:7mm 4mm 0;font-size:7.9pt;font-weight:700;line-height:1.9}
.check-line{display:flex;flex-wrap:wrap;align-items:center;gap:1.5mm 2.4mm;margin-bottom:1mm}
.box{
  width:4.8mm;height:4.8mm;border:1px solid #5b7594;background:#fff;display:inline-block;
  flex:0 0 auto;
}
.box.on{background:#f7191d;border-color:#d31316}
.other{min-width:24mm;border-bottom:1px solid #111;display:inline-block;padding:0 1mm}

.legal{
  margin:6mm 4mm 0;font-size:7.25pt;line-height:1.32;font-weight:600;text-align:justify
}
.legal p{margin:0 0 3mm}

.signatures{
  display:grid;grid-template-columns:1fr 1fr;gap:13mm;
  margin:18mm 18mm 0;text-align:center;font-size:8.8pt;font-weight:700
}
.sig-name{
  height:4.2mm;
  margin-bottom:.35mm;
  font-size:8.2pt;
  line-height:4.2mm;
  white-space:nowrap;
}
.responsable-fijo{
  font-weight:700;
  text-align:center;
}
.sig-line{
  border-top:1px solid #111;
  padding-top:3mm;
}



.sheet .line-value{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;max-height:12mm;line-height:1.1}.sheet .mini{max-width:33mm;overflow-wrap:anywhere}.sheet .unit-row{min-height:10mm}.sheet .signatures{margin-top:14mm}.sheet .observaciones-print{margin:3mm 4mm 0;font-size:7.5pt;white-space:pre-wrap;line-height:1.2}.sheet .other{max-width:40mm;overflow-wrap:anywhere}.sheet .company{max-height:31mm;overflow-wrap:anywhere}.sheet .legal{overflow-wrap:anywhere}.sheet .cert-title{line-height:1.15}.sheet .folio-num{overflow-wrap:anywhere}
@page{size:A4 portrait;margin:0}@media print{.sheet{width:210mm!important;height:297mm!important;padding:8mm 12mm 8mm!important}}

/* Dos renglones reales: el texto continúa sobre la segunda línea del formato. */
.ruled-row{position:relative;margin:4.4mm 4mm 0;height:11mm;font-size:9pt;font-weight:700}
.ruled-label{position:absolute;left:0;top:0;line-height:5.5mm;background:#fff;z-index:1;padding-right:1mm}
.ruled-value{width:100%;height:11mm;line-height:5.5mm;text-indent:var(--label-space);white-space:pre-wrap;overflow-wrap:anywhere;text-transform:uppercase;overflow:hidden}
.ruled-row::before,.ruled-row::after{content:"";position:absolute;left:0;right:0;border-bottom:.75pt solid #111;pointer-events:none}
.ruled-row::before{top:5.3mm}.ruled-row::after{top:10.8mm}
