/* =========================================================
   CIDMED - FOOTER PREMIUM
   Tipografía y proporciones alineadas con About / Services / FAQ
   Fondo inspirado en el Hero
   Diseño aislado
   ========================================================= */

#footer {
    position: relative;
    overflow: hidden;

    color: rgba(255, 255, 255, 0.72);

    font-family: "Montserrat", sans-serif !important;

    background:
        radial-gradient(
            circle at 12% 35%,
            rgba(88, 171, 149, 0.13) 0%,
            rgba(88, 171, 149, 0.045) 18%,
            transparent 42%
        ),
        radial-gradient(
            circle at 88% 65%,
            rgba(52, 74, 108, 0.16) 0%,
            rgba(52, 74, 108, 0.055) 20%,
            transparent 44%
        ),
        linear-gradient(
            135deg,
            #263853 0%,
            #2d405f 48%,
            #263853 100%
        );
}

/* =========================================================
   TIPOGRAFÍA GLOBAL
   ========================================================= */

#footer,
#footer .footer-contact,
#footer .footer-contact h3,
#footer .footer-contact p,
#footer .footer-links,
#footer .footer-links h4,
#footer .footer-links ul,
#footer .footer-links ul li,
#footer .footer-links ul li a,
#footer .copyright,
#footer .social-links a {
    font-family: "Montserrat", sans-serif !important;
}

/* =========================================================
   BOXICONS
   Mantener fuente propia de los iconos
   ========================================================= */

#footer i.bx,
#footer i[class^="bx-"],
#footer i[class*=" bx-"] {
    font-family: "boxicons" !important;
    font-style: normal;
    font-weight: normal;
}

/* =========================================================
   FRANJA SUPERIOR
   ========================================================= */

#footer::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #58ab95 0%,
            #58ab95 35%,
            #344a6c 70%,
            #58ab95 100%
        );
}

/* =========================================================
   AURA INFERIOR IZQUIERDA
   ========================================================= */

#footer::after {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    left: -280px;
    bottom: -330px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(88, 171, 149, 0.14) 0%,
            rgba(88, 171, 149, 0.055) 35%,
            rgba(88, 171, 149, 0.015) 58%,
            transparent 72%
        );

    pointer-events: none;
}

/* =========================================================
   AURA SUPERIOR DERECHA
   ========================================================= */

#footer .footer-top::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -220px;
    top: -240px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(88, 171, 149, 0.10) 0%,
            rgba(52, 74, 108, 0.055) 38%,
            transparent 70%
        );

    pointer-events: none;
}

/* =========================================================
   FOOTER TOP
   ========================================================= */

#footer .footer-top {
    position: relative;
    z-index: 2;

    padding: 68px 0 54px;
}

/* =========================================================
   CONTACTO
   ========================================================= */

#footer .footer-contact {
    padding-right: 35px;
}

/* =========================================================
   LOGO
   ========================================================= */

#footer .footer-contact h3 {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin: 0 0 22px;
    padding: 10px 18px;

    background: rgba(255, 255, 255, 0.97);

    border-radius: 12px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.12),
        0 2px 5px rgba(0, 0, 0, 0.06);
}

#footer .footer-contact h3 img {
    display: block;

    width: 155px !important;
    height: auto !important;

    max-width: 100%;

    object-fit: contain;

    filter: none !important;
    opacity: 1;
}

/* =========================================================
   INFORMACIÓN DE CONTACTO
   ========================================================= */

#footer .footer-contact p {
    margin: 0;
    padding-left: 2px;

    color: rgba(255, 255, 255, 0.80);

    font-size: 13px !important;
    font-weight: 400 !important;

    line-height: 1.9 !important;
    letter-spacing: 0 !important;
}

#footer .footer-contact p strong {
    color: #ffffff;

    font-size: 13px !important;
    font-weight: 600 !important;
}

/* =========================================================
   COLUMNAS DE LINKS
   ========================================================= */

#footer .footer-links {
    padding-left: 25px;
}

/* =========================================================
   TÍTULOS
   ========================================================= */

#footer .footer-links h4 {
    position: relative;

    margin: 2px 0 23px;
    padding-bottom: 12px;

    color: #ffffff;

    font-size: 16px !important;
    font-weight: 700 !important;

    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}

/* =========================================================
   LÍNEA DECORATIVA
   ========================================================= */

#footer .footer-links h4::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 32px;
    height: 2px;

    border-radius: 10px;

    background: #58ab95;
}

/* =========================================================
   LISTAS
   ========================================================= */

#footer .footer-links ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

#footer .footer-links ul li {
    display: flex;

    align-items: center;

    margin-bottom: 12px;

    line-height: 1.4;
}

