.floatingMenu {
  position: fixed;
  bottom: 20px;
  right: calc(50% - 25px);
  z-index: 200;
}

#mainButton {
  background-color: #77bb4d;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

#mainButton:hover {
  background-color: #67a541;
}

.socialButtons {
  display: flex;
  position: absolute;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.socialIcon {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border: 2px solid #ccc;
  border-radius: 50%;
  color: #333;
  text-align: center;
  line-height: 36px;
  font-size: 20px;
  cursor: pointer;
  justify-content: center;
  display: flex;
  align-items: center;
}
.socialIcon:hover[href*="facebook.com/"] {
  background-color: #1877F2;
  border-color: #1877F2;
}
.socialIcon:hover[href*="youtube.com/"], .socialIcon.youtube:hover {
  background-color: #ff0033;
  border-color: #ff0033;
}
.socialIcon:hover[href*="x.com/"] {
  background-color: #000;
  border-color: #000;
}
.socialIcon:hover[href*="instagram.com/"] {
  background-color: #E4405F;
  border-color: #E4405F;
}
.socialIcon:hover[href*="linkedin.com/"] {
  background-color: #0A66C2;
  border-color: #0A66C2;
}
.socialIcon:hover{
  color: #fff;
  text-decoration: none;
}


/* Posición vertical por defecto */
.socialButtons.open {
  opacity: 1;
  pointer-events: all;
  flex-direction: row;
  /* bottom: 60px;
  right: 0; */
}

.socialButtons {
  flex-direction: row;
  right: calc(50% - 70px);
  top: -45px;
  opacity: 0;
}
.socialButtons.open {
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .floatingMenu:not(.separated) {
    right: 20px;
  }
  .floatingMenu.separated {
    right: 100px;
  }
  .floatingMenu .socialButtons {
    top: 4px;
    right: auto;
    left: -160px;
  }
}