/* ==========================================
   ESTILOS PANEL DIRECTIVO & FACILITADOR NOSCE™
   ========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
  line-height: 1.5;
}

.pro-navbar {
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 30px;
}

.pro-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pro-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pro-logo {
  height: 38px;
  width: auto;
}

.pro-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.pro-user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-status {
  font-size: 0.8rem;
  color: #4ade80;
}

.btn-back-hub {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.btn-back-hub:hover {
  color: #ffffff;
}

.pro-main-container {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

.pro-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}

.pro-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

.pro-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
}

.btn-template-trigger {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.templates-panel {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.templates-panel.hidden {
  display: none;
}

.templates-panel h3 {
  font-size: 0.95rem;
  color: #38bdf8;
  margin-bottom: 15px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.template-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.template-card:hover {
  border-color: #38bdf8;
}

.template-card h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.template-card p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.btn-apply-template {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
}

.pro-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #334155;
  margin-bottom: 25px;
}

.tab-btn {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.config-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 22px;
}

.config-card h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #f1f5f9;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 10px;
  color: #ffffff;
  font-size: 0.88rem;
}

.form-row {
  display: flex;
  gap: 15px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  display: flex;
  gap: 10px;
  background: #0f172a;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  cursor: pointer;
}

.radio-option strong {
  display: block;
  font-size: 0.85rem;
}

.radio-option span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.help-text {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 10px;
}

/* MATRIZ DE TESTS CON MINIATURAS FOTORREALISTAS */
.tests-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.selected-counter {
  font-size: 0.9rem;
  color: #38bdf8;
}

.pro-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.test-select-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.test-select-card:hover {
  background: #334155;
  border-color: #38bdf8;
}

.test-thumb {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.test-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  display: block;
}

.test-select-body h4 {
  font-size: 0.88rem;
  margin: 2px 0 4px 0;
  line-height: 1.25;
}

.type-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.type-badge.multi {
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
}

.type-badge.single {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

/* TABLA DE SEGUIMIENTO DEL COACH */
.cohort-summary-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.cohort-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cohort-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.cohort-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cohort-count {
  font-size: 0.82rem;
  color: #4ade80;
  font-weight: 600;
}

.btn-export-cohort {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-export-cohort:hover {
  background: #0369a1;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.pro-table th, .pro-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.pro-table th {
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.cip-code {
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.status-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 10px;
}

.status-badge.completed {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.status-badge.pending {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}

.btn-table-view {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-table-view:hover {
  background: rgba(56, 189, 248, 0.3);
}

.btn-table-remind {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-table-remind:hover {
  background: rgba(251, 146, 60, 0.3);
}

/* BENCHMARKING PONDERADO */
.analytics-container {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 22px;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-center;
  margin-bottom: 20px;
}

.analytics-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

.select-test-view {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.analysis-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.analysis-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.multi-pill {
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.single-pill {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.analytics-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.highlight-cip {
  color: #38bdf8;
}

.variable-breakdown {
  margin-bottom: 25px;
}

.variable-breakdown h5 {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.benchmark-bar-wrapper {
  position: relative;
  padding: 20px 0;
}

.benchmark-bar {
  height: 10px;
  background: #334155;
  border-radius: 5px;
  position: relative;
}

.group-mean-marker {
  position: absolute;
  top: -25px;
  transform: translateX(-50%);
  border-left: 2px dashed #fb923c;
  height: 40px;
  z-index: 2;
}

.marker-label {
  position: absolute;
  top: -16px;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: #fb923c;
  white-space: nowrap;
  font-weight: 700;
}

.cip-dot.my-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #38bdf8;
  border: 2px solid #ffffff;
  font-size: 0.68rem;
  font-weight: bold;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: 12px;
  z-index: 3;
}

.cip-dot.my-dot.improvement-dot {
  background: #f87171;
  color: #ffffff;
}

.cip-dot.my-dot.neutral-dot {
  background: #fb923c;
  color: #ffffff;
}

.insight-row {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.insight.positive { color: #4ade80; }
.insight.improvement { color: #f87171; }
.insight.neutral { color: #38bdf8; }