/* --- BOTÓN FLOTANTE --- */
#whatsapp-button {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1000;
}
#whatsapp-button:hover {.chat-btn
  transform: scale(1.1);
}
#whatsapp-button img {
  width: 34px;
  height: 34px;
}

/* --- VENTANA DE CHAT --- */
#whatsapp-chat {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 320px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  display: none;
  animation: fadeIn 0.25s ease;
  z-index: 1001;
}

/* Encabezado */
.chat-header {
  background-color: #25D366;
  color: white;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  position: relative;
}
.chat-header .logo {
  width: 20px;
  margin-right: 10px;
}
.chat-header span {
  font-weight: 600;
  flex-grow: 1;
}
#close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}

/* Cuerpo */
.chat-body {
  padding: 15px;
  background: #f9f9f9;
}
.message {
  background: white;
  border-radius: 10px;
  padding: 10px 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: inline-block;
  margin-bottom: 15px;
}
.message p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

/* Botón abrir chat */
.chat-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 25px;
  transition: opacity 0.2s ease, transform 0.1s ease;
  user-select: none;
}
.chat-btn:hover {
  opacity: 0.7;
  text-decoration: none;
}
.chat-btn:active {
  transform: scale(0.98);
  opacity: 0.7;
  text-decoration: none;
}
.chat-btn:focus,
.chat-btn:visited {
  color: white;
  text-decoration: none;
  outline: none;
}
.chat-btn span {
  font-size: 14px;
  margin-right: 6px;
}
.send-icon {
  width: 16px;
  height: 16px;
  transform: rotate(-20deg);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
