/* =========================================================
   Estilos del footer institucional (adds/s-footer.php)
   ========================================================= */

:root {
    --govcolor-cobalt: #0943B5;
    --govcolor-white: #FFFFFF;
    --govcolor-havelock-lue: #4672C8;
    --govcolor-tropical-blue: #B5C7E9;
    --govcolor-black: #000000;
    --govcolor-silver-dis: #C8C8C8;
    --govcolor-solitude: #E5ECF8;
    --govcolor-tulip: #E8A045;
    --govcolor-matterhorn: #4C4C4C;
    --govcolor-svg-cobalt: invert(20%) sepia(53%) saturate(3248%) hue-rotate(212deg) brightness(97%) contrast(107%);
    --govcolor-svg-white: invert(100%) sepia(100%) saturate(2%) hue-rotate(61deg) brightness(103%) contrast(101%);
    --govcolor-svg-silver-dis: invert(92%) sepia(0%) saturate(0%) hue-rotate(140deg) brightness(91%) contrast(83%);
    --govcolor-svg-havelock-lue: invert(41%) sepia(68%) saturate(553%) hue-rotate(181deg) brightness(90%) contrast(89%);
    --govcolor-svg-tropical-blue: invert(81%) sepia(24%) saturate(403%) hue-rotate(187deg) brightness(94%) contrast(93%);
    --color-fondo: var(--govcolor-cobalt);
    --color-texto: var(--govcolor-white);
    --color-enlace: var(--govcolor-tropical-blue);
    --color-enlace-hover: var(--govcolor-havelock-lue);
    --color-borde: var(--govcolor-silver-dis);
    --color-fondo-info-bar: #3266CC;
    --verde: #39B34A;
    --grisoscuro: #555454;
}

/* Contendeor principal footer */
.pie-pagina-govco {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    font-family: 'Verdana-Regular', Arial, sans-serif;
    color: #606060;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pie-pagina-govco:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.seccion-secundaria-terciaria {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

.seccion-secundaria-terciaria p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.seccion-secundaria {
    flex: 0 0 70%;
    padding: 1rem;
    box-sizing: border-box;
    font-family: 'Nunito_Sans-Bold', Arial, sans-serif;
    text-align: left;
}

.seccion-secundaria h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.seccion-secundaria p {
    margin: -0.1rem 0;
    color: #696969;
}

.seccion-secundaria a {
    color: var(--color-enlace);
    text-decoration: none;
}

.seccion-secundaria a:hover {
    text-decoration: underline;
    color: var(--color-enlace-hover);
}

.seccion-secundaria .logo-ibague {
    width: 18.5rem;
    height: 100px;
    margin-bottom: 10px;
}

.seccion-secundaria .logo-ibague-creativa {
    width: 8.5rem;
    height: 65px;
    position: relative;
}

.seccion-terciaria {
    flex: 0 0 30%;
    padding: 1rem;
    box-sizing: border-box;
}

/* Contenedor principal Redes sociales enlaces */
.contenedor-enlaces {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.contenedor-enlaces a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-borde);
    border-radius: 100%;
    transition: transform 0.3s ease;
    margin: 7px;
}

.contenedor-enlaces a:hover {
    transform: scale(1.1);
}

.contenedor-enlaces img {
    height: auto;
    width: 50px;
    height: 50px;
    border-radius: 100%;
}

/* Contenedor principal del logo en el footer */
.logo-pie-pagina {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.logo-custom {
    width: 13em;
    height: auto;
}

.grupo-logos-horizontales {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.grupo-logos-horizontales img {
    max-width: 100%;
    height: auto;
    width: 6em;
}

/* CONTENEDOR PRINCIPAL - INFO BAR */
.barra-baja-info {
    background-color: var(--verde);
    color: white;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0rem 0rem 0rem 0rem;
}

/* LÍNEA SEPARADORA */
.linea-separadora {
    width: 90%;
    height: 2px;
    background-color: #ccc;
    margin: 1rem auto;
}

/* CONTENEDOR POLÍTICAS (FOOTER) */
.contenedor-politicas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    padding: 0.5rem 0 0.75rem 0;
    gap: 0.5rem;
}

.contenedor-politicas a {
    color: var(--grisoscuro);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    font-size: 1.15rem;
    padding: 0 0.5rem;
    line-height: 1.2;
}

.contenedor-politicas a:hover {
    text-decoration: underline;
}

/* IMÁGENES RESPONSIVAS EN INFO BAR */
#img-fluid {
    object-fit: contain;
}

.logo-colombia-size {
    max-height: 75px;
    width: auto;
}

.logo-gov-size {
    max-height: 15rem;
    height: 35px !important;
    width: 7rem !important;
    padding: 0;
    margin: 0;
}

