* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* CONTENEDOR ESQUINA IZQUIERDA */
#wa-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;               /* ← esquina IZQUIERDA */
  display: flex;
  flex-direction: column;   /* chat arriba, botón abajo */
  align-items: flex-start;  /* pegado al borde izquierdo */
  z-index: 9999;
}

/* VENTANA */
#wa-chat {
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.25s, transform 0.25s;
  margin-bottom: 12px;
}

#wa-chat.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* CABECERA */
.wa-header {
  background: #075E54;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.wa-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-name {
  font-size: 16px;
  font-weight: 700;
}

.wa-status {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 2px;
}

.wa-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* CUERPO CON PATRÓN */
.wa-body {
  background: url("/whats/backWhats.jpg");
  background-size: contain;
  padding: 18px 16px 110px;
  position: relative;
}

/* BURBUJA DE MENSAJE */
.wa-bubble {
  background: #fff;
  border-radius: 0 10px 10px 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #444;
  max-width: 220px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  position: relative;
}

.wa-bubble:before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #fff;
}

/* CTA CENTRAL */
.wa-cta {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

.wa-cta:hover {
  background: #24c15d;
}

.wa-cta i {
  font-size: 20px;
  color: #fff;
}

/* BOTÓN FLOTANTE */
#wa-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

#wa-toggle:hover {
  transform: scale(1.06);
}

#wa-toggle i {
  font-size: 30px;
  color: #fff;
}