/* =================================================================
   Social Share Buttons - Botones para Compartir en Redes Sociales
   ================================================================= */

.social-share-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.social-share-container h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-share-container h4 i {
    color: #3b82f6;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-share-btn,
.social-share-buttons .social-share-btn,
.social-share-container .social-share-btn,
.social-share-buttons a.social-share-btn,
.social-share-container a.social-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
}

a.social-share-btn,
button.social-share-btn,
.social-share-buttons a,
.social-share-container a {
    display: inline-flex !important;
    color: white !important;
    text-decoration: none !important;
}

a.social-share-btn:hover,
a.social-share-btn:focus,
a.social-share-btn:visited,
.social-share-buttons a:hover,
.social-share-buttons a:focus,
.social-share-buttons a:visited,
.social-share-container a:hover,
.social-share-container a:focus,
.social-share-container a:visited {
    color: white !important;
    text-decoration: none !important;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-share-btn:active {
    transform: translateY(-1px);
}

.social-share-btn i {
    font-size: 1.1rem;
}

/* Facebook */
.social-share-btn.facebook,
.social-share-buttons .social-share-btn.facebook,
.social-share-container .social-share-btn.facebook,
a.social-share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%) !important;
}

.social-share-btn.facebook:hover,
a.social-share-btn.facebook:hover {
    background: linear-gradient(135deg, #0d65d9 0%, #0a4fb3 100%) !important;
}

/* Twitter/X */
.social-share-btn.twitter,
.social-share-buttons .social-share-btn.twitter,
.social-share-container .social-share-btn.twitter,
a.social-share-btn.twitter {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
}

.social-share-btn.twitter:hover,
a.social-share-btn.twitter:hover {
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%) !important;
}

/* WhatsApp */
.social-share-btn.whatsapp,
.social-share-buttons .social-share-btn.whatsapp,
.social-share-container .social-share-btn.whatsapp,
a.social-share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
}

.social-share-btn.whatsapp:hover,
a.social-share-btn.whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%) !important;
}

/* LinkedIn */
.social-share-btn.linkedin,
.social-share-buttons .social-share-btn.linkedin,
.social-share-container .social-share-btn.linkedin,
a.social-share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%) !important;
}

.social-share-btn.linkedin:hover,
a.social-share-btn.linkedin:hover {
    background: linear-gradient(135deg, #005885 0%, #004060 100%) !important;
}

/* Telegram */
.social-share-btn.telegram,
.social-share-buttons .social-share-btn.telegram,
.social-share-container .social-share-btn.telegram,
a.social-share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%) !important;
}

.social-share-btn.telegram:hover,
a.social-share-btn.telegram:hover {
    background: linear-gradient(135deg, #006699 0%, #005577 100%) !important;
}

/* Email */
.social-share-btn.email,
.social-share-buttons .social-share-btn.email,
.social-share-container .social-share-btn.email,
a.social-share-btn.email {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
}

.social-share-btn.email:hover,
a.social-share-btn.email:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
}

/* Copy Link */
.social-share-btn.copy-link,
.social-share-buttons .social-share-btn.copy-link,
.social-share-container .social-share-btn.copy-link,
button.social-share-btn.copy-link {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
}

.social-share-btn.copy-link:hover,
button.social-share-btn.copy-link:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
}

.social-share-btn.copy-link.copied,
button.social-share-btn.copy-link.copied {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .social-share-container {
        padding: 1.25rem 1rem;
    }

    .social-share-buttons {
        justify-content: center;
    }

    .social-share-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .social-share-btn span {
        display: none;
    }

    .social-share-btn {
        padding: 0.75rem;
        border-radius: 50%;
        width: 48px;
        height: 48px;
    }

    .social-share-btn i {
        font-size: 1.25rem;
    }
}

/* Animacion de copiado */
@keyframes copied-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.social-share-btn.copy-link.copied {
    animation: copied-pulse 0.3s ease-out;
}

/* Tooltip para el boton de copiar */
.social-share-btn.copy-link {
    position: relative;
}

.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

.social-share-btn.copy-link:hover .copy-tooltip,
.social-share-btn.copy-link.copied .copy-tooltip {
    opacity: 1;
    visibility: visible;
}
