/*---------------------------------------------------------------------------------------
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: #FFFFFF;
}

body {
	max-width: 1200px;
	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, #nav-footer, #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;
}

blockquote { 
	padding: 20px;
	padding-bottom: 0;
}

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: #00903B;	
	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?53477164');
  src: url('../font/fontello.eot?53477164#iefix') format('embedded-opentype'),
       url('../font/fontello.woff?53477164') format('woff'),
       url('../font/fontello.ttf?53477164') format('truetype'),
       url('../font/fontello.svg?53477164#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: 1px solid #8AAEBC;
  border-radius: 50%;
  padding: 5px;
}

.icon-menu:before { content: '\e800'; }
.icon-youtube:before { content: '\e801'; }
.icon-twitter:before { content: '\e802'; }
.icon-gplus:before { content: '\e803'; }
.icon-facebook:before { content: '\e804'; }
.icon-mail:before { content: '\e805'; }
.icon-ok:before { content: '\e806'; }
.icon-phone:before { content: '\e807'; }
.icon-right-open:before { content: '\e808'; }
.icon-file-pdf:before { content: '\e809'; }
.icon-file-word:before { content: '\e80a'; }
.icon-location:before { content: '\e80b'; }
.icon-up-open:before { content: '\e80c'; }

/* 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;
	background-color: #BD1D2C;
	color: #FFFFFF;
	text-align:center;
	text-decoration:none;
	padding:5px;
	margin-bottom:3px;
	border-radius: 5px;
}

#nav a:hover, #nav a:focus, #nav a.selected {
	background-color:#00903B;
}

#nav {
	display: none;
}

/*---------------------------------------------------------------------------------------
end NAV
---------------------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------------------
MAIN
---------------------------------------------------------------------------------------*/

#main {
	padding-top: 20px;
	text-align: center;
}

.article {
	margin-bottom:20px;
	border: 1px solid #00903B;
	border-radius: 10px;
	overflow: hidden;
}

.article p, .article li {
	text-align: left;
}

h1 {
	margin-bottom: 20px;
	background-color: #00903B;
	color:#FFFFFF;
	padding:10px;
	text-align:center;
	border-radius:10px;
}

.article h1 {
	background-color: #00903B;
	color:#FFFFFF;
	padding:10px;
	padding-top: 20px;
	text-align:center;
	border-radius:10px 10px 0 0;
	
	margin-top: -21px;
	margin-right: -21px;
	margin-bottom: 20px;
	margin-left: -21px;
}

.article h2 {
	clear: both;
	color: #00903B;
	padding-bottom: 0;
	margin-right: 0;
	margin-bottom: 20px;
	margin-left: 0;
	border-bottom: 3px dotted #00903B;
}

.oneColumn {
	padding: 10px;
	padding-bottom: 0;
	margin: 0;
	margin-bottom: 10px;
	border:1px solid #999999;
	border-radius: 10px;
	background-color:#BDD1D9;
}

.oneColumn h3 {
	color: #FF0000;
	padding-bottom: 10px;
	text-align: center;
}

.oneColumn p {
	padding-bottom: 10px;
}

#pageContact #main .article a {
	text-decoration: none;
	color: #000000;
}

#pageContact #main .article [class^="icon-"]:before {
	font-size: 1em;
}

/*---------------------------------------------------------------------------------------
end MAIN
---------------------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------------------
SECONDARY
---------------------------------------------------------------------------------------*/

#pageIndex #secondary {
	margin-top: 56px;
}

#secondary {
	margin-top: 17px;
}

.aside {
	margin-bottom: 20px;
	border:1px solid #BD1D2C;
	border-radius: 10px;
	overflow: hidden;
}

.aside h3 {
	background-color: #BD1D2C;
	color:#FFFFFF;
	padding:10px;
	padding-top: 20px;
	text-align:center;
	border-radius:10px 10px 0 0;
	
	margin-top: -21px;
	margin-right: -21px;
	margin-bottom: 20px;
	margin-left: -21px;
}

.aside p {
	font-size: 0.85em;
	text-align: center;
}

/*---------------------------------------------------------------------------------------
end SECONDARY
---------------------------------------------------------------------------------------*/
#nav-footer, .up, #footer {
	background-color:#00903B;
}
/*---------------------------------------------------------------------------------------
NAV-FOOTER
---------------------------------------------------------------------------------------*/

#nav-footer ul {
	list-style-type: none;
	margin-left: 0;
	padding-left: 0;
	padding-bottom: 0;
	text-align: center;
}

