:root{
    --color-main: #234692;
    --color-accent: #FBBC1F;
    --color-text: #000000;
    --color-gray: #585858;
    --color-gray-80: #959595;
    --color-gray-60: #C0BFBF;
    --color-gray-40: #DBDBDB;
    --color-gray-30: #e3e3e3;
    --color-gray-20: #F4F1F1;
    --color-gray-10: #F9F9F9;
    --color-background: #fff;
    --color-link: #1A73E8;
    --color-link-visited: #551A8B;
    --color-gobernanza: #000082;
    --color-innovacion: #EB008B;
    --color-tecnologia: #FFF100;
    --color-sostenibilidad: #00A400;
    --color-accesibilidad: #00ADEE;
    --color-seguridad: #00796B;
    --color-competitividad: #FB6D00;
    --color-completed: #D9FFC5;
    --color-completed--hover: #bdf69f;
    --color-completed-dark: #2D8100;

    --color-gov-co: #0943b5;
    
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    --font-size-small: 16px; 

    scroll-behavior: smooth;

    word-break: break-word;
}

div, section{
    box-sizing: border-box;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6{
    font-weight: 800;
}


a{
    text-decoration: none;
    transition: color .15s ease;
}


p, .layout-content li{
    line-height: 1.8em;
    font-weight: 300;

    & strong, & b{
        font-weight: bold;
    }
    & a:not(.button){
        color: var(--color-link);
        text-decoration: none;

        &:hover{
            color: var(--color-main);
            text-decoration: underline;
        }

        &:visited{
            color: var(--color-link-visited);
        }
    }
}

.layout-content li{
    margin-bottom: 1rem;
}

img{
    max-width: 100%;
    height: auto;
}

.button, .more-link a{
    background-color: var(--color-main);
    font-weight: bold;
    color: var(--color-background);
    display: inline-flex;
    align-items: center;
    padding: .7rem 2rem;
    gap: 0.5rem;
    width: fit-content;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: color .4s ease, background-color .4s ease;
    text-align: start;
        & .button__icon {
            display: flex;
            font-size: 1.5em;
            margin-right: -1.5em;
            opacity: 0;
            transition: margin .4s ease, opacity .4s ease;
        }

        & .mi-icon{
            font-size: 1.5em;
        }

        &:hover{
            background-color: var(--color-accent);
            color: var(--color-main);
            text-decoration: none;
            & .button__icon{
                opacity: 1;
                margin-right: 0;
            }
        }
}

.button--secondary{
    background-color: var(--color-gray-20);
    color: var(--color-gray);
    box-shadow: 0 2px 4px rgba(0,0,0, .25);
    border: 1px solid var(--color-gray-40);
    & .button__pre-icon{
        color: var(--color-main);
        font-size: 1.5em;
    }

     & .button__icon{
        transform: rotate(-45deg);
    }

    &:hover{
        background-color: var(--color-gray-40);
    }
}

.more-link {
    text-align: center;
    margin-top: 2rem;
}

.view-header {
    text-align: center;
}

section{
    padding: 5rem 1rem;
}

.container{
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    gap: 1rem;
    &.container--column{
        flex-direction: column;
    }
}

.no-scroll{
    overflow: hidden;
}


.gov-co-logo {
    height: 24px;
}

.views-element-container {
    width: 100%;
}

.site-logo img {
    max-width: 300px;
}   



.region-top-header{
    background-color: var(--color-gov-co);
    padding: 10px 1.25rem;
    display: flex;
    justify-content: space-between;
    

    & .menu{
        display: flex;
        margin: 0;
        color: var(--color-gray-20);
        flex-wrap: wrap;
        & li{
            &::marker{
                content: "·";
        
            }

            &:first-child::marker{
                content: "";
            }
        }

        & a{
            font-size: var(--font-size-small);
            color: inherit;
            padding-inline: 1rem;
            font-weight: 300;

             &:hover{
                color: var(--color-accent);
                
             }
        }
    }
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-inline: 1rem;
    padding-block: 1rem;
    border-bottom: 1px solid;
}
.menu--main{
    container-name: menu-main;
    & > .menu{
        display: flex;
        margin: 0;
        flex-wrap: wrap;
        & .menu-item{

            &.menu-item--active-trail > a{
                background-color: var(--color-main);
                color: var(--color-background);
            }
        }

        & > .menu-item{
            padding: 0.5rem 0;
        }

        & .menu{
            width: 300px !important;
            
        }

        & .menu-item > a, & .menu-item > span{
            font-size: 0.9rem;
            color: var(--color-text);
            padding: 0.5rem 1rem;
            font-weight: bold;
            text-transform: uppercase;
            display: block;
            &:hover{
                color: var(--color-main);
                background-color: var(--color-gray-20);
            }
        }
    }
}

nav{
    & > .menu{
         & .menu-item{
            position: relative;
        
            & .menu{
                display: none;
                position: absolute;
                top: 100%;
                left: 1rem;
                z-index: 99;
                background-color: #fff;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
                margin: 0;
                width: fit-content;
                max-width: 400px;

                & .menu-item a, & .menu-item span{
                    padding: 0.5rem 1rem;
                    display: block;
                    width: max-content;
                    max-width: 100%;
                    box-sizing: border-box;
                    font-weight: 400;
                    font-size: 15px;
                    border-bottom: 1px solid var(--color-gray-30);
                    width: 100%;
                    text-transform: none;
                }

                
            }

            &:last-child .menu{
                left: auto;
                right: 1rem;
            }

        
            &:hover{
                & > .menu{
                    display: block;
                }
            }
        }
    }
}

.menu-item--expanded{
    list-style-image: none;
    background-image: url(../images/icons/menu-expanded.png);
    background-repeat: no-repeat;
    background-position: right;
    &::marker{
        content: "";
    }
}

#block-dti-theme-togglemenu{
    display: none;
}

