* {
  box-sizing: border-box;
}

/* NUEVO GRID*/

#rig {
    max-width:900px;
    margin:0 auto; /*center aligned*/
    padding:0;
    font-size:0; /* Remember to change it back to normal font size if have captions */
    list-style:none;
    background-color:#000;
}
#rig li {
    display: inline-block;
    *display:inline;/*for IE6 - IE7*/
    width:25%;
    vertical-align:middle;
    box-sizing:border-box;
    margin:0;
    padding:0;
}

/* The wrapper for each item */
.rig-cell {
    /*margin:12px;
    box-shadow:0 0 6px rgba(0,0,0,0.3);*/
    display:block;
    position: relative;
    overflow:hidden;
}

/* If have the image layer */
.rig-img {
    display:block;
    width: 100%;
    height: auto;
    border:none;
    transform:scale(1);
    transition:all 1s;
}

#rig li:hover .rig-img {
    transform:scale(1.05);
}

/* If have the overlay layer */
.rig-overlay {
    position: absolute;
    display:block;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    /*background: #3DC0F1 url(img/link.png) no-repeat center 20%;*/
    background: grey url(img/link.png) no-repeat center 20%;
    background-size:50px 50px;
    opacity:0;
    filter:alpha(opacity=0);/*For IE6 - IE8*/
    transition:all 0.6s;
}
#rig li:hover .rig-overlay {
    opacity:0.8;
}

/* If have captions */
.rig-text {
    display:block;
    padding:0 30px;
    box-sizing:border-box;
    position:absolute;
    left:0;
    width:100%;
    text-align:center;
    text-transform:capitalize;
    font-size:18px;
    font-weight:bold;
    font-family: 'Raleway', sans-serif;
    font-weight:normal!important;
    top:40%;
    color:white;
    opacity:0;
    filter:alpha(opacity=0);/*For older IE*/
    transform:translateY(-20px);
    transition:all .3s;
}
#rig li:hover .rig-text {
    transform:translateY(0px);
    opacity:0.9;
}

@media (max-width: 9000px) {
    #rig li {
        width:25%;
    }
}

@media (max-width: 700px) {
    #rig li {
        width:33.33%;
    }
}

@media (max-width: 550px) {
    #rig li {
        width:50%;
    }
}

/*AQUÍ ACABA EL NUEVO GRID*/

.video-wrapper {
    position: relative;
}

.video-wrapper > video {
    width: 100%;
    vertical-align: middle;
}

.video-wrapper > video.has-media-controls-hidden::-webkit-media-controls {
    display: none;
}

.video-overlay-play-button {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 10px calc(50% - 50px);
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    opacity: 0.95;
    cursor: pointer;
    background-image: linear-gradient(transparent, #000);
    transition: opacity 150ms;
}

.video-overlay-play-button:hover {
    opacity: 1;
}

.video-overlay-play-button.is-hidden {
    display: none;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.mySlides {
    display: none;
}

.prev, .next {
  color: black !important;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #000;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor:pointer;
  height: 13px;
  width: 13px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/*HASTA AQUÍ SLIDESHOW*/

body {
  margin: 0;
  padding: 0;
  background: #fff;
}
.wrap {
  overflow: hidden;
  margin: 10px;
}
.box {
  float: left;
  position: relative;
  width: 20%;
  padding-bottom: 20%;
}
.boxInner {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 10px;
  overflow: hidden;
}
.boxInner img {
  width: 100%;
}
.boxInner .titleBox {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-bottom: -50px;
  background: #000;
  background: rgba(0, 0, 0, 0.5);
  color: #FFF;
  padding: 10px;
  text-align: center;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
body.no-touch .boxInner:hover .titleBox, body.touch .boxInner.touchFocus .titleBox {
  margin-bottom: 0;
}
@media only screen and (max-width : 480px) {
  /* Smartphone view: 1 tile */
  .box {
    width: 100%;
    padding-bottom: 100%;
  }
}
@media only screen and (max-width : 650px) and (min-width : 481px) {
  /* Tablet view: 2 tiles */
  .box {
    width: 50%;
    padding-bottom: 50%;
  }
}
@media only screen and (max-width : 1050px) and (min-width : 651px) {
  /* Small desktop / ipad view: 3 tiles */
  .box {
    width: 33.3%;
    padding-bottom: 33.3%;
  }
}
@media only screen and (max-width : 1290px) and (min-width : 1051px) {
  /* Medium desktop: 4 tiles */
  .box {
    width: 25%;
    padding-bottom: 25%;
  }
}

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */
    border: 1px solid #ccc; /* Gray border */
    border-radius: 4px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
    background-color: #000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
    background-color: #808080;
}

/* Add a background color and some padding around the form */
.container2 {
    border-radius: 5px;
    background-color: #fff;
    padding: 20px;
    margin: 0 auto;
    width: 100%;
}

div.container {
	height:180px;
	width:100%;
	overflow:hidden;
	transition: all 1s ease;
  display: inline-block;
}
div.image {
	height:180px;
	width:100%;
}
div.image img {
	width:100%;
}
div.text {
	height:200px;
	width:100%;
	background:yellow;
	transition: all 1s ease;
	opacity:0;
}
div.container:hover div.text {
	position: relative;
	top:-100%;
	opacity:1;
}
div.text div.content {
	background:#fff;
	height:200px;
	padding:10px;
}

div.text .content p {
	padding:25px;
	color:#000;
}

body{
  font-family: 'Raleway', sans-serif;
}

h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
}

h1 a {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  color: #000;
}

h1 a:hover {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  color: #808080;
}

h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
}

h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
}

