*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Raleway', sans-serif;
}

h1{
    font-weight: 400;
    text-align: center;
    padding: 20px 0;
    font-size: 40px;
}


.linea-INFO{
    background: #442dc5;
    height: 5px;
    width: 100%;
    display: block;
}
.linea-MEC{
    background: #953849;
    height: 5px;
    width: 100%;
    display: block;
}
.linea-CC{
    background: #3aa90b;
    height: 5px;
    width: 100%;
    display: block;
}
.linea-CONT{
    background: #23928b;
    height: 5px;
    width: 100%;
    display: block;
}

.galeria{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: 95%;
    margin: auto;
    grid-gap: 10px;
    overflow: hidden;
}

.galeria > a{
    display: block;
    position: relative;
    color: black;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 6px rgb(0, 0, 0, .5);
}

.galeria img{
    width: 100%;
    vertical-align: top;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s;
}

.galeria a:hover img{
    filter: blur(2px);
    transform: rotate(10deg) scale(1.3);
}

.light-box{
    position: fixed;
    top: 0;
    left: 0;
    background: rgb(0, 0, 0, .5);
    transition: transform .3s ease-in-out;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
}

.light-box img{
    width: 75vw;
    max-height: 70vh;
}

.light-box:target{
    transform: scale(1);
}

.close{
    display: block;
    position: absolute;
    top: 40px;
    right: 40px;
    background: #000138;
    color: #ffffff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}

.next{
    display: block;
    background: #000138;
    color: #ffffff;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
}
.close-INFO{
    display: block;
    position: absolute;
    top: 40px;
    right: 40px;
    background: #442dc5;
    color: #ffffff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}
.next-INFO{
    display: block;
    background: #442dc5;
    color: #ffffff;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
}
.close-CONT{
    display: block;
    position: absolute;
    top: 40px;
    right: 40px;
    background: #23928b;
    color: #ffffff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}
.next-CONT{
    display: block;
    background: #23928b;
    color: #ffffff;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
}.close-MEC{
    display: block;
    position: absolute;
    top: 40px;
    right: 40px;
    background: #953849;
    color: #ffffff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}
.next-MEC{
    display: block;
    background: #953849;
    color: #ffffff;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
}.close-CC{
    display: block;
    position: absolute;
    top: 40px;
    right: 40px;
    background: #3aa90b;
    color: #ffffff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}

.next-CC{
    display: block;
    background: #3aa90b;
    color: #ffffff;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
}
.cuadro{
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
}
a{ 
    text-decoration: none;
    color: white;
} 
.atras{
    font-size: 15px;
    background-color: #b90909;
    text-align: center;
    align-content: center;
    width: 100px;
    height: 50px;
    border-radius: 10px;
}

.atras:hover{
    background-color: #4d0000;
}

@media screen and (max-width:400px){
    .galeria{
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .close{
        top: 20px;
        right: 20px;
    }
}