/*---------------------------------------------------------------------------------------
RESET BROWSER STYLES
---------------------------------------------------------------------------------------*/
* {
	-moz-box-sizing: border-box;
	box-sizing: border-box;	
}

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, 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, article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
}

html {
	background-color: #E1E6E9;
	height: 101%;
}

body {
	max-width: 1200px; 
	/*
	deshabilitar esta regla si quieres que header y footer ocupen toda la página; 
	además, hay que crear <div id="wrapper-header"> rodeando a header y <div id="wrapper-content"> rodeando main y secondary
	a wrapper-header le aplicamos background-color: #BDD1D9; y a wrapper-content (y a header en media query 840) le aplicamos max-width: 1200px; y margin: 0px auto;
	 */
	margin: 0 auto;
	background-color: #FFFFFF;
	color: #000000;
	line-height: 1.2;
	font-family: Arial, sans-serif;
}

#header, #nav, #main, .article-main, .article, #secondary, .aside, #footer {
	padding: 10px;
	padding-bottom: 0;
}

h1, h2, h3, h4, p, ol, ul, iframe {
	padding-bottom: 20px; /* relleno de todos los elementos individuales block-level, de 20px en bottom */
}

/*
h1, h2, h3, h4 {
	clear: both;
}
*/

h1 {
	font-size: 1.5em;
}

h2 {
	font-size: 1.2em;
}

h3 {
	font-size: 1.1em;
}

p, ul, ol {
	font-size: 1.08em;
}

blockquote { 
	padding: 10px 20px;
}

ol { 
	padding-left: 1.4em;
	list-style: decimal;
}
ul {
	padding-left: 1.4em;
	list-style: square;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}
blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
/*---------------------------------------------------------------------------------------
end RESET BROWSER STYLES
---------------------------------------------------------------------------------------*/


/*---------------------------------------------------------------------------------------
HEADER
---------------------------------------------------------------------------------------*/

#header {
	position: relative;
	background-color: #E1E6E9;	
	overflow: hidden;
}

.logo {
	float: left;
	padding-bottom: 0;
}

.logo img {
	height: 45px;
}

.logoContact {	
	float: right;
	
	list-style-type: none;
	margin-left: 0;
	padding-left: 0; 
	
	padding-bottom: 5px;
	text-align: center;
}

.logoContact li {
	display: inline;
}

.logoContact li a {
	text-decoration: none;
}

@font-face {
  font-family: 'fontello';
  src: url('../font/fontello.eot?81911366');
  src: url('../font/fontello.eot?81911366#iefix') format('embedded-opentype'),
       url('../font/fontello.woff2?81911366') format('woff2'),
       url('../font/fontello.woff?81911366') format('woff'),
       url('../font/fontello.ttf?81911366') format('truetype'),
       url('../font/fontello.svg?81911366#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}
 
 [class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "fontello";
  
  display: inline-block;
  width: 1em;
  text-align: center;
  
  line-height: 1em;
  
  background-color: #CCCCCC;
  background-color:rgba(153,153,153,0.5);
  color: #FFFFFF;
  font-size: 2em;
  border: 2px solid #CCCCCC;
  border-radius: 50%;
  padding: 5px;
}

.icon-acrobat:before { content: '\e800'; }
.icon-mail:before { content: '\e801'; }
.icon-menu:before { content: '\e802'; }
.icon-down-open:before { content: '\e803'; }
.icon-up-open:before { content: '\e804'; }
.icon-location:before { content: '\e805'; }
.icon-phone:before { content: '\e806'; }
.icon-mobile:before { content: '\e807'; }
.icon-twitter:before { content: '\f099'; }
.icon-facebook:before { content: '\f09a'; }
.icon-youtube:before { content: '\f167'; }
.icon-instagram:before { content: '\f16d'; }
.icon-whatsapp:before { content: '\f232'; }
.icon-linkedin:before { content: '\f318'; }

/* Generated by fontello.com */

.logoContactText {
	background-color: #CCCCCC;
	background-color:rgba(153,153,153,0.5);
	color: #FFFFFF;
	text-shadow:1px 1px 1px rgba(0,0,0,0.5);
	font-weight: bold;
	vertical-align: super;
	border: 1px solid #8AAEBC;
	border-radius: 10px;
	padding: 11px;
}

li.logoContactDesktop, li.logoContactText {
	display: none;
}
/*---------------------------------------------------------------------------------------
end HEADER
---------------------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------------------
NAV
---------------------------------------------------------------------------------------*/

#nav {
	clear: both;
	padding-top: 0;
}

ul#nav {
	list-style-type: none;
	margin-left: 0;
	padding-left: 0; 
	
	padding-bottom: 7px;
	text-align: right;
}

