/* ═══════════════════════════════════════════════════════
   MediRecord — pantalla de verificación en 2 pasos (la misma en programa y portales)
═══════════════════════════════════════════════════════ */
.dp-capa {
  position: fixed; inset: 0; z-index: 20000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
  background: rgba(15, 23, 42, .72);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #1e293b;
}
.dp-capa[hidden] { display: none; }
.dp-caja {
  width: 100%; max-width: 420px; margin: auto;
  background: #fff; border-radius: 14px; padding: 26px 24px 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
  text-align: center;
}
.dp-icono { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.dp-titulo { font-size: 19px; font-weight: 700; margin: 0 0 8px; color: #0f172a; }
.dp-texto { font-size: 14px; line-height: 1.5; color: #475569; margin: 0 0 12px; }
.dp-chico { font-size: 12.5px; margin: 6px 0 6px; }
.dp-pasos {
  text-align: left; font-size: 13.5px; line-height: 1.45; color: #334155;
  margin: 0 0 12px; padding-left: 22px;
}
.dp-pasos li { margin-bottom: 5px; }
.dp-qr {
  display: inline-block; padding: 8px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 4px;
}
.dp-qr img { display: block; width: 190px; height: 190px; }
.dp-clave {
  display: block; font-family: ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: .5px;
  background: #f1f5f9; border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; word-break: break-all; user-select: all;
}
.dp-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dp-lbl { font-size: 12.5px; font-weight: 600; color: #475569; text-align: left; }
.dp-codigo {
  width: 100%; text-align: center; font-size: 26px; letter-spacing: 8px; font-weight: 600;
  padding: 10px 8px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-family: ui-monospace, Consolas, monospace;
  color: #0f172a; background: #fff;
}
.dp-codigo:focus { outline: 2px solid #2563eb; outline-offset: 1px; border-color: #2563eb; }
.dp-error { color: #dc2626; font-size: 13px; line-height: 1.4; margin: 2px 0 4px; text-align: left; }
.dp-error[hidden] { display: none; }
.dp-btn {
  display: block; width: 100%; padding: 10px 16px; border-radius: 9px; border: 1.5px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 8px;
}
.dp-btn-prim { background: #2563eb; color: #fff; border-color: #2563eb; }
.dp-btn-prim:hover { background: #1d4ed8; }
.dp-btn-sec { background: #fff; color: #475569; border-color: #e2e8f0; }
.dp-btn-sec:hover { background: #f8fafc; }
.dp-btn:disabled { opacity: .55; cursor: not-allowed; }
.dp-ayuda { font-size: 12px; color: #64748b; margin: 14px 0 0; line-height: 1.4; }
.dp-girar {
  width: 34px; height: 34px; margin: 6px auto 4px; border-radius: 50%;
  border: 3px solid #dbeafe; border-top-color: #2563eb; animation: dp-giro .8s linear infinite;
}
@keyframes dp-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dp-girar { animation: none; } }
@media (max-width: 420px) { .dp-caja { padding: 20px 16px 18px; } }