#nav-footer a {
	display:inline-block;
	width: 100%;
	color: #FFFFFF;
	text-align:center;
	text-decoration:none;
	font-weight: bold;
	padding:5px;
	margin-bottom:10px;
	border: 1px solid #FFFFFF;
	border-radius: 5px;
}

#nav-footer a:hover, #nav-footer a:focus, #nav-footer a.selected {
	background-color:#FF0000;
}

/*---------------------------------------------------------------------------------------
end NAV-FOOTER
---------------------------------------------------------------------------------------*/

p.up {
	clear: both;
	text-align: center;
	padding-top: 20px;
}

p.up a {
	text-decoration: none;
}

/*---------------------------------------------------------------------------------------
FOOTER
---------------------------------------------------------------------------------------*/

#footer {
	clear:both;
	color:#FFFFFF;
	text-align:center;	
	letter-spacing:2px;
	padding-bottom: 200px;
}

#footer h3 {
	padding-bottom: 10px;
}

#footer p{
	font-size:0.8em;
	padding-bottom: 10px;
}

#footer a{
	color:#FFFFFF;
	text-decoration: none;
}

/*---------------------------------------------------------------------------------------
end FOOTER
---------------------------------------------------------------------------------------*/



/*---------------------------------------------------------------------------------------
ELEMENTOS INDIVIDUALES
---------------------------------------------------------------------------------------*/

a {
	color: #00903B;
}

b{
	color: #00903B;
}

.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;
}

.button_special{
	width:6em;
	background-color: #CCCCCC;
	color: #333333;
	text-align:center;
	text-decoration: none;
	border:1px solid #999999;
	border-radius:10px;
	padding: 5px;
	margin: 5px;
	display:inline-block;
}

.article img, img.floatCenter, .aside img {
	max-width: 100%;
	display: block;
	margin: 0 auto 10px auto;
	border-radius: 10px;
}

.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 */

.proteccion-datos {
  font-size: 0.8em;
  padding: 0 20px 20px 20px;
}

/* form */

form {
	padding: 10px;
	padding-bottom: 0;
	margin-bottom: 20px;
}

input, textarea {
	width: 100%;
	border-radius: 5px;
}


input[type=submit] {
	width: auto;
	padding: 5px;
	font-weight: bold;
}

input[type=radio] {
	width: auto;
}

fieldset {
	border: 1px solid #00903B;
	border-radius: 5px;
	padding: 10px;
	margin-bottom: 10px;
}

legend {
	border: 1px solid #00903B;
	border-radius: 10px;
	padding: 5px;
	color: #00903B;
	font-weight: bold;
}

.granate {display: none;}

/* end form */

/* form paypal */

.paypal form {
	padding: 10px;
	margin-bottom: 20px;
	border: none;
}

.paypal input, .paypal textarea {
	width: auto;
}

.paypal input[type=text] {
	width: 100%;
}

/* end form paypal */

.div-legend {
	border: 1px solid #00903B;
	border-radius: 10px;
	padding: 10px;
	margin-bottom: 20px;
}

.div-legend-text {
	border: 1px solid #00903B;
	border-radius: 10px;
	padding: 5px;
	color: #00903B;
	background-color: white;
	font-weight: bold;
	width: 25%;
	margin-top: -25px;
	margin-bottom: 20px;
}

/*---------------------------------------------------------------------------------------
end ELEMENTOS INDIVIDUALES
---------------------------------------------------------------------------------------*/


@media screen and (min-width: 600px) {
	.article img {
		max-width: 50%;
		float: right;
		margin: 0 0 10px 10px;
	}
	
	img.floatCenter, .aside img {
		max-width: 100%;
		float: none;
		display: block;
		margin: 0 auto 10px auto;
	}
	
	#secondary, .oneColumn {
		width: 50%;
		margin-right: auto;
		margin-left: auto;
	}
	
	#nav-footer a {
		width: 50%;
	}
}

@media screen and (min-width: 840px) {
	#header {
		background-color: #00903B;
		background-image: url(../images/cidevida-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:70%;
	}
	
	#secondary {
		float: right;
		width: 30%;
	}
	
	/* 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
	
	#pageOneColumn #main {
		float: none;
		width: auto;
	}
	
	#pageOneColumn #secondary {
		float: none;
		width: auto;
	}
	*/
	
	
	.article h2 {
		text-align: left;
	}
	
	.oneColumn {
		max-width:24%;
		min-height: 550px;
		display:inline-block;
		vertical-align:top;
	}
	
	#nav-footer{
		display: none;
	}
}