.configuracion-view {
  max-width: 1400px;
  margin: 0 auto;
}

.header-section {
  margin-bottom: 2rem;
}

.header-section h1 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.config-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.config-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-main);
  font-size: 1.25rem;
}

.config-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: var(--bg-main);
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Modal Layout Specifics to match the image */
.modal-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-form-section {
  background-color: #f0f7ff;
  /* Light blue background */
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #cce5ff;
}

.form-title {
  color: #3182ce;
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 500;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
}

.form-group.full-width {
  width: 100%;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
}

.form-actions-right {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-save {
  background: #3182ce;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.btn-save:hover {
  background: #2b6cb0;
}

.btn-cancel-edit {
  background: transparent;
  color: #718096;
  border: 1px solid #cbd5e0;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

/* List Table */
.config-list-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
}

.config-table {
  width: 100%;
  border-collapse: collapse;
}

.config-table th {
  background: #f7fafc;
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.9rem;
  border-bottom: 1px solid #e2e8f0;
}

.config-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #2d3748;
  font-size: 0.9rem;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #a0aec0;
}

.btn-icon {
  background: transparent;
  border: none;
  color: #3182ce;
  cursor: pointer;
  margin-left: 0.5rem;
}

.btn-icon.delete {
  color: #e53e3e;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.btn-close-modal {
  background: #e2e8f0;
  color: #4a5568;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.btn-close-modal:hover {
  background: #cbd5e0;
}

.context-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.context-pill.propiedad {
  background-color: #e0f2fe;
  color: #0369a1;
}

.context-pill.emprendimiento {
  background-color: #f0fdf4;
  color: #15803d;
}

.context-pill.ambos {
  background-color: #f5f3ff;
  color: #5b21b6;
}