h3 a {
  text-decoration: none;
  color: #000;
}

h3 a:hover {
  text-decoration: none;
  color: #808080;
}

p a {
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    color: #000;
}

p a:hover {
  text-decoration: none;
  color: #808080;
}

#menu {
  font-family: 'Raleway', sans-serif;
    background-color: #fff;
    clear: both;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    text-align: right;
    z-index: 2;
}

#menu a {
  font-family: 'Raleway', sans-serif;
    padding: 10px 10px;
    color: #000;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.4s;
}

#menu a:hover {
  color: #808080;
}

#menuintro {
  font-family: 'Raleway', sans-serif;
    background-color: #808080;
    clear: both;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    text-align: right;
    z-index: 2;
}

#menuintro a {
  font-family: 'Raleway', sans-serif;
    padding: 10px 10px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.4s;
}

#menuintro a:hover {
  color: #000;
}

.fondofoto {
  width: 100%;
padding-top:30px;
}

.infoproyecto {
  margin: 0 auto;
  width: 90%;
}


ul {
  display: inline;
  padding: 20px;
  color: #fff;
}

li {
  display: inline;
}


.proyectos {
  max-width: 100%;
  display: inline-block;
}

#galeria {
  position: relative;
margin: 0 auto;
top: 0;
left: 0;
right: 0;
}

