/* Hojas A4 imprimibles de las plantillas gratis (orden de reparación, presupuesto, resguardo de depósito).
   Pensadas para imprimir en blanco y negro: líneas finas, nada de fondos oscuros. */
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/fuentes/inter.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-display: swap; src: url("/fuentes/archivo.woff2") format("woff2"); }
@page { size: A4; margin: 12mm; }
* { box-sizing: border-box; }
html { background: #e9edf5; }
body { margin: 0; font-family: "Inter", Arial, sans-serif; font-size: 9.5pt; line-height: 1.35; color: #111827; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hoja { width: 210mm; min-height: 297mm; margin: 16px auto; padding: 12mm; background: #fff; box-shadow: 0 8px 30px rgba(11,29,68,.18); display: flex; flex-direction: column; gap: 2.8mm; }
@media print { html { background: #fff; } .hoja { margin: 0; padding: 0; width: auto; min-height: 0; box-shadow: none; } .no-imprimir { display: none !important; } }
@media screen and (max-width: 820px) { .hoja { width: auto; min-height: 0; margin: 0; padding: 16px; box-shadow: none; } }

.barra { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding: 10px 16px; background: #0b1d44; color: #dbe6ff; font-size: 13px; }
.barra a, .barra button { font: 600 13px "Inter", sans-serif; padding: 8px 14px; border-radius: 9px; border: 0; cursor: pointer; text-decoration: none; }
.barra button { background: #2563eb; color: #fff; }
.barra a { background: rgba(255,255,255,.12); color: #fff; }

h1 { font-family: "Archivo", Arial, sans-serif; font-size: 17pt; font-weight: 800; letter-spacing: -.01em; margin: 0; }
h2 { font-family: "Archivo", Arial, sans-serif; font-size: 8.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1mm; color: #0b1d44; }
.cab { display: grid; grid-template-columns: 1fr 62mm; gap: 6mm; align-items: start; }
.firmas { gap: 8mm; }
.cab .doc { border: 1.4px solid #111827; border-radius: 2.5mm; padding: 3mm; display: grid; gap: 2mm; }
.caja { border: .8px solid #9aa5b8; border-radius: 2.5mm; padding: 2.2mm 3mm; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.campo { display: flex; align-items: flex-end; gap: 2mm; min-height: 6mm; }
.campo + .campo { margin-top: .3mm; }
.campo b { font-weight: 600; white-space: nowrap; font-size: 8.5pt; color: #374151; }
.campo span { flex: 1; border-bottom: .8px dotted #6b7280; min-height: 4.5mm; }
.fila { display: flex; gap: 4mm; } .fila .campo { flex: 1; }
.casillas { display: flex; flex-wrap: wrap; gap: 1.2mm 5mm; align-items: center; min-height: 5.5mm; }
.casillas label { display: inline-flex; align-items: center; gap: 1.6mm; font-size: 8.5pt; }
.casillas i { width: 3.4mm; height: 3.4mm; border: .9px solid #111827; border-radius: .6mm; display: inline-block; }
.combustible { display: grid; grid-template-columns: repeat(5, 1fr); border: .8px solid #111827; border-radius: 1mm; overflow: hidden; width: 52mm; height: 6mm; }
.combustible i { border-right: .8px solid #111827; font-style: normal; font-size: 7pt; display: grid; place-items: center; color: #374151; } .combustible i:last-child { border-right: 0; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 7.6pt; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #374151; border-bottom: 1.2px solid #111827; padding: 1.2mm 2mm; }
td { border-bottom: .6px solid #c3cad6; height: 6.4mm; padding: 0 2mm; }
th.num, td.num { text-align: right; width: 24mm; }
th.c, td.c { text-align: center; width: 16mm; }
.totales { margin-left: auto; width: 72mm; border: 1.2px solid #111827; border-radius: 2.5mm; overflow: hidden; }
.totales div { display: flex; justify-content: space-between; padding: 1.5mm 3mm; border-bottom: .6px solid #c3cad6; }
.totales div:last-child { border-bottom: 0; font-weight: 800; font-family: "Archivo", Arial, sans-serif; font-size: 10.5pt; }
.totales span:last-child { min-width: 26mm; border-bottom: .8px dotted #6b7280; }
.legal { font-size: 7.6pt; color: #374151; line-height: 1.35; }
.legal p { margin: 0 0 .8mm; }
.firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; margin-top: auto; }
.firma { border-top: .9px solid #111827; padding-top: 1.6mm; font-size: 8pt; color: #374151; height: 15mm; display: flex; align-items: flex-start; }
.firma-caja { height: 19mm; border: .8px solid #9aa5b8; border-radius: 2.5mm; padding: 2mm 3mm; font-size: 8pt; color: #374151; }
.pie { display: flex; justify-content: space-between; gap: 6mm; font-size: 7pt; color: #6b7280; border-top: .6px solid #c3cad6; padding-top: 2mm; }
.pie b { color: #0b1d44; }
.lineas-libres div { border-bottom: .6px solid #c3cad6; height: 6.2mm; }
