/* Boton de compartir reutilizable para productos, promociones y tiendas. */
.btn-compartir {
  position: absolute;
  top: 0.65rem;
  right: 3.35rem;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2a6ff0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(42, 111, 240, 0.25);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.18);
  cursor: pointer;
  z-index: 8;
  transition: color 0.18s, background 0.18s, transform 0.18s;
}

.btn-compartir:hover {
  color: #1b4fba;
  background: #fff;
  transform: scale(1.08);
}

.btn-compartir svg {
  width: 17px;
  height: 17px;
}

/* Version compacta para las tarjetas pequenas del inicio. */
.btn-compartir-mini {
  top: 0.25rem;
  right: 1.9rem;
  width: 25px;
  height: 25px;
}

.btn-compartir-mini svg {
  width: 12px;
  height: 12px;
}

/* Menu flotante con las opciones para compartir. */
.menu-compartir {
  position: absolute;
  min-width: 190px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid #e3e5ea;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
  z-index: 11050;
}

.menu-compartir[hidden] {
  display: none;
}

.menu-compartir button {
  width: 100%;
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #2b2f36;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.menu-compartir button:hover,
.menu-compartir button:focus-visible {
  background: #f1f3f7;
}

.menu-compartir button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.menu-compartir-whatsapp svg {
  color: #25d366;
}

.menu-compartir-copiar svg {
  color: #2a6ff0;
}
