@charset "UTF-8";


#wa-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 9999;
}
#wa-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
#wa-float-btn:active { transform: scale(0.96); }
#wa-float-btn svg { width: 36px; height: 36px; }

/* Anillo de pulso */
#wa-float-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.38); opacity: 0; }
  100% { transform: scale(1.38); opacity: 0; }
}

/* Tooltip "¿Necesitas ayuda?" */
#wa-tooltip {
  position: fixed;
  bottom: 40px;
  right: 100px;
  background: #fff;
  color: #075E54;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.15);
  white-space: nowrap;
  z-index: 9998;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
#wa-tooltip::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right: none;
  border-left-color: #fff;
}
#wa-tooltip.show {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Panel formulario ──────────────────────────────────────── */
#wa-panel {
  position: fixed;
  bottom: 102px;
  right: 28px;
  width: 320px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18), 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.72) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.22s ease;
  z-index: 9998;
}
#wa-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.wa-header {
  background: #075E54;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
}
.wa-header-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-header-avatar svg { width: 28px; height: 28px; }
.wa-header-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 !important;
}
.wa-header-info .wa-status {
  font-size: 11px;
  color: #a8e6c0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.wa-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #25D366;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.wa-close {
  position: absolute;
  top: 10px; right: 13px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 3px;
  transition: color 0.15s;
}
.wa-close:hover { color: #fff; }

/* Burbuja de mensaje */
.wa-bubble {
  background: #DCF8C6;
  border-radius: 0 10px 10px 10px;
  padding: 10px 13px;
  margin: 14px 16px 4px;
  font-size: 13px;
  color: #303030;
  line-height: 1.45;
  position: relative;
}
.wa-bubble::before {
  content: '';
  position: absolute;
  top: 0; left: -8px;
  border: 8px solid transparent;
  border-right-color: #DCF8C6;
  border-top: none;
}
.wa-bubble-time {
  font-size: 10px;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

/* Cuerpo del formulario */
.wa-body { padding: 10px 14px 12px; }

.wa-field { margin-bottom: 9px; }
.wa-field label {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 3px;
}
.wa-field input,
.wa-field textarea {
  width: 100%;
  font-size: 13px;
  padding: 8px 11px;
  border: 1.5px solid #e0e0e0;
  border-radius: 9px;
  background: #fafafa;
  color: #222;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  margin: 0 !important;
}
.wa-field input:focus,
.wa-field textarea:focus {
  border-color: #25D366;
  background: #fff;
}
.wa-field input.wa-err,
.wa-field textarea.wa-err,
.wa-field select.wa-err  { border-color: #e53935; }
.wa-field textarea { height: 66px; }

/* Select desplegable */
.wa-field select {
  width: 100%;
  font-size: 13px;
  padding: 8px 32px 8px 11px;
  border: 1.5px solid #e0e0e0;
  border-radius: 9px;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2325D366' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: #222;
  outline: none;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.wa-field select:focus {
  border-color: #25D366;
  background-color: #fff;
}
.wa-field select.wa-placeholder { color: #aaa; }
.wa-field select option          { color: #222; }

.wa-err-msg {
  font-size: 10.5px;
  color: #e53935;
  margin-top: 2px;
  display: none;
}
.wa-err-msg.show { display: block; }

/* reCAPTCHA container */
.wa-recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 10px;
  min-height: 78px;
}
/* Mensaje de error del captcha */
#wa-err-captcha {
  font-size: 10.5px;
  color: #e53935;
  text-align: center;
  margin-bottom: 8px;
  display: none;
}
#wa-err-captcha.show { display: block; }

/* Botón enviar */
#wa-send-btn {
  width: 100%;
  padding: 11px;
  background: #e0e0e0;
  color: #aaa;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: not-allowed;
  transition: background 0.25s, color 0.25s, transform 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
}
#wa-send-btn.wa-active {
  background: #25D366;
  color: #fff;
  cursor: pointer;
}
#wa-send-btn.wa-active:hover { background: #1ebe5d; }
#wa-send-btn.wa-active:active { transform: scale(0.97); }
#wa-send-btn svg { width: 17px; height: 17px; }

/* Footer */
.wa-footer {
  padding: 6px 14px 11px;
  font-size: 9.5px;
  color: #bbb;
  text-align: center;
}

/* ─── Responsive móvil ──────────────────────────────────────── */
@media (max-width: 380px) {
  #wa-panel { right: 12px; width: calc(100vw - 24px); }
  #wa-float-btn { right: 16px; bottom: 20px; }
}
