:root {
  --primary: #d34b3f;
  --primary-dark: #d34b3f;
  --secondary: #b71a53;
  --success: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --dark: #1f2937;
  --light: #f9fafb;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f8f6f7;
  min-height: 100vh;
  color: #374151;
  -webkit-font-smoothing: antialiased;
}
.bg-primarya{
     background: #15375a;
  }
.bg-successa{
 background: #2d7c95;
  }
.btn-primarya{
  background: #15375a;
  color:#c7d2fe
}
.icon-circle {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #d34b3f, #b71a53);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.icon-circle-sm {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compatibilidad-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
}

.likert-btn {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 12px !important;
  border-width: 2px;
}

.likert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.likert-btn.btn-primary {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.table th {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
}

.progress {
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  transition: width 0.5s ease;
}

.btn {
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

input, select {
  border-radius: 12px !important;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s ease;
}

input:focus, select:focus {
  border-color: #d34b3f !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

.input-group-text {
  border-radius: 12px 0 0 12px !important;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-right: none;
}

.input-group .form-control {
  border-radius: 0 12px 12px 0 !important;
}

.badge {
  font-weight: 500;
  padding: 0.5em 0.8em;
  border-radius: 8px;
}

.rounded-4 {
  border-radius: 16px !important;
}

.rounded-pill {
  border-radius: 50px !important;
}

.alert-info {
  background-color: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #d34b3f;
}

.is-invalid {
  border-color: #ef4444 !important;
  background-image: none !important;
}

.invalid-feedback {
  font-size: 0.8rem;
  color: #ef4444;
}

.swal2-popup {
  border-radius: 16px !important;
}

.swal2-confirm {
  border-radius: 50px !important;
  padding: 12px 32px !important;
  font-weight: 600 !important;
}

.swal2-cancel {
  border-radius: 50px !important;
  padding: 12px 32px !important;
  font-weight: 600 !important;
}

canvas {
  max-height: 300px;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #111827;
    color: #e5e7eb;
  }
  .card {
    background: #1f2937;
    border-color: #374151;
  }
  .card .text-muted {
    color: #9ca3af !important;
  }
  .table {
    color: #e5e7eb;
  }
  .table-light {
    background: #374151;
    color: #e5e7eb;
  }
  input, select {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
  }
  .input-group-text {
    background: #374151;
    border-color: #4b5563;
    color: #9ca3af;
  }
  .bg-light {
    background-color: #1f2937 !important;
  }
}