.proyectos img {
  max-width: 100%;
}


  footer {
    width: 100%;
    padding: 20px;
    background-color: #fff;
    color: #000;
    text-align: left;
    clear: both;
    font-size: 0.8rem;
  }

  footer a {
    color: #000;
    text-decoration: none;
  }

  footer a:hover {
    color: #808080;
    text-decoration: none;
  }

  .info {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
  }

  .info p {
    text-align: left;
    padding-left: 5px;
  }

  .graph {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    float: right;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0;
  }

  .graph img {
    max-width: 100%;
  }

  .content a {
    text-decoration: none;
    color: #000;
  }

  .content a:hover {
    text-decoration: none;
    color: #808080;
  }




  @media (min-width: 650px){

    div.container {
    	height:180px;
    	width:100%;
    	overflow:hidden;
    	transition: all 1.5s ease;
      display: inline-block;
    }
    div.image {
    	height:180px;
    	width:100%;
    }
    div.image img {
    	width:100%;
    }
    div.text {
    	height:200px;
    	width:100%;
    	background:yellow;
    	transition: all 2s ease;
    	opacity:0;
    }
    div.container:hover div.text {
    	position: relative;
    	top:-100%;
    	opacity:1;
    }
    div.text div.content {
    	background:#fff;
    	height:200px;
    	padding:10px;
    }

    div.text .content p {
    	padding:25px;
    	color:#000;
    }

    #galeria {
      position: relative;
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;

    }

    .proyectos {
      max-width: 49%;
      display: inline-block;
    }

    .fondofoto img {
      max-width: 100%;
      top: 0;
      left: 0;
      right: 0;
      margin-top: 0;
    }

    .info p {
      text-align: left;
      padding-right: 40px;
      padding-left: 10px;
    }

    h1 {
      font-family: 'Raleway', sans-serif;
      font-size: 1rem;
    }

    .infoproyecto {
      margin: 0 auto;
      width: 60%;
    }

    .container2 {
        border-radius: 5px;
        background-color: #fff;
        padding: 20px;
        margin: 0 auto;
        width: 62%;
    }

  }

  @media (min-width: 1080px){

    #galeria {
      position: relative;
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 0;
    }

    div.container {
      margin-top: 40px;
    	height:300px;
    	width:49.8%;
    	overflow:hidden;
    	transition: all 1.5s ease;
      display: inline-block;
    }
    div.image {
    	height:300px;
    	width:100%;
    }
    div.image img {
    	width:100%;
    }
    div.text {
    	height:300px;
    	width:100%;
    	background:yellow;
    	transition: all 2s ease;
    	opacity:0;
    }
    div.container:hover div.text {
    	position: relative;
    	top:-100%;
    	opacity:1;
    }
    div.text div.content {
    	background:#fff;
    	height:300px;
    	padding:10px;
    }

    div.text .content p {
    	height:180px;
    	padding:25px;
    	color:#000;
    }

    .proyectos {
      max-width: 49%;
      display: inline-block;
    }

    .fondofoto img {
      max-width: 100%;
      top: 0;
      left: 0;
      right: 0;
      margin-top: 0;
    }

    .info {
      display: inline-block;
      max-width: 50%;
      vertical-align: top;
    }

    .info p {
      text-align: left;
      padding-right: 40px;
    }

    .graph {
      display: inline-block;
      max-width: 50%;
      vertical-align: top;
      top: 0;
      left: 0;
      right: 0;
      margin-top: 0;
    }

    .graph img {
      max-width: 49.5%;
    }

    .infoproyecto {
      margin: 0 auto;
      width: 50%;
    }

    .container2 {
        border-radius: 5px;
        background-color: #fff;
        padding: 20px;
        margin: 0 auto;
        width: 52%;
    }

  }

  @media (min-width: 1200px){

    h2 {
      font-family: 'Raleway', sans-serif;
    }

    #galeria {
      position: relative;
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 0;
    }

    div.container {
      margin-top: 40px;
    	height:300px;
    	width:49.8%;
    	overflow:hidden;
    	transition: all 1.5s ease;
      display: inline-block;
    }
    div.image {
    	height:300px;
    	width:100%;
    }
    div.image img {
    	width:100%;
    }
    div.text {
    	height:300px;
    	width:100%;
    	background:yellow;
    	transition: all 2s ease;
    	opacity:0;
    }
    div.container:hover div.text {
    	position: relative;
    	top:-100%;
    	opacity:1;
    }
    div.text div.content {
    	background:#fff;
    	height:300px;
    	padding:10px;
    }

    div.text .content p {
    	height:180px;
    	padding:25px;
    	color:#000;
    }

    .proyectos {
      max-width: 33%;
      display: inline-block;
    }

    .fondofoto img {
      max-width: 100%;
      top: 0;
      left: 0;
      right: 0;
      margin-top: 0;
    }

    .info {
      display: inline-block;
      max-width: 50%;
      vertical-align: top;
    }

    .info p {
      text-align: left;
      padding-top: 5px;
      padding-right: 40px;
    }

    .graph {
      display: inline-block;
      max-width: 50%;
      vertical-align: top;
      float: right;
      top: 0;
      left: 0;
      right: 0;
      margin-top: 0;
    }

    .graph img {
      max-width: 49.5%;
    }

    .infoproyecto {
      margin: 0 auto;
      width: 40%;
    }

    .container2 {
        border-radius: 5px;
        background-color: #fff;
        padding: 20px;
        margin: 0 auto;
        width: 42%;
    }

  }

  @media (min-width: 1920px){

    .mail {
      display: inline-block;
      width: 50%;
    }

    .foot{
      display: inline-block;
      width: 50%;
      float: right;
    }

    .infoproyecto {
      margin: 0 auto;
      width: 30%;
    }

    .container2 {
        border-radius: 5px;
        background-color: #fff;
        padding: 20px;
        margin: 0 auto;
        width: 32%;
    }

    h2 {
      font-family: 'Raleway', sans-serif;
      font-size: 1rem;
    }

    #container_galeria {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: stretch;
    }

    #container_galeria figure {
      width: 20%;
      margin: 0px;
      padding: 0px;
      flex: 1 1 200px;
  }

    #galeria {
    position: relative;
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 0;
    }

    div.container {
      margin-top: 40px;
    	height:300px;
    	width:33.15%;
    	overflow:hidden;
    	transition: all 1s ease;
      display: inline-block;
    }
    div.image {
    	height:300px;
    	width:100%;
    }
    div.image img {
    	width:100%;
    }
    div.text {
    	height:296px;
    	width:100%;
    	background:yellow;
    	transition: all 1s ease;
    	opacity:0;
    }
    div.container:hover div.text {
    	position: relative;
    	top:-100%;
    	opacity:1;
    }
    div.text div.content {
    	background:#fff;
    	height:300px;
    	padding:10px;
    }

    div.text .content p {
    	height:200px;
    	padding:25px;
    	color:#000;
    }

    .proyectos {
      max-width: 33.15%;
      display: inline-block;
    }

    .fondofoto img {
      max-width: 100%;
      top: 0;
      left: 0;
      right: 0;
      margin-top: 0;
    }

    .info {
      display: inline-block;
      max-width: 50%;
      vertical-align: top;
    }

    .info p {
      text-align: left;
      padding-right: 40px;
    }

    .graph {
      display: inline-block;
      max-width: 50%;
      vertical-align: top;
      top: 0;
      left: 0;
      right: 0;
      margin-top: 0;
    }

    .graph img {
      max-width: 49.5%;
    }

  }

  .slicknav_menutxt {
    text-shadow: none !important;
  }

