@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ============================================================
   BOTON FLOTANTE SOS
   ============================================================ */
:root {
  --avxa-violet-200: #DCC5F2;
  --avxa-shark-900:  #2b2b2b;
  --avxa-stroke:     #B0B0B0;
}

.avxa-sos {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
}

.avxa-sos__btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 80px;
  width: 80px;
  padding: 0;
  background: var(--avxa-shark-900);
  border: 2px solid var(--avxa-stroke);
  border-right: none;
  border-radius: 24px 0 0 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
  cursor: pointer;
  overflow: hidden;
  transition: width .35s cubic-bezier(.25, .1, .25, 1),
              background .35s ease,
              padding .35s ease;
}

.avxa-sos__text {
  font-size: 22px;
  font-weight: 700;
  color: var(--avxa-shark-900);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .25s ease .08s, transform .25s ease .08s;
  padding-left: 26px;
  pointer-events: none;
}

.avxa-sos__icon-q {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease;
}

.avxa-sos__icon-q img {
  width: 52px;
  height: 52px;
  display: block;
}

.avxa-sos__icon-wa {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: none;
  align-items: center;
  justify-content: center;
}

.avxa-sos__icon-wa img {
  width: 46px;
  height: 46px;
  display: block;
}

.avxa-sos.is-open .avxa-sos__btn {
  width: 201px;
  background: var(--avxa-violet-200);
  padding-right: 8px;
  border-radius: 24px 0 0 24px;
}

.avxa-sos.is-open .avxa-sos__text {
  opacity: 1;
  transform: translateX(0);
}

.avxa-sos.is-open .avxa-sos__icon-q { display: none; }
.avxa-sos.is-open .avxa-sos__icon-wa { display: flex; }

@media (max-width: 767px) {
  .avxa-sos { right: 0; }
  .avxa-sos__btn { height: 64px; width: 64px; }
  .avxa-sos__icon-q { width: 64px; height: 64px; flex: 0 0 64px; }
  .avxa-sos__icon-q img { width: 42px; height: 42px; }
  .avxa-sos__text { font-size: 18px; padding-left: 20px; }
  .avxa-sos.is-open .avxa-sos__btn { width: 180px; }
  .avxa-sos__icon-wa { width: 52px; height: 52px; flex: 0 0 52px; }
  .avxa-sos__icon-wa img { width: 38px; height: 38px; }
}

/* ============================================================
   FORMULARIO SOS
   ============================================================ */
.avxf-overlay,
.avxf-overlay * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.avxf-overlay {
  --avxf-display: 'Visby CF', 'Poppins', system-ui, sans-serif;
  --avxf-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --avxf-ink:       #222222;
  --avxf-label:     #676767;
  --avxf-field-bg:  #FAF6FD;
  --avxf-field-bd:  #9558D8;
  --avxf-ph:        #888888;
  --avxf-box-bd:    #D3D3D3;
  --avxf-purple:    #9558D8;
  --avxf-link:      #902E9D;
  --avxf-check-bd:  #888888;
  --avxf-btn:       #E3F853;
  --avxf-btn-bd:    #D1D1D1;

  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 16, 22, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  font-family: var(--avxf-body);
}

.avxf-overlay.is-open { display: flex; }

.avxf-modal {
  position: relative;
  width: 584px;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  container-type: inline-size;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  -webkit-font-smoothing: antialiased;
}

.avxf-close {
  position: absolute;
  top: 3.4cqw;
  right: 3.4cqw;
  width: 6.85cqw;
  height: 6.85cqw;
  min-width: 34px;
  min-height: 34px;
  border: 0 !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  line-height: 0;
}

.avxf-close:hover,
.avxf-close:focus,
.avxf-close:focus-visible,
.avxf-close:active {
  border: 0 !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.avxf-close::before,
.avxf-close::after {
  display: none !important;
  content: none !important;
}

/* Anula el border que el tema/wpft-popup aplica con selector .avxf-overlay .avxf-close */
.avxf-overlay .avxf-close,
.avxf-overlay .avxf-close:hover,
.avxf-overlay .avxf-close:focus,
.avxf-overlay .avxf-close:active {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #222222 !important;
}

.avxf-close img {
  width: 100%;
  height: 100%;
  display: block;
}

.avxf-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6cqw;
  text-align: center;
  padding: 1.4cqw 6cqw 0;
}