#nav li {
	display: inline;
}

#nav a {
	display:inline-block;
	width: auto;
	background-color: #8AAEBC;
	color: #FFFFFF;
	text-align:center;
	text-decoration:none;
	font-weight: bold;
	padding:5px;
	margin-bottom:3px;
	border-radius: 5px;
}

#nav a:hover, #nav a:focus, #nav a.selected {
	background-color: #CC0000;
}

/* si hay submenús, aplicar estas reglas en lugar de las indicadas arriba, y sacar el menú del header
ul#nav {
	clear: both;
	display: block;
	height: 30px;
	text-align: right;
	padding-right: 20px;
	padding-top: 0;
	margin-top: 0;
}

ul#nav li {
    display: inline-block;
	position: relative;
	list-style: none;
	width: 8em;
	text-align: center;
}

ul#nav li a {
	display: block;
	background-color: #8AAEBC;
	color: #FFFFFF;
	text-decoration: none;
	font-weight: bold;
	padding: 5px;
	border-bottom: 1px solid #ccc;
}

ul#nav li ul {
	position: absolute;
	left: -22px;
	top: 28px;
	display: none;
}
ul#nav li:hover ul {
    display: block;
}

ul#nav ul li a {
	font-weight: normal;
}

ul#nav li a:hover, ul#nav li a:focus, ul#nav li a.selected {
	background-color:#FF0000;
	-webkit-transition: all .2s;
	-moz-transition: all .2s;
	-o-transition: all .2s;
	transition: all .2s;
}
*/

#nav {
	display: none;
}

/*---------------------------------------------------------------------------------------
end NAV
---------------------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------------------
MAIN
---------------------------------------------------------------------------------------*/

#main {
	padding-top: 20px;
	text-align: center;
}

.article {
	background-color: #FFFFFF;
	margin-bottom:20px;
	border-radius: 10px;
	overflow: hidden;
}

.article p, .article li {
	text-align: left;
}

.article li {
	padding-bottom: 10px;
}

.article h1, .article h2.external {
	background-color: #E1E6E9;
	color:#CC0000;
	padding:10px;
	text-align:center;
	margin-bottom: 20px;
}

.article h2 {
	background-color: #FFFFFF;
	color: #CC0000;
	padding-bottom: 0;
	margin-right: 0;
	margin-bottom: 20px;
	margin-left: 0;
	border-bottom: 3px dotted #CC0000;
}

.table-container {
    width: 100%;
    overflow-y: auto;
    _overflow: auto;
    margin: 0 0 1em;
}

table {
	margin:20px auto;
	border:1px solid black;
	/* font-size: 0.7em; */
}

