* { margin: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: sans-serif; }
body { background: #ccc; } 
header { background: #fff; color: #000; height: 10vh; }
img { max-width: 100%; }

/*====================
  TIPOGRAFÍA
====================*/
body {
  font-family: 'Roboto Mono', monospace;
}

h1 {
  font-family: 'Roboto Mono';
  font-weight: bold;
}

h2, .button, .title {
  font-family: 'Bebas Neue', cursive;
}

h2.title a, h2.lev a {
  color: black;
}

.centered { 
  position: relative;
  width: 98%;
  max-width: 1100px; 
  margin: auto; 
  padding: 0;
  transition: all .2s ease-in-out;
}

.title { 
  letter-spacing: .2em; 
  font-size: 1rem;
  color: black;
  background: #fff;
  display: inline-block;
  padding: 9px 3px 3px 9px 
}

h2.lev {
  text-transform: none;
  font-family: 'Roboto Mono';
  font-size: .8rem;
  color: #000;
}

header h3 { font-weight: normal; }

header .centered {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#logo {
  padding: 1rem;
  /*border: 1px solid red;*/
  display: inline-block;
  padding-left: 0;
}


#logo h1 {
  position: relative;
  margin-bottom: -9px
}

#logo h1::after {
  background: url('../imgs/icon-rayo.png');
  background-size: 12px 24px;
  background-repeat: no-repeat;
  width: 12px;
  height: 24px;
  content: '';
  position: absolute;
  top: 10px;
  margin-left: 5px;
  /*right: 8px;*/
}

#instituciones {
  display: inline-block;
  padding-top: 18px;
}

#instituciones img {
  height: 40px;
  margin-left: 16px;
}

a { text-decoration: none; }

@media screen and (max-width: 500px) {

  #logo {
    padding: 1rem;
    padding-left: .4rem;
  }

  #logo h1 {
    font-size: 1.1rem;
    margin-bottom: -4px;
  }

  #logo h1::after {
    top: 0;

  }

  #logo h3 {
    font-size: .7rem;
  }

  #instituciones {
    padding-top: 0px;
    padding-right: .4rem;
  }

  #instituciones img {
    height: 14px;
    margin-left: 3px;
  }

}

/*=== COLORES ===*/
.rojo { background: #F36E47; }
.amarillo { background: #FFD727; }
.turquesa { background: #00ADA4; }

/*====================
  DIAGRAMACIÓN GENERAL
 ====================*/
.right { float: right; }
.left  { float: left; }
.right + *, .left + * { 
  clear: both;
}

/*====================
  DIAGRAMACIÓN INDEX
 ====================*/

.fuentes-de-energia { background: #FFD727; position: relative;
}

.calor { background: #F36E47; position: relative;
}

.eficiencia-energetica { background: #00ADA4; position: relative;}

.container {  
  display: flex;
  height: 90%; 
  flex-direction: column;
  justify-content: space-around;  
}

.inner { 
  color: #fff; 
  height: 33.333%; 
}

.inner-content {
  height: 100%;
  width: 90%; 
  border-radius:  33.33vh  0 0 33.33vh;
  position: relative;
}

.inner-content.calor {  
  width: 140%;  
  border-radius: 0  33.33vh 33.33vh 0;
  height: 100%; 
}

.one { 
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #FEE3CE;  
}

.two { 
  display: flex;
  background: #FEE3CE; 
  flex-direction: row-reverse; 
}

.three { 
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #FEE3CE; 
}

h2.lev {
  position: relative; 
  background: #fff;
  align-self: center;
  padding: .5rem;
  margin: .5rem;
  overflow: visible;
  z-index: 70;
}

h2.lev::after {
  /*content: url(../imgs/icon-rayo.png);*/
  content: '';
  background: url(../imgs/icon-rayo.png) no-repeat;
  background-size: 22px 45px;
  width: 22px;
  height: 45px;
  position: absolute;
  top: -48px;
  right: 20px;
  z-index: -1;
}

header .menu-content {
  width: 94%;
}
/*===============
  iconos
 ================*/

div.icon {
  text-align: center;
  position: absolute;
  /*max-width: 160px;*/
}

div.icon a {
  text-decoration: none;
}

div.icon a img {
  display: block;
  width: 30px;
  margin: 3px auto;
}

div.one div.icon a h3 {
  color: #fff;
} 

div.icon a h3 { 
  padding: 4px;
  color: #000; 
  display: inline-block; 
  font-size: .7rem;
}

.one h3 { background: #F36E47; }
.two h3 { background: #FFD727 }
.three a h3 { background: #FEE3CE; }


div.inner0-content.amarillo a h3 { background: #F36E47; } 
div.inner0-content.rojo a h3 { background: #FFD727; }
div.inner0-content.turquesa a h3 { background: #FEE3CE; color: #000; }

div.icon.arquitectura { top: 16%; left: 5%; }
div.icon.transformacion { top: 30%; right: 6%; }
div.icon.desafio { top: 56%; right: 41%; }

div.icon.materiales { top: 13%; right: 11%; }
div.icon.aislamiento { top: 51%; right: 62%; }

div.icon.consumo {  top: 26%; right: 5%; }
div.icon.eficiente { top: 30%; right: 66%; }
div.icon.etiquetas { top: 59%; right: 37%; }

@media screen and (min-width: 769px) {
  /*====================
    TIPOGRAFÍA
  ====================*/
  .title {
    font-size: 2rem;
    margin-top: 47px;
  }

  /*====================
    DIAGRAMACIÓN INDEX
  ====================*/
  .container {
    flex-direction: row;
  }
  
  .inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;         
    height: 100%;
    position: relative;
  }
  
  .inner-content {
    width: 100%;
    height: 90%;
    border-radius: 0 0 33.33vh 33.33vh;   
  }

  .one {
    
  }
  .two {
    justify-content: flex-end;
  }
  .three {

  }

  .inner-content.calor {
    width: 100%;
    border-radius: 33.33vh 33.33vh 0 0;
    height: 76%;  
  }

  h2.lev { 
    position: relative; 
    font-size: 1.3rem;
    max-width: 275px;
    margin-bottom: 3rem;
    text-transform: uppercase;
  }

  h2.lev:after {
    background-size: 44px 90px;
    width: 44px;
    height: 90px;
  }

/*h2.lev::after {
  
  content: '';
  background: url(../imgs/icon-rayo.png) no-repeat;
  background-size: 22px 45px;
  width: 22px;
  height: 45px;
  
  top: -48px;
  right: 20px;
  z-index: -1;
}*/

  /*===============
    iconos
   ================*/

  div.inner-content a img {
    width: 60px;
    margin: 3px auto 9px;
  }

  div.inner-content a h3 { 
    font-size: 1.17rem; 
  }
  
  div.icon.arquitectura { top: 24%; left: 5%; }
  div.icon.transformacion { top: 46%; right: 11%; }
  div.icon.desafio { top: 69%; right: 50%; }

  div.icon.materiales { top: 27%; right: 36%; }
  div.icon.aislamiento { top: 65%; right: 26%; }

  div.icon.consumo {  top: 31%; right: 9%; }
  div.icon.eficiente { top: 47%; right: 55%; }
  div.icon.etiquetas { top: 74%; right: 32%; }
}

@media screen and (max-width: 769px) {
  .inner-content h2.title {
    position: absolute;
  }

  #title-fuentes {
    right: 12px;
    top: 12px;
  } 

  #title-calor {
    left: 12px;
    top: 12px;
  } 

  #title-eficiencia {
    right: 12px;
    top: 12px;
  }

  h2.lev::after {
   

  top: -22px;
  right: 26px;

  }
}


