/* =========================================================
   PIE DE PÁGINA GLOBAL CLSF
   FULL WIDTH
   AZUL: #05285e
   DORADO: #dfa400
========================================================== */


/* =========================================================
   ELIMINAR EL ANCHO LIMITADO DE HELIX
========================================================= */

#sp-footer {
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
}

#sp-footer > .container,
#sp-footer > .container-fluid,
#sp-footer .container-inner {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#sp-footer .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

#sp-footer [class*="col-"] {
    padding-right: 0 !important;
    padding-left: 0 !important;
}


/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */

#clsf-global-footer,
#clsf-global-footer * {
    box-sizing: border-box;
}

#clsf-global-footer {
    --clsf-navy: #05285e;
    --clsf-navy-middle: #073b79;
    --clsf-navy-dark: #031a3d;
    --clsf-yellow: #dfa400;
    --clsf-white: #ffffff;
    --clsf-text: #dce6f0;
    --clsf-text-soft: #aebed0;
    --clsf-border: rgba(255, 255, 255, 0.14);

    position: relative;

    width: 100vw;
    max-width: none;

    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);

    overflow: hidden;

    color: var(--clsf-white);

    background:
        linear-gradient(
            120deg,
            var(--clsf-navy-dark) 0%,
            var(--clsf-navy) 35%,
            var(--clsf-navy-middle) 100%
        );
}


/* =========================================================
   LÍNEA DORADA SUPERIOR
========================================================= */

#clsf-global-footer::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--clsf-yellow) 0%,
            #f4c738 50%,
            var(--clsf-yellow) 100%
        );
}


/* =========================================================
   DECORACIÓN DE FONDO
========================================================= */

#clsf-global-footer::after {
    content: "";

    position: absolute;
    top: -260px;
    right: -220px;

    width: 570px;
    height: 570px;

    background: rgba(255, 255, 255, 0.035);
    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

#clsf-global-footer .clsf-footer-main {
    position: relative;
    z-index: 2;

    width: 100%;

    padding:
        52px
        clamp(24px, 5vw, 84px)
        46px;
}

#clsf-global-footer .clsf-footer-inner {
    display: grid;

    grid-template-columns:
        minmax(320px, 1.35fr)
        minmax(180px, 0.65fr)
        minmax(250px, 0.85fr)
        minmax(270px, 0.95fr);

    align-items: start;

    gap:
        clamp(30px, 4vw, 62px);

    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}


/* =========================================================
   IDENTIDAD
========================================================= */

#clsf-global-footer .clsf-footer-brand {
    min-width: 0;
}

#clsf-global-footer .clsf-footer-brand-header {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 21px;
}


/* =========================================================
   LOGO
========================================================= */

#clsf-global-footer .clsf-footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 92px;
    height: 92px;
    flex: 0 0 92px;

    padding: 6px;

    background: #ffffff;

    border: 3px solid var(--clsf-yellow);
    border-radius: 50%;

    box-shadow:
        0 13px 30px rgba(0, 0, 0, 0.25);

    text-decoration: none !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#clsf-global-footer .clsf-footer-logo-link:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.32);
}

#clsf-global-footer .clsf-footer-logo {
    display: block;

    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;

    object-fit: contain;
    border-radius: 50%;
}


/* =========================================================
   NOMBRE
========================================================= */

#clsf-global-footer .clsf-footer-brand-title {
    min-width: 0;
}

#clsf-global-footer .clsf-footer-brand-title h2 {
    margin: 0 0 7px;

    color: var(--clsf-white);

    font-size: clamp(23px, 2.2vw, 31px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

#clsf-global-footer .clsf-footer-brand-title span {
    display: block;

    color: var(--clsf-yellow);

    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: 1.1px;
    line-height: 1.45;
    text-transform: uppercase;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

#clsf-global-footer .clsf-footer-description {
    max-width: 500px;
    margin: 0 0 20px;

    color: var(--clsf-text);

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   LEMA
========================================================= */

#clsf-global-footer .clsf-footer-motto {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    padding: 10px 15px;

    color: var(--clsf-white);
    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(223, 164, 0, 0.55);
    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

#clsf-global-footer .clsf-footer-motto::before {
    content: "";

    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    background: var(--clsf-yellow);
    border-radius: 50%;
}


/* =========================================================
   TÍTULOS
========================================================= */

#clsf-global-footer .clsf-footer-column h3 {
    position: relative;

    margin: 0 0 23px;
    padding-bottom: 12px;

    color: var(--clsf-white);

    font-size: 17px;
    font-weight: 900;
    line-height: 1.3;
}

#clsf-global-footer .clsf-footer-column h3::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 0;

    width: 42px;
    height: 3px;

    background: var(--clsf-yellow);
    border-radius: 20px;
}


/* =========================================================
   ENLACES RÁPIDOS
========================================================= */

#clsf-global-footer .clsf-footer-links,
#clsf-global-footer .clsf-footer-links li {
    margin: 0;
    padding: 0;

    list-style: none !important;
}

#clsf-global-footer .clsf-footer-links {
    display: grid;
    gap: 6px;
}

