/* Perfil usuario — modal matriz */
.overlay-perfil {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.overlay-perfil.visible { display: flex; }

.perfil-modal {
  position: relative;
  width: min(420px, 94vw);
  display: flex;
  flex-direction: column;
  padding: 20px 20px 14px;
}

.perfil-cerrar {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}

.perfil-modal > h2 {
  margin: 0 0 4px;
  padding-right: 28px;
  font-size: 15px;
  font-weight: 600;
}

.perfil-sub {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--steel-sub, #8b97a8);
}

.perfil-section {
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
}

.perfil-section-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel-sub, #8b97a8);
}

.perfil-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--steel-sub, #8b97a8);
  line-height: 1.35;
}

.perfil-clave-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.perfil-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #8b97a8;
}

.perfil-field:last-child { margin-bottom: 0; }

.perfil-field input {
  height: 28px;
  box-sizing: border-box;
  width: 100%;
  background: #0f1117;
  border: 1px solid #2a3142;
  border-radius: 3px;
  color: #c8d0dc;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
}

.perfil-field input:focus {
  border-color: rgba(94, 184, 154, 0.55);
  box-shadow: 0 0 0 1px rgba(94, 184, 154, 0.2);
}

.perfil-field input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.perfil-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.perfil-spacer { flex: 1; }

.perfil-save--idle {
  background: #1a1f2a !important;
  border-color: #2a3142 !important;
  color: #6a7588 !important;
}
