*{
    padding: 0px;
    margin: 0px;
    list-style: none;
    text-decoration: none;

}

body{
    background-image: url(Inicio1.png);
    background-color: #333;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;

}

.nav {
    position: fixed;
    width: 100%;
    background-color:rgba(51, 51, 51);
    
}
.header {
    margin: auto;
    width: 100%;
}

.nav li a {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 20px;
    color: rgb(194, 199, 204);
    display: block;
    padding-top: 25px;
    padding-left: 20px;
}


.nav li i img {
    width: 95px;
    height: 50px;
    padding-top: 8px;
    padding-left: 20px;

}

.nav > li {
    float: left;
    
}

.nav a:hover {
    color: #a32020;
    cursor: pointer;
}

.nav li ul {
    display: none;
    position: absolute;
}

.nav li:hover > ul {
    display: block;
    background-color:rgba(51, 51, 51);
    padding-right: 15px;
    
}

.container {
    padding-top: 90px;
}

.grid {
    justify-content: center;
    margin-top: 1%;
    display: grid;
    grid-template-columns: repeat(3, 0.15fr);
    gap: 20px;
    align-items: center;
}

.grid > article{
    background: #333;
    border: none;
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    text-align: center;
    width: 250px;
    height: 350px;
    transition: transform .3s;
}

.grid > article:hover{
    transform: translateY(5px);
    box-shadow: 2px 2px 6px 0px rgba(255,255,255,0.3);
}

.grid > article img{
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.text{
    padding: 0 10px 10px;
    color: rgb(194, 199, 204);
    line-height: 20px;
}

.text h5{
    font-size: 28px;
    margin: 10px 0px 10px 0px;
    font-family: 'Hammersmith One', sans-serif;

}

.container h2{
    font-size: 13px;
    font-family: 'Work Sans', sans-serif;
    color: rgb(194, 199, 204);
    margin-left: 10%;
    margin-right: 10%;
    text-align: justify;
}


.container h4{
    font-size: 18px;
    font-family: 'Hammersmith One';
    color: rgb(194, 199, 204);
    margin-top: 1%;
    display: flex;
    justify-content: center;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 2%;
}


.text p{
    font-size: 13px;
    font-family: 'Work Sans', sans-serif;
    text-align: left;
    line-height: 15px;
    margin: 8px;
}

.container2{
    margin-top: 5%;
    margin-bottom: 10%;
}

.grid2 {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(3, 0.015fr);
    gap: 20px;
    margin-bottom: 5%;
    align-items: center;
}

.grid2 > article{
    background: #333;
    border: none;
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    text-align: center;
    width: 100px;
    height: 80px;
    transition: transform .3s;
}

.grid2 > article:hover{
    transform: translateY(5px);
    box-shadow: 2px 2px 6px 0px rgba(255,255,255,0.3);
}

.grid2 > article img{
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.container2 h3{
    font-size: 18px;
    font-family: 'Hammersmith One';
    color: rgb(194, 199, 204);
    margin-bottom: 1%;
    display: flex;
    justify-content: center;
}

.footer {
    text-align: center;
    color: rgb(194, 199, 204);
    opacity: 70%;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 18px;
    font-family: 'Hammersmith One', sans-serif;
    padding: 0.8rem;
}

.menu-icon, #check{
    display: none;
}

.menu-icon img{
    width: 30px;
    height: 30px;
    border-radius: 2px;
}

@media (max-width:956px){
    .grid {    
        grid-template-columns: repeat(2, 0.24fr);
        justify-content: center;
        margin-left: 2%;
    }
}
@media (max-width:700px){
    .grid {    
        grid-template-columns: repeat(1, 0.24fr);
        justify-content: center;
        margin-left: 2%;
    }

    .container h4{
        font-size: 15px;
    }
}

@media (max-width:430px){
    .grid2 {    
        grid-template-columns: repeat(2, 0.015fr);
        justify-content: center;
        margin-left: 2%;
    }

    .container2 h3{
        font-size: 16px;
    }
}

@media (max-width:768px){
    .menu-icon, #check{
        display: block;
        list-style: none;
        text-decoration: none;
    }

    .menu-icon{
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
    }


    #header .nav{
        display: block;
        position: fixed;
        top: 70px;
        left:-100%;
        background: #333;
        opacity: 100%;
        width: 100%;
        height: 100vh;
        right: 0;
        cursor: pointer;
    }

    #header .nav li{
        padding: 0.5rem;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    #check:checked ~ ul{
        left: 0;

    }

    .nav > li {
        float: none;
        
    }

}