* {
    font-family: sans-serif, "Trebuchet MS", Arial, Helvetica ;
    /*color:#fff;	*/
    font-size: 1em;
    margin: 0 auto;
    padding: 0;
    /*width: 80%;*/
}

h1 .lema {
    font-family: serif !important;
    font-size: 2rem !important;
}

.encabezado {
    color: #393d42;
    font-size: 1.26em;
}

h1 {
    width: 80%;
    margin: 0 auto;
    clear: both;
    position: relative;
    color: #fff;
}


#encabezado {
    /*border: solid 2px red;*/

    /*width:80%;
	margin:0 auto;
	background:#267cff;
	clear:both;
	position:relative;
	height:100%;*/

    background-image: url(../img/fondo_azul.png);
    background-repeat: no-repeat;
    text-align: right;
    padding: 20px;
    height: 100%;
    width: 80%;
    margin: 0 auto;
}

#encabezado h1 {
    /*border: solid 2px white;*/

    float: left;
    text-align: left;
    clear: both;
    margin-top: 40px;
    font-size: 2rem;
    font-family: serif;
    position: relative;
    width: 80;
    color: #fff !important;
}

#encabezado h1 .calidad {
    color: #fff !important;
    font-family: serif;
    font-size: 2rem;
}

/*#logo {
    border: solid 2px yellow;
    
	float:left;
    margin-right: 1em;
    margin-bottom: 1em;
    clear: both;
}*/

#btn-menu {
    display: none;
}

.menu_bar{
    display: none;
}

header label {
    display: none;
    width: 30px;
    height: 30px;
    padding: 10px;
    border: 1px solid #f0f0f0;
}

header nav ul {
    overflow: hidden;
    list-style: none;
    border: 1px solid #e7e7e7;
    background-color: #f3f3f3;
}

header nav ul li {
    float: left;
}

header nav ul li a{
    display: block;
    color: #666;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

header label:hover {
    cursor: pointer;
}

section {
    padding-top: 20px;
}

@media (max-width:768px){
    header nav{
        width: 70%;
        height: 100%;
        margin: 0;
        
    }
    
    header nav ul li{
        display: block;
        float: none;
        border-bottom: 1px solid rgba(255,255,255, .3)
    }
    
    .menu_bar {
        display: block;
        width: 100%;
    }
    
    .menu_bar .bt-menu {
        display: block;
        padding: 14px;
        background: #f3f3f3;
        color: #666;
        text-decoration: none;
        font-weight: bold;
        font-size: 20px;
        box-sizing: border-box;
        
    }
}
    
    


header nav {
    /*padding: 20px;*/
    height: 100%;
    width: 80%;
    margin: 0 auto;
}

/*
#menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    background-color: #f3f3f3;
}
*/

#menu li:hover{
    
}

/*
#menu li a {
    display: block;
    color: #666;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
*/



/*
#menu ul li {
    float: left;
}
*/

/*
#menu ul li a {
    display: block;
    color: #666;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
*/

#menu ul li a:hover:not(.active) {
    background-color: #ddd;
}

#menu ul li a.active {
    color: white;
    background-color: #00CCFF;
}

#centrarportafolio {
    width: 80%;
    margin: 0 auto;
    background: rgba(69, 87, 101, 0.2);
    clear: both;
    position: relative;
    height: 100%;
}

.formulario {
    width: 80%;
    margin: 0 auto;
    height: 100%;
}

#portafolio {
    width: 100%;
    height: auto;
    min-height: 200px;
    /*background:url(../img/edificios_bg.png);*/
}

.boxportafolio {
    width: 150px;
    height: 150px;
    background: #fff;
    padding: 10px;
    margin: 20px 8% 0 8%;
    position: relative;
    overflow: hidden;
}

.imgportafolio,
.imgportafolio img {
    width: 130px;
    height: 130px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}


.thumb {
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

@media (max-width: 991px) {
    .thumb {
        width: 80%;
    }
}

@media (max-width: 500px) {
    .thumb {
        width: 100%;
    }
}

.thumb img {
    width: 100%;
    max-height: 230px;
    height: auto;
    -moz-transition: 0.5s all ease;
    -webkit-transition: 0.5s all ease;
    -o-transition: 0.5s all ease;
    transition: 0.5s all ease;
}

.thumb_overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    -moz-transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    transition: 0.3s all ease;
    color: #ffffff;
    background: transparent;
}

.thumb:hover .thumb_overlay {
    opacity: 1;
    background: rgba(33, 194, 248, 0.3);
}

.lt-ie9 .thumb:hover .thumb_overlay {
    background: none;
    -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff21c2f8', endColorstr='#ff21c2f8');
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff21c2f8', endColorstr='#ff21c2f8');
    zoom: 1;
}

.thumb:hover .thumb_overlay:before {
    opacity: 1;
}

.lt-ie9 .thumb:hover .thumb_overlay:before {
    display: block;
}

.thumb:hover img {
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.thumb_overl1:hover .thumb_overlay:before {
    display: none;
}

.thumb_overl1:hover .thumb_overlay:after {
    opacity: 1;
}

/*.thumb img {
    width:350px;
	height:260px;
    margin-left: auto;
    margin-right: auto;
    display: block;   
}*/

.slide {
    width: 100%;
    height: 150px;
    background: rgba(45, 114, 108, 0.6);
    position: absolute;
    left: 0;
    /*top:140px;*/
    /*Ya se modifica automaticamente en el js*/
    z-index: 0;
}

.slide h6 {
    text-align: center;
    /*margin:*/
}

.slide p,
h6 {
    font-size: 0.938rem;
    /*15px*/
    text-shadow: 2px 2px 3px #fff;
    line-height: 1.2;
    /*separacion entre renglones. 1 es el normal*/
    margin-top: 5px;
    padding: 0 15px;
}

#centrarportafolio {
    /*<!--alinear y centrar dentro de la caja-->*/
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.grid-container {
    /*despliegue*/
    display: grid;
    /*grid de columnas*/
    /*grid-template-columns: auto auto;*/

    background-color: #f0f0f0;
    padding: 10px;
}

.grid-item {
    color: #fff;
    /*
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.2);
*/
    padding: 22%;
    font-size: 1.0em;
    text-align: center;
}

.video-player {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.video-frame {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}


.link-social {
    display: inline-block;

    width: 100px;
    height: 100px;
    margin: 20px;

    text-indent: 150px;
    /*para que el texto quede fuera de ese rango*/
    overflow: hidden;
    /*ocultar texto desbordado del area, si fuera auto se pone un scroll para poder ver los elementos desbordados*/
    /*border: solid 1px red; */
    text-decoration: none;
}

.facebook {
    background-image: url(../img/facebook2_opt.jpg);
    text-decoration: none;

}

.twitter {
    background-image: url(../img/twitter2_opt.jpg);
    text-decoration: none;
}

#redes {
    float: center;
    text-align: center;
}

#redes li {
    display: inline-block;
}

#footer::after {
    content: "";
    display: block;
    clear: both;
}

#footer {
    /*border: solid 1px red;*/

    background-image: url(../img/fondo_azul.png);
    background-repeat: no-repeat;
    text-align: center;
    padding: 20px;
    height: 100%;
    width: 80%;
    margin: 0 auto;
}