.avxf-title {
  font-family: var(--avxf-display);
  font-weight: 600;
  font-size: 4.11cqw;
  line-height: 1.33;
  letter-spacing: -.01em;
  color: var(--avxf-ink);
}

.avxf-desc {
  font-family: var(--avxf-body);
  font-weight: 600;
  font-size: 2.4cqw;
  line-height: 1.286;
  color: var(--avxf-label);
}

.avxf-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.avxf-form--hidden { display: none !important; }

/* Switch Para ti / Para tu equipo */
.avxf-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--avxf-body);
  font-weight: 500;
  font-size: 2.4cqw;
  color: var(--avxf-ink);
}

.avxf-switch-label { user-select: none; }

.avxf-switch-toggle {
  position: relative !important;
  width: 110px !important;
  height: 38px !important;
  flex: none !important;
  background: #888888 !important;
  background-color: #888888 !important;
  border: 2px solid #454545 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.avxf-switch-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 52px;
  height: 30px;
  background: #ffffff;
  border: 1px solid #ADADAD;
  border-radius: 999px;
  box-sizing: border-box;
  transition: left .22s ease;
}

.avxf-switch-toggle.is-team .avxf-switch-toggle__knob {
  left: calc(100% - 54px);
}

/* Textarea (form Para tu equipo) reutiliza el look del input */
.avxf-textarea {
  height: auto;
  min-height: 16cqw;
  padding: 2.05cqw;
  line-height: 1.4;
  resize: vertical;
}

.avxf-fields {
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
  border: 1px solid var(--avxf-box-bd);
  border-radius: 4px;
  padding: 2.74cqw;
}

.avxf-field {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
}

.avxf-label {
  font-family: var(--avxf-body);
  font-weight: 700;
  font-size: 2.4cqw;
  line-height: 1.43;
  color: var(--avxf-label);
}

.avxf-label .opt { font-weight: 400; }

.avxf-input {
  width: 100%;
  height: 7.53cqw;
  min-height: 40px;
  background: var(--avxf-field-bg);
  border: 1px solid var(--avxf-field-bd);
  border-radius: 2px;
  padding: 0 2.05cqw;
  font-family: var(--avxf-body);
  font-size: 2.4cqw;
  font-weight: 500;
  color: #2B2B2B;
  outline: none;
}

.avxf-input::placeholder {
  color: var(--avxf-ph);
  font-weight: 400;
}

.avxf-input:focus {
  border-color: var(--avxf-purple);
  box-shadow: 0 0 0 .5cqw rgba(149, 88, 216, .18);
}

.avxf-phone {
  display: flex;
  align-items: stretch;
}

.avxf-cc {
  display: flex;
  align-items: center;
  gap: 1.37cqw;
  flex: none;
  padding: 0 1.71cqw;
  background: var(--avxf-purple);
  color: #fff;
  font-family: var(--avxf-body);
  font-weight: 700;
  font-size: 2.4cqw;
  border: 1px solid var(--avxf-field-bd);
  border-right: none;
  border-radius: 2px 0 0 2px;
}

.avxf-cc svg {
  width: 2.4cqw;
  height: 2.4cqw;
}

.avxf-phone .avxf-input {
  border-radius: 0 2px 2px 0;
  flex: 1;
}

/* Combobox */
.avxf-combo { position: relative; }

.avxf-combo-closed {
  display: flex;
  align-items: stretch;
}

.avxf-combo-closed .avxf-input {
  border-radius: 2px 0 0 2px;
  flex: 1;
  cursor: pointer;
}

.avxf-combo-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: 11cqw !important;
  min-width: 46px !important;
  background: var(--avxf-purple) !important;
  background-color: var(--avxf-purple) !important;
  color: #fff !important;
  border: 1px solid var(--avxf-field-bd) !important;
  border-left: none !important;
  border-radius: 0 2px 2px 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: inherit !important;
  line-height: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
}

