/* =========================================================
   ALIADOS EDUCATIVOS — REDES SOCIALES FLOTANTES
   ========================================================= */

.ae-social-float {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.ae-social-float__item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 52px;

    color: #0f666b;
    text-decoration: none !important;

    border-radius: 999px;

    transition:
        transform .22s ease,
        filter .22s ease;
}

.ae-social-float__icon {
    position: relative;
    z-index: 2;

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    flex: 0 0 52px;

    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 102, 107, .14);

    box-shadow:
        0 8px 25px rgba(15, 91, 94, .12),
        0 2px 7px rgba(15, 91, 94, .08);

    font-size: 21px;
    color: #0f666b;

    transition:
        background .22s ease,
        color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.ae-social-float__label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;

    margin-right: -18px;
    padding: 9px 0;

    background: #0f666b;
    color: #ffffff;

    border-radius: 999px 0 0 999px;

    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;

    transform: translateX(14px);

    transition:
        max-width .28s ease,
        opacity .2s ease,
        padding .28s ease,
        margin .28s ease,
        transform .28s ease;
}

.ae-social-float__item:hover {
    transform: translateX(-3px);
}

.ae-social-float__item:hover .ae-social-float__label,
.ae-social-float__item:focus-visible .ae-social-float__label {
    max-width: 130px;
    opacity: 1;

    padding: 9px 27px 9px 16px;
    margin-right: -18px;

    transform: translateX(0);
}

.ae-social-float__item:hover .ae-social-float__icon,
.ae-social-float__item:focus-visible .ae-social-float__icon {
    background: #0f666b;
    color: #ffffff;

    transform: scale(1.06);

    box-shadow:
        0 10px 30px rgba(15, 91, 94, .20),
        0 3px 8px rgba(15, 91, 94, .12);
}

.ae-social-float__item:focus-visible {
    outline: none;
}

.ae-social-float__item:focus-visible .ae-social-float__icon {
    outline: 3px solid rgba(242, 140, 40, .32);
    outline-offset: 3px;
}


/* =========================
   MÓVIL
   ========================= */

@media (max-width: 768px) {

    .ae-social-float {
        top: auto;
        right: 14px;
        bottom: 18px;

        transform: none;

        flex-direction: row;
        gap: 8px;

        padding: 7px;

        background: rgba(255, 255, 255, .94);
        border: 1px solid rgba(15, 102, 107, .10);
        border-radius: 999px;

        box-shadow: 0 10px 32px rgba(15, 91, 94, .14);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .ae-social-float__item {
        width: 42px;
        height: 42px;
    }

    .ae-social-float__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;

        font-size: 18px;

        box-shadow: none;
    }

    .ae-social-float__label {
        display: none;
    }

    .ae-social-float__item:hover {
        transform: none;
    }

    .ae-social-float__item:hover .ae-social-float__icon {
        transform: none;
    }
}

/* =========================================================
   IDENTIDAD VISUAL OFICIAL — REDES SOCIALES
   ========================================================= */

/* INSTAGRAM */
.ae-social-float__item--instagram .ae-social-float__icon {
    border: 0;
    background:
        radial-gradient(circle at 30% 107%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285AEB 90%);
    color: #ffffff;
}

.ae-social-float__item--instagram .ae-social-float__label {
    background:
        linear-gradient(
            90deg,
            #d6249f 0%,
            #fd5949 100%
        );
}


/* FACEBOOK */
.ae-social-float__item--facebook .ae-social-float__icon {
    border: 0;
    background: #1877F2;
    color: #ffffff;
}

.ae-social-float__item--facebook .ae-social-float__label {
    background: #1877F2;
}


/* WHATSAPP */
.ae-social-float__item--whatsapp .ae-social-float__icon {
    border: 0;
    background: #25D366;
    color: #ffffff;
}

.ae-social-float__item--whatsapp .ae-social-float__label {
    background: #25D366;
}


/* Evitar que el hover corporativo sustituya
   los colores propios de cada plataforma */

.ae-social-float__item--instagram:hover .ae-social-float__icon,
.ae-social-float__item--instagram:focus-visible .ae-social-float__icon {
    background:
        radial-gradient(circle at 30% 107%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285AEB 90%);
    color: #ffffff;
}

.ae-social-float__item--facebook:hover .ae-social-float__icon,
.ae-social-float__item--facebook:focus-visible .ae-social-float__icon {
    background: #1877F2;
    color: #ffffff;
}

.ae-social-float__item--whatsapp:hover .ae-social-float__icon,
.ae-social-float__item--whatsapp:focus-visible .ae-social-float__icon {
    background: #25D366;
    color: #ffffff;
}


/* Los símbolos permanecen blancos */

.ae-social-float__item--instagram .ae-social-float__icon i,
.ae-social-float__item--facebook .ae-social-float__icon i,
.ae-social-float__item--whatsapp .ae-social-float__icon i {
    color: #ffffff;
}


/* Un poco más de presencia para los logos */

.ae-social-float__item--instagram .ae-social-float__icon i {
    font-size: 23px;
}

.ae-social-float__item--facebook .ae-social-float__icon i {
    font-size: 22px;
}

.ae-social-float__item--whatsapp .ae-social-float__icon i {
    font-size: 23px;
}


/* Móvil */

@media (max-width: 768px) {

    .ae-social-float__item--instagram .ae-social-float__icon i,
    .ae-social-float__item--whatsapp .ae-social-float__icon i {
        font-size: 20px;
    }

    .ae-social-float__item--facebook .ae-social-float__icon i {
        font-size: 19px;
    }
}
