/*==================================
    WHATSAPP WIDGET
==================================*/

.wa-widget {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
}

/*==============================
NOTIFICACION
==============================*/

.wa-notification {
  position: absolute;
  bottom: 75px;
  right: 0;
  background: #fff;
  color: #333;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  animation: fadeInUp 0.8s;
}

.wa-notification::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -8px;
  border: 8px solid transparent;
  border-top-color: #fff;
}

/*==============================
BOTON
==============================*/

.wa-button {
  width: 65px;
  height: 65px;

  border: none;
  outline: none;

  border-radius: 50%;
  background: #25d366;

  color: #fff;
  font-size: 34px;

  cursor: pointer;

  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);

  transition: 0.3s;

  animation: pulse 2.8s infinite;
}

.wa-button:hover {
  transform: scale(1.08);
}

/*==============================
CHAT
==============================*/

.wa-chat {
  position: absolute;

  bottom: 90px;
  right: 0;

  width: 360px;
  max-width: 95vw;

  background: #fff;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);

  opacity: 0;
  visibility: hidden;

  transform: translateY(30px);

  transition: 0.35s;
}

.wa-chat.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/*==============================
HEADER
==============================*/

.wa-header {
  background: #25d366;

  color: #fff;

  padding: 15px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-header-left img {
  width: 48px;
  height: 48px;

  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.wa-header h5 {
  margin: 0;
  font-size: 17px;
}

.wa-header span {
  font-size: 13px;
}

.wa-header button {
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

/*==============================
BODY
==============================*/

.wa-body {
  background: #ece5dd;

  padding: 18px;
}

.wa-message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.wa-avatar img {
  width: 40px;
  border-radius: 50%;
}

.wa-bubble {
  background: #fff;

  padding: 12px 15px;

  border-radius: 0 15px 15px 15px;

  max-width: 240px;

  font-size: 14px;

  line-height: 1.5;

  box-shadow: 0 4px 10px rgba(159, 18, 18, 0.08);
}

/*==============================
FOOTER
==============================*/

.wa-footer {
  display: flex;
  padding: 12px;
  gap: 10px;
  background: #f7f7f7;
}

.wa-footer input {
  flex: 1;

  border: 1px solid #ddd;

  border-radius: 30px;

  padding: 12px 15px;

  outline: none;
}

.wa-footer button {
  width: 50px;

  border: none;

  border-radius: 50%;

  background: #25d366;

  color: #fff;

  cursor: pointer;

  transition: 0.3s;
}

.wa-footer button:hover {
  transform: scale(1.08);
}

/*==============================
ANIMACIONES
==============================*/

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .wa-widget {
    right: 15px;
    bottom: 85px;
  }

  .wa-chat {
    width: 320px;
  }
}
