/* ==========================================================
   FOOTER
   SOSMedical
========================================================== */

.site-footer {
    position: relative;
    overflow: hidden;

    color: rgba(255, 255, 255, 0.78);

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(0, 153, 216, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(0, 182, 122, 0.12),
            transparent 30%
        ),
        var(--primary);
}

.site-footer::before {
    position: absolute;
    inset: 0;

    content: "";
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7),
            transparent 90%
        );
    -webkit-mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7),
            transparent 90%
        );
}

.site-footer__main {
    position: relative;
    z-index: 1;

    padding: 80px 0 56px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.75fr));
    gap: clamp(34px, 5vw, 72px);
}

/*
|--------------------------------------------------------------------------
| Brand
|--------------------------------------------------------------------------
*/

.site-footer__brand {
    max-width: 360px;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
}

.site-footer__logo-image {
    width: 190px;
    max-height: 64px;
    object-fit: contain;
}

.site-footer__description {
    margin-top: 22px;

    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
}

.site-footer__slogan {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 22px;

    color: var(--white);
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
}

.site-footer__slogan::before {
    width: 26px;
    height: 2px;

    content: "";

    background:
        linear-gradient(
            90deg,
            var(--secondary),
            var(--success)
        );
    border-radius: 999px;
}

/*
|--------------------------------------------------------------------------
| Columns
|--------------------------------------------------------------------------
*/

.site-footer__title {
    margin-bottom: 22px;

    color: var(--white);
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.site-footer__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 7px;

    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;

    transition:
        color var(--transition),
        transform var(--transition);
}

.site-footer__link::before {
    width: 0;
    height: 1px;

    content: "";

    background: var(--secondary);

    transition: width var(--transition);
}

.site-footer__link:hover {
    color: var(--white);
    transform: translateX(3px);
}

.site-footer__link:hover::before {
    width: 12px;
}

/*
|--------------------------------------------------------------------------
| Contact
|--------------------------------------------------------------------------
*/

.site-footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.site-footer__contact-icon {
    display: inline-grid;
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    color: var(--secondary);

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    place-items: center;
}

.site-footer__contact-icon svg {
    width: 18px;
    height: 18px;
}

.site-footer__contact-content {
    min-width: 0;
}

.site-footer__contact-label {
    display: block;

    margin-bottom: 3px;

    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__contact-value {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;

    transition: color var(--transition);
}

a.site-footer__contact-value:hover {
    color: var(--white);
}

/*
|--------------------------------------------------------------------------
| Social networks
|--------------------------------------------------------------------------
*/

.site-footer__socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 28px;
}

.site-footer__social-link {
    display: inline-grid;

    width: 42px;
    height: 42px;

    color: rgba(255, 255, 255, 0.76);

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;

    place-items: center;

    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.site-footer__social-link:hover {
    color: var(--white);
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 10px 24px rgba(0, 153, 216, 0.22);
    transform: translateY(-3px);
}

.site-footer__social-link svg {
    width: 19px;
    height: 19px;
}

/*
|--------------------------------------------------------------------------
| Newsletter
|--------------------------------------------------------------------------
*/

.site-footer__newsletter {
    margin-top: 28px;
}

.site-footer__newsletter-text {
    margin-bottom: 13px;

    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.65;
}

.footer-newsletter {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 6px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-md);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.footer-newsletter:focus-within {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(0, 153, 216, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 153, 216, 0.12);
}

.footer-newsletter__input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;

    color: var(--white);
    font-size: 14px;

    background: transparent;
    border: 0;
}

.footer-newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter__button {
    display: inline-grid;
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    color: var(--white);
    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            var(--secondary),
            #00abd3
        );
    border: 0;
    border-radius: 12px;

    place-items: center;

    transition:
        box-shadow var(--transition),
        transform var(--transition);
}

.footer-newsletter__button:hover {
    box-shadow: 0 9px 22px rgba(0, 153, 216, 0.26);
    transform: translateY(-2px);
}

.footer-newsletter__button svg {
    width: 18px;
    height: 18px;
}

/*
|--------------------------------------------------------------------------
| Bottom
|--------------------------------------------------------------------------
*/

