/* Botón flotante */
.whatsapp-float-button {
  position: fixed;       
  bottom: 24px;
  right: 24px;
  width: 88px;
  height: 88px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  cursor: pointer;
  z-index: 9999;         
  transition: transform 0.2s ease;
}

.whatsapp-float-button:hover {
  transform: scale(1.05);
}

.whatsapp-float-button i {
  font-size: 48px;
  color: white;
  line-height: 1;
}

/* Chatbox */
.whatsapp-chatbox {
  position: fixed;       
  bottom: 120px;
  right: 20px;           /* Alineado a la derecha de la pantalla */
  width: 300px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;         
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  font-family: 'Segoe UI', sans-serif;
}

/* Header */
.chatbox-header {
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  position: relative;
}

.chat-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background-color: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-right: 10px; /* Espaciado entre logo y título */
}
.chat-title {
  font-weight: bold;
  font-size: 1rem;
  text-align: center;  /* Centra solo el texto */
  margin: 0;  /* Elimina márgenes adicionales */
  padding: 0 10px;  /* Añade un poco de padding en los lados para centrar mejor */
}

.chat-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Body */
.chatbox-body {
  padding: 14px;
  font-size: 0.95rem;
  color: #333;
  background-color: #f9f9f9;
  text-align: left;  /* Deja el texto del cuerpo alineado a la izquierda */
}

/* Footer */
.chatbox-footer {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: #fff;
}

.chatbox-footer input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.chat-send {
  background-color: #25D366;
  color: white;
  padding: 8px 12px;
  margin-left: 8px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