tr:nth-child(odd) {background-color: #CCCCCC;}
tr:nth-child(even) {background-color: #FFFFFF;}

td,th{
	padding:5px;
	border:1px solid black;
}

th {
	background-color: #333333;
	color: #FFFFFF;
}

/*---------------------------------------------------------------------------------------
end MAIN
---------------------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------------------
SECONDARY
---------------------------------------------------------------------------------------*/

#secondary {
	margin-top: 10px;
}

.aside {
	background-color: #FFFFFF;
	margin-bottom: 20px;
	border-radius: 10px;
	overflow: hidden;
}

.aside h2, .aside h3 {
	background-color: #BDD1D9;
	color:#FFFFFF;
	padding:10px;
	text-align:center;
	margin-bottom: 10px;
}

.aside p {
	text-align: center;
}

/*---------------------------------------------------------------------------------------
end SECONDARY
---------------------------------------------------------------------------------------*/
/* si queremos que header y footer ocupen toda la página pero que el contenido de main y secondary tengan un ancho máximo de 1200px
#wrapper-content {
    max-width: 1200px;
	margin: 0px auto;
}
*/

#nav-footer, .up, #footer {
	background-color: #E1E6E9;
}
/*---------------------------------------------------------------------------------------
NAV-FOOTER
---------------------------------------------------------------------------------------*/
#nav-footer ul {
	clear: both;
	list-style-type: none;
	margin: 0;
	margin-top: 400px;
	padding: 0;
	text-align: center;
}

#nav-footer a {
	display:inline-block;
	background-color: #666666;
	color: #FFFFFF;
	text-decoration:none;
	text-align: center; /* si hay submenús, aquí poner left */
	text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.8);
	font-weight: bold;
	width: 100%;
	padding:15px;
	border: 1px solid #000000;
}

/* si hay submenús, añadir estas tres reglas 

#nav-footer a {
	text-align: left;
}

#nav-footer li ul {
	margin: 0;
	padding: 0;
	
}

#nav-footer li ul a {
	text-align: right;
	color: #CCCCCC;
}

*/

#nav-footer a:hover, #nav-footer a:focus, #nav-footer a.selected {
	background-color: #999999;
	border-right: 1px solid #FFFFFF;
	border-bottom: 1px solid #FFFFFF;
	color:#666666;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}
/*---------------------------------------------------------------------------------------
end NAV-FOOTER
---------------------------------------------------------------------------------------*/

p.up {
	clear: both;
	text-align: center;
	padding-top: 20px;
}

p.up a {
	text-decoration: none;
}

/*---------------------------------------------------------------------------------------
FOOTER
---------------------------------------------------------------------------------------*/

#footer {
	clear:both;
	color:#626A72;
	text-align:center;	
	letter-spacing:2px;
	padding-bottom: 200px;
}

#footer h3 {
	padding-bottom: 10px;
}

#footer p{
	padding-bottom: 10px;
}

#footer a{
	color:#626A72;
	text-decoration: none;
}

/*---------------------------------------------------------------------------------------
end FOOTER
---------------------------------------------------------------------------------------*/



/*---------------------------------------------------------------------------------------
ELEMENTOS INDIVIDUALES
---------------------------------------------------------------------------------------*/

a {
	color: #CC0000;
}

b{
	color: #CC0000;
}

.button{
	clear:both;
	display:block;
	width:12em;
	background-color: #CCCCCC;
	color: #333333;
	text-align:center;
	text-decoration: none;
	border-top:1px solid #999999;
	border-right:1px solid #666666;
	border-bottom:1px solid #666666;
	border-left:1px solid #999999;
	border-radius:10px;
	padding:5px;
	margin-right:auto;
	margin-left:auto;
}

.article img, .aside img {
	max-width: 100%;
	display: block;
	margin: 0 auto 10px auto;
	padding: 5px;
}

p.text-center {
	text-align: center;
}

p.cita {
	font-size: 0.9em;
	font-style: italic;
	text-align: right;
}

.clearBoth {
	clear: both;
}

