/* Instalación de PCs */
.prog { height: 8px; background: var(--atp-gray); border-radius: 999px; overflow: hidden; min-width: 90px; }
.prog > span { display: block; height: 100%; background: var(--atp-azul); border-radius: 999px; transition: width .2s; }
.prog.done > span { background: #059669; }
.prog-txt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st-en_curso { background: #eff6ff; color: #1d4ed8; }
.st-completada { background: #ecfdf5; color: #047857; }
.st-anulada { background: var(--atp-gray); color: #475569; }

.inst-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
.inst-head .k { font-size: 12px; color: var(--muted); }
.inst-head .v { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 760px) { .inst-head { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sec { margin-top: 16px; }
.sec-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.sec-head h3 { margin: 0; flex: 1; font-size: 16px; }
.sec-num { width: 28px; height: 28px; border-radius: 50%; background: var(--atp-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.sec.done .sec-num { background: #059669; }

.step { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step input[type=checkbox] { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: #059669; cursor: pointer; }
.step input[type=checkbox]:disabled { cursor: default; }
.step .body { flex: 1; min-width: 0; }
.step .t { font-weight: 600; cursor: pointer; }
.step.done .t { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.step .who { font-size: 12px; color: #047857; margin-top: 2px; }
.step .ex { font-size: 14px; color: var(--muted); margin-top: 4px; white-space: pre-wrap; }
.cmd { display: flex; align-items: stretch; margin-top: 8px; border: 1px solid #1e293b; border-radius: 8px; overflow: hidden; background: #0f172a; }
.cmd code { flex: 1; min-width: 0; padding: 8px 12px; color: #e2e8f0; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.cmd .tag-c { align-self: center; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; padding: 0 8px; }
.cmd button { border: none; border-left: 1px solid #1e293b; background: #1e293b; color: #e2e8f0; padding: 0 12px; font: 600 12px Inter, sans-serif; cursor: pointer; }
.cmd button:hover { background: #334155; }

.tk-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; margin-bottom: 8px; }
.tk-opt.on { border-color: var(--atp-azul); background: #f5f8ff; }
.tk-list { max-height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; }
.tk-item { padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.tk-item:last-child { border-bottom: none; }
.tk-item:hover { background: var(--atp-gray); }
.tk-item.on { background: #eff6ff; box-shadow: inset 3px 0 0 var(--atp-azul); }

.tpl-step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.tpl-step:last-child { border-bottom: none; }
.tpl-step .body { flex: 1; min-width: 0; }
.tpl-step.off .body { opacity: .5; }
.tpl-step code { display: block; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini { display: flex; gap: 4px; flex-shrink: 0; }
.mini .btn { padding: 4px 8px; font-size: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; white-space: nowrap; }
.tabs a.on { color: var(--text); border-color: var(--atp-azul); }
@media (max-width: 760px) {
  .step, .sec-head, .tpl-step { padding-left: 14px; padding-right: 14px; }
  .cmd { flex-wrap: wrap; }
  .cmd code { flex-basis: 100%; }
  .cmd .tag-c { flex: 1; padding: 6px 12px; }
  .cmd button { border-left: none; padding: 6px 14px; }
  .tpl-step { flex-wrap: wrap; }
}
