body{
    font-size: 1rem;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-right: 1px solid rgb(168, 167, 167);
    background-image: url("../images/fondo.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    /*background-size: 100% 150%;*/
    background-size: cover;
    background-position: center;
}


#titulo{
    font-size: 3rem;
    text-shadow: 2px  2px  10px black;
}

#titulo_h2{
    color: white;
    font-size: 1.5rem;
    text-shadow: 2px  2px  10px black;
}

.titulo_sec{
    color: white;
    font-size: 1rem;
    text-shadow: 2px  2px  10px black;
}

#contenedor{
    width: 100%;
}

#contenedor > *{
    float: left;
    text-align: center;
    box-sizing: border-box;
}

header{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    background-color:rgb(86, 86, 88, 0.8);
    color: white;    
}

.img_head{
    width: 170px; /*x1.7 el alto*/
    height: 100px;
    padding: 10px;
}

nav{
    padding: 5px;
    width: 100%;
    background-color: rgba(86, 86, 88, 0.4);
}

nav ul{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    justify-content: flex-end;
    padding: 0;
    margin: 10px 0px;
}

nav ul li a{
    min-width: 150px;
    text-decoration: none;
    color: aqua;
    text-shadow: 2px  2px  10px black;
    padding:10px;
    display: block;
    background-color: rgba(86, 86, 88, 0.75);
    border-radius: 15px;
}

nav ul li a:hover, .seleccionado{
    border-radius: 15px;
    box-shadow: 3px  3px  10px black;
}

main{
    width: 100%;
    min-height: 400px;
}

#productos{
    display: flex;
    flex-direction: row;
    justify-content: center; 
    flex-wrap: nowrap; 
    gap: 15px;
    color: black;
    align-items: center;  
    padding: 5% 10%;
}

#historia{
    display: flex;
    flex-direction: row;
    /* align-items: center; */
    justify-content: center; 
    flex-wrap: nowrap;
    border: 1px solid rgb(116, 116, 116);
    padding: 20px;
    box-sizing: border-box;
    border-radius: 20px;
    /* background: linear-gradient(135deg, #dddfe1 0%,#b5d0e6 49%,#dae7f2 100%); */
    background-color: rgba(179, 179, 174, 0.75);
    box-shadow: 5px 5px 10px black, -5px -5px 12px black inset;
    /* color: aqua;
    text-shadow: 2px  2px  4px black; */
}

#msjgral{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 90%;
    color: black;
    /* text-shadow: 2px  2px  4px aqua; */
}

#msjesp{
    font-size: 1.2rem;
}

#msjing{
    font-size: 1.2rem;
    padding-bottom: 30px;
}

.producto{
    max-width: 50%;
    border: 1px solid rgb(116, 116, 116);
    padding: 20px;
    margin: 20px;
    box-sizing: border-box;
    border-radius: 20px;
    background-color: rgba(0, 255, 255, 0.5);
    box-shadow: 5px 5px 10px black, -5px -5px 12px black inset;
}

#especialidades{
    display: flex;
    justify-content: center; 
    flex-direction: column;
    gap: 15px;
    color: black;
    align-items: center;  
    padding: 5% 10%;
}

.especialidad{
    max-width: 50%;
    border: 1px solid rgb(116, 116, 116);
    padding: 20px;
    margin: 20px;
    box-sizing: border-box;
    border-radius: 20px;
    background-color: rgba(179, 179, 174, 0.75);
    box-shadow: 5px 5px 10px black, -5px -5px 12px black inset;
}


.img_pro{
    width: 50%;
    max-height: 100px;
    max-width: 100px;
    height: 50%;
    padding: 10px;
}

.enconstruccion{
    font-size: 1.5rem;    
    color: black;
    text-shadow: 2px  2px  4px black;
}

footer{
    width: 100%;
    background-color: rgba(86, 86, 88, 0.4);
    color: white;
    padding: 30px 0;
}

#redes{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.img_red{
    width: 40px;
    height: 40px;
    padding: 10px;
}

#pie{
    font-size: 1.5rem;
    color: white;
    text-shadow: 1px  1px  2px red;
}

@media screen and (max-width: 700px){
/* 
    body{
        background-size: 160% 100%;
    } */

    header{
            flex-direction:column;
    }

    nav ul{
            flex-direction:column;
        }
    
    #historia{
        flex-wrap: wrap;
        padding: opx;
    }    

    #msjgral{
        padding-right: 0px;
    }

    #productos{
            flex-direction:column;
        }
        
    .producto{
            max-width:75%;
        }

    .listaHab{
            margin-left: 20%;
            margin-right: 20%
        }
    }      

@media screen and (max-width: 450px){
        #historia{
            flex-wrap: wrap;
        } 
   
        #msjgral{
            padding-right: 0px;
        }

        #productos{
            flex-direction:column;
        }
    
        .producto{
            max-width:100%;
            padding: 0px
         }

        #especialidades{
        padding: 0px;
        margin: 0px
       }

        .especialidad{
            max-width:100%;
            padding: 0px
        }
        
        .listaHab{
            margin-left: 20%;
            margin-right: 20%
        }

}

@keyframes eng1 { 
        0% { transform: rotate(0deg)} 
        20% {transform: rotate(35deg)} 
        40% {transform: rotate(70deg)} 
        60% {transform: rotate(105deg)} 
        80% {transform: rotate(140deg)}     
        100% {transform: rotate(180deg)} 
    }
    #animacioneng1 {
        animation-name: eng1; /* El nombre del efecto que estamos agregando */
        animation-delay: 0.5s;
        animation-duration: 1.5s; /* Tiempo que durará la animación */
        animation-iteration-count: infinite; /* Las veces que queremos reproducir la animación */
        animation-timing-function: ease-in-out;
        position: absolute;
        margin-top: 25px;
        height:100px;
        width:100px;
        }

        @keyframes eng2 { 
                0% {transform: rotate(0deg)} 
                20% {transform: rotate(-35deg)} 
                40% {transform: rotate(-70deg)} 
                60% {transform: rotate(-105deg)} 
                80% {transform: rotate(-140deg)} 
                100% { transform: rotate(-175deg);} 
            }
            #animacioneng2 {
                animation-name: eng2; /* El nombre del efecto que estamos agregando */
                animation-delay: 0.5s;
                animation-duration: 1.5s; /* Tiempo que durará la animación */
                animation-iteration-count: infinite; /* Las veces que queremos reproducir la animación */
                animation-timing-function: ease-in-out;
                height:100px;
                width:100px;
                margin-top: 79px;
                margin-left: 72px;
            }