.slicknav_nav a {
  color: #000 !important;
}

.slicknav_btn {
  background-color: #ffffff !important;
}
  .slicknav_menu {
  	display: none;
    background: #ffffff !important;
  }

  @media screen and (max-width: 40em) {
  	/* #menu is the original menu */
  	#menu {
  		display:none;
  	}

  	.slicknav_menu {
  		display:block;
  	}
  }

  @media screen and (max-width: 40em) {
    video {
      display: none;
    }
  }

  .slicknav_menu {
    display: none;
  }

  @media screen and (max-width: 40em) {
    /* #menu is the original menu */
    #menuintro {
      display:none;
    }

    .slicknav_menu {
      display:block;
    }
  }

  <!--- Codigo para la política de cookies-->

<style type="text/css">

/* CSS para la animación y localización de los DIV de cookies */

@keyframes desaparecer
{
0%		{bottom: 0px;}
80%		{bottom: 0px;}
100%		{bottom: -50px;}
}

@-webkit-keyframes desaparecer /* Safari and Chrome */
{
0%		{bottom: 0px;}
80%		{bottom: 0px;}
100%		{bottom: -50px;}
}

@keyframes aparecer
{
0%		{bottom: -38px;}
10%		{bottom: 0px;}
90%		{bottom: 0px;}
100%		{bottom: -38px;}
}

@-webkit-keyframes aparecer /* Safari and Chrome */
{
0%		{bottom: -38px;}
10%		{bottom: 0px;}
90%		{bottom: 0px;}
100%		{bottom: -38px;}
}
#cookiesms1:target {
    display: none;
}
.cookiesms{
	width:100%;
	height:43px;
	margin:0 auto;
	padding-left:1%;
        padding-top:5px;
        font-size:20px;
	clear:both;
        font-weight: strong;
color: #333;
bottom:-50px;
position:fixed;
left: 0px;
background-color: #FFF;
opacity:0.7;
filter:alpha(opacity=70); /* For IE8 and earlier */
transition: bottom 1s;
-webkit-transition:bottom 1s; /* Safari */
-webkit-box-shadow: 3px -3px 1px rgba(50, 50, 50, 0.56);
-moz-box-shadow:    3px -3px 1px rgba(50, 50, 50, 0.56);
box-shadow:         3px -3px 1px rgba(50, 50, 50, 0.56);
z-index:999999999;
}

.cookiesms:hover{
bottom:0px;
}
.cookies2{
background-color: #FFF;
display:inline;
opacity:0.95;
filter:alpha(opacity=95);
position:absolute;
left:1%;
top:-30px;
font-size:15px;
height:30px;
padding-left:25px;
padding-right:25px;
-webkit-border-top-right-radius: 15px;
-webkit-border-top-left-radius: 15px;
-moz-border-radius-topright: 15px;
-moz-border-radius-topleft: 15px;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
-webkit-box-shadow: 3px -3px 1px rgba(50, 50, 50, 0.56);
-moz-box-shadow:    3px -3px 1px rgba(50, 50, 50, 0.56);
box-shadow:         3px -3px 1px rgba(50, 50, 50, 0.56);
}

/* Fin del CSS para cookies */

</style>
