#odontograma-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 500px; /* Ajusta el ancho del contenedor según tus necesidades */
  margin: 0 auto;
}

.diente {
  width: 50px;
  height: 50px;
  margin: 5px;
  border: 1px solid #ccc;
  position: relative;
}

.seccion {
  width: 100%;
  height: 20%;
  cursor: pointer;
  position: relative; /* Para posicionar el tooltip */
}

.seccion:hover {
  background-color: #eee;
}

.superior {
  border-bottom: 1px solid #ccc;
}

.inferior {
  border-top: 1px solid #ccc;
}

.izquierda {
  border-right: 1px solid #ccc;
}

.derecha {
  border-left: 1px solid #ccc;
}

.caries {
  background-color: rgba(255, 0, 0, 0.5); /* Rojo semitransparente */
}

.obturado {
  background-color: rgba(0, 0, 255, 0.5); /* Azul semitransparente */
}

.extraer {
  background-image: url('ruta/a/la/imagen/cruz-roja.svg'); /* Reemplaza con la ruta a tu imagen */
  background-repeat: no-repeat;
  background-position: center;
}

.extraido {
  background-image: url('ruta/a/la/imagen/cruz-azul.svg'); /* Reemplaza con la ruta a tu imagen */
  background-repeat: no-repeat;
  background-position: center;
}

.corona {
  background-color: rgba(128, 128, 128, 0.5); /* Gris semitransparente */
}

.tratamiento-conducto {
  /* Estilos para el texto "TC" */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
}

.selected {
  border: 2px solid blue;
}

.menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #ccc;
  z-index: 10;
}

.menu button {
  display: block;
  width: 100%;
  padding: 5px;
  border: none;
  text-align: left;
  cursor: pointer;
}

.menu button:hover {
  background-color: #eee;
}

/* Estilos para el tooltip */
.tooltip {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 120%;
  left: 50%;
  margin-left: -30px;
  opacity: 0;
  transition: opacity 0.3s;
}

.seccion:hover .tooltip {
  visibility: visible;
  opacity: 1;
}