/* =============================================
   LOWKEY — Hero Social Buttons + WA Float
   ============================================= */

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    align-items: center;
}

.social-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    text-decoration: none;
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.social-icon:hover::before { opacity: 1; }

.social-icon:hover { transform: translateY(-6px) scale(1.08); }
.social-icon:active { transform: translateY(-2px) scale(1.02); transition-duration: 0.1s; }

/* Tooltip */
.social-icon::after {
    content: attr(aria-label);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 0.68rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.social-icon:hover::after { opacity: 1; }

/* WhatsApp */
.social-icon.whatsapp { animation: floatWa 3.5s ease-in-out infinite; }
.social-icon.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 8px 30px rgba(37,211,102,0.5), 0 0 0 1px rgba(37,211,102,0.3);
    animation: none;
    transform: translateY(-6px) scale(1.08);
}

/* Instagram */
.social-icon.instagram { animation: floatIg 3.5s ease-in-out infinite 0.4s; }
.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(214,36,159,0.5), 0 0 0 1px rgba(214,36,159,0.3);
    animation: none;
    transform: translateY(-6px) scale(1.08);
}

/* Facebook */
.social-icon.facebook { animation: floatFb 3.5s ease-in-out infinite 0.8s; }
.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 8px 30px rgba(24,119,242,0.5), 0 0 0 1px rgba(24,119,242,0.3);
    animation: none;
    transform: translateY(-6px) scale(1.08);
}

@keyframes floatWa { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes floatIg { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes floatFb { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ── Botón flotante WhatsApp ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    z-index: 999;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 8px 35px rgba(37,211,102,0.65);
    animation: none;
}
@keyframes waPulse {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.3); }
    50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 10px rgba(37,211,102,0); }
}

@media (max-width: 768px) {
    .social-icons { gap: 10px; margin-top: 22px; }
    .social-icon { width: 44px; height: 44px; font-size: 1.05rem; border-radius: 12px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.6rem; }
}
