/* ============================================
   ESTILOS DEL WIDGET DE CIRCUNFERENCIA
============================================ */

.crcircle-widget {
font-family: "TeX Gyre Pagella", serif;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 12px 14px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  box-sizing: border-box;
}

.crcircle-widget h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  text-align: center;
  color: #2a365d;
}

.crcircle-canvas {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: block;
}

.crcircle-footnote {
  margin-top: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

/* Controles generales */
.crcircle-controls {
  margin-top: 10px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crcircle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.crcircle-input {
  width: 52px;
  padding: 3px 4px;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #aaa;
  text-align: center;
}

.crcircle-button {
  padding: 5px 12px;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #2a365d;
  background: #2a365d;
  color: white;
  cursor: pointer;
}

.crcircle-button:hover {
  background: #3b4e85;
}

.crcircle-button-secondary {
  border-color: #777;
  background: #eee;
  color: #222;
}

.crcircle-button-secondary:hover {
  background: #ddd;
}

.crcircle-result {
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
}

.crcircle-zoom-slider {
  flex: 1;
}

.crcircle-zoom-label {
  white-space: nowrap;
  font-size: 0.85rem;
}


/* CAJA DE LA ECUACIÓN — estilo ajustado a widget 1 */
.crcircle-equation-box {
  min-height: 2.6rem;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #2e165f;
  text-align: center;
}
