/* Social Float Tab Styles */
.social-float-tab {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: none; /* Oculto por defecto en móvil */
}

/* Mostrar solo en tablet y desktop */
@media (min-width: 768px) {
    .social-float-tab {
        display: block;
    }
}

/* Posiciones */
.social-float-left {
    left: 0;
}

.social-float-right {
    right: 0;
}

/* Toggle button */
.social-float-toggle {
    background: #333;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.social-float-left .social-float-toggle {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.social-float-right .social-float-toggle {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.social-float-toggle:hover {
    background: #555;
    transform: scale(1.05);
}

/* Content area */
.social-float-content {
    position: absolute;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.social-float-left .social-float-content {
    left: 60px;
}

.social-float-right .social-float-content {
    right: 60px;
}

/* Mostrar contenido al hover */
.social-float-tab:hover .social-float-content {
    opacity: 1;
    visibility: visible;
}

/* Enlaces sociales */
.social-float-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.social-float-link:hover {
    transform: scale(1.1);
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-float-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-float-link:hover::before {
    left: 100%;
}

/* Estilos específicos por red social */
.social-facebook {
    background: #1877F2;
}

.social-twitter {
    background: #1DA1F2;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-linkedin {
    background: #0A66C2;
}

.social-youtube {
    background: #FF0000;
}

.social-whatsapp {
    background: #25D366;
}

.social-telegram {
    background: #0088CC;
}

.social-tiktok {
    background: #000000;
}

/* Animaciones */
@keyframes socialPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.social-float-tab.animate .social-float-toggle {
    animation: socialPulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .social-float-content {
        padding: 8px;
    }
    
    .social-float-link {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .social-float-toggle {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Ocultar completamente en móviles */
@media (max-width: 767px) {
    .social-float-tab {
        display: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-float-content {
        background: rgba(30, 30, 30, 0.95);
        color: white;
    }
}

/* Accessibility */
.social-float-link:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.social-float-toggle:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Smooth entrance animation */
.social-float-tab {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.social-float-right.social-float-tab {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}