/* biometrico.css — estilos del modal del lector biométrico (Web SDK) */

.bio-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  z-index: 9999;
}
.bio-modal.is-visible { display: flex; }

.bio-dialog {
  background: #fff;
  width: 420px;
  max-width: 92vw;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  overflow: hidden;
  font-family: sans-serif;
}

.bio-header {
  display: flex;
  align-items: flex-start; /* alinea arriba por si el texto baja de línea */
  gap: 10px;
  background: #223241;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
}
.bio-header span {
  /* se muestra el texto COMPLETO (multilínea) en vez de recortarlo */
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  line-height: 1.35;
}
.bio-header #bio-estado-sensor    { flex: 0 0 auto; }
.bio-header #bio-estado-plantilla { flex: 1 1 auto; }
.bio-x {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.bio-content { padding: 14px; }

.bio-doc-label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}
.bio-doc-label input,
.bio-doc-label select {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.bio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.bio-actions button {
  flex: 1 1 auto;
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
  background: #2376a2;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.bio-actions button:hover { background: #1b5e82; }

.bio-finger {
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px;
}
.bio-finger img { max-width: 100%; max-height: 220px; }

/* Placeholder de escaneo: aparece al pulsar Asociar/Verificar (huella gris +
   barra de escaneo animada) y se reemplaza por la imagen real del lector. */
.bio-finger.bio-escaneando { position: relative; overflow: hidden; }
.bio-finger.bio-escaneando img { opacity: .35; }
.bio-finger.bio-escaneando::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 10px; height: 3px;
  background: linear-gradient(90deg, transparent, #2376a2 30%, #2376a2 70%, transparent);
  border-radius: 2px;
  animation: bioScan 1.6s ease-in-out infinite;
}
@keyframes bioScan {
  0%   { top: 10px; }
  50%  { top: calc(100% - 13px); }
  100% { top: 10px; }
}

.bio-ayuda {
  margin-top: 10px;
  text-align: center;
}
.bio-ayuda a {
  font-size: 11px;
  color: #6b7b8a;
  text-decoration: underline;
  cursor: pointer;
}
.bio-ayuda a:hover { color: #2376a2; }

.bio-mensaje {
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 12px;
}
.bio-info    { background: #e7f1f7; color: #1b5e82; }
.bio-success { background: #e6f6ea; color: #1e7e34; }
.bio-warning { background: #fff6e0; color: #9a6b00; }
.bio-danger  { background: #fdecea; color: #b71c1c; }
