*{
    font-family: sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body{
    background-image: url("../img/static/FondoTrapacon.png");
    background-size: 1000px;
}

li{
    list-style: none;
}

a{
    text-decoration: none;
}

/* Banner */
.logo_main{
    height: 110px;
    background-color: white;
    background-image: url("../img/static/bannerTrapacon.png");
    background-size: 750px;
    background-position-y: -5px;
    text-align: center;
}

.logo_main img{
    margin-top: 17px;
    border-radius: 40px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.74);
    height: 75px;
}

/* navegador */
.logo_small{
    padding: 0 22px;
    margin-left: -25px;
    cursor: default;
}

.logo_small img{
    height: 40px;
    cursor: pointer;
}

.nav{
    float: left;
    width: 100%;
    background: rgba(17, 17, 17, 0.87);
    padding: 0 20px;
    transition: .3s ease all;
    border: 3px red;
    border-style: none none solid;
    z-index: 1000;
}

.nav .wrap{
    position: relative;
    left: -170px;
    transition: 0.4s ease all;
}

nav{
    display: inline-block;
}

nav ul{
    display: flex;
    align-items: center;
    
}

nav a{
    display: block;
    padding: 18px;
    margin: 0 5px;
    color: white;
    font-size: 20px;
}

nav :not(:nth-child(1)):hover{
    background: red;
    transition: .5s ease all;
}

.fix{
   height: 62px;
}

/* body.nav-fided = movimiento del navegador */
body.nav-fixed .nav{
    position: fixed;
    top: 0;
}

body.nav-fixed .nav .wrap{
    left: 0;
}

/* footer */
footer{
    background: #303030;
    font-size: 13px;
    box-sizing: border-box;
}

footer hr{
    width: 70%;
    padding: 10px;
    border-style: none none solid;
    margin: auto;
}

.conteiner-contact{
    max-width: 1200px;
    margin: 15px auto;
}

.contact{
    display: flex;
    flex-wrap: wrap;
}

.contact div{
    width: 50%;
    padding: 20px;
    font-size: 17px;
}

.contact li, .contact li a{
    margin-bottom: 8px;
    color: white !important;
}

.redes-sociales{
    margin: 20px 0 0 20px;
    font-size: 35px;
}

.redes-sociales a{
    color: white;
}

.redes-sociales a:hover{
    color: red;
}

.logo-white img{
    height: 70px;
}

footer form{
    display: inline-block;
    text-align: center;
}

footer p, footer hr{
    text-align: center;
    color: #7a7a7a;
}

footer input, footer textarea{
    width: 100%;
    margin-bottom: 10px;
    background: #303030;
    border: 2px solid rgb(224, 224, 224);
    border-radius: 3px;
    color: white;
    padding: 3px 7px;
    font-weight: normal;
    font-family: sans-serif;
    font-size: 14px;
}

footer textarea{
    max-height: 100px;
    min-height: 100px;
    max-width: 100%;
    min-width: 100%;
}

footer .boton{
    width: 50%;
    margin: auto;
    box-sizing: content-box;
    cursor: pointer;
}

.boton:hover{
    background: rgb(253, 47, 47);;
}

/* Boton para navegacion */
.arriba{
    transform: translateX(200px);
}

.list{
    transform: translateY(200px);
}

.btn-menu{
    position: fixed;
    width: 50px;
    height: 50px;
    padding: 10px 0;
    font-size: 28px;
    text-align: center;
    border: 1px solid white;
    border-radius: 50%;
    color: white;
    background: #464646;
    cursor: pointer;
    transition: all 500ms cubic-bezier(1, 0, 0, 1);
    bottom: 15px;
    right: 20px;
}

.translate{
    transform: translateX(0px);
}

.fa-xmark{
    background-color: #fd2f2f;
}

/* body en general */
.body{
    max-width: 1200px;
    margin: 25px auto 35px;
    padding: 20px 0 10px;
    background-color: white;
    border: 1px solid grey;
    border-radius: 5px;
}

.body h1{
    text-align: center;
    margin-bottom: 7px;
    font-size: 33px;
}