.site-footer__bottom {
    position: relative;
    z-index: 1;

    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer__bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 82px;
}

.site-footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.site-footer__legal-link {
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;

    transition: color var(--transition);
}

.site-footer__legal-link:hover {
    color: var(--white);
}

/*
|--------------------------------------------------------------------------
| Back to top
|--------------------------------------------------------------------------
*/

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 800;

    display: grid;

    width: 48px;
    height: 48px;

    visibility: hidden;
    color: var(--white);
    cursor: pointer;

    background: var(--secondary);
    border: 0;
    border-radius: 15px;

    box-shadow: 0 12px 30px rgba(0, 153, 216, 0.28);

    opacity: 0;

    place-items: center;

    transform: translateY(15px);

    transition:
        visibility var(--transition),
        opacity var(--transition),
        background-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.back-to-top.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--success);
    box-shadow: 0 14px 34px rgba(0, 182, 122, 0.26);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: 1.3fr repeat(2, 1fr);
    }

    .site-footer__column:last-child {
        grid-column: 2 / -1;
    }
}

@media (max-width: 768px) {

    /*
    |--------------------------------------------------------------------------
    | Footer principal
    |--------------------------------------------------------------------------
    */

    .site-footer__main {
        padding: 58px 0 38px;
    }


    /*
    |--------------------------------------------------------------------------
    | Grid
    |--------------------------------------------------------------------------
    */

    .site-footer__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 38px 24px;
    }


    /*
    |--------------------------------------------------------------------------
    | Marca
    |--------------------------------------------------------------------------
    */

    .site-footer__brand {
        grid-column: 1 / -1;

        max-width: 520px;
        margin: 0 auto;

        text-align: center;
    }

    .site-footer__logo {
        justify-content: center;
    }

    .site-footer__logo-image {
        width: 170px;
        max-height: 58px;
    }

    .site-footer__description {
        max-width: 480px;
        margin: 18px auto 0;

        font-size: 14px;
        line-height: 1.7;
    }

    .site-footer__slogan {
        justify-content: center;

        margin-top: 18px;

        font-size: 13px;
    }


    /*
    |--------------------------------------------------------------------------
    | Redes sociales
    |--------------------------------------------------------------------------
    */

    .site-footer__socials {
        justify-content: center;

        margin-top: 22px;
    }

    .site-footer__social-link {
        width: 40px;
        height: 40px;

        border-radius: 12px;
    }


    /*
    |--------------------------------------------------------------------------
    | Columnas Empresa / Equipos
    |--------------------------------------------------------------------------
    */

    .site-footer__column {
        min-width: 0;
    }

    .site-footer__title {
        margin-bottom: 17px;

        font-size: 15px;
    }

    .site-footer__links {
        gap: 11px;
    }

    .site-footer__link {
        font-size: 13px;
    }


    /*
    |--------------------------------------------------------------------------
    | Contacto
    |--------------------------------------------------------------------------
    */

    .site-footer__column:last-child {
        grid-column: 1 / -1;
    }

    .site-footer__contact-list {
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;
    }

    .site-footer__contact-item {
        gap: 10px;

        min-width: 0;
    }

    .site-footer__contact-icon {
        width: 36px;
        height: 36px;

        border-radius: 11px;
    }

    .site-footer__contact-icon svg {
        width: 17px;
        height: 17px;
    }

    .site-footer__contact-label {
        font-size: 10px;
    }

    .site-footer__contact-value {
        font-size: 12px;
        line-height: 1.5;
    }


    /*
    |--------------------------------------------------------------------------
    | Footer inferior
    |--------------------------------------------------------------------------
    */

    .site-footer__bottom-container {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 12px;

        min-height: auto;
        padding: 22px 0;

        text-align: center;
    }

    .site-footer__copyright {
        font-size: 12px;
        line-height: 1.6;
    }

    .site-footer__legal {
        justify-content: center;

        gap: 8px 18px;
    }

    .site-footer__legal-link {
        font-size: 12px;
    }


    /*
    |--------------------------------------------------------------------------
    | Volver arriba
    |--------------------------------------------------------------------------
    */

    .back-to-top {
        right: 18px;
        bottom: 18px;

        width: 44px;
        height: 44px;

        border-radius: 13px;
    }
}

