/* ==========================================================================
   Componente: Botón de Compartir Social Desplegable v4.0 (Final)
   TÉCNICA: Imágenes directas (<img>) para máxima compatibilidad.
   ========================================================================== */

/* 1. Contenedor Principal
-------------------------------------------------------------------------- */
.om-social-share {
  position: relative;
  width: fit-content;
  margin: 1.5rem 0;
}

/* 2. Botón Principal (Estilo Primario Astra v1.0)
-------------------------------------------------------------------------- */
.om-social-share__button {
  /* Integración con el estilo del botón primario de Astra */
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  
  /* Colores (Según tu captura) */
  background-color: #046bd2;
  color: #ffffff;
  
  /* Tipografía (Según tu captura) */
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;

  /* Dimensiones y forma (Según tu captura) */
  padding: 15px 25px;
  border-radius: 30px;
  border-width: 0;
  
  /* Efectos y comportamiento */
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.om-social-share__button:hover {
  background-color: #0359b0; /* Tono de azul ligeramente más oscuro para el hover */
  transform: scale(1.03);     /* Efecto sutil para dar feedback al usuario */
}

/* Icono del botón principal (ahora es una <img>) */
.om-social-share__button-icon {
  width: 1.2em;
  height: 1.2em;
  /* Técnica para forzar que el SVG (asumiendo que es negro) se vuelva blanco */
  filter: brightness(0) invert(1);
}

/* 3. Contenedor de Iconos (Popup)
-------------------------------------------------------------------------- */
.om-social-share__icons {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  width: 220px;
  max-width: 95vw; /* Evita que el contenedor se desborde */
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.om-social-share.is-open .om-social-share__icons {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 4. Enlaces de Iconos Individuales
-------------------------------------------------------------------------- */
.om-social-share__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s;
}

.om-social-share__link:hover {
  transform: scale(1.02);
  color: #1f2937;
}

/* Hover premium: color suave + borde interior */
.om-social-share__link--facebook:hover  {
  background-color: rgba(24, 119, 242, 0.12);
  box-shadow: inset 0 0 0 1px rgba(24, 119, 242, 0.28);
}

.om-social-share__link--whatsapp:hover  {
  background-color: rgba(37, 211, 102, 0.14);
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.30);
}

.om-social-share__link--telegram:hover  {
  background-color: rgba(38, 165, 228, 0.14);
  box-shadow: inset 0 0 0 1px rgba(38, 165, 228, 0.30);
}

.om-social-share__link--instagram:hover {
  background-color: rgba(228, 64, 95, 0.14);
  box-shadow: inset 0 0 0 1px rgba(228, 64, 95, 0.30);
}

.om-social-share__link--pinterest:hover {
  background-color: rgba(230, 0, 35, 0.12);
  box-shadow: inset 0 0 0 1px rgba(230, 0, 35, 0.28);
}

.om-social-share__link--x:hover {
  background-color: rgba(51, 65, 85, 0.12);
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.30);
}

.om-social-share__link--tiktok:hover {
  background-color: rgba(71, 85, 105, 0.12);
  box-shadow: inset 0 0 0 1px rgba(71, 85, 105, 0.30);
}
/* 5. Iconos (ahora son <img>)
-------------------------------------------------------------------------- */
.om-social-share__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain; /* Asegura que los iconos no se deformen */
}