/* ==========================================================================
   Botones flotantes de redes sociales (WhatsApp, Facebook, Instagram, TikTok)
   Reemplaza el estilo antiguo (.btn-whatsapp / .btn-facebook / ...) por un
   stack uniforme, alineado y con micro-interacciones para invitar al clic.
   ========================================================================== */

.social-fab-group {
    position: fixed;
    right: 18px;
    bottom: 90px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.social-fab {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1),
                box-shadow .25s ease;
    /* aparicion escalonada */
    animation: social-in .45s ease both;
}

.social-fab:nth-child(1) { animation-delay: .05s; }
.social-fab:nth-child(2) { animation-delay: .12s; }
.social-fab:nth-child(3) { animation-delay: .19s; }
.social-fab:nth-child(4) { animation-delay: .26s; }

.social-fab img {
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Cada logo de origen trae distinto "aire" interno (WhatsApp/Facebook con
   mucho margen; Instagram/TikTok a sangre). Se compensa por marca para que
   el logo VISIBLE quede del mismo tamaño (~aro blanco parejo en las 4). */
.social-whatsapp img { width: 68%; height: 68%; }
.social-facebook img { width: 78%; height: 78%; }
.social-instagram img { width: 57%; height: 57%; }
.social-tiktok img { width: 56%; height: 56%; }

.social-fab:hover {
    transform: translateY(-4px) scale(1.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.social-fab:active {
    transform: scale(1.02);
}

/* Etiqueta / tooltip al pasar el mouse */
.social-fab::after {
    content: attr(data-label);
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #222;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 7px 11px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    transition: opacity .2s ease, transform .2s ease;
}

.social-fab:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* WhatsApp destacado: anillo verde pulsante para captar la atencion */
.social-whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: social-pulse 2.2s ease-out infinite;
}

@keyframes social-pulse {
    0%   { transform: scale(1);   opacity: .55; }
    70%  { transform: scale(1.9); opacity: 0; }
    100% { transform: scale(1.9); opacity: 0; }
}

@keyframes social-in {
    from { opacity: 0; transform: translateY(14px) scale(.6); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 576px) {
    .social-fab-group { right: 12px; bottom: 78px; gap: 10px; }
    .social-fab { width: 46px; height: 46px; }
    .social-fab::after { display: none; } /* sin tooltip en movil */
}

/* Accesibilidad: respetar usuarios que reducen movimiento */
@media (prefers-reduced-motion: reduce) {
    .social-fab,
    .social-whatsapp::before { animation: none; }
    .social-fab { transition: box-shadow .2s ease; }
}
