/* ============================================
   FOOTER TECNOSALUD UNIBE
   Diseño turquesa, moderno e interactivo
============================================ */

.site-footer {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(
        120deg,
        #32b5be 0%,
        #24adb7 55%,
        #16a5b0 100%
    );
    font-family: "Open Sans", sans-serif;
}

/* CONTENIDO PRINCIPAL */

.footer-main {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
    padding: 65px 0 58px;
    display: grid;
    grid-template-columns: 1.05fr 1.25fr 1.15fr;
    align-items: start;
    column-gap: clamp(35px, 5vw, 85px);
}

/* ============================================
   COLUMNA DE MARCA
============================================ */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    display: block;
    width: 310px;
    max-width: 100%;
    height: auto;
    transition: transform .25s ease;
}

.footer-logo:hover img {
    transform: translateY(-3px);
}

.footer-description {
    margin: 0;
    color: rgba(255, 255, 255, .96);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: .1px;
}

/* REDES SOCIALES */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 24px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, .03);
    font-size: 25px;
    text-decoration: none;
    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.footer-socials a:hover {
    color: #078b95;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 75, 85, .18);
}

/* ============================================
   TÍTULOS DE LAS COLUMNAS
============================================ */

.footer-title {
    margin: 0;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.footer-title-line {
    display: block;
    width: 62px;
    height: 5px;
    margin: 14px 0 23px;
    border-radius: 5px;
    background: #ff9b45;
    transition: width .25s ease;
}

.footer-menu:hover .footer-title-line,
.footer-contact:hover .footer-title-line {
    width: 88px;
}

/* ============================================
   MENÚ DEL FOOTER
============================================ */

.footer-menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu-list li {
    min-width: 0;
}

.footer-menu-list a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .96);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-menu-list a i {
    flex: 0 0 auto;
    color: #8ce8ec;
    font-size: 15px;
    transition: color .2s ease, transform .2s ease;
}

.footer-menu-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-menu-list a:hover i {
    color: #ffb777;
    transform: translateX(2px);
}

/* ============================================
   INFORMACIÓN DE CONTACTO
============================================ */

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    color: rgba(255, 255, 255, .96);
    font-size: 25px;
    line-height: 1.65;
}

.footer-contact-list li > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-contact-list strong {
    color: #ffffff;
    font-weight: 700;
}

.footer-contact-list a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.footer-contact-list a:hover {
    color: #ffe0c2;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Iconos de contacto */

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 91, 103, .2);
    font-size: 20px;
    transition: transform .25s ease, background .25s ease;
}

.footer-contact-list li:hover .footer-contact-icon {
    transform: scale(1.08);
    background: rgba(0, 91, 103, .36);
}

.location-icon {
    color: #ffb1c4;
}

.phone-icon {
    color: #ffffff;
}

.whatsapp-icon {
    color: #baffd4;
}

.email-icon {
    color: #d9faff;
}

/* ============================================
   FRANJA INFERIOR Y DERECHOS RESERVADOS
============================================ */

.footer-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 22px 90px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 112, 123, .16);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .96);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
}

/* BOTÓN VOLVER ARRIBA */

.footer-back-top {
    position: absolute;
    top: 50%;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 102, 114, .6);
    font-size: 20px;
    text-decoration: none;
    transform: translateY(-50%);
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.footer-back-top:hover {
    color: #078b95;
    background: #ffffff;
    transform: translateY(calc(-50% - 4px));
    box-shadow: 0 8px 20px rgba(0, 70, 80, .2);
}

/* ============================================
   TABLETAS
============================================ */

@media (max-width: 1050px) {
    .footer-main {
        width: calc(100% - 48px);
        grid-template-columns: 1fr 1.1fr;
        gap: 45px 55px;
    }

    .footer-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-menu {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-contact {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 28px;
        border-top: 1px solid rgba(255, 255, 255, .25);
    }

    .footer-contact-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 25px;
    }
}

/* ============================================
   CELULARES
============================================ */

@media (max-width: 650px) {
    .footer-main {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 44px 0 38px;
    }

    .footer-brand,
    .footer-menu,
    .footer-contact {
        grid-column: 1;
        grid-row: auto;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 15px;
    }

    .footer-logo img {
        width: 265px;
    }

    .footer-description {
        font-size: 16px;
    }

    .footer-socials {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-menu,
    .footer-contact {
        padding-top: 27px;
        border-top: 1px solid rgba(255, 255, 255, .25);
    }

    .footer-title {
        font-size: 22px;
    }

    .footer-title-line {
        margin: 12px 0 20px;
    }

    .footer-menu-list {
        gap: 16px 12px;
    }

    .footer-menu-list a {
        gap: 8px;
        font-size: 14px;
    }

    .footer-contact-list {
        display: flex;
        gap: 15px;
    }

    .footer-contact-list li {
        align-items: flex-start;
        font-size: 14px;
    }

    .footer-contact-icon {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
    }

    .footer-bottom {
        min-height: 100px;
        padding: 22px 65px 22px 18px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-back-top {
        right: 14px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* CELULARES MUY PEQUEÑOS */

@media (max-width: 380px) {
    .footer-menu-list {
        grid-template-columns: 1fr;
    }

    .footer-logo img {
        width: 235px;
    }

    .footer-socials a {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
}

/* ACCESIBILIDAD: MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* FOOTER MÁS COMPACTO */
.footer-main {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
    padding: 35px 0 30px;
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.1fr;
    align-items: center;
    gap: 35px;
}

/* LOGO Y DESCRIPCIÓN */
.footer-logo img {
    width: 250px;
    max-width: 100%;
    height: auto;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    font-size: 19px;
}

/* TÍTULOS */
.footer-title {
    font-size: 22px;
}

.footer-title-line {
    width: 48px;
    height: 4px;
    margin: 10px 0 16px;
}

/* MENÚ */
.footer-menu-list {
    gap: 10px 16px;
}

.footer-menu-list a {
    font-size: 16px;
    gap: 8px;
}

/* CONTACTO */
.footer-contact-list {
    gap: 10px;
}

.footer-contact-list li {
    gap: 10px;
    font-size: 16px;
}

.footer-contact-icon {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
    font-size: 18px;
}

/* FRANJA INFERIOR */
.footer-bottom {
    min-height: 65px;
    padding: 15px 75px;
}

.footer-bottom p {
    font-size: 17px;
}

.footer-back-top {
    width: 42px;
    height: 42px;
    right: 24px;
    font-size: 20px;
}

/* TABLETAS */
@media (max-width: 1050px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 30px 0;
    }

    .footer-contact {
        grid-column: 1 / -1;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,.25);
    }

    .footer-contact-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* CELULARES */
@media (max-width: 650px) {
    .footer-main {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 0;
    }

    .footer-brand,
    .footer-menu,
    .footer-contact {
        grid-column: 1;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-logo img {
        width: 225px;
    }

    .footer-menu,
    .footer-contact {
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,.25);
    }

    .footer-menu-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-contact-list {
        display: flex;
    }

    .footer-bottom {
        min-height: 60px;
        padding: 14px 55px 14px 12px;
    }

    .footer-bottom p {
        font-size: 11px;
    }

    .footer-back-top {
        right: 12px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 380px) {
    .footer-menu-list {
        grid-template-columns: 1fr;
    }
}

