

/* ============================================================
   mic-modal — Microacciones (Agendar, Editar, Enviar)
   ============================================================ */
.mic-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
.mic-modal[style*="flex"] {
  display: flex;
}
.mic-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 680px;
  max-width: 95vw;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  padding: 22px 28px;
  animation: mic-modal-anim 0.25s ease;
}
.mic-modal-sm { width: 480px; }
.mic-modal-sm .mic-modal-subtitulo {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.mic-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.mic-modal-close:hover { color: #0B1F3A; }
.mic-modal h2,
.mic-modal-h2 {
  font-size: var(--texto-subtitulo);
  font-weight: var(--peso-semi);
  color: #0B1F3A;
  margin: 0 0 3px 0;
}
.mic-modal p,
.mic-modal-subtitulo {
  font-size: var(--texto-chico);
  font-weight: var(--peso-normal);
  color: #888;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf5;
  line-height: 1.5;
}
#mic-info-extra {
  background: #f7f8fa;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: var(--texto-chico);
  font-weight: var(--peso-normal);
  line-height: 1.6;
  color: #0B1F3A;
}
.mic-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #e8edf5;
}
.mic-modal-btn {
  background: #0B1F3A;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 20px;
  font-size: var(--texto-boton);
  font-weight: var(--peso-semi);
  cursor: pointer;
  transition: opacity .15s;
}
.mic-modal-btn:hover    { opacity: .85; }
.mic-modal-btn:active   { transform: translateY(1px); }
.mic-modal-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mic-modal-campo { margin-bottom: 14px; }
.mic-modal-label {
  display: block;
  font-size: var(--texto-etiqueta);
  font-weight: var(--peso-medio);
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.mic-modal-input,
.mic-modal-select {
  width: 100%;
  font-size: var(--texto-chico);
  font-weight: var(--peso-normal);
  color: #0B1F3A;
  background: #f4f7fc;
  border: 1px solid #c5d4ec;
  border-radius: 8px;
  padding: 8px 12px;
  outline: none;
  box-sizing: border-box;
}
.mic-modal-input:focus,
.mic-modal-select:focus { border-color: #0B1F3A; }
.mic-modal-charcount {
  font-size: var(--texto-subtexto);
  font-weight: var(--peso-normal);
  color: #8a9ab0;
  text-align: right;
  margin-top: 4px;
}
.mic-modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
.mic-modal-btn-guardar {
  background: #0B1F3A;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 20px;
  font-size: var(--texto-boton);
  font-weight: var(--peso-semi);
  cursor: pointer;
  transition: opacity .15s;
}
.mic-modal-btn-guardar:hover    { opacity: .85; }
.mic-modal-btn-guardar:disabled { opacity: 0.5; cursor: not-allowed; }
.mic-modal-btn-descartar {
  background: none;
  color: #b91c1c;
  border: 1px solid #e5c5c5;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: var(--texto-boton);
  font-weight: var(--peso-semi);
  cursor: pointer;
  transition: background .15s;
}
.mic-modal-btn-descartar:hover    { background: #fee2e2; }
.mic-modal-btn-descartar:disabled { opacity: 0.5; cursor: not-allowed; }
.mic-modal-body {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.mic-modal-fila {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f8;
}
.mic-modal-fila:last-child { border-bottom: none; }
.mic-modal-valor {
  font-size: var(--texto-chico);
  font-weight: var(--peso-normal);
  color: #0B1F3A;
  line-height: 1.5;
}

/* ============================================================
   tm-eq-modal — Equipo (Agregar y Editar miembro)
   ============================================================ */
.tm-eq-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.tm-eq-modal-overlay.activo {
  display: flex;
}
.tm-eq-modal {
  background: #fff;
  border-radius: 12px;
  width: 680px;
  max-width: 95vw;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  padding: 22px 28px;
  animation: tm-eq-modal-anim 0.25s ease;
}
.tm-eq-modal-titulo {
  font-size: var(--texto-subtitulo);
  font-weight: var(--peso-semi);
  color: #0B1F3A;
  margin: 0 0 3px 0;
}
.tm-eq-modal-subtitulo {
  font-size: var(--texto-chico);
  font-weight: var(--peso-normal);
  color: #888;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf5;
  line-height: 1.5;
}
.tm-eq-modal-cerrar {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.tm-eq-modal-cerrar:hover { color: #0B1F3A; }
.tm-eq-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e8edf5;
  margin-top: 20px;
}
.tm-form-grupo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.tm-form-label {
  font-size: var(--texto-etiqueta);
  font-weight: var(--peso-medio);
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}.tm-form-input {
  border: 1px solid #c5d4ec;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: var(--texto-chico);
  font-weight: var(--peso-normal);
  color: #0B1F3A;
  background: #f4f7fc;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.tm-form-select {
  border: 1px solid #c5d4ec;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: var(--texto-chico);
  font-weight: var(--peso-normal);
  color: #0B1F3A;
  background: #f4f7fc;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}.tm-form-input:focus { border-color: #0B1F3A; }
.tm-form-select:focus { border-color: #0B1F3A; }
.tm-form-input::placeholder { color: #b0bac7; }
.tm-form-fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tm-btn-secundario {
  background: #f0f2f5;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: var(--texto-boton);
  font-weight: var(--peso-semi);
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}
.tm-btn-secundario:hover { background: #e5ecf9; }
.tm-btn-primario {
  background: #0B1F3A;
  border: none;
  border-radius: 8px;
  padding: 7px 20px;
  font-size: var(--texto-boton);
  font-weight: var(--peso-semi);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.tm-btn-primario:hover    { opacity: .85; }
.tm-btn-primario:active   { transform: translateY(1px); }
.tm-btn-primario:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 640px) {
  .tm-form-fila { grid-template-columns: 1fr; }
}
.sg-modal-overlay.activo {
  display: flex;
}

/* ============================================================
   diag-modal — Diagnóstico (Finalizar e Incompleto)
   ============================================================ */
.diag-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
.diag-modal.activo {
  display: flex;
}
.diag-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  padding: 22px 28px;
  text-align: center;
  animation: diag-modal-anim 0.25s ease;
}
.diag-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.diag-modal-close:hover { color: #0B1F3A; }
.diag-modal-titulo {
  font-size: var(--texto-subtitulo);
  font-weight: var(--peso-semi);
  color: #0B1F3A;
  margin: 0 0 3px 0;
}
.diag-modal-detalle {
  font-size: var(--texto-chico);
  font-weight: var(--peso-normal);
  color: #888;
  line-height: 1.6;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf5;
}
.diag-modal-mensaje {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: var(--texto-chico);
  font-weight: var(--peso-normal);
  margin-bottom: 16px;
  line-height: 1.5;
}
.diag-modal-mensaje--ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.diag-modal-mensaje--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.diag-modal-mensaje--progreso {
  text-align: center;
  color: #444;
  font-size: var(--texto-subtexto);
  font-weight: var(--peso-normal);
}
.diag-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.diag-btn-confirmar {
  background: #0B1F3A;
  color: #fff;
  padding: 7px 20px;
  border: none;
  border-radius: 8px;
  font-size: var(--texto-boton);
  font-weight: var(--peso-semi);
  cursor: pointer;
  transition: opacity 0.15s;
  flex: 1;
}
.diag-btn-confirmar:hover    { opacity: .85; }
.diag-btn-confirmar:active   { transform: translateY(1px); }
.diag-btn-confirmar:disabled { opacity: 0.5; cursor: not-allowed; }
.diag-btn-cancelar {
  background: #f0f2f5;
  color: #374151;
  padding: 7px 20px;
  border: none;
  border-radius: 8px;
  font-size: var(--texto-boton);
  font-weight: var(--peso-semi);
  cursor: pointer;
  transition: background 0.15s;
  flex: 1;
}
.diag-btn-cancelar:hover { background: #e5ecf9; }
.diag-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5ecf9;
  border-top-color: #0B1F3A;
  border-radius: 50%;
  animation: diag-spin 0.8s linear infinite;
  margin: 0 auto 10px;
}
@keyframes mic-modal-anim {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tm-eq-modal-anim {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes diag-modal-anim {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes diag-spin { to { transform: rotate(360deg); } }