/* IFRAME CON VIDEO */
/* original de Pedro Gutierrez en http://www.genbetadev.com/desarrollo-web/responsive-design-adaptar-imagenes-y-videos */
/* Podemos eliminar este estilo si no queremos que se adapte al ancho maximo del video */
.delimitador {
	max-width: 640px; /* escribir el ancho que has elegido del video a insertar  */
	margin: auto;	/* Centramos el video */
}
/* El contenedor con el padding-top crea el tamao del vdeo */
.contenedor {
	height:0;
	width: 100%;
	padding-top: 75%; /* o 56.25% */
	position: relative;
}
/* El iframe se adapta al tamao del contenedor */
.contenedor iframe {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
}
/* end IFRAME CON VIDEO */

/* inline-block */

.inline-block {
	padding: 10px;
	padding-bottom: 0;
	margin: 0;
	margin-bottom: 10px;
	border:1px solid #999999;
	border-radius: 10px;
	background-color:#BDD1D9;
}

.inline-block h3 {
	color: #FF0000;
	padding-bottom: 10px;
	text-align: center;
}

.inline-block p {
	padding-bottom: 10px;
}

/* end inline-block */

/* form */

form {
	padding: 10px;
	margin-bottom: 20px;
}

fieldset {
	border: 1px solid #BDD1D9;
	border-radius: 5px;
	padding: 10px;
	margin-bottom: 10px;
}

legend {
	border: 1px solid #BDD1D9;
	border-radius: 10px;
	padding: 5px;
	background-color: #BDD1D9;
	color: #FFFFFF;
	font-weight: bold;
}

input, textarea {
	width: 100%;
}

input[type=checkbox], input[type=radio] {
	width: auto;
}

input[type=submit] {
	width: auto;
	background-color: #BDD1D9;
	color: #FFFFFF;
	font-weight: bold;
	border-radius: 5px;
	padding: 5px;
	margin-bottom: 10px;
}

.granate {display: none;}

/* end form */

/*---------------------------------------------------------------------------------------
end ELEMENTOS INDIVIDUALES
---------------------------------------------------------------------------------------*/


@media screen and (min-width: 600px) {
	.article img.floatRight {
		max-width: 50%;
		float: right;
		margin: 0 0 10px 10px;
	}
	
	.article img.floatLeft {
		max-width: 50%;
		float: left;
		margin: 0 10px 10px 0;
	}
	
	#secondary, .inline-block {
		width: 50%;
		margin-right: auto;
		margin-left: auto;
	}
	
	#nav-footer a {
		width: 50%;
	}
}

@media screen and (min-width: 840px) {
	/* si queremos que header y footer ocupen toda la página pero que header tenga un ancho máximo de 1200px
	#wrapper-header {
	    background-color: #BDD1D9;	
	}
	y a header le añadimos max-width: 1200px y margin: 0 auto;*/
	#header {
		background-image: url(../images/carlos-martinez-un-agregado-del-opus-dei-background.jpg);
		background-repeat: no-repeat;
		background-position: center center;
		background-size: cover;
	}
	
	.logo {
		float: none;
	}
	
	.logo img{
		max-width: 20%;
		height: auto;
	}
	
	.logoContact {
		position: absolute;
		top: 10px;
		right: 20px;
	}
	
	li.logoContactMobile {
		display: none;
	}
	
	li.logoContactDesktop, li.logoContactText {
		display: inline;
	}
	
	#nav {
		display: block;
	}
		
	#main {
		float:left;
		width:50%;
	}
	
	#secondary {
		float: right;
		width: 50%;
	}
	/*
	si todas las paginas van a ser de 1 columna, anular #main y #secondary; 
	si algunas van a ser de 2 y otras de 1 columna, agregar las siguientes reglas marcando en las que tengan 1 columna body id="pageOneColumn"
	
	#pageOneColumn #main {
		float: none;
		width: auto;
	}
	
	#pageOneColumn #secondary {
		float: none;
		width: auto;
	}
	*/
	
	.article h2 {
		text-align: left;
	}
		
	#nav-footer{
		display: none;
	}
}

@media screen and (min-width: 900px) {
	.inline-block {
		max-width:30%;
		min-height: 550px;
		display:inline-block;
		vertical-align:top;
	}
}