/* Share Buttons Styles */

/* Contenedor del botón */
.share-container {
  display: inline-block;
  position: relative;
  width: auto;
  overflow: visible;
 /*  z-index: 999; */
}

/* Botón Principal de Compartir */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background-color: #005695;
  color: white;
  border: none;
  /* border-radius: 3px; */
  font-size: 14px;
  font-family: arial, sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  white-space: nowrap;
}

.share-btn i {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

.share-btn:hover {
  background-color: #004278;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Dropdown de opciones */
.share-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  background: white;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 170px;
  z-index: 5;
  display: none;
  overflow: visible;
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Opciones de compartir */
.share-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-family: arial, sans-serif;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.share-dropdown a:last-child {
  border-bottom: none;
}

.share-dropdown a:hover {
  background-color: #f9f9f9;
  color: #005695;
}

.share-dropdown a i {
  font-size: 16px;
  min-width: 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive - Tablets (max 768px) */
@media only screen and (max-width: 768px) {
  .share-container {
    width: auto;
    overflow: visible;
  }

  /* .share-btn {
    padding: 10px 16px;
    font-size: 14px;
    gap: 8px;
  } */

  .share-btn i {
    font-size: 16px;
  }

  .share-dropdown {
    min-width: 180px;
    overflow: visible;
    left: 0;
    right: auto;
    max-width: 90vw;
  }

  .share-dropdown a {
    padding: 12px 14px;
    font-size: 13px;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .share-dropdown a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .share-dropdown a i {
    flex-shrink: 0;
    min-width: 18px;
  }
}

/* Responsive - Mobile (max 480px) */
@media only screen and (max-width: 480px) {
  .share-container {
    width: auto;
  }

  /* .share-btn {
    padding: 10px 14px;
    font-size: 13px;
    gap: 8px;
  } */

  .share-btn i {
    font-size: 16px;
    flex-shrink: 0;
  }

  .share-dropdown {
    min-width: 200px;
    overflow: visible;
    left: 0;
  }

  .share-dropdown a {
    padding: 12px 12px;
    font-size: 11px;
    justify-content: flex-start;
    gap: 8px;
  }

  .share-dropdown a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .share-dropdown a i {
    flex-shrink: 0;
    font-size: 16px;
    min-width: 18px;
  }
}

/* Responsive - Pantallas muy pequeñas (max 360px) */
@media only screen and (max-width: 360px) {
  /* .share-btn {
    padding: 9px 12px;
    font-size: 12px;
    gap: 6px;
  } */

  .share-btn i {
    font-size: 14px;
  }

  .share-dropdown {
    font-size: 11px;
  }

  .share-dropdown a {
    padding: 11px 10px;
    font-size: 11px;
    gap: 8px;
  }

  .share-dropdown a i {
    min-width: 16px;
    font-size: 14px;
  }
}

/* Adaptaciones para dispositivos grandes (min 1200px) */
@media only screen and (min-width: 1200px) {
 /*  .share-btn {
    padding: 11px 22px;
    font-size: 15px;
    gap: 10px;
  } */

  .share-btn i {
    font-size: 17px;
  }

  .share-dropdown {
    min-width: 190px;
  }

  .share-dropdown a {
    padding: 14px 18px;
    font-size: 13px;
    gap: 12px;
  }
}