.body h2{
    width: 92%;
    margin: 20px auto 5px;
    font-size: 27px;
    font-weight: normal;
}

.body h3{
    display: block;
    max-width: 400px;
    margin: 10px auto;
    font-weight: normal;
    background: #7d0000f3;
    color: #ffffff;
    padding: 5px;
    border-radius: 10px;
    text-align: center;
}

.body p{
    width: 95%;
    margin: 10px auto;
    font-size: 19.3px;
}

.body hr[class="title"]{
    width: 50% !important;
}

.body hr, .center{
    width: 95%;
    margin: auto;
}

/* opciones */
.opas{
    background-color: transparent !important;
    border: 0 !important;
}

.none{
    display: none !important;
}

.wind{
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 467px);
    padding: 0;
}

/*Slider */
.slider{
    width: 100%;
    max-height: calc(100vh - 171px);
    margin: auto;
    overflow: hidden;
}

.slider ul{
    display: flex;
    padding: 0;
    width: 400%;
    animation: cambio 17s infinite alternate;
}

.slider li{
    width: 100%;
    list-style: none;
    object-fit: cover;
    border-radius: 10px;
}

.slider img{
    width: 100%;
    height: calc(100vh - 171px);
    object-fit: cover;
}

@keyframes cambio{
    0%{margin-left: 0%;}
    19.37%{margin-left: 0%;}

    25.87%{margin-left: -100%;}
    45.25%{margin-left: -100%;}

    54.75%{margin-left: -200%;}
    74.13%{margin-left: -200%;}

    81.63%{margin-left: -300%;}
    100%{margin-left: -300%;}
}

/* Tarjetas */
.tarjeta{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    text-align: center;
}

.tarjeta p{
    padding: 10px 0;
    font-size: 23px;
}

.tarjeta a{
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #7d0000;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 3px;
    transition: all ease-in-out .3s;
    font-size: 18px;
}

.tarjeta a:hover{
    transform: scale(1.2);
}

.item{
    width: 260px;
    margin: 10px;
    background-color: #ffffff;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.5);
    border-radius: 3px;
}

/* Nosotros */
.conteiner-nos{
    margin-top: 10px;
}

