/*
 * SYV — WhatsApp por Región
 * Frontend 1.1.0
 * Web Ingeniería Solutions
 */

.wis-syv-float,
.wis-syv-float *,
.wis-syv-float *::before,
.wis-syv-float *::after {
  box-sizing: border-box;
}

.wis-syv-float {
  --wis-syv-right: 24px;
  --wis-syv-bottom: 24px;
  --wis-syv-trigger: 58px;
  --wis-syv-panel: 350px;
  --wis-syv-z: 99970;
  --wis-syv-olive: #596653;
  --wis-syv-olive-deep: #3f493b;
  --wis-syv-cream: #f7f3ea;
  --wis-syv-paper: #fffdf8;
  --wis-syv-ink: #2f342f;
  --wis-syv-muted: #747970;
  --wis-syv-line: rgba(70, 79, 67, .12);
  --wis-syv-wa: #25d366;
  --wis-syv-ease: cubic-bezier(.22, 1, .36, 1);

  position: fixed;
  right: max(var(--wis-syv-right), env(safe-area-inset-right, 0px));
  bottom: max(var(--wis-syv-bottom), env(safe-area-inset-bottom, 0px));
  z-index: var(--wis-syv-z);
  width: auto;
  max-width: calc(100dvw - 24px);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  pointer-events: none;
}

.wis-syv-float :where(button, a, h2, p, span, strong, div) {
  max-width: 100%;
}

.wis-syv-float svg {
  display: block;
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  overflow: visible;
}

.wis-syv-float__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: var(--wis-syv-trigger);
  max-width: min(240px, calc(100dvw - 24px));
  height: var(--wis-syv-trigger);
  padding: 0 16px;
  margin: 0;
  border: 1px solid rgba(65, 76, 63, .12);
  border-radius: 999px;
  background: rgba(255, 253, 248, .96);
  color: var(--wis-syv-olive-deep);
  box-shadow: 0 16px 38px rgba(43, 50, 42, .16);
  cursor: pointer;
  isolation: isolate;
  pointer-events: auto;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .45s var(--wis-syv-ease), box-shadow .45s var(--wis-syv-ease), background-color .3s ease;
}

.wis-syv-float__trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 46px rgba(43, 50, 42, .21);
}

.wis-syv-float__trigger:focus-visible {
  outline: 2px solid var(--wis-syv-wa);
  outline-offset: 4px;
}

.wis-syv-float__trigger-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--wis-syv-wa);
  display: inline-flex;
}

.wis-syv-float__trigger-icon svg,
.wis-syv-float__channel-icon svg {
  fill: currentColor;
}

.wis-syv-float__trigger-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.wis-syv-float__trigger-rings {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, .24);
  pointer-events: none;
  opacity: 0;
}

.wis-syv-float:not(.is-open) .wis-syv-float__trigger-rings {
  animation: wis-syv-soft-ring 3.8s ease-out infinite;
}

.wis-syv-float__panel {
  position: absolute;
  right: 0;
  bottom: calc(var(--wis-syv-trigger) + 12px);
  width: min(var(--wis-syv-panel), calc(100dvw - 28px));
  max-width: calc(100dvw - 28px);
  max-height: calc(100dvh - var(--wis-syv-trigger) - var(--wis-syv-bottom) - 42px);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(71, 81, 68, .11);
  border-radius: 26px;
  background:
    radial-gradient(circle at 94% 4%, rgba(150, 168, 138, .12), transparent 29%),
    linear-gradient(145deg, rgba(255, 255, 255, .965), rgba(247, 243, 234, .99));
  color: var(--wis-syv-ink);
  box-shadow: 0 28px 70px rgba(44, 51, 43, .18);
  padding: 24px 23px 17px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 8px, 0) scale(.992);
  transform-origin: bottom right;
  transition: opacity .28s ease, transform .4s var(--wis-syv-ease), visibility .28s linear;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wis-syv-float__panel::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -140px;
  top: -130px;
  border: 1px solid rgba(92, 108, 84, .07);
  border-radius: 52% 48% 61% 39% / 43% 57% 45% 55%;
  box-shadow: 0 0 0 27px rgba(92, 108, 84, .018), 0 0 0 55px rgba(92, 108, 84, .01);
  pointer-events: none;
}

.wis-syv-float.is-open .wis-syv-float__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.wis-syv-float__panel-head {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 1px 1px 17px;
}

.wis-syv-float__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--wis-syv-olive);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .18em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.wis-syv-float__title {
  margin: 0;
  color: var(--wis-syv-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 2.15vw, 30px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.028em;
  overflow-wrap: anywhere;
}

.wis-syv-float__subtitle {
  margin: 9px 0 0;
  color: var(--wis-syv-muted);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.wis-syv-float__channels {
  position: relative;
  z-index: 1;
  min-width: 0;
  border-top: 1px solid var(--wis-syv-line);
}

.wis-syv-float__channel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 13px 1px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--wis-syv-line);
  background: transparent;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: padding-left .35s var(--wis-syv-ease), background-color .3s ease;
}

