/* Widget flotante: WhatsApp + Ayuda */

.help-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.help-widget-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  color: #fff;
}

.help-widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.help-widget-btn--whatsapp {
  background-color: #25D366;
}

.help-widget-btn--chat {
  background-color: #344767; /* ajusta a tu color de marca si quieres otro azul/gris */
}

/* Panel emergente de ayuda */
.help-widget-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1049;
  display: none;
  animation: help-panel-in 0.25s ease;
}

.help-widget-panel.is-open {
  display: block;
}

@keyframes help-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.help-widget-panel__header {
  background: linear-gradient(135deg, #1a2b4c, #344767);
  color: #fff;
  padding: 20px;
  position: relative;
}

.help-widget-panel__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.help-widget-panel__close:hover {
  opacity: 1;
}

.help-widget-panel__greeting {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.help-widget-panel__subtext {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
}

.help-widget-panel__body {
  padding: 20px;
  text-align: center;
}

.help-widget-panel__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: -44px auto 10px;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.help-widget-panel__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2a2a2a;
  margin-bottom: 14px;
}

.help-widget-panel__action {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.help-widget-panel__action--whatsapp {
  background-color: #25D366;
  color: #fff;
}

.help-widget-panel__action--contact {
  background-color: #f0f2f5;
  color: #344767;
}

@media (max-width: 480px) {
  .help-widget-panel {
    right: 16px;
    bottom: 90px;
    width: calc(100vw - 32px);
  }
  .help-widget-container {
    bottom: 16px;
    right: 16px;
  }
}

.help-widget-chat {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

.help-widget-chat__messages {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-widget-chat__msg {
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 85%;
  line-height: 1.35;
}

.help-widget-chat__msg--bot {
  background: #f0f2f5;
  color: #2a2a2a;
  align-self: flex-start;
}

.help-widget-chat__msg--user {
  background: #344767;
  color: #fff;
  align-self: flex-end;
}

.help-widget-chat__form {
  display: flex;
  border-top: 1px solid #eee;
}

.help-widget-chat__input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 0.82rem;
  outline: none;
}

.help-widget-chat__send {
  border: none;
  background: #344767;
  color: #fff;
  width: 44px;
  cursor: pointer;
}