*{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

div, ul, nav, li, header, footer, label, a, body, h1, h2, h3{
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---- Seccion Header -------- */

.header{
    background-color: #fff;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 40;
    text-align: center;
    padding: 0 0 20px 0;
    box-shadow: -2px 0 10px #0003;
    container-type: inline-size;
    container-name: header;
    width: 100%;
}

.header h1{
    text-align: center;
    font-size: 3rem;
    margin: 20px 0;
    letter-spacing: 1.5px;
}

h1 a{
    text-decoration: none;
    color: #225;
}

.header h2{
    text-align: center;
    font-size: 1.2rem;
    padding: 0 20px;
    letter-spacing: 1.2px;
    color: #225;
}

.header__open-nav{
    font-size: 3rem;
    color: #259;
    font-weight: bold;
    position: absolute;
    right: 5px;
    top: -10px;
    cursor: pointer;
    transition: color .2 linear;
}

.header .header__checkbox{
    display: none;
}


.header__checkbox:checked ~ .header__nav {
    opacity: 1;
    visibility: visible;
    background-color: #0A1F3D;
}


.header__checkbox:checked ~ .header__open-nav {
    z-index: 101;
    color: #fff;
    position: fixed;
}

body:has(.header__checkbox:checked) {
    overflow: hidden;
    height: 100vh;
}


.header__nav{
    opacity: 0;
    visibility: hidden;
    background-color: transparent;
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    transition: opacity .2s linear, background-color .2s linear, visibility .2s linear;
}


.header__nav-list{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0px;
    align-items: center;
    height: 100vh;
    margin: -30px 0 0 0;
    padding: 0;
}

.header__nav-item{
    padding: 20px;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__nav-item a {
    color: #FFF;
    font-weight: 500;
    overflow: hidden;
    text-decoration: none;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: 1.5px;
    display:flex;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 10px;
    transition: color .3s ease;
}
.header__nav-item a:hover{
    color: #0C2F7D;
}

.header__nav-item a:focus {
    outline: none;
    border: 1px solid #259;
}

.header__nav-item a::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 100%;
    width: 150%;
    height: 150%;
    background-color: #fff;
    transition: left 0.4s ease, top 0.7s ease;
    z-index: -1;
    border-radius: 16px;
}

.header__nav-item a:hover::before {
    left: 0;
    top: 0;
} 



/*-------- Queries Header  ---------*/

@container header (min-width:720px){
    .header h1{
        font-size: 3.5rem;
    }
    
    .header h2{
        font-size: 1.5rem;
    }

    .header__open-nav{
        display: none;
    }

    .header__nav{
        opacity: 1;
        visibility: visible;
        display: block;
        position:static;
        height: auto;
        justify-content: space-evenly;
        margin: 30px 0 20px 0;
    }

    .header__checkbox:checked ~ .header__nav {
        background-color: #fff;
    }
    
    .header__nav-list{
        flex-direction: row;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0 10px;
        gap: 0px 10px;
        justify-content: center;
    }

    .header__nav-item{
        padding: 0;
        display:block;
        max-width: 150px;
    }

    .header__nav-item a {
        color: #0C2F7D;
        text-decoration: none;
        font-size: 1.25rem;
        letter-spacing: 1.5px;
        font-weight: 500;
    }

    .header__nav-item a::before{
        content: '';
        position: absolute;
        top: 100%;
        left: 100%;
        width: 150%;
        height: 150%;
        background-color: #0C2F7D;
        transition: left 0.3s ease, top 0.5s ease;
        z-index: -1;
        border-radius: 16px;
    }

    .header__nav-item a:hover{
        color: #fff;
    }

    .header__nav-item a:hover::before {
        left: 0;
        top: 0;
    } 
}

@container header (min-width:800px){
    .header__nav-item{
        max-width: none;
    }
}
    /* ---------- Fin header ----------- */


    /* ---- infodoc footer ------- */

    .infodoc__footer{
        background-color: #225;
        color: #fff;
        padding: 30px 0 10px 0;
        display: flex;
        margin: 0 auto;
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-shadow: 0 0 10px #0009;
        container-type: inline-size;
        container-name: infodoc__footer;
    }

    .footer__container{
        max-width: 1300px;
        display: grid;
        grid-template-columns:repeat(1, minmax(120px, 1fr));
        gap: 50px 0px;
        margin-bottom: 30px;
        padding: 0 30px;
    }

    .footer__infodoc, .footer__us, .footer__services, .footer__contact{
        display: flex;
        flex-direction: column;
        text-align: center;
        text-wrap: pretty;
        justify-content: center;
        align-content: center;
    }

    .footer__infodoc a{
        text-decoration: none;
        color: #fff;
    }

    .footer__infodoc h3:first-child{
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .footer__infodoc h3:last-child{
        font-size: 1.1rem;
        font-weight: 500;
    }

    .footer__us span{
        font-weight: bold;
    }

    .footer__us h3{
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .footer__us p{
        text-align: justify;
        text-wrap: pretty;
        margin: 0;
        max-width: 400px;
    }

    .footer__services h3{
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .footer__services-list{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px 0;
    }

    .footer__services-item{
        transition: transform .3s ease;
    }

    .footer__services-item a{
        text-decoration: none;
        color: #fff;
        position: relative;
    }

    .footer__services-item:hover{
        transform: scale(1.1);
    }

    .footer__contact h3{
        font-size: 2rem;
        margin-bottom: 20px;
        text-wrap: balance;
    }

    .footer__contact-list{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px 0;
    }

    .footer__contact-item i{
        margin-right: 10px;
    }

    .footer__contact-item:last-child{
        font-size: 1.8rem;
    }

    .footer__contact-item:last-child i{
        margin: 0 20px;
    }

    .footer__contact-item i{
        transition: transform .3s ease, color .3s ease;
    }

    .footer__contact-item i:hover {
        transform: scale(1.2);
        color: #69e2ff;
    }

    .footer__contact-item:nth-child(2), .footer__contact-item:nth-child(3){
        transition: transform .3s ease;
    }

    .footer__contact-item:nth-child(2):hover, .footer__contact-item:nth-child(3):hover {
        transform: scale(1.1);
    }


    .footer__contact-item a{
        text-decoration: none;
        color: #fff;
    }

    .infodoc__footer:last-child{
        align-content: end;
    }

    .footer__copyright{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        text-wrap: balance;
        width: 100%;
        bottom: 0;
        border-top: 1.5px solid #fff;
        padding: 0 10px;
    }

    /* ------ infodoc footer queries ------- */

    @container infodoc__footer (min-width:500px){
        .footer__container{
            display: grid;
            grid-template-columns:repeat(2, minmax(200px, 1fr));
            gap: 50px 20px;
            align-items: start;
        }

        .footer__infodoc h3:first-child{
            font-size: 3.5rem;
        }
    
        .footer__infodoc h3:last-child{
            font-size: 1.25rem;
        }

        .footer__us h3{
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

        .footer__contact{
            align-content: center;
        }
    }

    @container infodoc__footer (min-width:56.25rem){

        .footer__container{
            display: grid;
            grid-template-columns:repeat(4, minmax(100px, 1fr));
            gap: 0px 30px;
            align-items: start;
        }

        .footer__services-item{
            font-size: 1.1rem;
        }

        .footer__contact-item{
            font-size: 1.1rem;
        }

        /* --------------------- */

        .footer__infodoc h3:first-child{
            font-size: 2.2rem;
            margin-bottom: 20px;
        }
    
        .footer__infodoc h3:last-child{
            font-size: 1.1rem;
        }
    
        .footer__us h3{
            font-size: 2.2rem;
            margin-bottom: 20px;
        }
    
        .footer__us p{
            text-align: left;
            text-wrap: balance;
            margin: 0;
        }
    
        .footer__services h3{
            font-size: 2.2rem;
            margin-bottom: 20px;
        }
    
        .footer__services-list{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 30px 0;
        }
    
        .footer__contact h3{
            font-size: 2rem;
            margin-bottom: 20px;
        }
    
        .footer__contact-list{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 30px 0;
        }
    
        .footer__contact-item i{
            margin-right: 10px;
        }
    
        .footer__contact-item:last-child{
            font-size: 1.8rem;
        }
    
        .footer__contact-item:last-child i{
            margin: 0 20px;
        }
    }