/* CW Marketing: WhatsApp y marketing */
:root {
  --cwmkt-green: #25d366;
  --cwmkt-green-dark: #128c4b;
  --cwmkt-ink: #0f3d24;
}

.cwmkt-float {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px 0 14px;
  border-radius: 28px;
  background: var(--cwmkt-green);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(18, 140, 75, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.cwmkt-float--right { right: 20px; }
.cwmkt-float--left { left: 20px; }

.cwmkt-float:hover,
.cwmkt-float:focus {
  background: var(--cwmkt-green-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.cwmkt-float:focus-visible {
  outline: 3px solid var(--cwmkt-ink);
  outline-offset: 3px;
}
.cwmkt-float__icon { width: 28px; height: 28px; flex: none; }

/* En móvil solo el icono, para no tapar el contenido */
@media (max-width: 575.98px) {
  .cwmkt-float { width: 56px; padding: 0; justify-content: center; }
  .cwmkt-float__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.cwmkt-product {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 12px 0;
}
.cwmkt-product__ask {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid var(--cwmkt-green);
  border-radius: 6px;
  color: var(--cwmkt-ink);
  font-weight: 600;
  text-decoration: none;
}
.cwmkt-product__ask:hover,
.cwmkt-product__ask:focus {
  background: var(--cwmkt-green);
  color: #fff;
  text-decoration: none;
}
.cwmkt-product__share {
  color: var(--cwmkt-green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cwmkt-product a:focus-visible {
  outline: 3px solid var(--cwmkt-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cwmkt-float { transition: none; }
  .cwmkt-float:hover, .cwmkt-float:focus { transform: none; }
}
