/* Estilos Diagnóstico de Madurez Digital e IA - Palo Alto & Co. */

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0B0C10;
  color: #d1d5db;
  padding-top: 80px;
}

/* Navbar coherente con index */
.navbar {
  border-bottom: 1px solid #1f2937;
  background-color: #0B0C10;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #00b8d9 !important;
  text-decoration: none;
}

.navbar-brand img {
  height: 42px;
  width: auto;
  margin-right: 8px;
  background: transparent !important;
  border: none !important;
}

/* Sección principal */
.section-diagnostico {
  background-color: #101010;
  padding: 6rem 1rem 4rem;
  min-height: 100vh;
}

.section-diagnostico h2 {
  font-weight: 700;
  color: #e5e7eb;
}

.section-diagnostico p {
  color: #9ca3af;
  max-width: 720px;
  margin: 0.75rem auto 0;
}

/* Tabs */
.nav-tabs {
  border-color: #1f2937;
}

.nav-tabs .nav-link {
  background-color: #111827;
  border-color: #1f2937;
  color: #9ca3af;
  border-radius: 999px;
  margin: 0 0.25rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.nav-tabs .nav-link:hover {
  color: #e5e7eb;
  border-color: #4b5563;
}

.nav-tabs .nav-link.active {
  background-color: #00b8d9;
  color: #000;
  border-color: #00b8d9;
}

/* Títulos de cada nivel */
.tab-pane h4 {
  color: #e5e7eb;
  font-weight: 600;
}

.tab-pane p {
  color: #9ca3af;
}

/* Preguntas */
.pregunta-box {
  background-color: #111827;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #1f2937;
}

.tooltip-icon {
  margin-left: 0.35rem;
  color: #00b8d9;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Select de respuesta */
select.nivelRespuesta,
.form-select.nivelRespuesta {
  background-color: #020617;
  color: #e5e7eb;
  border-color: #374151;
}

select.nivelRespuesta:focus,
.form-select.nivelRespuesta:focus {
  box-shadow: none;
  border-color: #00b8d9;
}

/* Botones */
.btn-chequear {
  background-color: #00b8d9;
  color: #000;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  border: none;
}

.btn-chequear:hover {
  background-color: #00ffff;
  color: #000;
}

.btn-volver {
  border-radius: 999px;
  border: 1px solid #374151;
  color: #e5e7eb;
  padding: 0.6rem 1.5rem;
  background-color: transparent;
  text-decoration: none;
}

.btn-volver:hover {
  background-color: #111827;
  color: #00b8d9;
}

/* Modal resultados */
.modal-content {
  background-color: #020617;
  border: 1px solid #1f2937;
  color: #d1d5db;
}

.modal-header,
.modal-footer {
  border-color: #1f2937;
}

.modal-title {
  font-weight: 600;
}

#nivelFinal h4,
#nivelFinal h5 {
  color: #e5e7eb;
}

#disclaimer {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Dashboard de gráficos */
.dashboard-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Cada tarjeta de gráfico */
.chart-box {
  background-color: #020617;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #1f2937;
  position: relative;
  height: 290px;          /* Alto fijo → evita gráficos achatados */
  overflow: hidden;
}

/* Canvas ocupando todo el contenedor */
.chart-box canvas {
  position: absolute;
  inset: 0;
}

/* Responsivo */
@media (max-width: 992px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }

  .section-diagnostico {
    padding-top: 5rem;
  }
}

@media (max-width: 576px) {
  .nav-tabs .nav-link {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .chart-box {
    height: 260px;
  }
}