.colum-nos{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.colum-nos img, .conteiner-serv img{
    width: 80px;
}

.colum-nos li{
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    color: #7d0000;
}

.trapacon h1{
    color: #303030;
    font-weight: normal;
}

.trapacon b{
    color: #7d0000;
}

/* Servicios */
.conteiner-serv{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.conteiner-serv ul{
    width: 290px;
    margin: 8px 0;
}

.conteiner-serv li{
    text-align: center;
    font-size: 17px;
    color: #7C0000;
    font-weight: bold;
}

/* galeria */
.gallery{
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.gallery a{
    width: 100%;
    height: 100%;
}


.gallery div{
    margin: 0 10px;
    margin-bottom: 25px;
    background-color: #ffffff;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.5);
    border-radius: 3px;
    transition: all 0.3s;
}

.gallery div:hover{
    transform: scale(1.05);
}

.gallery div a img{
    margin-bottom: -4px;
    height: 250px;
    width: 356px;
    object-fit: cover;
}

/* Pagina de Contactos */
.pcontact{
    width: 80%;
    padding: 20px;
    background-color:rgba(17, 17, 17, 0.87);
    text-align: center;
    border-radius: 10px;
    margin: auto;
}

.pcontact h1{
    color: white;
    margin: 0;
    margin-bottom: 10px;
}

.pcontact input, .pcontact textarea{
    width: 100%;
    margin-bottom: 12px;
    border-left: red solid 1px;
    border-bottom: red solid 1px;
    padding: 3px 7px;
    font-size: 17px;
}

.pcontact textarea{
    max-height: 200px;
    min-height: 150px;
    max-width: 100%;
    min-width: 100%;
}

.pcontact .boton{
    width: 50%;
    cursor: pointer;
}

.pcontact .boton:hover{
    background: #fd2f2f;;
    color: #ffffff;
}

/* Envio */
.conteiner-env{
    background-color: #7d0000ec;
    margin: 50px 20%;
    margin-bottom: 80px;
    padding: 20px 10px;
    border-radius: 15px;
    color: #ffffff;
    text-align: center;
}

.conteiner-env h1{
    font-size: 40px;
}

.conteiner-env h2{
    margin-top: 10px;
    font-size: 40px;
}

.conteiner-env p{
    font-size: 25px;
}

/* Editor */
.editor .back, .editor .logout{
    font-size: 20px;
    color: black;
}

.editor .option{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msg{
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.msg a{
    color: #fff;
    font-weight: bold;
}

.body div[class*="msg"]{
    margin: 5px;
    border-radius: 5px;
    color: #fff;
}

.msgv{
    background-color: rgb(0, 202, 0);
}

.msgr{
    background-color: rgb(255, 66, 66);
    
}

.editor form{
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor form div{
    margin: 0 20px;
}

.editor form p{
    text-align: center;
    margin: 0 0 7px;
}

.editor input:not([type=file]), .editor select, .editor input[type=file]::file-selector-button{
    background: #970000;
    padding: 5px 7px;
    color:#fff;
    cursor:pointer;
    border-radius: 5px;
    border: 1px solid #0F362D;
}

.editor textarea{
    padding: 5px 7px;
}

.conteiner-img img{
    height:100px;
    margin: 0 3px;
}

.option-img{
    display: inline-block;
    text-align: center;
    margin: 5px 0;
}

.option-img a{
    color: #7C0000;
    font-weight: bold;
    font-size: 17px;
    border-radius: 5px;
}

/* Login Admin*/
.login{
    padding: 25px;
}

.login input{
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
}

.login form a{
    color: #fd2f2f;
    font-size: 15px;
    float: right;
}

.login input[type="submit"]{
    width: 50%;
    margin: 10px 0 0;
    float: right;
}

.login input[type="submit"]:hover{
    background-color: #970000;
    color: #fff;
}

.login input:focus{
    outline: none;
}

/*MENU ADAPTABLE*/
@media screen and (max-width: 855px){
    /* Banner */
    .logo_main{
        border: 4px red;
        border-style: none none solid;
    }

    /* Navegador */
    .logo_small{
        margin: 0;
    }

    .nav{
        width: 60%;
        position: fixed;
        top: 0;
        height: 100vh;
        padding: 0px;
        transform: translateX(-100%);
    }
    
    .nav .wrap{
        left: 0;
    }
    
    nav{
        width: 100%;
        position: absolute;
        top: 15px;
    }
    
    nav ul{
        display: inline;
    }
    
    nav a{
        width: 100%;
        display: block;
        padding: 20px;
        margin: 0;
    }
    
    .nav-toggle{
        transition: all 300ms cubic-bezier(1,0,0,1);
        transform: translateX(0%);
    }

    .fix{
        height: 0;
    }

    /* footer */
    .contact div{
        width: 100%;
        padding: 20px 30px;
    }
    
    /* Botones */
    .list{
        transform: translateY(0px);
    }

    .arriba{
        bottom: 75px;
    }

    /* body */
    .body h2{
        text-align: center;
    }

    /* Opciones */
    .wind{
        min-height: calc(100vh - 467px + 62px);
    }

    /* Slider */
    .slider img{
        width: 100%;
        height: 50vh;
        object-fit: cover;
    }

    /* Nosotros */
    .trapacon h1{
        font-size: 25px;
    }

    .colum-nos{
        flex-direction: column;
    }

    /* Servicios */
    .conteiner-serv ul{
        width: 150px;
        margin: 8px 0;
    }

    /* contacto */
    .contenedor-contacto{
        margin-top: 0;
    }

    .pagina-contacto{
        margin: 0 10%;
        margin-top: 30px;
    }

    /* Contacto */
    .pcontact{
        width: 90%;
    }

    /* Editoro */
    .editor form{
        flex-direction: column;
    }

    .editor form div{
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 808px){
    .gallery div a img{
        width: 100%;
        height: auto;
    }
}