.whatsapp-launcher {
  position: fixed;
  right: max(18px, calc(env(safe-area-inset-right) + 14px));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 17px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, #0d7a40, #075f32);
  box-shadow: 0 16px 38px rgba(3, 22, 14, 0.3), 0 4px 12px rgba(3, 22, 14, 0.18);
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  text-decoration: none;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.site-nav-open .whatsapp-launcher {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.whatsapp-launcher:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0b713b, #064f2a);
  box-shadow: 0 20px 44px rgba(3, 22, 14, 0.34), 0 6px 16px rgba(3, 22, 14, 0.2);
}

.whatsapp-launcher:active {
  transform: translateY(0);
}

.whatsapp-launcher:focus-visible,
.whatsapp-contact-button:focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: 4px;
}

.whatsapp-launcher-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: #08753c;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.whatsapp-launcher-copy {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.15;
}

.whatsapp-launcher-copy strong {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.whatsapp-launcher-copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 550;
}

.whatsapp-contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 211, 102, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.whatsapp-contact-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 3px;
  background: linear-gradient(90deg, #25d366, #67e8f9);
}

.whatsapp-contact-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: #0b6b38;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.whatsapp-contact-body {
  min-width: 0;
}

.whatsapp-contact-kicker {
  display: block;
  margin-bottom: 4px;
  color: #86efac;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.whatsapp-contact-card h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}

.contact-info .whatsapp-contact-card p {
  margin: 0;
}

.whatsapp-contact-copy {
  color: rgba(226, 238, 249, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.whatsapp-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

.whatsapp-contact-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #0b6b38;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.whatsapp-contact-button:hover {
  transform: translateY(-1px);
  background: #085b30;
}

.whatsapp-contact-number {
  color: #dffbea;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.whatsapp-contact-safety {
  margin-top: 13px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(203, 221, 236, 0.76) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

@media (max-width: 640px) {
  .whatsapp-launcher {
    width: 56px;
    height: 56px;
    min-height: 56px;
    justify-content: center;
    padding: 0;
  }

  .whatsapp-launcher-mark {
    width: auto;
    height: auto;
    background: transparent;
    color: #fff;
    font-size: 25px;
  }

  .whatsapp-launcher-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .whatsapp-contact-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 17px;
  }

  .whatsapp-contact-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
  }

  .whatsapp-contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .whatsapp-contact-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-launcher,
  .whatsapp-contact-button {
    transition: none;
  }
}

@media print {
  .whatsapp-launcher {
    display: none !important;
  }
}
