/* Barra lateral flotante de redes sociales - Diseño moderno */
#social-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    background: #ffffff;
    border-radius: 60px;
    padding: 16px 10px;
    box-shadow: 0 8px 32px rgba(17, 24, 39, 0.1), 
                0 2px 8px rgba(17, 24, 39, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #DC2626;
    width: 60px;
    align-items: center;
}

#social-float:hover {
    box-shadow: 0 12px 48px rgba(17, 24, 39, 0.15), 
                0 4px 16px rgba(17, 24, 39, 0.08);
    transform: translateY(-50%) scale(1.02);
}

.sf-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #6B7280;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    margin: 3px 0;
}

.sf-item svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.sf-item:hover {
    background: #DC2626;
    color: #ffffff;
    transform: scale(1.15);
}

.sf-item:hover svg {
    transform: scale(1.1);
}

/* Colores específicos para cada red social */
.sf-item[data-label="Facebook"]:hover {
    background: #1877F2;
}

.sf-item[data-label="Instagram"]:hover {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
}

.sf-item[data-label="YouTube"]:hover {
    background: #FF0000;
}

.sf-item[data-label="TikTok"]:hover {
    background: #000000;
}

.sf-item[data-label="WhatsApp"]:hover {
    background: #25D366;
}

.sf-item[data-label="Twitter"]:hover {
    background: #1DA1F2;
}

/* Separador visual */
.sf-separator {
    width: 1px;
    height: 40px;
    background: linear-gradient(
        to bottom, 
        transparent, 
        rgba(17, 24, 39, 0.1) 20%,
        rgba(17, 24, 39, 0.1) 80%,
        transparent
    );
    margin: 6px auto;
    align-self: center;
}

/* Texto vertical "PARTICIPA" */
.sf-cta {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #DC2626;
    text-transform: uppercase;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-cta:hover {
    color: #991B1B;
    letter-spacing: 2.5px;
}

/* Tooltips mejorados */
.sf-item::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #111827;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.2);
    z-index: 10;
}

.sf-item::after {
    content: '';
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #111827;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.sf-item:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sf-item:hover::after {
    opacity: 1;
}

/* Responsive: ocultar en móviles y tablets pequeños */
@media (max-width: 768px) {
    #social-float {
        display: none !important;
    }
}

/* Ajuste para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    #social-float {
        right: 16px;
        padding: 14px 10px;
    }
    
    .sf-item {
        width: 44px;
        height: 44px;
    }
    
    .sf-item svg {
        width: 20px;
        height: 20px;
    }
}

/* Accesibilidad mejorada */
.sf-item:focus {
    outline: none;
}

.sf-item:focus-visible {
    outline: 3px solid #DC2626;
    outline-offset: 3px;
    border-radius: 50%;
}

/* Animación de entrada */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

#social-float {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

