/* ===========================================================================
   Atlas Core — Fase 3 estilos
   Wizard inspección B/V/D/A + firma touch + dictamen preview
   =========================================================================== */

.inspeccion-wizard {
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 80px;
}

/* ───────── Item de evaluación ───────── */
.item-eval-card {
  padding: 18px;
}
.item-titulo {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}
.critico-flag {
  display: inline-block;
  background: rgba(239,68,68,.12);
  color: var(--atl-danger);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .05em;
  margin-right: 6px;
  vertical-align: middle;
}
.item-desc {
  font-size: 13px;
  color: var(--atl-fg-mute);
  margin-bottom: 8px;
  line-height: 1.4;
}
.item-criterio {
  background: rgba(16,185,129,.06);
  border-left: 3px solid var(--atl-success);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--atl-fg);
  margin-bottom: 14px;
}
.item-criterio strong {
  color: var(--atl-success);
}

/* ───────── Botones B/V/D/A gigantes ───────── */
.bvda-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.btn-bvda {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 4px;
  background: rgba(255,255,255,.04);
  border: 2px solid var(--atl-border);
  border-radius: 12px;
  color: var(--atl-fg);
  min-height: 84px;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-bvda:active { transform: scale(.95); }
.bvda-letter {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.bvda-label {
  font-size: 10px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--atl-fg-mute);
}

.btn-bvda-b.active {
  background: rgba(16,185,129,.18);
  border-color: var(--atl-success);
}
.btn-bvda-b.active .bvda-letter, .btn-bvda-b.active .bvda-label {
  color: var(--atl-success);
}

.btn-bvda-v.active {
  background: rgba(245,158,11,.18);
  border-color: var(--atl-warning);
}
.btn-bvda-v.active .bvda-letter, .btn-bvda-v.active .bvda-label {
  color: var(--atl-warning);
}

.btn-bvda-d.active {
  background: rgba(239,68,68,.18);
  border-color: var(--atl-danger);
}
.btn-bvda-d.active .bvda-letter, .btn-bvda-d.active .bvda-label {
  color: var(--atl-danger);
}

.btn-bvda-a.active {
  background: rgba(148,163,184,.18);
  border-color: var(--atl-fg-mute);
}
.btn-bvda-a.active .bvda-letter, .btn-bvda-a.active .bvda-label {
  color: var(--atl-fg);
}

.item-obs {
  margin-top: 4px;
}

/* ───────── Progress bar ───────── */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--atl-primary);
  transition: width .3s ease;
}

/* ───────── Resumen pre-firma ───────── */
.cert-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: var(--atl-bg-elev);
  border-radius: 12px;
}
.cert-summary .item {
  text-align: center;
}
.cert-summary .num {
  font-size: 24px;
  font-weight: 700;
}
.cert-summary .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--atl-fg-mute);
}
.num-b { color: var(--atl-success); }
.num-v { color: var(--atl-warning); }
.num-d { color: var(--atl-danger); }
.num-a { color: var(--atl-fg-mute); }

.dictamen-preview {
  margin-top: 14px;
  padding: 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  letter-spacing: .05em;
}

/* ───────── Firma canvas ───────── */
.firma-wrapper {
  position: relative;
  border: 2px dashed var(--atl-border);
  border-radius: 12px;
  padding: 2px;
  background: white;
  margin-top: 10px;
}
.firma-wrapper canvas {
  display: block;
  width: 100%;
  height: 160px;
  background: #ffffff;
  border-radius: 10px;
  touch-action: none;
  cursor: crosshair;
}
.btn-firma-limpiar {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15,23,42,.06);
  color: #475569;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  min-height: 0;
}

/* ───────── Badge ───────── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-info {
  background: rgba(59,130,246,.15);
  color: var(--atl-info);
}
