*{
	border: 0;
	padding: 0;
	
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
    
    font-family:sans-serif ;
    box-sizing: border-box;
    
}

body{
    background: #EFEDEC;
    margin: 0px;
}

header{
    
   background: linear-gradient(rgb(121,121,122),rgb(255,255,255));
    
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    position: fixed;
    z-index: 100;
}

header img{
    height: 100%;  
    
}

header label{
    display: none;
}


.nav{     
    width: 50%;
    font-size: 15px;    
     
    /* flex */
    display: flex;    
    flex-direction: row; /* cuando se achica baja */
    flex-wrap: wrap; 
    align-items: center;
    
}

.nav a{
    
    padding: 10px;
    color: #ffffff; 
    background: rgba(0,0,0,0.2);
    text-decoration: none;
    text-align: center;
    
    
    /* flex */
    flex: 1 1 auto; /* para que ocupe todo el ancho del mismo tamaño */
       
}

.nav a:hover{
    background: rgba(0, 0, 0, .5);
    border-radius: 8px;
}

.nav a.activado{
    
    background: rgba(0, 0, 0, .5);
    border-radius: 8px;
}

#menu-bar{
    display: none;
}
/*---------------------------*/


.contenedores {   
   
    width: 80%;        
    background: #fff; 
    align-items: center;
    margin: auto;
    padding-top: 100px;
	display: grid;
	grid-template-columns: repeat(4,1fr);
	grid-template-rows: repeat(2,1fr);
	grid-gap:2px;   
    
}

.contenedores .caja{
     
     border: 1px solid #BFC1BF;
   
}

.contenedores .caja .imge{
    padding: 20px;
}



.contenedores .caja:hover{
     
   border: 3px outset #BFC1BF;
   
   cursor: pointer;
}


.contenedores .caja .desc{
   
    font-size: 15px;    
    text-align: justify;
    color: #064870;
    padding: 10px;
    background: #fff;
}

.contenedores .caja .prec{
    
    font-size: 20px;
    text-align: center;
    
    color: #FE8E0F;
    font-weight:bold;
     padding: 5px;
    
}

.direc{
    background: #defaf5;
    grid-column-start: 1;
    grid-column-end: -1;
    border: 1px outset #BFC1BF;
}

.direc h3{
    text-align: center;
}

.direc ul:nth-child(2){
    
    float: left;
    padding-left: 30px;
}

.direc ul:nth-child(3){
    
    float: right;
    padding-right: 30px;
}

.direc ul li{    
    padding: 5px;
}

.direc P{
    float: left;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #430df4;
    color: #fff;
    
}




footer{
    height: 30px;
    width: 100%;
    font-size: 10px;
    background: rgba(19,64,231,0.4);
    color: rgba(0,0,0,0.8);
    
    
    text-align: center;
    
}

footer h2{
    padding-top: 7px;
}

/*Estilos del modal---------------------------------*/

.modal {
    display: none;
    z-index: 100;    
}

.modal:target {
	display: block;
	position: fixed;	
	background: rgba(0,0,0,0.8);
	top: 0;
	left: 0;
	width: 100%;
	/*height: 1000px; */
    height: 100%;
}

.imagen {
    
	width: 50%;
	height: 50%;
	margin: auto;
    margin-top: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.imagen video{
    width: 100%;
    height: 100%;
}

.cerrar {
	display: block;
	background: #fff;
	width: 25px;
	height: 25px;
	margin: 15px auto;
	text-align: center;
	text-decoration: none;
	font-size: 25px;
	color: #000;
	padding: 0;
	border-radius: 50%;
	line-height: 25px;
}



/*---------celular-------------*/

@media only screen and (max-width: 700px) {
    
    .contenedores {
    
    width: 95%;
    margin: auto;       
    padding-top: 50px;
	display: grid;
	grid-template-columns: repeat(2,1fr);
	
	grid-gap:2px;    
    
    }
    
    .contenedores .caja .imge{
    padding: 5px;
    }
    
    .contenedores .caja .desc{
    font-size: 12px;
    }

    .direc ul:nth-child(3){    
      padding-left: 30px;
     }
    
  /*-----------header----------------------*/   
     header{
    height: 50px;  
    
    }
       
    header label{
    display: block;
    }
        
  .nav{ 
    position: absolute;      
    top: 100px;
    width: 100%;
    height: 62vh;
    background: rgba(51,51,51,0.8);    
    transition: all 0.5s;
    transform: translateX(-100%);
    }

.nav a{
    display: flex;
    align-items: center;
    width: 100%;    
    color: #ffffff;
    text-align: left;
    height: 70px;
    text-decoration: none;    
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

nav a:hover{
    background: rgba(255,255,255,0.3);
}

#menu-bar:checked ~ .nav {
    transform: translateX(0%);    
} 
   /*---------------------------------*/

    header label{
    color: #ffffff;
    float: right;
    font-size: 28px;
    margin: 8px;
    cursor: pointer;
   
}

/*-----------header----fin------------------*/
.contenedores .caja .prec{    
    font-size: 18px;    
}
 
/*-----------video------------------*/    
.imagen {
    
	width: 80%;
	height: 40%;
	margin: auto;
    margin-top: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
} 
    
.cerrar {
	
	margin: 13% auto;
	
}

    
}

 

    









