/* Planilla "Chequeo antes de viajar" */
.chq { padding-top: 32px; padding-bottom: 48px; }
.chq h1 { font-size: clamp(26px, 4vw, 36px); margin: 6px 0 10px; }
.chq-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }

.chq fieldset { border: 1px solid var(--borde); border-radius: 12px; padding: 14px 18px 16px; margin: 0 0 16px; background: #fff; min-width: 0; }
.chq legend { font-weight: 700; padding: 0 6px; font-size: 15px; }

.chq-datos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; }
.chq-datos label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.chq-datos input, .chq-obs textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 9px 10px; border: 1px solid var(--borde); border-radius: 8px; width: 100%; box-sizing: border-box; background: #fff; }
.chq-datos input:focus, .chq-obs textarea:focus { outline: 2px solid var(--rojo); outline-offset: 0; border-color: var(--rojo); }
.chq-obs textarea { resize: vertical; }

.chq-grupos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.chq-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--borde); }
.chq-item:last-child { border-bottom: 0; }
.chq-txt { font-size: 14px; line-height: 1.35; }
.chq-ops { display: flex; gap: 4px; flex: none; }
.op { position: relative; cursor: pointer; }
.op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.op span { display: inline-block; min-width: 54px; text-align: center; padding: 6px 6px; border: 1px solid var(--borde); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--gris); background: #fff; }
.op input:focus-visible + span { outline: 2px solid var(--tinta); outline-offset: 1px; }
.op-ok input:checked + span { background: #1a7f37; border-color: #1a7f37; color: #fff; }
.op-rev input:checked + span { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.op-na input:checked + span { background: var(--gris); border-color: var(--gris); color: #fff; }

.chq-resumen { border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; font-size: 14px; }
.chq-resumen.bien { background: #f0faf3; border: 1px solid #b7e1c3; }
.chq-resumen.medio { background: var(--fondo); border: 1px solid var(--borde); }
.chq-resumen.mal { background: var(--rojo-f, #fdeaea); border: 1px solid #f2b8b8; }
.chq-resumen ul { margin: 8px 0 0; padding-left: 20px; }
.chq-resumen p { margin: 8px 0 0; }
.chq-resumen a, .chq-pie a { color: var(--rojo); font-weight: 600; }

.chq-firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 34px 0 10px; font-size: 13px; color: var(--gris); text-align: center; }
.chq-firmas .linea { display: block; border-top: 1px solid var(--tinta); margin-bottom: 4px; }
.chq-pie { margin-top: 12px; }

@media (max-width: 900px) { .chq-datos { grid-template-columns: 1fr 1fr; } .chq-grupos { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .chq-datos { grid-template-columns: 1fr; }
  .chq-item { flex-direction: column; align-items: stretch; gap: 6px; }
  .chq-ops { justify-content: stretch; }
  .op { flex: 1; }
  .op span { width: 100%; box-sizing: border-box; padding: 8px 6px; }
}

/* Impresión: una hoja A4 */
@media print {
  @page { size: A4; margin: 9mm 10mm; }
  .no-print { display: none !important; }
  span.solo-print { display: inline !important; }
  html, body { font-size: 8.5pt; }
  .chq { padding: 0; }
  .chq-cab { display: flex; align-items: flex-end; gap: 12px; border-bottom: 2px solid var(--rojo); padding-bottom: 5px; margin-bottom: 7px; }
  .chq-cab > div { flex: 1; }
  .chq-cab .eyebrow { font-size: 7pt; }
  .chq h1 { font-size: 15pt; margin: 1px 0 0; }
  .chq-emp { font-size: 7.5pt; color: #555; text-align: right; max-width: 210px; margin: 0; }
  .chq fieldset { border: 1px solid #999; border-radius: 5px; padding: 3px 8px 5px; margin: 0 0 5px; break-inside: avoid; }
  .chq legend { font-size: 8.5pt; padding: 0 4px; }
  .chq-datos { grid-template-columns: repeat(4, 1fr) !important; gap: 2px 10px; }
  .chq-datos input::-webkit-calendar-picker-indicator { display: none; }
  .chq-datos input.vacio { color: transparent; }
  .chq-datos input::placeholder { color: transparent; }
  .chq-datos label { font-size: 7pt; gap: 0; color: #555; }
  .chq-datos input { border: 0; border-bottom: 1px solid #999; border-radius: 0; padding: 1px 0; font-size: 9pt; height: 15pt; color: #000; }
  .chq-leyenda { font-size: 7.5pt; color: #555; margin: 0 0 3px; text-align: right; }
  .chq-grupos { grid-template-columns: 1fr 1fr !important; gap: 0 8px; }
  .chq-item { flex-direction: row !important; align-items: center !important; padding: 1.2px 0; border-bottom: 1px dotted #ccc; gap: 6px; }
  .chq-txt { font-size: 8pt; line-height: 1.2; }
  .chq-ops { gap: 2px; }
  .op { flex: none !important; }
  .op span { min-width: 0; width: 13px; height: 11px; padding: 0; border: 1px solid #777; border-radius: 2px; font-size: 0; color: transparent; background: #fff; }
  .op input:checked + span { background: #fff !important; border-color: #000 !important; position: relative; }
  .op input:checked + span::before { position: absolute; inset: 0; font-size: 8pt; line-height: 11px; text-align: center; color: #000; font-weight: 700; }
  .op-ok input:checked + span::before { content: '✓'; }
  .op-rev input:checked + span::before { content: '✗'; }
  .op-na input:checked + span::before { content: '–'; }
  .op-ok span { border-color: #1a7f37; }
  .op-rev span { border-color: var(--rojo); }
  .cx { display: inline-block; width: 11px; text-align: center; border: 1px solid #777; border-radius: 2px; font-weight: 700; line-height: 10px; font-size: 7.5pt; }
  .chq-obs textarea { border: 0; padding: 0; font-size: 8.5pt; height: 34pt; resize: none; color: #000;
    background-image: repeating-linear-gradient(transparent, transparent 10.5pt, #bbb 10.5pt, #bbb 11.3pt); }
  .chq-obs textarea::placeholder { color: transparent; }
  .chq input, .chq textarea { outline: none !important; }
  .chq-firmas { margin: 22px 0 4px; font-size: 7.5pt; gap: 30px; }
  .chq-pie { font-size: 6.8pt; margin-top: 4px; color: #555; }
}
