/* ===== Arreglos de Impedancias - VoltBox ===== */

/* Variables principales ya están en main.css (solo estilos propios aquí) */

.page-title {
  padding-top: 110px;
}


#circuit-builder {
  margin-bottom: 25px;
  padding: 0;
  border: 0;
  background-color: var(--surface-color);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.circuit-block {
  background-color: var(--background-color);
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  min-width: 280px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.circuit-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.block-elements .element {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-elements input[type="text"] {
  flex: 1;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 1rem;
  color: #333;
}

.block-elements input[type="text"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}


.btn-square {
  width: 25px;
  height: 25px;
  padding: 0;
  margin: 0;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}


.delete-block-button,
.remove-element-button {
  
  margin: 0;
  margin: 0;
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.delete-block-button:hover,
.remove-element-button:hover {
  background-color: var(--color-eliminar-hover);
}

.block-connection {
  margin-top: 1rem;
}

.block-connection label {
  font-weight: 600;
  color: var(--default-color);
  margin-bottom: 0.5rem;
}

.block-connection select {
  width: 100%;
  padding: 0.6rem 2.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
}

.block-equivalent {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1.1rem;
}

#global-connection-selector label {
  font-weight: 600;
  color: var(--default-color);
}

#global-connection-selector select {
  padding: 0.5rem 2rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 1rem;
}

#resultado-equivalente {
  padding: 1.2rem;
  font-size: 1.4rem;
  border-radius: 8px;
  margin-top: 2rem;
  background-color: #e6f7ff;
  border: 2px solid #3498db;
  color: #007b8a;
}


.btn,
.button {
  font-weight: 600;
  border-radius: 6px;
  font-size: 1rem;
}


.btn-circle {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
  background: #333;
}

.circuit-block {
  position: relative;
  padding-top: 2.5rem; /* suficiente espacio para el botón arriba */
}


@media (max-width: 768px) {
  #circuit-builder {
    flex-direction: column;
    align-items: center;
  }

 [data-aos] {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
}