.wis-syv-float__channel[href]:hover {
  padding-left: 4px;
  background: rgba(87, 102, 79, .025);
}

.wis-syv-float__channel[href]:focus-visible {
  outline: 2px solid var(--wis-syv-wa);
  outline-offset: 2px;
  border-radius: 12px;
}

.wis-syv-float__channel.is-pending {
  opacity: .48;
  cursor: default;
}

.wis-syv-float__channel-icon {
  grid-row: 1 / span 2;
  align-self: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 211, 102, .22);
  border-radius: 50%;
  background: rgba(37, 211, 102, .08);
  color: var(--wis-syv-wa);
}

.wis-syv-float__channel-icon svg {
  width: 20px;
  height: 20px;
}

.wis-syv-float__channel-copy {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wis-syv-float__channel-copy strong,
.wis-syv-float__channel-copy span,
.wis-syv-float__channel-action {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wis-syv-float__channel-copy strong {
  font-size: 14px;
  line-height: 1.22;
  font-weight: 650;
  color: var(--wis-syv-ink);
}

.wis-syv-float__channel-copy span {
  font-size: 11px;
  line-height: 1.34;
  color: var(--wis-syv-muted);
}

.wis-syv-float__channel-action {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--wis-syv-olive);
  font-size: 9.5px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: normal;
}

.wis-syv-float__arrow {
  flex: 0 0 auto;
  color: var(--wis-syv-wa);
  font-size: 14px;
  transition: transform .35s var(--wis-syv-ease);
}

.wis-syv-float__channel[href]:hover .wis-syv-float__arrow {
  transform: translateX(3px);
}

.wis-syv-float__signature {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding-top: 13px;
  text-align: center;
  color: rgba(80, 87, 78, .64);
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.wis-syv-float--olive .wis-syv-float__panel {
  border-color: rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 94% 5%, rgba(230,239,221,.09), transparent 30%),
    linear-gradient(145deg, #4f5c49, #3f493b);
  color: #f8f4ea;
}

.wis-syv-float--olive .wis-syv-float__title,
.wis-syv-float--olive .wis-syv-float__channel-copy strong {
  color: #fffaf0;
}

.wis-syv-float--olive .wis-syv-float__subtitle,
.wis-syv-float--olive .wis-syv-float__channel-copy span,
.wis-syv-float--olive .wis-syv-float__signature {
  color: rgba(255,250,240,.70);
}

.wis-syv-float--olive .wis-syv-float__channels,
.wis-syv-float--olive .wis-syv-float__channel {
  border-color: rgba(255,255,255,.10);
}

.wis-syv-float--olive .wis-syv-float__eyebrow,
.wis-syv-float--olive .wis-syv-float__channel-action {
  color: #dfe7d6;
}

.wis-syv-float--olive .wis-syv-float__channel[href]:hover {
  background: rgba(255,255,255,.025);
}

@keyframes wis-syv-soft-ring {
  0% { opacity: .48; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(1.22); }
}

@media (min-width: 1025px) {
  .wis-syv-hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .wis-syv-hide-tablet { display: none !important; }

  .wis-syv-float {
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }

  .wis-syv-float__panel {
    width: min(var(--wis-syv-panel), calc(100dvw - 36px));
    max-height: calc(100dvh - var(--wis-syv-trigger) - 76px);
  }
}

@media (max-width: 767px) {
  .wis-syv-hide-mobile { display: none !important; }

  .wis-syv-float {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    max-width: calc(100dvw - 24px);
  }

  .wis-syv-float__trigger {
    min-width: var(--wis-syv-trigger);
    width: var(--wis-syv-trigger);
    max-width: var(--wis-syv-trigger);
    padding: 0;
  }

  .wis-syv-float__trigger-icon {
    width: 26px;
    height: 26px;
  }

  .wis-syv-float__trigger-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .wis-syv-float__panel {
    right: 0;
    bottom: calc(var(--wis-syv-trigger) + 10px);
    width: calc(100dvw - 24px);
    max-width: calc(100dvw - 24px);
    max-height: calc(100dvh - var(--wis-syv-trigger) - 48px - env(safe-area-inset-bottom, 0px));
    padding: 21px 18px 15px;
    border-radius: 22px;
  }

  .wis-syv-float__title {
    font-size: clamp(24px, 7vw, 28px);
  }

  .wis-syv-float__subtitle {
    font-size: 12px;
  }

  .wis-syv-float__channel {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 11px;
    min-height: 69px;
    padding: 12px 1px;
  }

  .wis-syv-float__channel[href]:hover {
    padding-left: 1px;
  }

  .wis-syv-float__channel-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .wis-syv-float__channel-icon svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 360px) {
  .wis-syv-float__panel {
    padding-inline: 15px;
  }

  .wis-syv-float__title {
    font-size: 23px;
  }

  .wis-syv-float__channel {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 9px;
  }

  .wis-syv-float__channel-icon {
    width: 33px;
    height: 33px;
    min-width: 33px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wis-syv-float *,
  .wis-syv-float *::before,
  .wis-syv-float *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
