*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.container-dir{
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.container-cat{
    width: 300px;
    height: 100vh;
    background-color: #232625;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-cat h1{
    font-family: "Nunito", serif;
    font-size: 1.4rem;
    text-align: center;
    color: #a4a69b;
    margin-top: 20px;
}

.container-cat button{
    font-family: "Nunito", serif;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: 0;
    margin-top: 10px;
    text-align: left;
}

.container-cat a{
    font-family: "Nunito", serif;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    margin-top: 60px;
}

.btns{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
    width: 50%;
}

#abrir{
    background: none;
    border: none;
    display: none;
}

#cerrar{
    background: none;
    border: none;
    display: none;
}

#abrir img{
    height: 4vh;
}

#cerrar img{
    height: 3vh;
}

.container-img{
    width: 100%;
    height: 100vh;
}

.visualized{
    width: 100%;
    height: 25vh;
    padding: 40px;
    background-image: url("../img/fondo-dir.png");
    background-repeat: no-repeat;
    background-position: right top;
}

.visualized img{
    max-height: 60%;
}

.container-vi{
    width: 100%;
    height: 75vh;
    overflow: hidden;
}

.carusel{
    transition: transform 1s ease;
    width: 100%;
    height: calc(75vh * 4);
}

.sec{
    height: calc(100% / 4);
    padding: 40px;
}

/* secciones */

.titulo{
    font-family: "Nunito", serif;
    color: #232625;
    margin-bottom: 20px;
}

.carta h2{
    font-family: "Nunito", serif;
    color: #232625;
    font-size: 1rem;
    text-align: center;
}

.carta h3{
    font-family: "Work Sans", sans-serif;
    color: #232625;
    font-size: 1rem;
    text-align: center;
}

.carta a{
    font-family: "Nunito", serif;
    text-decoration: none;
    color: white;
    background-color: #35403A;
    padding: 10px 20px;
    border-radius: 15px;
}

.cartas{
    display:flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 40px;
}

/* cartas */

.carta{
    height: 30vh;
    width: 200px;
    background-color: #A4A69B;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.carta img{
    width: 85%;
}

@media (max-width: 604px){
    .container-cat{
        visibility: hidden;
        display: flex;
        z-index: 1;
        position: absolute;
        width: 40%;
        box-shadow: 0 0 0 1000vmax rgba(56, 56, 56, 0.5);
    }

    .container-cat.visible{
        visibility: visible;
    }

    #abrir{
        display: block;
        position: absolute;
        left: 5%;
        top: 5%;
    }

    #cerrar{
        display: block;
        margin-top: 30px;
    }

    .visualized img{
        margin-left: 200px;
    }

    .sec{
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        padding: 0;
    }

    .sec::-webkit-scrollbar {
        display: none;
    }

    .titulo{
        text-align: center;
        font-size: 2rem;
        margin-top: 40px;
        margin-bottom: 0;
        visibility: hidden;
    }

    .carta{
        height: 75vh;
        width: 100%;
        scroll-snap-align: center;
        border-radius: 0;
    }

    .carta h2{
        font-size: 2rem;
    }

    .carta h3{
        font-size: 2rem;
    }

    .carta a{
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .cartas{
        gap: 0;
        flex-direction: column;
    }

    .carusel{
        height: calc(75vh * 4);
    }
}