/*
Reglas de oro para CSS
1)El orden de trabajo o creación (de forma alfabética):
	- Etiquetas html (header, nav, section, h1, article...)
	- Identificadores. Son elementos únicos (id:"contenedor", id="principal"...)
	- Clases. Elementos que se pueden repetir (class)

2)Los atributos también se ordenan alfabéticamente (Ejemplo: background, height, margin, width)

3)En el -body- SIEMPRE definir un tamaño de fuente (Ejemplo: 15px)

Unidades de medida Absolutas [px-pt]
Unidades de medida Relativas [%-em] (es la distancia que tiene de ancho la letra "M" mayúscula, ya que esta es la letra más ancha del abecedario)

100% = 1em = 16px = 12pt
200% = 2em = 32px = 24pt

http://meyerweb.com/css/colors

¿Qué es cada valor? text-shadow:5px (mov horizontal) 5px (mov vertical) 10px (efecto blur) rgba(0,0,0,.4 (este último valor "a" es la transparecnia el ".4"));
*/

*{
	margin: 0;
	padding: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

/**********MEDIA QUERIES**********/

/*screen lo tengo puesto en el <head> de index.html para que sepa cuál tiene que coger*/
/*portrait es el dispositivo en vertical*/
/*landscape es el dispositivo en horizontal*/


/* ------------------------------------------------------------ *\
|* ------------------------------------------------------------ *|
|* CSS Reset
|* ------------------------------------------------------------ *|
\* ------------------------------------------------------------ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

h1, h2, h3, h4, h5, h6 {
  clear: both;
  font-weight: normal;
}

ol, ul {
  list-style: none;
}

blockquote {
  quotes: none;
}

blockquote:before, blockquote:after {
  content: '';
  content: none;
}

del {
  text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

a img {
  border: none;
}

/***********************************************/

	body{
		background: #fff;
		margin:0;
		padding: 0;
	}

	#wrapper{
		margin: 0 auto;
		text-align: center;
		width: 100%;
	}

	section{
		margin: 0 auto;
	}

	header{
		margin: 0 auto;
		width: 100%;
		height: 272px;
		background-color: #5F4B8B;
	}

	.contenido-header{
		padding: 2% 16% 0 16%;
	}

	.contenido-header img{
		border: 0;
		width: 57px;
		height: 70px;
	}

	.contenedor-descripcion{
		margin: 0 auto;
		width: 99%;
	}

	.descripcion{
		text-align: left;
		font-family: 'Montserrat', sans-serif;
		font-size: 15pt;
		color: white;
		width: 61%;
		display: inline-block;
		float: left;
	}

	header img{
		max-width: 100%;
		height: auto;
		border:1px solid blue;
	}

	.titulo{
		padding: 0 0 40px 0;
		text-align: center;
	}

	h1{
		color: white;
		font-family: 'Cardo', serif;
		font-size: 36px;
	}

	h2{
		color: #C0B5D7;
		font-family: 'Montserrat', sans-serif;
		font-size: 22px;
	}

	h2 a{
	 	color: #fff;
	 	text-decoration: none;
	 }

	 h2 a:hover{
	 	color: #C0B5D7;
	 	text-decoration: none;
	 }

	.correo{
		font-family: 'Montserrat', sans-serif;
		font-size: 20px;
		width: 100%;
	}

	.correo a:link{
		color: white;
		text-decoration: none;
	}

	.correo a:hover{
		color: #C0B5D7;
	}

	.contenedor{
	    width: 100%;
	    margin: 0 auto;
  	}


/* ============================================================
  NAVIGATION
============================================================ */
	nav ul {
	  list-style-type: none;
	  padding: 0;
	  text-align: center;
	  font-family: 'Montserrat', sans-serif;
	  margin: 0 0 2% 0;
	}
	nav ul li {
	  display: inline-block;
	  margin-bottom: 4px;
	}
	nav a {
	  display: block;
	  padding: 5px 20px;
	  color: #3C2F58;
	  text-decoration: none;
	  font-size: 20px;
	}
	nav a:hover {
	  color: #fff;
	  background-color: #C0B5D7;
	}
	nav a.active {
	  color: #fff;
	  background-color: #3C2F58;
	}

	nav a.Youtuber {
	  color: #fff;
	  background-color: #F73447;
	}

	.videoScale {
		position: relative;
		padding-bottom: 56.25%; /* 16:9 */
		padding-top: 25px;
		height: 0;
	}
	.videoScale iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

/* ============================================================
  FOOTER
============================================================ */

	 h6{
	 	margin: 10px 0 0 0;
	 	font-family: 'Montserrat', sans-serif;
	 	font-size: 18px;
	 	color: #C0B5D7;
	 }

	 .footer-izq{
	 	display: inline-block;
		float: left;
		text-align: left;
	 }

	 .footer-der{
	 	display: inline-block;
	 	float: right;
		text-align: right;
	 }

	.correo2 a:link{
		text-decoration: none;
	}

	.correo2 a:hover{
		color: #fff;
	}

	 footer{
	 	font-family: 'Montserrat', sans-serif;
		padding: 7px 50px 210px 50px;
    	margin: 40% 0 0 0;
		background-color: #5F4B8B;
	 	clear: both;
	 }

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

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

	 .footer-interior{
	 	font-family: 'Montserrat', sans-serif;
		padding: 7px 50px 210px 50px;
    	margin: 3% 0 0 0;
		background-color: #5F4B8B;
	 	clear: both;
	 }

	 .footer-interior a{
	 	color: #fff;
	 	text-decoration: none;
	 }

	 .footer-interior a:hover{
	 	color: #C0B5D7;
	 	text-decoration: none;
	 }

	 .flechas{
		display: inline-block;
		width: 150px;
		height: 75px;
	 }

	 .flechas a{
		text-decoration: none;
		color: #3C2F58;
		font-size: 62px;
		font-family: 'Montserrat', sans-serif;
		margin: 0 5% 0 15%;
	 }
	 .flechas a:hover {
	  color: #fff;
	  background-color: #5F4B8B;
	 }
