/**
 * Estilos para Botones de Compartir en Redes Sociales
 * Centris Ventas
 * Diseño moderno y responsive
 */

/* Contenedor principal de botones de compartir */
.social-share-buttons {
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.social-share-buttons .share-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-share-buttons .share-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Contenedor de botones */
.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Estilos base para todos los botones */
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 12px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #fff;
}

.btn-share:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-share i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-share:hover i {
    transform: scale(1.1);
}

.btn-share span {
    font-weight: 500;
}

/* Efecto ripple al hacer clic */
.btn-share::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-share:active::after {
    width: 300px;
    height: 300px;
}

/* Botón de Facebook */
.btn-share.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
}

.btn-share.facebook:hover {
    background: linear-gradient(135deg, #1463c7 0%, #0a52ad 100%);
}

/* Botón de WhatsApp */
.btn-share.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
}

.btn-share.whatsapp:hover {
    background: linear-gradient(135deg, #1ebe57 0%, #17a248 100%);
}

/* Botón de Twitter */
.btn-share.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.btn-share.twitter:hover {
    background: linear-gradient(135deg, #0c85d0 0%, #0a6fb7 100%);
}

/* Botón de LinkedIn */
.btn-share.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005e93 100%);
}

.btn-share.linkedin:hover {
    background: linear-gradient(135deg, #005e93 0%, #004d79 100%);
}

/* Botón de Telegram */
.btn-share.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006ba6 100%);
}

.btn-share.telegram:hover {
    background: linear-gradient(135deg, #006ba6 0%, #005580 100%);
}

/* Botón de Copiar */
.btn-share.copiar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-share.copiar:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-share-buttons {
        padding: 15px;
    }

    .share-buttons-container {
        gap: 8px;
    }

    .btn-share {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }

    .btn-share span {
        display: none;
    }

    .btn-share i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .btn-share {
        flex: 1 1 100%;
        justify-content: center;
    }

    .btn-share span {
        display: inline;
    }
}

/* Variante compacta (opcional) */
.social-share-buttons.compact {
    padding: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.social-share-buttons.compact .share-title {
    font-size: 14px;
    margin-bottom: 10px;
}

.social-share-buttons.compact .btn-share {
    padding: 8px 12px;
    font-size: 13px;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-share-buttons {
    animation: fadeInUp 0.4s ease-out;
}

/* Notificación de copia */
.notificacion-copia {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notificacion-copia::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

.notificacion-copia.error::before {
    content: '✕';
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .social-share-buttons {
        background: #1a1a1a;
        border-color: #333;
    }

    .social-share-buttons .share-title {
        color: #fff;
    }
}

/* Loading state para botones */
.btn-share.loading {
    pointer-events: none;
    opacity: 0.6;
}

.btn-share.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accesibilidad */
.btn-share:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.btn-share:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .social-share-buttons {
        display: none;
    }
}
