
/* base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

@font-face{
    font-family: graphie-regular;
    src: url("../fonts/Graphie-Regular.otf");
}
a {
    color: black;
    transition: .3s ease-in-out;
    font-family: graphie-regular;
}
a:visited {
    color: black;
    font-family: graphie-regular;
}
a:hover {
    color: #b8c66c;
    transition: .3s;
    font-family: graphie-regular;
}

/* ---------------------------------------logo y estilos extras------------------------------------------ */
.nav{
    position: absolute;
    z-index: 1;
    width: 100%;
    min-width: 360px;
    display: flex;
    transition: .3s ease-in-out;
    height: 80px;
    background-color: white;
}
.nav:hover{
    background-color: rgb(255, 255, 255);
    transition: .3s;
}
.caja-logo{
    margin: auto auto auto 70px;
}
.logo{
    width: 100px;
}
.espacio{
    border: solid black;
    background-color: white;
    /* height: calc(100vh - 80px); */
    width: 20%;
    position: sticky;
    top: 80px;
}
/* off-screen-menu */
.off-screen-menu {
    bottom: 0;
    height: 12%;
    width: 900px;
    max-width: 900px;
    position: fixed;
    top: 0;
    right: -900px;
    display: flex;
    align-items: center;    
    justify-content: center;
    font-size: 20px;
    transition: .3s ease;
}
.off-screen-menu.active {
    right: 0;
}
.off-screen-menu ul{
    display: flex;
    gap: 20px;
    width: fit-content;
    margin-right: 60px;
}


/* nav */
nav {
    padding: 1rem;
    display: flex;
}

/* ham menu */
.ham-menu {
    height: 50px;
    width: 40px;
    margin-left: auto;
    position: relative;
}
.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #b8c66c;
    border-radius: 25px;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: .3s ease;
    cursor: pointer;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 50%;
}
.ham-menu.active span {
    background-color: #b8c66c;
    cursor: pointer;
}
.ham-menu.active span:nth-child(1) {
    top: 30%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 30%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (max-width: 1050px){
    a:hover {
        color: white;
        transition: .3s;
        font-family: graphie-regular;
    }
    .off-screen-menu {
        background-color:  #b8c66c;
        height: 100vh;
        width: 200px;
        max-width: 450px;
        position: fixed;
        top: 0;
        right: -450px;
        display: flex;
        flex-direction: column;
        align-items: center;    
        justify-content: center;
        font-size: 20px;
        transition: .3s ease;
    }
    .off-screen-menu ul{
        display: grid;
        transform: translateY(-100%);
    }
    .ham-menu.active span {
        background-color: white;
    }
}
@media screen and (max-width: 600px) {
    a:hover {
        color: white;
        transition: .3s;
        font-family: graphie-regular;
    }
    .off-screen-menu {
        background-color:  #b8c66c;
        height: 100vh;
        width: 200px;
        max-width: 300px;
        position: fixed;
        top: 0;
        right: -300px;
        display: flex;
        flex-direction: column;
        align-items: center;    
        justify-content: center;
        font-size: 20px;
        transition: .3s ease;
    }
    .off-screen-menu ul{
        display: grid;
    }
    .ham-menu.active span {
        background-color: white;
    }
}
@media screen and (max-width: 430px){
    .osm{
        margin-top: 200px;
    }
    .caja-logo{
        margin: auto auto auto 10px;
    }
    .ham-menu{
        margin-right: 15px;
    }
    #encabezado{
        background-color: white;
    }
    .nav{
        width: 100%;
    }
}
