/* Widget Flotante de WhatsApp */
#wa-widget-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999999;
  font-family: system-ui, -apple-system, sans-serif;
}

.wa-float-btn {
  display: flex;
  align-items: center;
  background-color: #25d366;
  border: none;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.wa-hover-text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 0;
}

.wa-float-btn:hover {
  border-radius: 16px;
  padding: 8px 12px 8px 16px;
}

.wa-float-btn:hover .wa-hover-text {
  max-width: 150px;
  opacity: 1;
  padding-right: 10px;
}

.wa-icon-box {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-official-logo {
  width: 32px;
  height: 32px;
  display: block;
}

.wa-modal {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background: #e8f9f0;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: waPopIn 0.25s ease-out forwards;
}

.wa-modal.active {
  display: flex;
}

@keyframes waPopIn {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-modal-header {
  background-color: #25d366;
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.wa-header-title .wa-official-logo {
  width: 24px;
  height: 24px;
}

.wa-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.wa-modal-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-agent-title {
  font-size: 12px;
  color: #666;
  margin-left: 4px;
}

.wa-chat-bubble {
  background: white;
  padding: 14px 16px;
  border-radius: 4px 16px 16px 16px;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.wa-modal-footer {
  padding: 0 16px 16px 16px;
}

.wa-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  padding: 8px 8px 8px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease;
}

.wa-action-btn:hover {
  background-color: #20bd5a;
}

.wa-arrow-badge {
  background-color: #16b04e;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.wa-arrow-icon {
  width: 18px;
  height: 18px;
  color: white;
  transition: transform 0.25s ease;
}

.wa-action-btn:hover .wa-arrow-badge {
  transform: translateX(3px);
}

.wa-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: waRotation 0.8s linear infinite;
}

@keyframes waRotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wa-action-btn.loading .wa-arrow-badge {
  transform: translateX(4px);
}

.wa-action-btn.loading .wa-arrow-icon {
  display: none;
}

.wa-action-btn.loading .wa-loader {
  display: block;
}
