/* ===== BOTÓN DE COMPARTIR FLOTANTE ===== */

.floating-share-container {
    position: fixed;
    bottom: 70px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Botón principal de compartir */
.floating-share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.floating-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.floating-share-btn.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Contenedor de botones de redes sociales */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.share-buttons.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Botones individuales de redes sociales */
.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: scale(0);
    animation-fill-mode: forwards;
}

.share-buttons.active .share-btn {
    transform: scale(1);
}

.share-buttons.active .share-btn:nth-child(1) {
    animation: scaleIn 0.3s ease 0.1s forwards;
}

.share-buttons.active .share-btn:nth-child(2) {
    animation: scaleIn 0.3s ease 0.2s forwards;
}

.share-buttons.active .share-btn:nth-child(3) {
    animation: scaleIn 0.3s ease 0.3s forwards;
}

/* Animación de entrada */
@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Colores específicos de cada red social */
.facebook-btn {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.facebook-btn:hover {
    background: linear-gradient(135deg, #4c70ba 0%, #3b5998 100%);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(59, 89, 152, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #2de673 0%, #25d366 100%);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #0099dd 0%, #0088cc 100%);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

/* Efecto de pulso en el botón principal */
.floating-share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-share-container {
        bottom: 60px;
        right: 20px;
    }
    
    .floating-share-btn {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .floating-share-container {
        bottom: 50px;
        right: 15px;
    }
    
    .floating-share-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
