*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: sans-serif;
}

.contenedor{
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.titulo{
    color: #fff;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

.subtitulo{
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
}

/* header */

header{
    width: 100%;
    height: 600px;
    background: #bc4e4e;  
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(0, 93%, 36%, 0.267), hsla(22, 100%, 50%, 0.267)), url(../IMG/magia.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(0, 93%, 36%, 0.267), hsla(22, 100%, 50%, 0.267)), url(../IMG/magia.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    position: relative; 
}

nav{
    text-align: right;
    padding: 30px 50px 0 0;
}

nav > a{
    color: #fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 10px;
}

nav > a:hover{
    text-decoration: underline;
}

header .textos-header{
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1{
    font-size: 50px;
    color: #fff;
}

.textos-header h3{
    font-size: 20px;
    font-weight: 300;
    color: #fff;
}

.wave{
    position: absolute;
    bottom: 0;
    width: 100%;
}

main .sobre-magia{
    padding: 30px 0 60px 0;
}

.contenedor-sobre-magia{
    display: flex;
    justify-content: space-evenly;
}

.imagen-about-us{
    width: 48%;
}

.sobre-magia .contenido-textos{
    width: 48%;
}

.contenido-textos h3{
    color: #fff;
    margin-bottom: 15px;
}

.contenido-textos h3 span{
    background: #c00707;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p{
    color: #fff;
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}

.contenedor-sobre-maestro{
    display: flex;
    justify-content: space-evenly;
}

.contenedor-sobre-maestro .contenido-textos{
    width: 48%;
}

.contenido-textos h1{
    color: #fff;
    margin-bottom: 15px;
}

.contenido-textos p{
    color: #fff;
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}
/* galeria */

.portafolio{
    background: #111111;
}

.galeria-port{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.imagen-port{
    width: 24%;
    margin-bottom: 10px;
    height: 150px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 0, 0, .5);
}

.imagen-port > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hover-galeria{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    background: hsla(7, 100%, 37%, 0.651);
    transition: transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hover-galeria img{
    width: 100px;
}

.hover-galeria a{
    color: #fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 10px;
}

.hover-galeria > p:hover{
    text-decoration: underline;
}

.imagen-port:hover .hover-galeria{
    transform: scale(1);
}

/* Testimonios */

.cards{
    display: flex;
    justify-content: space-evenly;
}

.cards .card{
    background: #8b1919;
    display: flex;
    width: 50%;
    height: 230px;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 5px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .5);
}

.cards .card img{
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    display: block;
}

.cards .card > .contenido-texto-card{
    width: 60%;
    color: #fff;
}

.cards .card > .contenido-texto-card p{
    font-weight: 300;
    padding-top: 5px;
}

/* footer */

footer{
    background: #161616;
    padding: 60px 0 30px 0;
    margin: auto;
    overflow: hidden;
}

.contenedor-footer{
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 50px;
    border-bottom: 1px solid #ccc;

}

.content-foo{
    text-align: center;
}

.content-foo h4{
    color: #fff;
    border-bottom: 3px solid #fff;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #fff;
}

.titulo-final{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #ffffff;
}

@media screen and (max-width:900px){
    header{
        background-position: center;
    }
    
    .contenedor-sobre-magia {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sobre-magia .contenido-textos{
        width: 90%;
    }

    .imagen-about-us{
        width: 90%;
    }

    .contenedor-sobre-maestro{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    

    /* Galeria */

    .imagen-port{
        width: 44%;
    }

    /*  Testimonios */

    .cards{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card{
        width: 90%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }

@media screen and (max-width:500px) {
    nav{
        text-align: center;
        padding: 30px 0 0 0;
    }

    nav > a{
        margin-right: 5px;
    }

    .textos-header h1{
        font-size: 35px;
    }

    .textos-header h2{
        font-size: 20px;
    }

    /* ABOUT US */

    .imagen-about-us{
        margin-bottom: 60px;
        width: 99%;
    }

    .sobre-magia .contenido-textos{
        width: 95%;
    }

    .contactanos{
        align-items: center;
        margin-bottom: 60px;
        width: 95%;
    }

    /* Galeria */
    .imagen-port{
        width: 95%;
    }

    /* TESTIMONIOS */

    .cards .card{
        height: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards .card img{
        width: 90px;
        height: 90px;
    }

    /* footer */

    .contenedor-footer{
        margin-bottom: column;
        text-align: center;
    }

    .content-foo{
        margin-bottom: 20px;
        text-align: center;
    }

    .content-foo h4{
        border-bottom: none;
    }

    .content-foo p{
        color: #ccc;
        border-bottom: 1px solid #f2f2f2;
        padding-bottom: 20px;
    }

    .titulo-final{
        font-size: 20px;
    }

}
}