.offcanvas-toggle {
    width: 3rem;
    height: 1.5rem;
    padding-inline: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 3000;
}

.offcanvas-toggle span {
  background: #000;
  height: 3px;
  width: 100%;
  display: block;
}

.region-offcanvas-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    transition: right .35s ease-in-out;
    z-index: 2999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.off-canvas__close {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    width: 100vw;
    height: 100vh;
    z-index: 9;
    display: none;
    &.open{
        display: block;
    }
}

.region-offcanvas-menu.open {
  right: 0;
}

.offcanvas-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}

.region-offcanvas-menu a {
  display: block;
  padding: 15px 0;
  font-size: 18px;
  color: #000;
}

@media screen and (max-width: 1200px) {

    .region-top-header{
        justify-content: center;
    }

    nav#block-dti-theme-topmenu {
        display: none;
    }

    .site-logo img {
        max-width: 240px;
    }

    .region-header{
        & .menu--main{
            display: none;
        }
    }

    .menu--main{
        & .menu{
            flex-direction: column;
        }
    }

    nav{
        & > .menu{
            & .menu-item{
                & .menu{
                    position: relative;
                    left: 0;
                }
            }
        }
    }


    div#block-dti-theme-marcadelsitio {
        width: 60%;
    }

    #block-dti-theme-togglemenu{
        display: block;
    }

    .menu--top-menu .menu {
        margin: 0;
        & a {
            display: flex;
            padding: 0.5rem 0;
            font-size: 16px;
            color: var(--color-gray-80);
        }
    }
}

@media screen and (max-width: 767px) {
    .region-top-header{
        & .menu{
            & li{
                &:first-child::marker{
                    content: "·";
                }
            }
        }
    }
}


