html{
    font-family: 'Raleway', sans-serif;
    font-size: 62.5%;
    box-sizing: border-box;
}

*, *::before, *::after{
    box-sizing: inherit;
}

body{
    padding: 0;
    margin: 0;
    line-height: 1.6;
    background: #e30613;
}

.logo{
    width: 150px;
    height: 50px;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 8vh;
    background-color: #000;
}

.ham{
    display: none;
    cursor: pointer;
    border: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.ham span{
    display: block;
    background-color: #fff;
    height: 3px;
    width: 28px;
    margin: 10px auto;
    border-radius: 2px;
}

.enlaces-menu{
    display: flex;
    padding: 0;
}

.enlaces-menu li{
    padding: 0 40px;
    list-style-type: none;
    transition: 0.5s;
}

.enlaces-menu li a{
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.enlaces-menu li:hover{
    background-color: #e30613;
}

main{
    padding: 0;
    margin: 0;
}

.portada{
    padding-left: 50px;
    display: flex;
    align-items: center;
    background-image: url(img/banner1.jpg);
    background-repeat: no-repeat;
    height: 620px;
}

.portada2{
    display: flex;
    align-items: center;
    background-image: url(img/banner2.jpg);
    height: 620px;
}

.portada3{
    display: flex;
    align-items: center;
    background-image: url(img/banner3.jpg);
    height: 620px;
}

.logo-portada{
    height: 396px;
    width: 809px;
    animation: fadeIn 2s;
    animation-fill-mode: forwards;
}

@keyframes fadeIn{
    from { opacity: 0; }
    to { opacity: 1; }
}

.titulo{
    padding-left: 80px;
    font-size: 100px;
    font-weight: 700;
    animation: fadeIn 2s;
    animation-fill-mode: forwards;
}

.contenido{
    height: 800px;
    display: flex;
    justify-content: center;
    justify-content: space-around;
    align-items: center;
}

.cont1{
    border: 4px solid #fff;
    border-radius: 4%;
    height: 600px;
    width: 800px;
}

.servicios{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.servicios li{
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
    font-size: 35px;
    font-weight: 500;
    color: #fff;
}

.cont2{
    display: flex;
    align-items: center;
    background-color: salmon;
    overflow: hidden;
    height: 600px;
    width: 800px;
}

.foto{
    height: 100%;
    width: 100%;
    animation: slide 15s infinite ease-in-out;
}

.foto ul{
    display: flex;
    padding: 0;
    margin: 0;
    height: auto;
    width: 400%;
}

.foto li{
    list-style: none;
    width: 100%;
    object-fit: cover;
}

.foto img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide{
    0%{margin-left: 0%;}
    20%{margin-left: 0%;}

    25%{margin-left: -100%;}
    45%{margin-left: -100%;}

    50%{margin-left: -200%;}
    70%{margin-left: -200%;}
    
    75%{margin-left: -300%;}
    95%{margin-left: -300%;}
}

.fotos{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 50px;
    width: 100%;
    background-color: #e30613;
}

.fotos .grid-container{
    width: 98%;
    display: flex;
    flex-wrap: wrap;
}

.grid-container span{
    display: flex;
    width: 100%;
    overflow: hidden;
}

.grid-container .image{
    padding: 7px;
    width: calc(100% / 3);
}

.grid-container .image img{
    width: 100%;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.grid-container .image:hover img{
    transform: scale(1.1);
}

.servicios ul, li{
    padding: 0;
    margin: 0;
    list-style: none;
}

.contenido2{
    padding: 20px;
    height: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.nosotros{
    display: flex;
    background-color: #e30613;
    width: 100%;
    height: 50%;
}

.contenido3{
    height: 800px;
    display: flex;
    justify-content: center;
    justify-content: space-around;
    align-items: center;
}

.abouttxt{
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 20px;
    height: 400px;
    width: 50%;
    color: #fff;
}

.abouttxt p{
    width: 90%;
}

.aboutpic{
    background-image: url(img/about1.jpg);
    height: 500px;
    width: 50%;
}

.aboutpic2{
    background-image: url(img/about2.jpg);
    height: 500px;
    width: 50%;
}

.aboutpic3{
    background-image: url(img/about3.jpg);
    height: 500px;
    width: 50%;
}

.datos{
    border: 4px solid #fff;
    border-radius: 4%;
    height: 600px;
    width: 300px;
}

.numero{
    padding-top: 20px;
    padding-left: 20px;
}

.datos2{
    border: 4px solid #fff;
    border-radius: 4%;
    height: 600px;
    width: 630px;
}

.mail{
    padding-top: 20px;
    padding-left: 20px;
}

.logophone{
    width: 60px;
    height: 60px;
}

.logomail{
    width: 80px;
    height: 60px;
}

#categoria{
    font-size: 25px;
    color: #fff;
}

#num{
    color: #fff;
    font-size: 35px;
    font-weight: 500;
}

#mai{
    color: #fff;
    font-size: 35px;
    font-weight: 500;
}

.mapa{
    height: 600px;
    width: 800px;
}

.googlemap{
    width: 100%;
    height: 100%;
}

@media (max-width:1000px){
    .grid-container .image{
        width: calc(100% / 2);
    }
}

@media (max-width:768px){

    .ham{
        display: block;
        position: absolute;
        top: 15px;
        right: 25px;
    }

    nav{
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 0;
    }

    .enlaces-menu{
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        height: 92vh;
        margin: 0;
        padding: 0;
        width: 100%;
        display: none;
        opacity: 0;
    }

    .enlaces-menu li{
        width: 100%;
        text-align: center;
        padding: 40px;
    }

    @keyframes muestraMenu{
        from{opacity: 0;}
        to{opacity: 1;}
    }

    .enlaces-menu.activado{
        display: flex;
        animation: muestraMenu 350ms ease-in-out both;
    }

    .br-1.animado{
        transform: rotate(-45deg) translate(-10px, 8px);
    }

    .br-2.animado{
        opacity: 0;
    }

    .br-3.animado{
        transform: rotate(45deg) translate(-10px, 8px);
    }

    .portada{
        padding: 20px;
        background-image: none;
        background-color: #fff;
    }

    .portada2{
            padding: 20px;
            background-image: none;
            background-color: #fff;
    }

    .portada3{
        padding: 20px;
        background-image: none;
        background-color: #fff;
}

    .logo-portada{
        width: 100%;
        height: auto;
        
    }

    .titulo{
        padding: 0;
        font-size: 95px;
    }

    .contenido{
        height: 1000px;
        flex-direction: column;
        justify-content: space-around;
    }


    .contenido2{
        height: 1800px;
    }

    .contenido3{
        display: flex;
        flex-direction: column;
        height: 2000px;
    }

    .cont1{
        width: 90%;
        padding: 10px;
        padding-bottom: 30px;
    }

    .cont2{
        width: 100%;
        height: auto;
    }

    .foto1{
        width: 100%;
    }

    .foto2{
        width: 100%;
    }

    .nosotros{
        flex-direction: column;
    }

    .abouttxt{
        height: auto;
        width: 100%;
    }

    .aboutpic{
        display: none;
    }

    .aboutpic2{
        display: none;
    }

    .aboutpic3{
        display: none;
    }

    .datos{
        width: 90%;
        border: none;
    }

    .datos2{
        width: 90%;
    }

    .numero{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0%;

    }

    .mail{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0%;
    }

    #categoria{
        font-size: 25px;
    }

    #num{
        font-size: 28px;
        font-weight: 700;
    }

    #mai{
        font-size: 18px;
        font-weight: 700;
    }

    .mapa{
        width: 100%;
    }

    .grid-container .image{
        padding: 4px;
        width: 100%;
    }

    @media (max-width:368px){
        .titulo{
            padding: 0;
            font-size: 75px;
        }
    }   
}