/* ===== WhatsApp Widget ===== */
.x-widget-whatsapp {
  position: fixed;
  bottom: 13%;
  right: 13px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* ---- Burbuja principal ---- */
.xww-toggle {
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
  user-select: none;
  border: 1px solid #25D366;
}

.xww-toggle:hover {
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* Icono WhatsApp */
.xww-icon-wa,
.xww-icon-close {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.xww-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.xww-toggle.is-open .xww-icon-wa {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.xww-toggle.is-open .xww-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ---- Lista de contactos ---- */
.xww-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  pointer-events: none;
}

.xww-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 50px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateX(20px) scale(0.95);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.2s ease;
}

.xww-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.26);
  transform: translateX(0) scale(1.02) !important;
}

/* Estado abierto */
.xww-box.is-open .xww-item {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

/* Stagger delay por ítem (hasta 8) */
.xww-box.is-open .xww-item:nth-child(1) { transition-delay: 0.04s; }
.xww-box.is-open .xww-item:nth-child(2) { transition-delay: 0.09s; }
.xww-box.is-open .xww-item:nth-child(3) { transition-delay: 0.14s; }
.xww-box.is-open .xww-item:nth-child(4) { transition-delay: 0.19s; }
.xww-box.is-open .xww-item:nth-child(5) { transition-delay: 0.24s; }
.xww-box.is-open .xww-item:nth-child(6) { transition-delay: 0.29s; }
.xww-box.is-open .xww-item:nth-child(7) { transition-delay: 0.34s; }
.xww-box.is-open .xww-item:nth-child(8) { transition-delay: 0.39s; }

/* Icono WA pequeño junto al label */
.xww-item-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}