.acciones__button{
    background-color: #fff;
    box-shadow: 2px 2px 8px rgba(0,0,0, .25);
    display: flex;
    gap: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    padding: 1.8rem;
    width: max-content;
    max-width: 100%;
    border-radius: 1rem;
    color: var(--color-text);
    box-sizing: border-box;

    & .acciones__button__icon {
        font-size: 2.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        border-radius: 50px;
        position: relative;
        overflow: hidden;
        min-width: 5rem;
        aspect-ratio: 1;
        &::before{
            content: "";
            position: absolute;
            background-image: linear-gradient(#00000000, #000);
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: block;
            z-index: 0;
            transition: transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.5);

        }

        & svg{
            position: relative;
            z-index: 1;
        }

    }
    
    &.acciones__button--diagnostico{
        & .acciones__button__icon {
            color: var(--color-gobernanza);
            &::before{
                background-image: linear-gradient(#ffffff00, #83FBFB, #007BFF);
            }
        }
    }

    &.acciones__button--tablero{
        & .acciones__button__icon {
            color: var(--color-completed-dark);
            &::before{
                background-image: linear-gradient(#ffffff00, #D9FFC5, #B6F593);
            }
        }        
    }

    & .acciones__button__text{
        transition: color .15s ease;
    }

    &:hover{
        & .acciones__button__icon::before{
            transform: rotate(180deg);
        }

        & .acciones__button__text{
            color: var(--color-main);
        }
    }
}

.dti-lines{
    display: flex;
    height: 6px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    & .dti-lines__line{
        height: 100%;
        flex: 1;
        background-color: var(--color-background);

        &.line--gobernanza{
            background-color: var(--color-gobernanza);
        }

        &.line--innovacion{
            background-color: var(--color-innovacion);
        }
        &.line--tecnologia{
            background-color: var(--color-tecnologia);
        }
        &.line--sostenibilidad{
            background-color: var(--color-sostenibilidad);
        }
        &.line--accesibilidad{
            background-color: var(--color-accesibilidad);
        }
        &.line--seguridad{
            background-color: var(--color-seguridad);
        }
        &.line--competitividad{
            background-color: var(--color-competitividad);
        }
    }
}

& .button-copy-url{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background-color: var(--color-gray-20);
        color: var(--color-gray-80);
        padding: 1rem;
        border: none;
        outline: none;
        border-radius: 50px;
        cursor: pointer;
        font-weight: 500;
        font-size: 1.2rem;
        transition: background-color .15s ease;

        &:hover{
            background-color: var(--color-gray-30);
        }
    }

.copy-section-link.copied {
  transition: .2s ease;
  position: relative;
  color: var(--color-main);
  &::after{
    position: absolute;
    top: -3rem;
    right: 0;
    font-size: 0.9rem;
    content: "✅ ¡Enlace copiado!";
    display: block;
    width: max-content;
    background-color: var(--color-gray-20);
    border-radius: 20px;
    padding: 0.5rem 1rem;
  }
}


.view-filters {
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;

    & label{
        font-weight: bold;
    }
}

.view-publicaciones-pagina {
    padding-bottom: 4rem;
}

.view-empty {
    text-align: center;
}

@media screen and (max-width: 767px) {
    .view-filters {
        justify-content: flex-start;
        gap: 0;
    }
}

footer{
    background-color: var(--color-gov-co);
    color: var(--color-background);
    padding: 2rem 1rem;
    & .container{
        gap: 0;
    }
    & .region.region-footer-first > div {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    & p, & ul, & a{
        font-size: 16px;
        color: inherit !important;
    }

    & a{
        text-decoration: underline;
    }

    & .region{
        padding: 0 1rem;
    }

    & .footer-region{
        flex: 1;
        border-right: 1px solid var(--color-gray-40);
    }
}

@media screen and (max-width: 767px) {
    footer{
        & .container{
            flex-direction: column;
        }

        & .footer-region.footer-region--1 {
            order: 1;
        }

        & .region.region-footer-first > div {
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            flex-direction: row;
            gap: 1rem 2rem;
        }

        & .region{
            padding: 0.5rem 0;
        }

        & .footer-region{
            border-right: none;
        }
    }
}