/* ¿Qué reciben nuestros estudiantes? — tabs */
.deliverables-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2.5rem 0 1.5rem;
}

.deliverables-tab {
  padding: 12px 20px;
  border-radius: var(--r, 8px);
  border: 2px solid var(--gray-light);
  background: white;
  font-size: 14px;
  font-weight: 700;
  color: var(--t2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.deliverables-tab:hover {
  border-color: rgba(91, 33, 182, 0.35);
  color: var(--purple);
}

.deliverables-tab.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.3);
}

.deliverables-panel {
  display: none;
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: var(--rxl, 24px);
  padding: 2rem;
  box-shadow: 0 16px 48px rgba(91, 33, 182, 0.08);
  animation: deliverable-in 0.35s ease;
}

.deliverables-panel.active {
  display: block;
}

@keyframes deliverable-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.deliverable-head {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.deliverable-logo-wrap {
  background: linear-gradient(145deg, #ffffff 0%, #f8f7fc 55%, #f3effe 100%);
  border: 1px solid rgba(91, 33, 182, 0.12);
  border-radius: var(--rl, 16px);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.deliverable-logo {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(91, 33, 182, 0.12));
}

.deliverable-intro h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.deliverable-intro p {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.7;
}

.deliverable-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 1.25rem 0 1.5rem;
}

.deliverable-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 12px;
  background: var(--off-white);
  border-radius: var(--r, 8px);
  border: 1px solid var(--gray-light);
}

.deliverable-feat i {
  color: var(--purple);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.deliverable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.deliverable-actions .btn-secondary {
  cursor: pointer;
  font-family: inherit;
}

/* Training Book — full student portal mock */
.tb-student-mock {
  margin-top: 1.25rem;
  border: 2px solid rgba(91, 33, 182, 0.2);
  border-radius: var(--rl, 16px);
  overflow: hidden;
  background: #f0f4fa;
  box-shadow: 0 12px 40px rgba(30, 39, 97, 0.12);
}

.tb-mock-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(91, 33, 182, 0.08);
  border-bottom: 1px solid rgba(91, 33, 182, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
}

.tb-portal-shell {
  max-height: min(72vh, 640px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tb-portal-topbar {
  background: #1e2761;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.tb-portal-brand {
  font-size: 13px;
  font-weight: 800;
  color: white;
}

.tb-portal-student {
  font-size: 11px;
  font-weight: 700;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
}

.tb-portal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 480px;
}

.tb-portal-sidebar {
  background: white;
  border-right: 1px solid #e2e8f0;
  padding: 12px 0;
}

.tb-portal-nav-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 8px 14px 6px;
}

.tb-portal-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.tb-portal-nav-item i { font-size: 16px; }

.tb-portal-nav-item.active {
  background: #e6f1fb;
  color: #1e2761;
  border-left-color: #1e2761;
  font-weight: 700;
}

.tb-portal-link {
  color: #5b21b6;
  transition: background 0.15s;
}

.tb-portal-link:hover {
  background: rgba(91, 33, 182, 0.08);
}

.tb-link-arrow {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  color: #5b21b6;
}

.tb-nav-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  background: #fcebeb;
  color: #a32d2d;
  padding: 2px 7px;
  border-radius: 10px;
}

.tb-portal-main {
  padding: 16px;
  background: #f0f4fa;
}

.tb-portal-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.tb-portal-section-last { margin-bottom: 0; }

.tb-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e2761;
  margin-bottom: 4px;
}

.tb-section-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.tb-radar-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tb-radar-chart {
  width: min(100%, 300px);
  height: auto;
}

.tb-radar-legend {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tb-radar-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tb-legend-dot.strong { background: #0f6e56; }
.tb-legend-dot.dev { background: #f5a623; }
.tb-legend-dot.focus { background: #5b21b6; }

.tb-phase-banner {
  background: #1e2761;
  color: white;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.tb-phase-banner small {
  font-size: 9px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tb-phase-banner strong {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.tb-ex-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.tb-ex-card:last-child { margin-bottom: 0; }

.tb-ex-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.tb-ex-type {
  font-size: 10px;
  font-weight: 700;
  color: #185fa5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tb-ex-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.tb-ex-card-meta {
  font-size: 11px;
  color: #94a3b8;
}

.tb-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.tb-badge.pending { background: #faeeda; color: #633806; }
.tb-badge.done { background: #e1f5ee; color: #0f6e56; }

.tb-portal-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  background: transparent;
  border: none;
  padding: 0;
}

.tb-tool-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tb-tool-card:hover {
  border-color: rgba(91, 33, 182, 0.45);
  box-shadow: 0 8px 24px rgba(91, 33, 182, 0.12);
  transform: translateY(-2px);
}

.tb-tool-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.tb-tool-name {
  font-size: 13px;
  font-weight: 800;
  color: #1e2761;
  margin-bottom: 4px;
}

.tb-tool-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 8px;
}

.tb-tool-cta {
  font-size: 11px;
  font-weight: 800;
  color: #5b21b6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tb-alice-thread {
  background: #f8f8ff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.tb-alice-msg {
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  max-width: 92%;
}

.tb-alice-msg.bot {
  background: white;
  border: 1px solid rgba(91, 33, 182, 0.15);
  color: #1e293b;
}

.tb-alice-msg.user {
  background: #5b21b6;
  color: white;
  margin-left: auto;
}

.tb-alice-kpi {
  font-size: 10px;
  font-weight: 700;
  color: #5b21b6;
  text-align: center;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tb-inline-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #5b21b6;
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.tb-inline-demo:hover { background: #7c3aed; }

.tb-inline-demo.gold { background: #d97706; }
.tb-inline-demo.gold:hover { background: #f5a623; }

.tb-nexora-card {
  background: linear-gradient(135deg, #0a0a0f, #1a1a28);
  border-radius: 10px;
  padding: 16px;
  color: white;
}

.tb-nexora-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f5a623;
  margin-bottom: 8px;
}

.tb-nexora-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tb-nexora-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tb-progress-bars { display: flex; flex-direction: column; gap: 10px; }

.tb-prog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.tb-prog-row span:first-child { flex: 1; min-width: 0; }
.tb-prog-row span:last-child { width: 32px; text-align: right; color: #5b21b6; font-weight: 800; }

.tb-prog-bar {
  width: 100px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.tb-prog-bar div {
  height: 100%;
  background: linear-gradient(90deg, #5b21b6, #7c3aed);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .tb-portal-layout {
    grid-template-columns: 1fr;
  }

  .tb-portal-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .tb-portal-nav-label { display: none; }

  .tb-portal-nav-item {
    flex: 1 1 auto;
    border-left: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .tb-portal-nav-item.active {
    border-left: none;
  }
}

/* Infinity Engine — highlight block */
.engine-highlight {
  margin-top: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a28 100%);
  border-radius: var(--rl, 16px);
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.engine-highlight p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.engine-highlight strong {
  color: var(--gold);
}

.engine-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 1.25rem;
}

.engine-stat {
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r, 8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.engine-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.engine-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .deliverable-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .deliverable-logo-wrap {
    max-width: 280px;
    margin: 0 auto;
  }
}