/* =========================================================
   FLECHAS
   ========================================================= */

#footer .footer-links ul li i.bx-chevron-right {
    flex-shrink: 0;

    margin-right: 8px;

    color: #58ab95;

    font-size: 13px;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

#footer .footer-links ul li:hover i.bx-chevron-right {
    color: #ffffff;

    transform: translateX(2px);
}

/* =========================================================
   LINKS
   ========================================================= */

#footer .footer-links ul li a {
    color: rgba(255, 255, 255, 0.68);

    font-size: 13px !important;
    font-weight: 400 !important;

    line-height: 1.5 !important;
    letter-spacing: 0 !important;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

#footer .footer-links ul li:hover a {
    color: #ffffff;

    transform: translateX(3px);
}

/* =========================================================
   PARTE INFERIOR
   ========================================================= */

#footer > .container:last-child {
    position: relative;
    z-index: 2;

    min-height: 82px;

    padding-top: 21px !important;
    padding-bottom: 21px !important;

    border-top: 1px solid rgba(255, 255, 255, 0.09);

    align-items: center;
}

/* =========================================================
   COPYRIGHT
   ========================================================= */

#footer .copyright {
    color: rgba(255, 255, 255, 0.58) !important;

    font-size: 12px !important;
    font-weight: 400 !important;

    line-height: 1.6 !important;
    letter-spacing: 0 !important;
}

#footer .copyright strong {
    color: #ffffff;

    font-size: 12px !important;
    font-weight: 700 !important;
}

/* =========================================================
   REDES SOCIALES
   ========================================================= */

#footer .social-links {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;
}

#footer .social-links a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: rgba(255, 255, 255, 0.82);

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    font-size: 16px !important;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

#footer .social-links a:hover {
    color: #ffffff;

    background: #58ab95;

    border-color: #58ab95;

    transform: translateY(-2px);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    #footer .footer-top {
        padding: 58px 0 42px;
    }

    #footer .footer-contact {
        padding-right: 15px;
        margin-bottom: 35px;
    }

    #footer .footer-links {
        padding-left: 15px;
        margin-bottom: 20px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    #footer .footer-top {
        padding: 50px 0 30px;
    }

    #footer .footer-contact {
        padding-right: 0;

        text-align: center;
    }

    /* Logo */

    #footer .footer-contact h3 {
        margin-bottom: 21px;
        padding: 9px 16px;
    }

    #footer .footer-contact h3 img {
        width: 145px !important;

        margin: 0 auto;
    }

    /* Información */

    #footer .footer-contact p {
        padding-left: 0;

        font-size: 13px !important;
        line-height: 1.85 !important;
    }

    #footer .footer-contact p strong {
        font-size: 13px !important;
    }

    /* Links */

    #footer .footer-links {
        padding-left: 0;

        margin-top: 30px;

        text-align: center;
    }

    #footer .footer-links h4 {
        margin-bottom: 22px;

        font-size: 15px !important;
    }

    #footer .footer-links h4::after {
        left: 50%;

        transform: translateX(-50%);
    }

    #footer .footer-links ul li {
        justify-content: center;

        margin-bottom: 11px;
    }

    #footer .footer-links ul li a {
        font-size: 13px !important;
    }

    /* Footer inferior */

    #footer > .container:last-child {
        min-height: auto;

        padding-top: 21px !important;
        padding-bottom: 24px !important;

        flex-direction: column;

        text-align: center;
    }

    #footer .copyright {
        font-size: 11.5px !important;

        line-height: 1.7 !important;
    }

    #footer .copyright strong {
        font-size: 11.5px !important;
    }

    #footer .social-links {
        margin-top: 15px;
    }
}

/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 575px) {

    #footer .footer-top {
        padding: 44px 0 25px;
    }

    #footer .footer-contact h3 {
        padding: 8px 14px;
    }

    #footer .footer-contact h3 img {
        width: 135px !important;
    }

    #footer .footer-contact p {
        font-size: 12.5px !important;

        line-height: 1.85 !important;
    }

    #footer .footer-contact p strong {
        font-size: 12.5px !important;
    }

    #footer .footer-links {
        margin-top: 27px;
    }

    #footer .footer-links h4 {
        font-size: 15px !important;
    }

    #footer .footer-links ul li a {
        font-size: 12.5px !important;
    }

    #footer .copyright {
        font-size: 11px !important;
    }

    #footer .copyright strong {
        font-size: 11px !important;
    }
}

/* =========================================================
   REDUCIR ANIMACIONES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #footer .footer-links ul li i,
    #footer .footer-links ul li a,
    #footer .social-links a {
        transition: none;
    }
}