/* INFO SECTION (texto y datos) */
.info-section span {
    display: block;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.info-section p {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

@media (max-width: 960px) {
    .seccion-secundaria {
        flex: 0 0 60%;
    }
}

/* Responsive 768px */
@media (max-width: 768px) {
    .seccion-secundaria-terciaria {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .seccion-secundaria,
    .seccion-terciaria {
        width: 100%;
        min-width: auto;
        padding: 0.5rem;
        align-items: center;
    }

    .seccion-secundaria img {
        transform: translateX(60%);
    }

    .seccion-secundaria h5 {
        text-align: center;
    }

    .seccion-secundaria p {
        text-align: center;
    }
}

/* Responsive 480px */
@media (max-width: 480px) {
    .seccion-secundaria .logo-ibague {
        width: 10.5rem;
        height: 55px;
        margin-bottom: 3px;
    }

    .seccion-secundaria .logo-ibague-creativa {
        width: 5.5rem;
        height: 55px;
        position: relative;
    }

    .seccion-secundaria img {
        transform: translateX(0%);
    }

    .contenedor-enlaces {
        grid-template-columns: repeat(3, minmax(40px, 1fr));
    }

    .contenedor-enlaces a {
        width: 40px;
        height: 40px;
    }

    .seccion-secundaria h5 {
        font-size: 1rem;
    }

    .contenedor-enlaces {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 0.3rem;
        justify-content: center;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .logo-pie-pagina img {
        width: 17em;
        height: auto;
        transform: translateX(-5px);
    }
}

@media screen and (max-width: 480px) {
    .seccion-secundaria h5 {
        text-align: left;
    }

    .seccion-secundaria p {
        text-align: left;
    }

    .contenedor-politicas {
        text-align: left;
    }

    .contenedor-politicas a {
        display: block;
        margin: 0;
        padding: 0;
        font-size: 12px;
        text-decoration: none;
        color: white;
        line-height: 1;
    }
}

/* =========================================================
   Widget de Google Translate
   ========================================================= */
.skiptranslate {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
}

.goog-te-gadget-simple {
    background-color: white !important;
    border: 1px solid #ccc !important;
    padding: 5px 10px !important;
    font-size: 14px !important;
    font-family: Arial, sans-serif !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    border-radius: 5px !important;
    min-width: 160px !important;
}

.goog-te-gadget-simple::before {
    content: "";
    display: inline-block;
    background-image: url('https://www.gstatic.com/images/branding/googlelogo/1x/googlelogo_light_color_42x16dp.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 14px;
    margin-right: 5px;
}

.VIpgJd-ZVi9od-xl07Ob-lTBxed {
    color: #333 !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

.VIpgJd-ZVi9od-xl07Ob-lTBxed span[aria-hidden="true"] {
    font-size: 14px !important;
    margin-left: 5px;
    color: #888 !important;
}

/* =========================================================
   Loader - Animación de carga
   From Uiverse.io by satyamchaudharydev
   ========================================================= */
.loading {
    --speed-of-animation: 0.9s;
    --gap: 6px;
    --first-color: #4c86f9;
    --second-color: #49a84c;
    --third-color: #f6bb02;
    --fourth-color: #f6bb02;
    --fifth-color: #2196f3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    gap: 6px;
    height: 100px;
}

.loading span {
    width: 4px;
    height: 50px;
    background: var(--first-color);
    animation: scale var(--speed-of-animation) ease-in-out infinite;
}

.loading span:nth-child(2) {
    background: var(--second-color);
    animation-delay: -0.8s;
}

.loading span:nth-child(3) {
    background: var(--third-color);
    animation-delay: -0.7s;
}

.loading span:nth-child(4) {
    background: var(--fourth-color);
    animation-delay: -0.6s;
}

.loading span:nth-child(5) {
    background: var(--fifth-color);
    animation-delay: -0.5s;
}

@keyframes scale {

    0%,
    40%,
    100% {
        transform: scaleY(0.05);
    }

    20% {
        transform: scaleY(1);
    }
}

/* =========================================================
   Enlaces directos (cajitas)
   ========================================================= */
#dynamic-content-enlaces {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
    padding: 0px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: var(--verde);
    border-radius: 0.25rem 0.25rem 0rem 0rem;
}

.enlace-cajita {
    flex: 1 1 calc(25% - 11.25px);
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 0.25rem 0.25rem 0rem 0rem;
    padding: 5px;
    text-align: center;
    margin-top: 0px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--verde);
}

.enlace-cajita a {
    text-decoration: none;
    color: var(--grisoscuro) !important;
    font-weight: bold;
    font-size: 1.0em;
    word-break: break-word;
}

.enlace-cajita a:hover {
    color: var(--grisoscuro) !important;
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .enlace-cajita {
        flex: 1 1 calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .enlace-cajita {
        flex: 1 1 calc(50% - 7.5px);
    }
}

@media (max-width: 480px) {
    .enlace-cajita {
        flex: 1 1 100%;
    }
}

/* =========================================================
   Segunda sección (GOV.CO / logos gubernamentales)
   ========================================================= */
.second-section {
    background-color: var(--govcolor-cobalt);
    height: 5rem;
    padding-left: 4.375rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.second-section .separator {
    border-left: 0.063rem solid var(--govcolor-white);
    height: 3rem;
    margin-left: 0.625rem;
    margin-right: 1rem;
    display: inline-block;
}

@font-face {
    font-family: "govco-fontv5";
    src: url("portal/fuente/gov-co-font.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
