:root {
    /* color palette */
    --color-primary-s: #dfc119;;

    --color-light: #fff;
    --color-light-s: #ECECEC;


    --color-text: #333;
    --color-text-xs: #b1aeae;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-size: 1.6rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;;
    background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1 {font-size: 4rem;}

h2 {font-size: 3rem;}
@media screen and (max-width: 345px) {
    h2 {font-size: 2.5rem;}
}

h3 {font-size: 2rem;}

img {max-width: 100%;}

.container {
    margin: 0 auto;
    width: min(93%, 136.6rem);
    /* outline: 1px solid red; */
}
.no-style {
    padding: 0;
    text-decoration: none;
    list-style-type: none;
    margin: 0;
}

.hover-pri:hover {
    color: var(--color-primary-s);
    transition: .5s;
}

/* anchor nav Top Header */
.header-nav-container {
    position: relative;
    z-index: 200;
    background-color: var(--color-light);
    margin: 0 auto;
    width: min(95%, 136.6rem);

}
.header-nav {
    position: fixed;
    top: 0;
    z-index: 200;
    width: min(95%, 136.6rem);
    height: 8rem;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-light);
}

.header-nav__logo {
    display: flex;
}
.header-nav__text {
    margin-left: 2rem;
    padding: 0 0 0 2rem;
    align-self: center;
    font-weight: 500;
    color: var(--color-text);
    border-left: 2px solid var(--color-light-s);
}
.navigation-list {
    display: flex;
}
.navigation-list > * + * {    /*seleciona cada elemento un hermano de otro*/
    margin-left: 2rem;        /*hermano adyacente*/
    border-left: 2px solid var(--color-light-s);
    padding-left: 2rem;
}
.list__link {
    color: var(--color-text-xs);
}
.div-grey {
    background-color: var(--color-light-s);
    height: 2.5rem;
    width: 100%;
    position: fixed;
    top: 8rem;
    z-index: 200;
}
@media screen and (max-width: 720px) {
    .header-nav {
        flex-direction: column;
        justify-content: center;
        height: 9.5rem;
        padding-bottom: 1rem;
    }
    .header-nav__logo {
        justify-content: center;
    }
    .navigation-list {
        margin-top: 1rem;
    }
    .navigation-list > * + * {
        border: none;
        margin: 0;
    }
}

@media screen and (max-width: 540px) {
    .header-nav {
        padding-top: 2rem;
        height: 6.5rem;
    }
    .navigation-list {
        display: none;
    }
    .div-grey {
        top: 6.25rem;
    }
}

/* --------------------------------------------------- */
/* main section */
/* --------------------------------------------------- */

.flex-container {
    display: flex;
    position: relative;
    top: 10.6rem;
    z-index: 195;

}
.main-doc {
    width: 80%;
    margin-left: 37rem;
    padding: 1rem 1rem;
}
@media screen and (max-width: 768px) {
    .flex-container {
        flex-direction: row;
        flex-wrap: wrap;
        width: 93%;
    }
    .main-doc {
        width: 100%;
        margin:0;
        padding: 2rem 1rem;
    }
}

/* --------------------------------------------------- */
/* nav-bar navigation */
/* --------------------------------------------------- */
.navbar-left {
    width: 35rem;
    height: 100%;
    border-right: 1px solid var(--color-light-s);
    position: fixed;
    z-index: 200;
    background-color: var(--color-light);
}
.navbar__title {
    text-align: center;
    font-size: 2rem;
    padding: 2rem 0;
    color: var(--color-text-xs);
}
.nav-link {
    color: var(--color-text);
    padding-left: 1rem;
}
.navbar-list > * {
    color: var(--color-primary-s);
    text-indent: .7rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-light-s);
    font-size: 1.85rem;
    font-weight: 500;
}
.navbar-list > *:last-of-type {
    border: none;
}

@media screen and (max-width: 1440px) {
    .navbar-left {
        overflow-y: scroll;
        height: 82%;
    }
}
@media screen and (max-width: 768px) {
    .navbar-left {
        position: initial;
        width: 100%;
        height: 35rem;
        border-right: none;
        border-bottom: 2px solid var(--color-text);
    }
}

/* --------------------------------------------------- */
/* main content */
/* --------------------------------------------------- */

/* sections */
.ancla { /*resuelve el problema con los anclajes y el menu fijo*/
    padding-top: 8rem;
    padding-bottom: 2rem;
}
.main-section {
    line-height: 1.5;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-text-xs);
}

.main-section:last-of-type {
    border: none;
}
.s-title {
    padding-top: 2rem;
}
li,
.s-title {
    color: var(--color-primary-s);
}

.article-list__item,
.sub-list__item {
    color: var(--color-text);
}

.article__code {
    color: rgb(211, 168, 27);
    max-height: 90%;
    font-size: 1.5rem;
}


.code-div {
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: rgba(238, 199, 27, 0.192);
    min-height: 3rem;
    min-width: 95%;
    padding: 1rem;
}


footer {
    padding-top: .15rem;
    position: relative;
    bottom: -9rem;
    left: 40rem;
    z-index: 300;
    height: 4.5rem;
    width: 65%;
    color: var(--color-text-xs);
    text-align: end;
    font-size: 1.5rem;

}
.link-footer {
    font-weight: 500;
    color: var(--color-text-xs);
    padding-right: 2rem;
}

.link-sec {
    font-weight: 500;
    color: var(--color-text-xs);
}

@media screen and (max-width: 1024px) {
    footer {
        position: none;
        right: 0;
        left: 0;
        width: 100%;
    }
    .link-footer {
        padding-right: 6rem;
    }
}
@media screen and (max-width: 540px) {
    footer {
        text-align: center;
    }
    .link-footer {
        padding-right: 0;
    }
}