/* ESTILOS PARA EL BOTÓN Y CHAT DE WHATSAPP */
.whatsapp-button {
  position: fixed !important;
  display: flex !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 100001 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background-color: #25d366 !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease, bottom 0.3s ease !important;
}

.whatsapp-button img {
  width: 35px !important;
  height: 35px !important;
}

/* Ajustes específicos para la posición del chat de WhatsApp */
.whatsapp-chat {
  position: fixed !important;
  right: 20px !important;
  bottom: 90px !important; /* Posición por encima del botón */
  width: 300px !important;
  max-width: 85vw !important;
  background-color: white !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
  display: none !important;
  flex-direction: column !important;
  z-index: 100002 !important;
}

.chat-header {
  background-color: #25d366;
  color: white;
  padding: 15px;
  position: relative;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.chat-header span {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  opacity: 0.8;
}

.chat-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.chat-body {
  padding: 15px;
  min-height: 80px;
  max-height: 250px;
  overflow-y: auto;
  background-image: url('../wasa.webp');
}

.chat-message {
  background-color: #e1ffc7;
  padding: 10px 12px;
  border-radius: 7px;
  position: relative;
  max-width: 85%;
  align-self: flex-end;
  margin-left: auto;
  font-size: 14px;
  line-height: 1.4;
}

.chat-footer {
  padding: 16px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-footer a {
  background-color: #1fad53;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.chat-footer a:hover {
  background-color: #1ebd5a;
}

.online-status {
  display: flex;
  align-items: center;
  margin: 0 16px 16px 16px;
  font-size: 0.8rem;
  color: #333;
}

.online-dot {
  width: 8px;
  height: 8px;
  background-color: #25d366;
  border-radius: 50%;
  margin-right: 6px;
}

/* Estilos para el menú adicional y su animación */
.additional-menu {
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  padding: 15px;
  z-index: 10000;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-item {
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover, .menu-item:active {
  background-color: #f9f9f9;
  color: #25d366;
}
