/* === ESTILOS PREGUNTA 3 (2/5) - Plataforma Apple === */

.pregunta-titulo {
  text-align: center;
  color: #7e22ce;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.pregunta-texto {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

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

/* === PESTAÑAS === */
.tab-container {
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
  margin-right: 0.25rem;
}

.tab.active {
  color: #7e22ce;
  border-bottom: 3px solid #7e22ce;
  background-color: #f3f4f6;
}

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

.tab.inactive:hover {
  color: #7e22ce;
  background-color: #f9fafb;
}

/* === TABLA === */
.tabla-apple-container {
  overflow-x: auto;
  margin-bottom: 2rem;
  position: relative;
}

.tabla-apple {
  width: 100%;
  border-collapse: collapse;
  min-width: 950px;
  font-size: 0.85rem;
}

.tabla-apple th {
  padding: 0.7rem 0.5rem;
  text-align: center;
  color: white;
  font-weight: 600;
  border: 1px solid #d1d5db;
}

.tabla-apple .header-procesador,
.tabla-apple .header-total {
  background-color: #9333ea;
}

.tabla-apple .header-poblacion {
  background-color: #7e22ce;
}

.tabla-apple .sub-header {
  background-color: #a855f7;
  color: white;
}

.tabla-apple td {
  border: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
}

.tabla-apple .tipo-procesador {
  text-align: left;
  font-weight: 500;
  padding: 0.6rem 0.5rem;
  background-color: #faf5ff;
  color: #4b5563;
}

.tabla-apple input[type="text"] {
  width: 100%;
  padding: 0.45rem 0.3rem;
  border: none;
  background-color: #f3f4f6;
  text-align: center;
  box-sizing: border-box;
  color: #374151;
}

.tabla-apple .total-celda {
  background-color: #f3e8ff;
  font-weight: 600;
  color: #7e22ce;
}

.tabla-apple .fila-total td {
  background-color: #e9d5ff;
  font-weight: 700;
}

.tabla-apple .fila-total .total-celda {
  background-color: #d8b4fe;
}

/* === BOTONES === */
.boton-consultar {
  position: absolute;
  bottom: -3.5rem;
  right: 0;
  background-color: #10b981;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
  transition: background-color 0.2s;
}

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

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

.boton.siguiente {
  background-color: #9333ea;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(147, 51, 234, 0.3);
  transition: background-color 0.2s;
}

.boton.siguiente:hover {
  background-color: #7e22ce;
}
