/* 🔘 Botón flotante de telegram */
.telegram-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background-color: #29a9ea;
  border-radius: 50%;
  display: flex; /* Centrado horizontal y vertical */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s ease-out, transform 0.5s ease-out;
}

/* ✅ Activación de animación */
.telegram-button.visible {
  opacity: 1;
  transform: scale(1);
}

/* 🪄 Hover: ligero aumento de tamaño */
.telegram-button:hover {
  transform: scale(1.1);
}

/* 🎯 Icono SVG o imagen centrada */
.telegram-button img,
.telegram-button svg {
  width: 30px;
  height: 30px;
  display: block;
  margin: 0;
  padding: 0;
}

/* 💬 Tooltip emergente al pasar el cursor */
.telegram-button::after {
  content: "¿Necesitas ayuda?";
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: #333;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

/* 💡 Mostrar mensaje en hover */
.telegram-button:hover::after {
  opacity: 1;
  transform: translateY(0);
}
