*{
    box-sizing: border-box;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url("Fonts/SF-Pro-Display-Regular.otf");
}

@font-face {
    font-family: 'SF Pro Display Bold';
    src: url("Fonts/SF-Pro-Display-Bold.otf");
}

@font-face {
    font-family: 'HelveticaGEK';
    src: url("Fonts/Helvetica.ttc");
}

@font-face {
    font-family: 'SF Pro Display Semibold';
    src: url("Fonts/SF-Pro-Display-Semibold.otf");
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'SF Pro Display', serif;
    margin: 0;
}

h1{font-size: 3.5em;}
h2{font-size: 2.7em;}
h3{font-size: 2em;}
p{font-size: 1.25em;}
ul{list-style: none;}
li{
    font-size: 1.25em;
    text-decoration: none
}

.color-fb{color: #1167ff}

.color-ig{color: #ff1174}

.color-yt{color: #ff0000}

.container-all{
    width: 100%;
    height: 100%;
    position: fixed;
    padding: 40px;
    visibility: hidden;
    opacity: 0;
    transition: all 600ms;
}

.container-all:target{
    background: rgba(0,0,0,0.8);
    visibility: visible;
    opacity: 1;
}

.container-all:target .popup{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: visible;
}

.popup{
    width: 100%;
    max-width: 1100px;
    height: 640px;
    position: relative;
    display: flex;
    top: -80%;
    left: 50%;
    background: white;
    visibility: hidden;
    transform: translate(-50%, -50%);
    transition: all 600ms;
}

.imgPopUP{
    width: 43%;
    background-size: cover;
    background-position: center;
}

.container-textPOP{
    width: 57%;
    padding: 50px;
    overflow-y: auto;
}

.container-textPOP h1{
    font-size: 30px;
}

.container-textPOP p{
    margin-top: 20px;
    font-size: 16px;
}

.close-popUp{
    text-decoration: none;
    width: 50px;
    height: 50px;
    position: absolute;
    right: -20px;
    top: -20px;
    padding: 20px;
    background: #ff1158;
    color: white;
    border-radius: 50%;
    line-height: 10px;
}

.container{
    max-width: 1400px;
    margin: auto;
}

header{
    position: fixed;
    width: 100%;
    height: 10%;
    min-height: 70px;
    background-color: rgb(90, 34, 141);
}

header  .logo{
    margin: 0;
    padding-left: 25px;
}

header  .container{
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
}

header nav{
    height: 0;
    position: absolute;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    overflow: hidden;
    z-index: 10;
    transition: all 300ms;
}

header a{
    padding: 24px 12px;
    text-decoration: none;
    font-size: 2em;
    font-weight: normal;
    color: #7c2ad7;
    transition: all 300ms;
    background-color: rgba(255, 255, 255, 0.8);
}

header a:hover{
    color: white;
    background-color: rgba(89, 35, 137, 0.8);
}

.mostrar_menu{ /*Acción con JS*/
    height: 400px;
}

#icon_menu {
    position: absolute;
    right: 50px;
    font-size: 3em;
    color: white;
    cursor: pointer;
}

#hero{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 90vh;
    color: white;
    background-image:
            linear-gradient(
                    0deg,
                    rgba(0,0,0,0.1),
                    rgba(0,0,0,0.1)),
            url("media/img5.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#hero h1{
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

#hero .texto p{
    text-align: justify;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    height: auto;
    margin: -30px 50px 50px;
    max-width: 1000px;
    font-size: 1.5em;
    background-color: rgba(40, 40, 40, 0.3);
    padding: 25px 50px;
}

#subtitulo{
    font-family: "SF Pro Display Bold", serif;
}

#redes_sociales{
    font-family: "SF Pro Display Bold", serif;
}

#redes_sociales a{
    text-decoration: none;
    color: black;
    text-align: center;
}

#redes_sociales .container{
    text-align: center;
    padding: 130px 12px;
}

#servicios{
    background-color: rgba(30,30,30);
    color: white;
    text-align: center;
}

#servicios  .container{
    padding: 200px 0;
}

#servicios  h2{
    margin-top: 0;
    font-size: 3em;
}

#servicios  p{
    display: none;
}

.button{
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    width: 100%;
    height: 100%;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.btn__container{
    display: flex;
    margin: 0 auto;
    align-self: center;
    padding: 10px 30px;
    border-radius: 10px;
    border: none;
    background-color: blueviolet;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    transition: all 300ms;
    width: 150px;
}

.btn__container:hover{
    background-color: #5a228d;
}

#servicios  .card{
    text-align: center;
    background-position: center;
    background-size: cover;
    justify-content: center;
    padding: 50px;
    margin: 30px;
    border-radius: 15px;
}

