/* Contenedores principales */
.ejerreshiperbola-widget,
.modulo-hiperbola {
  max-width: 55em;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* Widget interactivo */
.ejerreshiperbola-widget {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

/* Botones */
.ejerreshiperbola-widget button {
  margin: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.ejerreshiperbola-widget button:hover {
  background: #45a049;
}

/* Ecuación */
#equation {
  margin-top: 1em;
  font-size: 1.2em;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

/* Pasos de solución */
#output {
  text-align: left;
  margin-top: 1rem;
}

/* Gráfico */
#graph-container {
  margin: 20px auto;
  text-align: center;
  display: none;
}

#canvas {
  border: 1px solid #000;
  cursor: grab;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#zoomControl {
  margin-top: 1rem;
  display: none;
}

/* Estilos para pasos */
.step-box {
  background: #f9f9f9;
  border-left: 5px solid #4CAF50;
  padding: 0.8em;
  margin: 0.8em 0;
  border-radius: 0 5px 5px 0;
}

.graph-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