@media (max-width: 540px) {

    /*
    |--------------------------------------------------------------------------
    | Footer principal
    |--------------------------------------------------------------------------
    */

    .site-footer__main {
        padding: 50px 0 32px;
    }


    /*
    |--------------------------------------------------------------------------
    | Grid principal
    |--------------------------------------------------------------------------
    */

    .site-footer__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 32px 18px;
    }


    /*
    |--------------------------------------------------------------------------
    | Marca
    |--------------------------------------------------------------------------
    */

    .site-footer__brand {
        grid-column: 1 / -1;

        max-width: 100%;
        margin: 0;

        text-align: center;
    }

    .site-footer__logo {
        justify-content: center;
    }

    .site-footer__logo-image {
        width: 150px;
        max-height: 52px;
    }

    .site-footer__description {
        max-width: 390px;
        margin: 16px auto 0;

        font-size: 12px;
        line-height: 1.65;
    }

    .site-footer__slogan {
        justify-content: center;

        margin-top: 16px;

        font-size: 12px;
    }

    .site-footer__slogan::before {
        width: 20px;
    }


    /*
    |--------------------------------------------------------------------------
    | Redes sociales
    |--------------------------------------------------------------------------
    */

    .site-footer__socials {
        justify-content: center;

        gap: 8px;
        margin-top: 19px;
    }

    .site-footer__social-link {
        width: 38px;
        height: 38px;

        border-radius: 11px;
    }

    .site-footer__social-link svg {
        width: 17px;
        height: 17px;
    }


    /*
    |--------------------------------------------------------------------------
    | Empresa / Equipos
    |--------------------------------------------------------------------------
    */

    .site-footer__column {
        min-width: 0;
    }

    .site-footer__title {
        margin-bottom: 15px;

        font-size: 14px;
    }

    .site-footer__links {
        gap: 10px;
    }

    .site-footer__link {
        font-size: 12px;
        line-height: 1.4;
    }


    /*
    |--------------------------------------------------------------------------
    | Contacto
    |--------------------------------------------------------------------------
    */

    .site-footer__column:last-child {
        grid-column: 1 / -1;

        padding-top: 4px;
    }

    .site-footer__column:last-child
    .site-footer__title {
        text-align: center;
    }

    .site-footer__contact-list {
        display: flex;
        flex-direction: column;

        gap: 10px;

        max-width: 390px;
        margin: 0 auto;
    }

    .site-footer__contact-item {
        align-items: center;

        gap: 11px;

        padding: 11px 12px;

        background:
            rgba(255, 255, 255, .045);

        border:
            1px solid
            rgba(255, 255, 255, .06);

        border-radius: 13px;
    }

    .site-footer__contact-icon {
        width: 35px;
        height: 35px;

        border-radius: 10px;
    }

    .site-footer__contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .site-footer__contact-label {
        margin-bottom: 2px;

        font-size: 9px;
        letter-spacing: .065em;
    }

    .site-footer__contact-value {
        font-size: 11px;
        line-height: 1.45;
    }


    /*
    |--------------------------------------------------------------------------
    | Footer inferior
    |--------------------------------------------------------------------------
    */

    .site-footer__bottom-container {
        align-items: center;
        flex-direction: column;
        gap: 12px;

        padding: 20px 0;

        text-align: center;
    }

    .site-footer__copyright {
        font-size: 11px;
        line-height: 1.55;
    }

    .site-footer__legal {
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 8px 15px;
    }

    .site-footer__legal-link {
        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | Volver arriba
    |--------------------------------------------------------------------------
    */

    .back-to-top {
        right: 14px;
        bottom: 14px;

        width: 41px;
        height: 41px;

        border-radius: 12px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .site-footer__link,
    .site-footer__contact-value,
    .site-footer__social-link,
    .footer-newsletter,
    .footer-newsletter__button,
    .site-footer__legal-link,
    .back-to-top {
        transition: none;
    }

    .site-footer__link:hover,
    .site-footer__social-link:hover,
    .footer-newsletter__button:hover,
    .back-to-top:hover {
        transform: none;
    }
}