* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  background-color: #eee;
}

/*this is to avoid going 
  back to previous pages with left finger
  slide on Chrome*/
html, body { 
  overscroll-behavior-x: none;
}

#header {
  position: fixed;
  top: 0px;
  width: 100%;
  height: 60px;
  background-color: #fff;
  z-index: 1000;
  user-select: none;
}

#header .margen {
  height: 100%;
  align-content: space-evenly;
}

#logo {
  width: 120px;
  height: 30px;
}

#logo img {
  width: 100%;
  height: 100%;
}

#header .nav {
  display: none;
}

#scrolled_px {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  color: #03cadf;
  text-align: center;
  font-weight: bold;
}

#boton_menu {
  color: #003b6f;
  font-size: 1.5em;
}

#menu_movil {
  width: 100%;
  height: 0%;
  position: fixed;
  background-color: #111;
  z-index: 100;
  transition: all .65s ease-out;
  padding: 0px 15px;
  overflow: auto;
}

#menu_movil a {
  font-size: 1.2em;
  padding: 7px 0px;
  border-bottom: 1px solid #333;
  padding: 0px;
  transition: all .5s ease;
  opacity: 0;
  max-width: 800px;
  margin: auto;
  display: block; /*anchors are inline*/
  color: #eee;
  text-decoration: none;
}

#menu_movil i {
  width: 20px;
  color: #327699;
  margin-right: 12px;
  text-align: right;
}

#chbx {
  display: none;
}

#chbx:checked ~ #menu_movil { 
  height: 100%; 
  padding-top: 90px;
}  

#chbx:checked ~ #menu_movil a {
  padding:10px 0px;
  opacity: 1;
}

#wrap {
  height: 100%;
  position: relative; 
  border: 1px solid gold;
  padding-top: 60px;
}

.section {
  position: relative;
  border: 1px solid #999;
}

.margen {
  width: 100%;
  position: relative;
  margin: auto;
  border: 1px solid #1576B5;
}

h1, h2, h3, h4, h5, h6 {
  width: 100%;
  font-weight: normal;
}

button {
  cursor: pointer;
}

p {
  width: 100%;
}

#footer {
  min-height: 200px;
  background-color: #003b6f;
  color: #eee;
}

#footer .margen {
  justify-content: center;
}

#footer .icons_div {
  width: 100%;
  justify-content: center;
}

#footer i {
  font-size: 1.5em;
}

#footer .isotipo { /*.div_img*/
  width: 30px;
  height: 50px;
  margin-bottom: 15px;
}

.div_img img {
  width: 100%;
  height: 100%;
}

.detras {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  background-color: #111;
  opacity: .3;
}

.flexbox {
  display:  flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.flex, .sub {
  width: 100%;
  position: relative;
  display:  flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
  align-self: flex-start;
  border: 1px dotted red;
}

.sub { 
  border: 1px dotted darkorchid;
}

@media only screen and (min-width: 600px) {
    
  .flex2, .sub2 { width: 49.5%; }
  
  .flex3, .sub3 { width: 32.5%; }
  
  .flex4, .sub4 { width: 49.5% }
  
  .flex5, .sub5 { width: 19.5%; }
  
  .flex6, .sub6 { width: 32.5%; }
} 
      
@media only screen and (min-width: 970px) { 
    
  .flex4, .sub4 { width: 24.5%; }
  
  .flex6, .sub6 { width: 16%; }
   
  #header .nav {
    position: relative;
    width: 60%;
    display: flex; /*none*/
  }
  
  #header .ul-nav {
		list-style-type: none;
		width: 100%; /*of parent .nav*/
		margin: auto;
  }

	#header .ul-nav > li {
		position: relative;
		cursor: pointer;
    padding: 2px 5px;
    display: flex;
    justify-content: space-between;
    min-width: 100px;
	}  
  
   #header .ul-nav > li:hover {
    /* background-color: #00789c;*/
     background-color: #327699;
  }
  
  #header .ul-nav > li > a {
    margin: auto;
    width: 100%;
    text-align: center;
  }
    
  #header .ul-nav > li:hover > a {
    color: #fff;
  }
  
	#header .ul-nav li:hover .ul-nav-sub {
		visibility: visible;
		opacity: 1;
	}

	#header .ul-nav > li a {
    text-decoration: none; 
    display: ; /*A's are not blick by default*/ 
    color: #000;
	}

	#header .ul-nav > li .fa-caret-down {	}
	
	#header .ul-nav-sub {
		position: absolute;
		width: 100%;
		background-color: #327699;
		transition: all .3s ease;
		top: 140%;
		left: 0;
		list-style: none;
		box-shadow: 3px 3px 5px #888; 
		visibility: hidden;
		opacity: 0;
    padding: 3px;
	}
	
	#header .ul-nav-sub .fa-caret-up {
		color: #327699;
		position: absolute;
		top: -15px;
		font-size: 1.5em;;
		left: 0;
		text-align: center;
		width: 100%;
	}
	
	#header .ul-nav-sub li {
		padding: 5px;
		transition: all .1s ease;
    text-align: left;
	}
	
	#header .ul-nav-sub li:hover {
    background-color: #97E0F5; /*light greenblue*/
	}
  
  #header .ul-nav-sub li a {
    color: #eee;
    transition: all .1s ease;
  }
  
  #header .ul-nav-sub li:hover a {
    color: #000;
  }
	
  /*Excel last sub-menu*/
	#header .ul-nav-sub li:not(:nth-last-of-type(1)) {
     
	}
	
	#header .ul-nav-sub li a {
		height: 100%;
    /*color: #333;*/
	}
/*_____________________________________*/
  
  #boton_menu, #menu_movil {
    display: none;
  }
    
  .margen {
    width: 80%;
    max-width: 1024px;
  }
    
}