/* ==========================================================
   REDES SOCIALES DEL MENÚ
========================================================== */

.redes-navbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 1rem;
}


/* ==========================================================
   BOTONES CIRCULARES DEL MENÚ
========================================================== */

.red-social-navbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.red-social-navbar:hover,
.red-social-navbar:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
}


/* WhatsApp */

.red-social-navbar.whatsapp:hover,
.red-social-navbar.whatsapp:focus-visible {
    background-color: #25d366;
    border-color: #25d366;
    box-shadow: 0 5px 16px rgba(37, 211, 102, 0.35);
}


/* Instagram */

.red-social-navbar.instagram:hover,
.red-social-navbar.instagram:focus-visible {
    background: linear-gradient(
        135deg,
        #833ab4,
        #fd1d1d,
        #fcb045
    );

    border-color: transparent;
    box-shadow: 0 5px 16px rgba(225, 48, 108, 0.35);
}


/* Facebook */

.red-social-navbar.facebook:hover,
.red-social-navbar.facebook:focus-visible {
    background-color: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 5px 16px rgba(24, 119, 242, 0.35);
}


/* ==========================================================
   BOTÓN FLOTANTE DE WHATSAPP
========================================================== */

.whatsapp-flotante {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;
    min-width: 68px;
    padding: 0;

    border: 3px solid #ffffff;
    border-radius: 50%;

    color: #ffffff;
    background-color: #25d366;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.whatsapp-flotante i {
    font-size: 2rem;
    line-height: 1;
}

.whatsapp-flotante:hover,
.whatsapp-flotante:focus-visible {
    color: #ffffff;
    background-color: #1ebe5d;

    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 34px rgba(37, 211, 102, 0.45);
}

/* Oculta el texto para mantener el botón redondo. */

.whatsapp-flotante-texto {
    display: none;
}


/* ==========================================================
   EFECTO DE PULSO
========================================================== */

.whatsapp-flotante::before {
    content: "";

    position: absolute;
    inset: -6px;
    z-index: -1;

    border: 2px solid rgba(37, 211, 102, 0.45);
    border-radius: 50%;

    animation: pulso-whatsapp 2.2s infinite;
}

@keyframes pulso-whatsapp {
    0% {
        opacity: 0.8;
        transform: scale(0.92);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.16);
    }
}


/* ==========================================================
   ADAPTACIÓN PARA TABLET Y CELULAR
========================================================== */

@media (max-width: 991.98px) {
    .redes-navbar {
        justify-content: flex-start;

        margin-top: 1rem;
        margin-left: 0;
        padding-bottom: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .whatsapp-flotante {
        right: 16px;
        bottom: 16px;

        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .whatsapp-flotante i {
        font-size: 1.8rem;
    }
}


/* ==========================================================
   ACCESIBILIDAD
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .whatsapp-flotante::before {
        animation: none;
    }

    .whatsapp-flotante,
    .red-social-navbar {
        transition: none;
    }
}