.user-profile-container {
  background: #f8fcff;
  border-radius: 2rem;
  box-shadow: 0 6px 24px rgba(37,150,190,0.13);
  max-width: 1400px;
  margin: 2.5rem auto;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  border: 3.5px solid #2596be;
}

/* Diseño de dos columnas */
.user-profile-columns {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.user-profile-left-column,
.user-profile-right-column {
  flex: 1;
  min-width: 0;
}

.user-profile-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #2596be;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e7ef;
}

.user-profile-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #2596be;
  text-align: center;
}

.user-profile-fields {
  margin-bottom: 2.5rem;
}

.user-profile-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  font-size: 1.18rem;
}

.user-profile-label {
  font-weight: 600;
  color: #2596be;
  min-width: 155px;
  width: 155px;
  display: flex;
  align-items: center;
  font-size: 1.13em;
}

.user-profile-value {
  color: #222;
  font-weight: 400;
  text-align: left;
  flex: 1;
  margin-left: 1.2rem;
  word-break: break-word;
}

.user-profile-input {
  width: 70%;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid #d0d7de;
  font-size: 1.1rem;
  background: #f8fafc;
}

.user-profile-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.user-profile-actions .btn {
  font-family: 'Open Sans', Arial, Verdana, sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  padding: 0.8rem 2.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-width: 180px;
  white-space: nowrap;
}

.user-profile-actions .btn.btn-success {
  background: #2ecc40;
  color: #fff;
  border: none;
  padding: 0.8rem 2.5rem;
  min-width: 180px;
  white-space: nowrap;
}

.user-profile-actions .btn.btn-success:hover {
  background: #27ae60;
  color: #fff;
}

.user-profile-actions .btn.btn-danger {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 0.8rem 2.5rem;
  min-width: 180px;
  white-space: nowrap;
}

.user-profile-actions .btn.btn-danger:hover {
  background: #c0392b;
  color: #fff;
}

/* Estilos para botones pequeños (btn-sm) */
.user-profile-form .btn.btn-sm {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  min-width: auto;
  font-size: 0.9rem;
}

.user-profile-form .add-phone-btn a.btn.btn-sm,
.user-profile-form .add-email-btn a.btn.btn-sm,
.user-profile-form .add-bank-account-btn a.btn.btn-sm {
  padding: 0.6rem 1.2rem;
  min-width: 140px;
  white-space: nowrap;
  background: #2596be;
  background-color: #2596be;
  border: none;
  border-color: transparent;
  box-shadow: none;
  outline: none;
  color: #fff;
  margin-top: 0.5rem;
}

.user-profile-form .user-profile-row .add-phone-btn,
.user-profile-form .user-profile-row .add-email-btn,
.user-profile-form .user-profile-row .add-bank-account-btn {
  background: transparent;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.user-profile-form .btn.remove-phone-field,
.user-profile-form .btn.remove-email-field {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  min-width: 90px;
  margin-left: 8px;
}

.user-profile-form .btn.remove-bank-account-field {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  min-width: 200px;
  margin-left: 8px;
}

.btn.btn-modern-view {
  background: #2596be;
  color: #fff;
  border: none;
  font-weight: 500;
  font-size: 1.13rem;
  padding: 0.6rem 1.7rem;
  border-radius: 0.5rem;
}
.btn.btn-modern-view:hover {
  background: #0074d9;
  color: #fff;
}

.btn.btn-modern-edit {
  background: #2ecc40;
  color: #fff;
  border: none;
  font-weight: 500;
  font-size: 1.13rem;
  padding: 0.6rem 1.7rem;
  border-radius: 0.5rem;
}
.btn.btn-modern-edit:hover {
  background: #27ae60;
  color: #fff;
}

.btn-primary {
  font-family: 'Open Sans', Arial, Verdana, sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  padding: 0.6rem 1.7rem;
  border-radius: 0.5rem;
  background: #2596be;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #0074d9;
}

.btn-secondary {
  font-family: 'Open Sans', Arial, Verdana, sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  padding: 0.6rem 1.7rem;
  border-radius: 0.5rem;
  background: #e0e7ef;
  color: #2596be;
  border: none;
}

.btn-secondary:hover {
  background: #b0c4d9;
  color: #222;
}



/* Estilos para cuentas bancarias */
.user-bank-account-field {
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.user-bank-account-field:hover {
  border-color: #2596be;
  box-shadow: 0 2px 8px rgba(37, 150, 190, 0.1);
}

.add-bank-account-btn {
  margin-top: 1rem;
  text-align: center;
}

.user-profile-form .add-bank-account-btn a.btn.btn-primary.btn-sm,
.user-profile-form .add-email-btn a.btn.btn-primary.btn-sm,
.user-profile-form .add-phone-btn a.btn.btn-primary.btn-sm {
  background: #2596be;
  background-color: #2596be;
  border: none;
  border-color: transparent;
  box-shadow: none;
  outline: none;
  color: #fff;
  margin-top: 0.5rem;
}

.user-profile-form .add-bank-account-btn a.btn.btn-sm {
  min-width: 180px;
}

.remove-bank-account-field {
  margin-top: 0.5rem;
  font-size: 0.9em;
  padding: 4px 8px;
}

/* Estilos para campos de email */
.user-emails-fields {
  flex: 1;
  width: 100%;
}

.user-email-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.user-email-field .user-profile-input {
  flex: 3 1 auto;
  width: 0;
  min-width: 0;
  max-width: none;
}

.user-email-field label[for*="is_main"] {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.95rem;
  color: #2596be;
  font-weight: 500;
  user-select: none;
}

.user-email-field label[for*="is_main"] input[type="checkbox"] {
  margin: 0 0.4rem 0 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #2596be;
}

/* Estilos para errores de validación */
.user-profile-form .error-field {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.user-profile-form .error-message {
  color: #dc3545;
  font-size: 0.9em;
  margin-top: 5px;
  font-weight: 500;
}

/* Mejoras para el formulario dinámico */
.user-profile-form .user-profile-row {
  transition: all 0.3s ease;
}

.user-profile-form .person-type-selector,
.user-profile-form .product-type-selector {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 30px;
}

.user-profile-form .person-type-selector label,
.user-profile-form .product-type-selector label {
  font-weight: normal;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin: 0;
}

.user-profile-form .person-type-selector input[type="radio"],
.user-profile-form .product-type-selector input[type="radio"] {
  margin-right: 8px;
  margin-top: 0;
  vertical-align: middle;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
  .user-profile-container {
    max-width: 95%;
    margin: 1.5rem auto;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  
  .user-profile-columns {
    flex-direction: column;
    gap: 2rem;
  }
  
  .user-profile-left-column,
  .user-profile-right-column {
    width: 100%;
  }
  
  .user-profile-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .user-profile-label {
    min-width: auto;
    width: auto;
    margin-bottom: 0.5rem;
  }
  
  .user-profile-value {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  

}