#clsf-global-footer .clsf-footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 7px 0;

    color: var(--clsf-text);

    text-decoration: none !important;

    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.4;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

#clsf-global-footer .clsf-footer-links a::before {
    content: "";

    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    border-top: 2px solid var(--clsf-yellow);
    border-right: 2px solid var(--clsf-yellow);

    transform: rotate(45deg);
}

#clsf-global-footer .clsf-footer-links a:hover,
#clsf-global-footer .clsf-footer-links a:focus-visible {
    color: var(--clsf-yellow);
    transform: translateX(4px);
}


/* =========================================================
   MAPA
========================================================= */

#clsf-global-footer .clsf-footer-map {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 145px;

    padding: 8px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
}

#clsf-global-footer .clsf-footer-map img {
    display: block;

    width: 100%;
    max-width: 260px;
    height: auto;

    opacity: 0.92;
}


/* MARCADOR DE SAN SALVADOR */

#clsf-global-footer .clsf-footer-map-pin {
    position: absolute;
    top: 42%;
    left: 41%;

    width: 18px;
    height: 18px;

    background: var(--clsf-yellow);

    border: 4px solid #ffffff;
    border-radius: 50%;

    box-shadow:
        0 0 0 5px rgba(223, 164, 0, 0.20),
        0 6px 15px rgba(0, 0, 0, 0.30);
}

#clsf-global-footer .clsf-footer-map-pin::after {
    content: "";

    position: absolute;
    top: 100%;
    left: 50%;

    width: 0;
    height: 0;

    border-top: 9px solid var(--clsf-yellow);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;

    transform: translateX(-50%);
}

#clsf-global-footer .clsf-footer-location-name {
    margin: 11px 0 17px;

    color: var(--clsf-text);

    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   REDES SOCIALES
========================================================= */

#clsf-global-footer .clsf-footer-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

#clsf-global-footer .clsf-footer-social-title {
    color: var(--clsf-white);

    font-size: 13px;
    font-weight: 850;
}

#clsf-global-footer .clsf-footer-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

#clsf-global-footer .clsf-footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;

    color: var(--clsf-white);
    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;

    text-decoration: none !important;

    font-size: 18px;
    font-weight: 900;
    line-height: 1;

    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

#clsf-global-footer .clsf-footer-social-links a:hover,
#clsf-global-footer .clsf-footer-social-links a:focus-visible {
    color: var(--clsf-navy);
    background: var(--clsf-yellow);
    border-color: var(--clsf-yellow);

    transform: translateY(-3px);
}


/* =========================================================
   CONTACTO
========================================================= */

#clsf-global-footer .clsf-footer-contact-list,
#clsf-global-footer .clsf-footer-contact-list li {
    margin: 0;
    padding: 0;

    list-style: none !important;
}

#clsf-global-footer .clsf-footer-contact-list {
    display: grid;
    gap: 18px;
}

#clsf-global-footer .clsf-footer-contact-item {
    position: relative;

    display: block;

    padding-left: 15px;
}

#clsf-global-footer .clsf-footer-contact-item::before {
    content: "";

    position: absolute;
    top: 5px;
    left: 0;

    width: 4px;
    height: 28px;

    background:
        linear-gradient(
            180deg,
            var(--clsf-yellow),
            rgba(223, 164, 0, 0.18)
        );

    border-radius: 10px;
}

#clsf-global-footer .clsf-footer-contact-item strong {
    display: block;

    margin-bottom: 4px;

    color: var(--clsf-white);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
    line-height: 1.4;
    text-transform: uppercase;
}

#clsf-global-footer .clsf-footer-contact-item span,
#clsf-global-footer .clsf-footer-contact-item a {
    display: block;

    color: var(--clsf-text);

    font-size: 13px;
    line-height: 1.6;

    text-decoration: none !important;

    overflow-wrap: normal;
    word-break: normal;
}

#clsf-global-footer .clsf-footer-contact-item a:hover,
#clsf-global-footer .clsf-footer-contact-item a:focus-visible {
    color: var(--clsf-yellow);
}


/* =========================================================
   BARRA INFERIOR
========================================================= */

#clsf-global-footer .clsf-footer-bottom {
    position: relative;
    z-index: 2;

    width: 100%;

    padding:
        17px
        clamp(24px, 5vw, 84px);

    background: var(--clsf-navy-dark);

    border-top: 1px solid var(--clsf-border);
}

#clsf-global-footer .clsf-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}

#clsf-global-footer .clsf-footer-bottom p {
    margin: 0;

    color: var(--clsf-text-soft);

    font-size: 12px;
    line-height: 1.5;
}

#clsf-global-footer .clsf-footer-bottom strong {
    color: var(--clsf-yellow);
    font-weight: 850;
}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

#clsf-global-footer a:focus-visible {
    outline: 3px solid rgba(223, 164, 0, 0.80);
    outline-offset: 4px;
}


/* =========================================================
   PANTALLAS MEDIANAS
========================================================= */