.avxf-combo-toggle svg {
  width: 3cqw;
  height: 3cqw;
  min-width: 16px;
  min-height: 16px;
}

.avxf-combo-panel {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: var(--avxf-field-bg);
  border: 1px solid var(--avxf-field-bd);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}

.avxf-combo.is-open .avxf-combo-panel { display: block; }
.avxf-combo.is-open .avxf-combo-closed { visibility: hidden; }

.avxf-combo-head {
  display: flex;
  align-items: stretch;
  gap: 1.4cqw;
  padding: 1.4cqw;
}

.avxf-combo-search {
  flex: 1;
  height: 7.53cqw;
  min-height: 40px;
  background: #FFFFFF;
  border: 1px solid var(--avxf-field-bd);
  border-radius: 2px;
  padding: 0 2.05cqw;
  font-family: var(--avxf-body);
  font-size: 2.4cqw;
  font-weight: 400;
  color: #2B2B2B;
  outline: none;
}

.avxf-combo-search::placeholder { color: var(--avxf-ph); }

.avxf-combo-head .avxf-combo-toggle {
  border: none !important;
  border-radius: 2px !important;
}

.avxf-combo-opt {
  padding: 2.4cqw 2.05cqw;
  font-family: var(--avxf-body);
  font-size: 2.4cqw;
  color: #2B2B2B;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avxf-combo-opt:hover,
.avxf-combo-opt.is-active {
  background: var(--avxf-purple);
  color: #fff;
}

.avxf-combo-list { padding-bottom: .6cqw; }

/* Consentimiento */
.avxf-consent {
  display: flex;
  align-items: flex-start;
  gap: 1.37cqw;
}

.avxf-check {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  cursor: pointer;
  position: relative;
  width: 4.11cqw;
  height: 4.11cqw;
  min-width: 20px;
  min-height: 20px;
  margin-top: .7cqw;
  background: #fff;
  border: 1px solid var(--avxf-check-bd);
  border-radius: .6cqw;
}

.avxf-check:checked {
  background: var(--avxf-purple);
  border-color: var(--avxf-purple);
}

.avxf-check:checked::after {
  content: "";
  position: absolute;
  left: 34%;
  top: 12%;
  width: 28%;
  height: 56%;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.avxf-consent .txt {
  font-family: var(--avxf-body);
  font-weight: 400;
  font-size: 2.23cqw;
  line-height: 1.231;
  color: var(--avxf-label);
}

.avxf-consent a {
  color: var(--avxf-link);
  font-weight: 700;
  text-decoration: underline;
}

/* Boton enviar */
.avxf-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2cqw;
  width: 100%;
  height: 8.9cqw;
  min-height: 46px;
  border: 1.5px solid var(--avxf-btn-bd) !important;
  border-radius: 1.71cqw !important;
  background: var(--avxf-btn) !important;
  background-color: var(--avxf-btn) !important;
  box-shadow: none !important;
  font-family: var(--avxf-body);
  font-weight: 700;
  font-size: 2.74cqw;
  line-height: 1.5;
  letter-spacing: .005em;
  color: var(--avxf-ink) !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  text-shadow: none !important;
  transition: filter .15s ease;
}

.avxf-submit:hover { filter: brightness(.96); }
.avxf-submit:disabled { cursor: not-allowed; filter: brightness(.9); }

.avxf-submit-icon {
  width: 32px;
  height: 32px;
  display: block;
  flex: none;
}

/* Contenedor del GIF de carga centrado en el modal (reemplaza al formulario) */
.avxs-gif-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  padding: 24px 0;
}

.avxs-gif-modal img {
  width: 50%;
  max-width: 260px;
  min-width: 120px;
  height: auto;
  display: block;
}

/* Estado de exito */
.avxf-done {
  text-align: center;
  padding: 6cqw 4cqw;
}

.avxf-done h4 {
  font-family: var(--avxf-display);
  font-weight: 600;
  font-size: 3.8cqw;
  color: var(--avxf-ink);
  margin-bottom: 2cqw;
}

.avxf-done p {
  font-family: var(--avxf-body);
  font-size: 2.4cqw;
  color: var(--avxf-label);
}
