/* === CONTENEDOR GENERAL === */
.pregunta-page {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.pregunta-container {
  width: 90%;
  max-width: 1100px;
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* === TITULOS === */
.pregunta-titulo {
  text-align: center;
  color: #0a2d6e;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.pregunta-texto {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #1f2937;
}

.pregunta-subtexto {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* === PESTAÑAS === */
.tab-container {
  display: flex;
  border-bottom: 3px solid #d1d5db;
  margin-bottom: 1rem;
}

.tab {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  margin-right: 0.25rem;
  font-size: 0.9rem;
}

.tab.active {
  color: #1e40af;
  border: 2px solid #1e40af;
  border-bottom: none;
  background-color: #f3f4f6;
}

.tab.inactive {
  color: #6b7280;
  background-color: #fff;
}

/* === TABLA === */
.tabla-wrapper {
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

.tabla-pc {
  border-collapse: collapse;
  width: 95%;
  text-align: center;
  font-size: 0.83rem;
}

.tabla-pc th,
.tabla-pc td {
  border: 1px solid #d1d5db;
  padding: 0.4rem;
}

.header-procesador,
.header-total {
  background-color: #3b82f6;
  color: white;
  font-weight: 700;
}

.header-poblacion {
  background-color: #9333ea;
  color: white;
  font-weight: 700;
}

.tabla-pc th {
  text-align: center;
}

.tipo-procesador {
  text-align: left;
  background-color: #f9fafb;
  font-weight: 600;
  padding-left: 0.5rem;
}

.tabla-pc input {
  width: 60px;
  text-align: center;
  border: none;
  background-color: #f3f4f6;
  border-radius: 4px;
  padding: 0.2rem;
  font-size: 0.8rem;
  color: #111827;
}

.total-celda {
  background-color: #e0f2fe;
  font-weight: 600;
  color: #1e3a8a;
}

.fila-total td {
  background-color: #bfdbfe;
  font-weight: 700;
}

.fila-total .total-celda {
  background-color: #93c5fd;
}

/* === BOTONES === */
.boton-consultar {
  margin-top: 1rem;
  background-color: #10b981;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  float: right;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.boton-consultar:hover {
  background-color: #059669;
}

.boton-contenedor {
  text-align: right;
  margin-top: 4rem;
}

.boton.siguiente {
  background-color: #2563eb;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.boton.siguiente:hover {
  background-color: #1e3a8a;
}