@media (max-width: 1180px) {

    #clsf-global-footer .clsf-footer-inner {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 42px 38px;
    }

    #clsf-global-footer .clsf-footer-brand {
        grid-column: 1 / -1;
    }

    #clsf-global-footer .clsf-footer-description {
        max-width: 760px;
    }
}


/* =========================================================
   TABLETA
========================================================= */

@media (max-width: 800px) {

    #clsf-global-footer .clsf-footer-main {
        padding: 44px 22px 40px;
    }

    #clsf-global-footer .clsf-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    #clsf-global-footer .clsf-footer-brand {
        grid-column: auto;
    }

    #clsf-global-footer .clsf-footer-map {
        max-width: 420px;
    }

    #clsf-global-footer .clsf-footer-location-name {
        max-width: 420px;
    }

    #clsf-global-footer .clsf-footer-social {
        max-width: 420px;
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 580px) {

    #clsf-global-footer .clsf-footer-main {
        padding: 39px 17px 35px;
    }

    #clsf-global-footer .clsf-footer-brand-header {
        align-items: center;
        gap: 14px;

        margin-bottom: 18px;
    }

    #clsf-global-footer .clsf-footer-logo-link {
        width: 74px;
        height: 74px;
        flex-basis: 74px;

        padding: 5px;
    }

    #clsf-global-footer .clsf-footer-brand-title h2 {
        font-size: 21px;
    }

    #clsf-global-footer .clsf-footer-brand-title span {
        font-size: 9px;
        letter-spacing: 0.75px;
    }

    #clsf-global-footer .clsf-footer-description {
        font-size: 13px;
        line-height: 1.65;
    }

    #clsf-global-footer .clsf-footer-motto {
        font-size: 11px;
    }

    #clsf-global-footer .clsf-footer-map {
        min-height: 130px;
    }

    #clsf-global-footer .clsf-footer-social {
        align-items: flex-start;
        flex-direction: column;
    }

    #clsf-global-footer .clsf-footer-bottom {
        padding: 16px 17px;
    }

    #clsf-global-footer .clsf-footer-bottom-inner {
        align-items: center;
        flex-direction: column;
        gap: 5px;

        text-align: center;
    }
}


/* =========================================================
   REDUCIR ANIMACIONES
========================================================= */

@media (prefers-reduced-motion: reduce) {

    #clsf-global-footer .clsf-footer-logo-link,
    #clsf-global-footer .clsf-footer-links a,
    #clsf-global-footer .clsf-footer-social-links a {
        transition: none !important;
    }
}
/* =========================================================
   CORRECCIÓN FULL WIDTH PARA HELIX
   PEGAR AL FINAL DE CUSTOM.CSS
========================================================= */

#sp-footer {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    background: #05285e !important;
}

#sp-footer .container,
#sp-footer .container-fluid,
#sp-footer .container-inner,
#sp-footer .row,
#sp-footer .sp-column,
#sp-footer .sp-module,
#sp-footer .sp-module-content,
#sp-footer .custom {
    width: 100% !important;
    max-width: none !important;

    margin-right: 0 !important;
    margin-left: 0 !important;

    padding-right: 0 !important;
    padding-left: 0 !important;

    overflow: visible !important;
}

#sp-footer .row {
    display: block !important;
}

#sp-footer [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* PIE A TODO EL ANCHO DE LA PANTALLA */

#clsf-global-footer {
    position: relative !important;
    left: 50% !important;

    width: 100vw !important;
    max-width: 100vw !important;

    margin-right: 0 !important;
    margin-left: -50vw !important;

    background:
        linear-gradient(
            120deg,
            #031a3d 0%,
            #05285e 38%,
            #073b79 100%
        ) !important;
}


/* CUATRO COLUMNAS BIEN DISTRIBUIDAS */

#clsf-global-footer .clsf-footer-inner {
    display: grid !important;

    grid-template-columns:
        minmax(340px, 1.35fr)
        minmax(180px, 0.65fr)
        minmax(250px, 0.85fr)
        minmax(280px, 0.95fr) !important;

    align-items: start !important;

    gap: clamp(32px, 4vw, 65px) !important;

    width: 100% !important;
    max-width: 1600px !important;

    margin: 0 auto !important;
}


/* EVITAR QUE EL CONTACTO SE CORTE PALABRA POR PALABRA */

#clsf-global-footer .clsf-footer-contact,
#clsf-global-footer .clsf-footer-contact-list,
#clsf-global-footer .clsf-footer-contact-item,
#clsf-global-footer .clsf-footer-contact-item span,
#clsf-global-footer .clsf-footer-contact-item a {
    min-width: 0 !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}


/* PANTALLAS MEDIANAS */

@media (max-width: 1250px) {

    #clsf-global-footer .clsf-footer-inner {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 42px 38px !important;
    }

    #clsf-global-footer .clsf-footer-brand {
        grid-column: 1 / -1 !important;
    }
}


/* TABLETA Y CELULAR */

@media (max-width: 800px) {

    #clsf-global-footer .clsf-footer-inner {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }

    #clsf-global-footer .clsf-footer-brand {
        grid-column: auto !important;
    }
}
