body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #FFFFFF;
}

/* Contenedores base */
.container {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border: 1px solid #D1D5DB;
}

/* ===== SISTEMA DE BOTONES BOSQUES BIODIVERSOS ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 50px; /* Pill shape */
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Tamaños de botones */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
}

/* Variantes de color - Bosques Biodiversos */
.btn-primary {
  background-color: #0C123D;
  color: white;
  border: 2px solid #0C123D;
}

.btn-primary:hover {
  background-color: #1E3A8A;
  border-color: #1E3A8A;
  color: white;
}

.btn-secondary {
  background-color: #336633;
  color: white;
  border: 2px solid #336633;
}

.btn-secondary:hover {
  background-color: #4C8C4C;
  border-color: #4C8C4C;
  color: white;
}

.btn-success {
  background-color: #336633;
  color: white;
  border: 2px solid #336633;
}

.btn-success:hover {
  background-color: #4C8C4C;
  border-color: #4C8C4C;
  color: white;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: 2px solid #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
  color: white;
}

.btn-warning {
  background-color: #ffc107;
  color: #212529;
  border: 2px solid #ffc107;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #212529;
}

.btn-info {
  background-color: #0C123D;
  color: white;
  border: 2px solid #0C123D;
}

.btn-info:hover {
  background-color: #1E3A8A;
  border-color: #1E3A8A;
  color: white;
}

/* ===== SISTEMA DE FORMULARIOS BOSQUES BIODIVERSOS ===== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  font-family: 'Montserrat', sans-serif;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  background-color: #FFFFFF;
}

.form-control:focus {
  outline: none;
  border-color: #0C123D;
  box-shadow: 0 0 0 2px rgba(12, 18, 61, 0.1);
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-family: 'Montserrat', sans-serif;
}

.form-help,
.form-text {
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 0.25rem;
  font-family: 'Montserrat', sans-serif;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #D1D5DB;
}

/* ===== SISTEMA DE ALERTAS BOSQUES BIODIVERSOS ===== */
.alert {
  padding: 16px 20px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  border-left: 4px solid;
  font-family: 'Montserrat', sans-serif;
}

.alert-success {
  background-color: #F0FDF4;
  color: #166534;
  border-left-color: #336633;
  border-color: #BBF7D0;
}

.alert-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border-left-color: #dc3545;
  border-color: #FECACA;
}

.alert-warning {
  background-color: #FFFBEB;
  color: #92400E;
  border-left-color: #ffc107;
  border-color: #FDE68A;
}

.alert-info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border-left-color: #0C123D;
  border-color: #DBEAFE;
}

/* ===== SISTEMA DE BADGES BOSQUES BIODIVERSOS ===== */
.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.badge-success {
  background-color: #F0FDF4;
  color: #166534;
}

.badge-secondary {
  background-color: #F3F4F6;
  color: #6B7280;
}

.role-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 50px;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

/* Colores específicos por rol - Bosques Biodiversos */
.role-administrador_general,
.badge-administrador_general {
  background-color: #0C123D;
}

.role-administrador,
.badge-administrador {
  background-color: #336633;
}

.role-mandatario,
.badge-mandatario {
  background-color: #92400E;
}

.role-concesionario,
.badge-concesionario {
  background-color: #991B1B;
}

.role-usuario,
.badge-usuario {
  background-color: #6B7280;
}

.role-comprador,
.badge-comprador {
  background-color: #0F766E;
}

/* ===== ESTADOS Y STATUS ===== */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
}

.status-active {
  background-color: #F0FDF4;
  color: #166534;
}

.status-inactive {
  background-color: #FEF2F2;
  color: #991B1B;
}

.status-completado {
  background-color: #F0FDF4;
  color: #166534;
}

.status-borrador {
  background-color: #FFFBEB;
  color: #92400E;
}

.status-pendiente {
  background-color: #FEF2F2;
  color: #991B1B;
}

/* ===== TIPOGRAFÍA BOSQUES BIODIVERSOS ===== */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0C123D;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #0C123D;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #336633;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
}

/* ===== UTILIDADES COMUNES ===== */
.text-center {
  text-align: center;
}

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* ===== ANIMACIONES SUAVES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .container {
    padding: 20px;
    margin: 10px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* ===== COLORES DE FONDO BOSQUES BIODIVERSOS ===== */
.bg-light {
  background-color: #F9FAFB;
}

.bg-white {
  background-color: #FFFFFF;
}

.bg-primary {
  background-color: #0C123D;
  color: white;
}

.bg-success {
  background-color: #336633;
  color: white;
}

.bg-danger {
  background-color: #dc3545;
  color: white;
}

/* ===== SOMBRAS SUAVES ===== */
.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== BORDES SUAVES ===== */
.border {
  border: 1px solid #D1D5DB;
}

.border-top {
  border-top: 1px solid #D1D5DB;
}

.border-bottom {
  border-bottom: 1px solid #D1D5DB;
}

.border-left {
  border-left: 1px solid #D1D5DB;
}

.border-right {
  border-right: 1px solid #D1D5DB;
}

.rounded {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-xl {
  border-radius: 16px;
}

/* ===== Estilo Breadcrumb ===== */
.breadcrumb-wrapper {
  padding: 10px 20px 0 0;
  text-align: right;
}

.breadcrumb-custom {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3b7b64;
}

.breadcrumb-link {
  color: #3b7b64;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #064e3b;
}

.breadcrumb-separator {
  margin: 0 0.1rem;
  color: #3b7b64;
}

.breadcrumb-current {
  color: #064e3b;
}

.bi {
  font-style: normal;
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  vertical-align: middle;
}