/* ============================================================
  GLOBAL EFFECT
============================================================ */
	.effects {
	  padding-left: 40px;
	  margin: 0 0 40% 0;
	}

	.effects .img {
	  position: relative;
	  float: left;
	  margin-bottom: 5px;
	  width: 24%;
	  overflow: hidden;
	}

	.effects .youtube {
	  position: relative;
	  float: left;
	  margin-bottom: 5px;
	  width: 33%;
	  overflow: hidden;
	}

	.effects .img:nth-child(n) {
	  margin-right: 5px;
	}
	.effects .img:first-child {
	  /*margin-left: -15px;*/
	}
	.effects .img:last-child {
	  margin-right: 0;
	}
	.effects .img img {
	  display: block;
	  margin: 0;
	  padding: 0;
	  max-width: 100%;
	  height: auto;
	}

	.overlay {
	  display: block;
	  position: absolute;
	}

	.expand {
      text-decoration: none;
	  display: block;
	  position: absolute;
	  z-index: 100;
	  width: 90%;
	  height: 60%;
	  text-align: center;
	  font-family: 'Montserrat', sans-serif;
	  color: #fff;
	  line-height: 50px;
	  font-weight: 700;
	  font-size: 24px;
	}

/* ============================================================
  EFFECT 6 - INTERIOR
============================================================ */

	.effects-galery img{
	  max-width: 100%;
	  height: auto;
	}

	.effects .img-galery {
	  position: relative;
	  width: 100%;
	  overflow: hidden;
	}

	.effects .img-galery:last-child {
	  margin: 0 0 3% 0;
	}

/* ============================================================
  EFFECT 6 - ICON BOUNCE IN
============================================================ */
	#effect-6 .overlay {
	  top: 0;
	  bottom: 0;
	  left: 0;
	  right: 0;
	  opacity: 0;
	}

	#effect-6 .overlay .expand {
	  left: 0;
	  right: 0;
	  top: 0;
	  margin: 0 auto;
	  opacity: 0;
	  -webkit-transition: all 0.5s;
	  -moz-transition: all 0.5s;
	  -o-transition: all 0.5s;
	  transition: all 0.5s;
	}

	#effect-6 .img.hover .overlay {
	  opacity: 1;
	  background: rgba(95, 75, 139, 0.9);
	}

	#effect-6 .img.hover .overlay .expand {
	  top: 50%;
	  margin-top: -30px;
	  opacity: 1;
	}

/*********************************************************************************************/
/*********************************************************************************************/
/*********************************************************************************************/
/*********************************************************************************************/

@media only screen and (max-width: 1100px) {
  .effects {
    padding-left: 5px;
  }
  .effects .img {
    width: 50%;
  }
  .effects .img:nth-child(n) {
    margin-right: 5px;
  }
  .effects .img:first-child {
    margin-left: 0;
  }
  .effects .img:nth-child(2n-1) {
    margin-left: -5px;
  }
  .effects .img:nth-child(2n) {
    margin-right: 0;
  }
  .effects .img:last-child {
    margin-right: 0;
  }

#effect-6 .img .visited .overlay .expand {
	  z-index: -20;
	  background: rgba(0, 0, 0, 0.9);
	}
}



@media all and (max-width: 600px) {
  .container {
    width: 100%;
  }
  #info-bar a {
    display: block;
  }
  .expand {
	  font-size: 20px;
	}
  header{
		height: 255px;
	}
  .contenido-header{
		padding: 3% 5% 0 5%;
	}
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 16px;
  }
/* ============================================================
  FOOTER
============================================================ */
	 h6{
	 	font-size: 15px;
	}
	 footer{
		padding: 7px 20px 235px 20px;
    	margin: 3% 0 0 0;
    }
}



@media only screen and (max-width: 320px) {
  .effects .img {
    width: 100%;
  }
  .effects .img:nth-child(n) {
    margin-right: 0;
  }
  .effects .img:first-child {
    margin-left: 0;
  }
  .effects .img:nth-child(2n-1) {
    margin-left: 0;
  }
  .effects .img:nth-child(2n) {
    margin-right: 0;
  }
  .effects .img:last-child {
    margin-right: 0;
  }
  .effects .img img {
    margin: 0 auto;
  }

  .expand {
	  font-size: 15px;
	}

  /* ============================================================
============================================================ */
	header{
		height: 210px;
	}

	.contenido-header{
		padding: 4% 0 0 0;
	}

	h1{
		font-size: 19px;
	}

	h2{
		font-size: 15px;
	}

	.correo{
		font-size: 16px;
	}

	.titulo{
		padding: 0 0 35px;
	}

  /* ============================================================
  NAV
============================================================ */
	nav ul{
		margin: 0 0 20px 0;
	}
  	nav ul li a {
	  font-size: 18px;
	}


/* ============================================================
  FOOTER
============================================================ */

	 h6{
	 	font-size: 14px;
	}
	 footer{
		padding: 1px 5px 180px 5px;
    	margin: 40% 0 0 0;
    }

    .footer-der{
	 	display: none;
	 }

    .footer-interior{
		padding: 1px 5px 170px 5px;
    	margin: 3% 0 0 0;
    }
}