/* ==========================================================================
   VisionConta — burbuja publica "Habla con un asesor" (Conty)
   Ver static/js/marketing_leads_widget.js y docs/leads_web_diseno.md
   ========================================================================== */
.vc-leads-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: inherit;
}

.vc-leads-widget__bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--orange, #EE7714);
  color: var(--navy, #131D35);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(19, 29, 53, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}
.vc-leads-widget__bubble:hover { background: #ff8a2e; transform: translateY(-2px); }
.vc-leads-widget__bubble[aria-expanded="true"] { display: none; }

.vc-leads-widget__panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 40px));
  overflow-y: auto;
  background: var(--white, #fff);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(19, 29, 53, 0.32);
  padding: 20px;
  display: grid;
  gap: 12px;
}
.vc-leads-widget__panel[hidden] { display: none; }

.vc-leads-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.vc-leads-widget__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy, #131D35);
}
.vc-leads-widget__subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted, #4b5670);
}
.vc-leads-widget__close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-muted, #4b5670);
  cursor: pointer;
  padding: 0 2px;
}
.vc-leads-widget__close:hover { color: var(--navy, #131D35); }

.vc-leads-widget__intro {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted, #4b5670);
  background: #f4f6fb;
  border-radius: 12px;
  padding: 10px 12px;
}

.vc-leads-widget__form {
  display: grid;
  gap: 10px;
}
.vc-leads-widget__field {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted, #4b5670);
}
.vc-leads-widget__field input,
.vc-leads-widget__field select,
.vc-leads-widget__field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink, #131D35);
  border: 1px solid #dce3ef;
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
}
.vc-leads-widget__field input:focus,
.vc-leads-widget__field select:focus,
.vc-leads-widget__field textarea:focus {
  outline: 2px solid var(--orange, #EE7714);
  outline-offset: 1px;
}
.vc-leads-widget__field textarea { resize: vertical; }

.vc-leads-widget__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.vc-leads-widget__error,
.vc-leads-widget__success {
  margin: 0;
  font-size: 12.5px;
  border-radius: 10px;
  padding: 8px 10px;
}
.vc-leads-widget__error { background: #fdecea; color: #b3261e; }
.vc-leads-widget__success { background: #e7f7ee; color: #1f8a5c; }

.vc-leads-widget__submit {
  width: 100%;
  justify-content: center;
  border: none;
}

@media (max-width: 480px) {
  .vc-leads-widget { right: 12px; bottom: 12px; }
  .vc-leads-widget__panel { right: 12px; bottom: 12px; padding: 16px; }
}
