/* ══ CUSTOM — complementa Tailwind 2.2 ══════════════════════ */

/* Tabs — show/hide */
.tab-section        { display: none; }
.tab-section.active { display: block; }

/* Nav tab buttons */
.tab-btn {
  display: inline-flex; align-items: center;
  padding: 14px 18px;
  font-size: 0.78rem; font-weight: 800;
  color: #6b7280;
  background: transparent; border: none;
  white-space: nowrap; cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
}
.tab-btn:hover  { color: #fff; background: rgba(255,255,255,.06); }
.tab-btn.active { color: #1a1a1a; background: #fbcfe8; border-bottom-color: #ec4899; }

/* Form fields */
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label {
  font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: #374151;
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  padding: 10px 14px; font-size: 0.875rem;
  color: #111827; background: #fff; width: 100%;
  outline: none; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #f9a8d4;
  box-shadow: 0 0 0 3px rgba(249,168,212,.2);
}
.form-field textarea { resize: vertical; min-height: 72px; }

/* Primary button */
.btn-primary {
  display: flex; align-items: center; justify-content: center;
  background: #000; color: #fff;
  border: none; border-radius: 12px;
  padding: 14px 28px;
  font-size: 0.9rem; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: background .2s, transform .1s;
}
.btn-primary:hover  { background: #1f2937; }
.btn-primary:active { transform: scale(.98); }

/* Slider card */
.slider-card {
  background: #fafafa;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  padding: 16px;
}

/* Score badge (circle) */
.score-badge {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.88rem;
  background: #000; color: #fff;
}
.score-badge-green { background: #166534; }

/* Range slider */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: #e5e7eb; outline: none; display: block;
  cursor: pointer;
  border: none !important; box-shadow: none !important; padding: 0 !important;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #000; cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #000; cursor: pointer; border: 3px solid #fff;
}

/* Semaphore pills */
.sem-pill { transition: all .2s; font-weight: 800; }
.sem-alto  { background: #d1fae5; color: #065f46; }
.sem-medio { background: #fef3c7; color: #92400e; }
.sem-bajo  { background: #fee2e2; color: #991b1b; }

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 14px 20px; border-radius: 12px;
  font-weight: 800; font-size: 0.875rem;
  z-index: 9999; max-width: 340px;
  animation: slideUp .3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  font-family: inherit;
}
.toast.ok   { background: #000; color: #fff; border-left: 4px solid #86efac; }
.toast.err  { background: #000; color: #fff; border-left: 4px solid #fca5a5; }
.toast.hidden { display: none; }
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th {
  background: #000; color: #fff;
  padding: 10px 16px; text-align: left;
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fdf2f8; }

/* Badges */
.badge        { padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 800; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-pink   { background: #fce7f3; color: #9d174d; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-gray   { background: #f3f4f6; color: #4b5563; }

/* Section divider */
.section-divider {
  border: none; border-top: 1.5px solid #f3f4f6; margin: 20px 0;
}