.card:first-child{
    background-image: linear-gradient(
    0deg,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.5)
    )
    ,url("media/img2.jpg");
}

.card:nth-child(2){
    background-image: linear-gradient(
    0deg,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.5)
    )
    ,url("media/img3.jpg");
}

.card:nth-child(3){
    background-image: linear-gradient(
    0deg,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.5)
    )
    ,url("media/img4.jpg");
}

#contacto .container{
    text-align: center;
    padding: 250px 12px;
}

#contacto li{
    margin: 12px 0;
    font-weight: bold;
}

#mapa{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(30,30,30);
    color: white;
    height: 90vh;
}

#mapa .maps{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 85vh;
    width: 80vw;
    padding-bottom: 20px;
}

#mapa h2{
    font-size: 3.5em;
}

footer{
    background-color: rgba(230,230,230);
}

footer p{
    margin: 0;
    padding: 12px;
    color: rgba(100,100,100);
}

footer .container{
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@media screen and (max-width: 900px){
    .popup{
        flex-direction: column;
        margin-top: 50px;
        height: 100%;
        max-height: 800px;
    }

    .imgPopUP{
        width: 100%;
        height: 40%;
    }

    .container-textPOP{
        width: 100%;
        height: 60%;
        padding: 80px;
    }


}

@media screen and (max-width: 500px){
    .container-textPOP{
        padding: 20px;
    }

    .container-textPOP h1{
        font-size: 20px;
    }

    .container-textPOP p{
        font-size: 12px;
    }
}

@media (min-width: 1100px){
/*Versión Desktop*/

    header{
        position: fixed;
        width: 100%;
        height: auto;
    }

    header  .logo{
        margin: 0;
        padding-left: 25px;
    }

    header .container{
        flex-direction: row;
        justify-content: space-between;
    }

    header nav{
        height: auto;
        position: relative;
        top: auto;
        right: auto;
        display: flex;
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 20px;
        font-size: 1.25em;
        width: auto;
        overflow: auto;
        z-index: auto;
        transition: none;
    }

    header a{
        display: block;
        padding: 24px 12px;
        text-decoration: none;
        font-size: 1em;
        font-family: "SF Pro Display Semibold", serif;
        color: #ffffff;
        transition: all 300ms;
        background-color: rgba(65,63,66,0);
    }

    header a:hover {
        color: #592389;
        background-color: white;
    }

    #icon_menu {
        display: none;
    }

    #hero h1{
        font-size: 5em;
    }

    #redes_sociales .container{
        display: flex;
        justify-content: space-evenly;
    }

    #redes_sociales a{
        text-decoration: none;
        color: black;
        text-align: center;
    }

    #redes_sociales .texto{
        width: 50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #redes_sociales h2{
        padding-top: 10px;
        margin-bottom: -10px;
    }

    #redes_sociales .img-container{
        background-image: url("media/img6.jpg");
        background-size: cover;
        background-position: center center;
        height: 500px;
        width: 400px;
    }

    #servicios .cards{
        display: flex;
        justify-content: center;
    }

    #servicios p{
        display: block;
        margin-bottom: 50px;
        height: 40%;
    }

    #servicios h2{
        font-size: 4em;
    }

    #servicios h3{
        margin-top: 0;
        padding-bottom: 10px;
    }

    #servicios .card{
        padding: 40px;
        /*background-size: 100% 150px;*/
        background-repeat: no-repeat;
        background-position-y: 0;
        background-color: rgb(26, 26, 26);
        box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    }

    .card:first-child{
        background-image: linear-gradient(
                0deg,
                rgba(0,0,0,0.5),
                rgba(0,0,0,0.5)
        )
        ,url("media/img2.jpg");
    }

    .card:nth-child(2){
        background-image: linear-gradient(
                0deg,
                rgba(0,0,0,0.5),
                rgba(0,0,0,0.5)
        )
        ,url("media/img3.jpg");
    }

    .card:nth-child(3){
        background-image: linear-gradient(
                0deg,
                rgba(0,0,0,0.5),
                rgba(0,0,0,0.5)
        )
        ,url("media/img4.jpg");
    }

    #contacto{
        background-image: url("media/img1.jpg");
        background-repeat: no-repeat;
        background-size: 500px 400px;
        background-position: calc(100vw - 550px) 120px;
    }

    #contacto .container{
        text-align: initial;
    }

    #contacto ul{
        margin-left: 100px;
    }

    footer  .container{
        align-items: flex-end;
    }

}

@media (min-width: 1300px){
    #contacto{
        background-position-x: calc(100vw - 800px);
    }
}