/* Estilos generales para el pop-up del chat */
.popup-whatsapp {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  padding: 15px;
  border-radius: 15px;
  background-color: #ffffff;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  z-index: 1001;
  opacity: 0;
  transform: translateY(10px);
  border: 1px solid #e0e0e0; /* Agregado: Borde sutil */
}

/* Mostrar el chat cuando está activo */
.is-active-whatsapp-popup {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.4s ease-in-out;
}

/* Cabecera del chat */
.content-whatsapp.-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 2px solid #25d366;
  background: #f0f0f0;
  border-radius: 15px 15px 0 0;
}

/* Imagen del avatar */
.content-whatsapp.-top img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #25d366; /* Agregado: Borde verde para resaltar */
}

/* Estilo del texto de bienvenida */
.content-whatsapp.-top p {
  flex: 1;
  font-size: 16px;
  color: #333;
  margin-left: 10px;
  font-weight: bold;
}

/* Botón de cerrar */
.closePopup {
  cursor: pointer;
  font-size: 18px;
  color: #555;
  transition: color 0.3s;
  border: none;
  background: none;
}

.closePopup:hover {
  color: #e74c3c;
}

/* Caja de entrada de texto */
.whats-input {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  background-color: #f9f9f9;
  transition: border 0.3s;
}

.whats-input:focus {
  border: 1px solid #25d366;
}

/* Botón de enviar mensaje */
.send-msPopup {
  margin-top: 10px;
  width: 100%;
  background-color: #25d366;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
}

.send-msPopup i {
  font-size: 20px;
  margin-left: 5px;
}

.send-msPopup:hover {
  background-color: #1eb453;
  transform: scale(1.05);
}
.whatsapp-button {
  border: none !important;
  outline: none !important;
  box-shadow: 0px 0px 15px rgba(37, 211, 102, 0.7) !important; /* Manteniendo el resplandor verde */
}

/* Botón flotante de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0px 0px 15px rgba(37, 211, 102, 0.7);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  animation: floatButton 2s infinite ease-in-out;
}

/* Hover con efecto brillante */
.whatsapp-button:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
  box-shadow: 0px 0px 20px rgba(37, 211, 102, 0.9);
}

/* Animación de flotación */
@keyframes floatButton {
  0% {
    transform: translateY(0);
    box-shadow: 0px 0px 15px rgba(37, 211, 102, 0.7);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0px 0px 25px rgba(37, 211, 102, 0.9);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0px 0px 15px rgba(37, 211, 102, 0.7);
  }
}

/* Animación de aparición */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividad */
@media (max-width: 400px) {
  .popup-whatsapp {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }
}
