﻿// Bootstrap core variables and mixins
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
@import "mixins.less";
@import "utilities.less";


/******************************************************************************
	Variables
******************************************************************************/
@customGray: #595959;
@customMediumGray: #ccc;
@customDarkGray: #3a4a50;
@customBackgroundGray: #d4dae0;
@blue: #00b9ed;

@ColorA: #068cce;
@ColorB: #36424a;
@ColorC: #828a8f;
@ColorD: #f3f5f8;
.GradientA {
	#gradient.horizontal(#dfe1e9, #eaeef1);
}
/******************************************************************************
	Mixins
******************************************************************************/
.boxed(@border:0px) {
	background-color: @grayLighter;
    .border-radius(3px);
    border: @border solid @grayLightMedium;
}
.no-selection {
	-webkit-user-select: none; // webkit (safari, chrome) browsers
	-moz-user-select: none; // mozilla browsers
	-khtml-user-select: none; // webkit (konqueror) browsers
}


/******************************************************************************
    Defaults
******************************************************************************/
body {
    font-family: Arial, Helvetica, Verdana, sans-serif;
	font-size: @baseFontSize;
    margin: 0px;
    padding: 0px;
    background-color: #eef1f5;
}

a, a:link, a:visited {
    color: @blue;
    text-decoration: underline;
	cursor: pointer;
	outline: none;
	outline-width: 0;
}

a:hover {
    color: @blue;
}

img {
	border: 0;
}

/******************************************************************************
    Layout
******************************************************************************/
#main-wrapper {
    width: 988px;
    margin: auto;
    background-color: #fff;
    
    nav {
		a {
		    text-decoration: none;
		    color: @customGray;
		    text-shadow: 0px 1px 0px @white;
		    display: block;
		}
    }
    
    
	header {
		position: relative;
		padding: 10px 20px 0;
		
		.title {
			font-size: @baseFontSize * 2.7;
			color: @blue;
			position: relative;
			left: 10px;
			top: -10px;
			font-family: Helvetica;
		}

		/*
		.rss {
			position: absolute;
			right: 25px;
			bottom: 15px;
			padding-left: 20px;
			background: transparent url('/images/rss.gif') no-repeat;
			height: 16px;
			line-height: 16px;
			font-size: 11px;
			color: @ColorC;
			text-decoration: none;

			&:hover {
				text-decoration: underline;
			}
		}
		*/
		
		ul.language-selector {
			position: absolute;
			right: 20px;
			top: 15px;
			.border-radius(10px);
			background-color: @customBackgroundGray;
			border: 1px solid @customGray;
			color: @customGray;
			font-size: @fontSizeMini;
			padding: 2px 12px;
			margin: 0;
			list-style: none;
			
			li {
			    display: inline-block;
			    .ie7-inline-block;
			    
                a {
    			    border-right: 1px solid @customGray;
    			    line-height: 10px;
    			    padding: 0 7px;
    			    
    			    &:hover {
    			        text-decoration: underline;
		            }
		        }
		        
			    &:last-child a {
			        border: 0;
		        }
		    }
		    
		} /* ul.language-selector */

		nav {
			.clearfix;
		}

		.header {
			border-bottom: 2px solid #BF2F14;
			height: 32px;
			margin-bottom: 20px;

			a.logogene {
				float: left;
			}

			.main-menu {
				float: right;
				margin: 0;

				ul {
					list-style: none;
					margin: 10px 0 0;
					padding: 0;

					li {
						display: inline;
						padding-left: 8px;
						font-size: 13px;

						a {
							color: #4D4C4A;
							text-decoration: none;

							&:hover {
								text-decoration: underline;
							}

							&.rss {
								margin-left: 40px;
								padding-left: 20px;
								background: transparent url('/images/rss.gif') no-repeat;
								//height: 16px;
								//line-height: 16px;
								//font-size: 11px;
								color: @ColorC;
								text-decoration: none;
								zoom: 1;

								&:hover {
									text-decoration: underline;
								}

								span {
									font-size: 11px;
									position: relative;
									top: -1px;
								}
							}							
						}
					}
				}
			}
		}

	} /* header */
	
	
	footer {
		background-color: #eceff5;
        
        ul {
			list-style: none;
			margin: 0;
			padding: 0;
	    }
		
		ul#full-menu {
		    padding: 15px 30px;
		    font-size: 10px;
		    .clearfix;
		    
		    a {
                text-shadow: none;
			        
			    &:hover {
			        text-decoration: underline;
		        }
		    }
		    
		    > li {
		        float: left;
		        margin-right: 32px;
		        display: inline-block;
		        .ie7-inline-block;
		        width: 127px;

		        &:last-child {
		            margin: 0;
		        }
		        
		        ul {
		            margin: 0;
		            
		            li {
		                float: none;
		                
		                &.main-item {
		                    font-weight: bold;
		                }
		                
		                ul {
		                    margin-left: 20px;
		                }
		            }
		        }
		    }
		    
		} /* ul#full-menu */
		
		
		ul.menu {
			background-color: @blue;
			color: @white;
			text-align: right;
			padding: 12px 20px;
			
			li {
				display: inline-block;
				.ie7-inline-block;
				
				a {
					color: @white;
					text-shadow: 0px 1px 0px @customGray;
					font-size: @fontSizeMini;
					border-right: 1px solid @white;
			        padding: 0 12px;
			        
			        &:hover {
			            text-decoration: underline;
		            }
				}
			}
			
			li:last-child a {
				border-right: 0;
			}
			
        } /* ul.menu */
        
        
		ul.instituciones {
			margin: 0;
			padding: 0;
			background-color: #fff;
			padding: 20px 20px 150px;
			
			li {
				display: inline-block;
				.ie7-inline-block;
				
			    img {
				    width: 189px;
			    }
		    }
		    
		} /* ul.instituciones */

		#footer {
			margin: 0;
			padding: 0;
			background-color: #fff;
			padding: 20px 20px 10px;
			text-align: center;
			.clearfix;
			vertical-align: bottom;

			.footerlinks {
				color: #4D4C4A;
				font-size: .9em;
				display: inline;
				border-right: 1px solid;
				padding: 0px 10px 0px 10px;
				text-decoration: none;

				&:hover {
					text-decoration: underline;
				}
			}

			.generalitat {
				color: #4D4C4A;
				font-size: .9em;
				display: inline;
				padding: 0px 10px 0px 10px;				
			}

			img {
				display: inline;
				padding-left: 10px;
				vertical-align: middle;
			}
		}
		
	} /* footer */
    
    
	#content-wrapper {
		padding: 0 25px;
		min-height: 400px;
		
		header {
			padding: 0;
		}

	    #main-menu {
	        width: 100%;
	        background-color: @customBackgroundGray;
	        border: 1px solid @customGray;
	        margin-bottom: 10px;
	        list-style: none;
	        margin: 0;
	        padding: 0;
	        display: block;

	        .menu-item {
	            display: inline-block;
	            .ie7-inline-block;
	            text-align: center;
	            border-left: 1px solid @customGray;
	            height: 35px;
	            line-height: 35px;
	            color: @customGray;
	            margin: 0;
	            padding: 0;
	            width: 278px;
	            position: relative;
	            z-index: 10000;

	            &:hover {
	                background-color: @customDarkGray;
	                
	                a {
    	                color: @white;
    	                text-shadow: none;
	                }
	                
	                .sub-menu {
	                    /*display: inline-block;
	                    .ie7-inline-block;*/
	                    display: block;
	                    .clearfix;
	                    background-color: transparent;
	                    background-color: @white;
	                    border-top: 1px solid @customGray;
			            position: absolute;
			            left: 0px;
						z-index: 9999;
			            zoom: 1;
	                }
	            }
	            
	            &.home {
	                background-color: @blue;
	                width: 101px;
	                border: 0;

	                &:hover {
		                background-color: @customDarkGray;
	                };
	                
	                a {
    	                color: @white;
                        text-shadow: none;
	                }
	            }
	            
	            &.current {
	                > a {
	                    background-color: @customDarkGray;
	                    color: @white;
	                    text-shadow: none;
	                }
	            }
	            
	            .sub-menu {
	                display: none;
	                //position: absolute;
                    background-color: @white;
	                padding: 3px 0 0;
	                margin: 0px;
	                
	                ul {
	                    background-color: @blue;
	                    width: 239px;
	                    padding: 10px 20px;
	                    margin: 0px;
	                    list-style: none;
	                    text-align: left;

	                    li {
	                        font-size: @fontSizeMini;
	                        line-height: @baseLineHeight;

	                        a {
	                            color: @white;
	                            
	                            &:hover {
	                                text-decoration: underline;
	                            }
	                        }
	                    }
	                }

	            } /* .submenu */
	            
	        } /* .menu-item */
	        
	    } /* #main-menu */
	    

	    #slideshow-wrapper {
	    	.clearfix;

			/* fade-in/fade-out SlideShow */
			#slideshow {
			    position:relative;
			    margin-top: 7px;

				img {
				    position:relative;
				    top:0;
				    left:0;
				    z-index:8;
					width:940px;
					height:300px;
					border:0px;
				}

				.active {
				    z-index:10;
				}

				.disabled {
				    z-index:9;
				}

				.BannerContainer {

					.texto-wrapper {
						position: absolute;
						top: 100px;
						left: 50px;
						z-index: 11;
						padding: 20px;
						//#translucent.background(@ColorB, .5);
						//.box-shadow(#000);
						//.border-radius(10px);

						.titulo {
							font-family: Georgia;
							font-size: 36px;
							color: @white;
							margin-bottom: 10px;
						}
					}
				}

			} /* #slideshow */

			/* NAVIGATOR */
			/* position and dimensions of the navigator */
			.navi {
				//position:relative;
				//top:5px;
				//right:5px;
				//float:right;
				text-align: right;
				z-index:11;
				.clearfix;

				/* items inside navigator */
				a, a:link, a:visited {
					width:10px;
					height:10px;
					line-height:10px;
					background:url('/images/navigator_peque.png') no-repeat -10px 0;
					display:inline-block;
					.ie7-inline-block;
					margin:0px 2px 0px 2px;
					cursor:pointer;
					font-size: 0;
				}

				/* mouseover state */
				a:hover{
					background-position:-20px 0px;
					text-decoration:none;
				}

				/* active state (current page state) */
				a.active {
					background-position:0px 0px;     
				}

			} /* .navi */

		} /* #slideshow-wrapper */
	    

	    .separator {
	        background: transparent url('/images/separator.jpg') no-repeat;
	        margin: 20px auto 15px;
	    }
	    
	    
	    #breadcrumb {
	        margin-bottom: 20px;
	        
	        ul {
	            margin: 0;
	            padding: 0;
	            list-style: none;
	            
	            li {
	                display: inline-block;
	                .ie7-inline-block;
	                padding: 0px 10px;
	                border: 1px solid @customMediumGray;
	                border-right: 0px;
	                height: 25px;
	                line-height: 25px;
	                
	                a {
	                    color: @customGray;
	                    text-decoration: none;
	                    
	                    &:hover {
	                        text-decoration: underline;
	                    }
	                }
	                
	                &.current {
	                    border: 0;
	                    color: @blue;
	                }
	                
	                &.separator {
                        background: transparent url('/images/breadcrumb-arrow.png') no-repeat;
	                    border: 0;
	                    padding: 0;
	                    margin: 0;
                        width: 16px;
                        height: 27px;
                        line-height: 27px;
                        position: relative;
                        left: -1px;
	                }
	            }
	        }
	        
	    } /* #breadcrumb */
	    

	    .read-more {
	    	background: transparent url('/images/boto_mes.png') no-repeat;
	    	padding-left: 20px;
	    	font-size: 10px;
	    	line-height: 14px;
	    	display: block;
	    }


	    section#destacados-home-wrapper {
	    	margin-top: 15px;
	    	border-top: 1px solid @ColorC;
	    	.clearfix;

	    	header {
	    		position: relative;

		    	h2 {
		    		font-size: 24px;
		    		color: @ColorA;
		    		font-weight: normal;
		    		margin-top: 0;
		    	}

		    	.read-all-link {
		    		position: absolute;
		    		right: 0;
		    		top: 0;
		    		.border-radius(10px);
		    		background-color: @ColorD;
		    		font-size: 10px;
		    		color: @ColorC;
		    		padding: 3px 10px;
		    		text-decoration: none;
		    		border: 1px solid @ColorC;
		    	}
	    	}


	    	.inner-wrapper {
	    		.clearfix;

	    		.destacado-wrapper {
		    		float: left;
		    		width: 175px;
		    		padding: 0 7px 30px;
		    		border-right: 1px solid @ColorC;
		    		position: relative;

		    		&:first-child {
		    			padding-left: 0;
		    		}

		    		&:last-child {
		    			padding-right: 0;
		    			border-right: 0;
		    		}

			    	h3 {
			    		font-size: 18px;
			    		color: @ColorB;
			    		font-weight: normal;
			    		margin-top: 0;
			    	}

		    		h4 {
			    		color: @ColorA;
			    		height: 32px;
		    		}

		    		.resumen {
		    			font-size: 10px;
		    			line-height: 12px;
		    			color: @ColorC;
		    			//width: 155px;
		    			text-align: justify;
		    			margin: 5px 10px 10px;
		    			height: 75px;
		    			overflow: hidden;
		    		}

		    		.read-more {
		    			position: absolute;
		    			bottom: 20px;
		    		}

	    		} /* .destacado-wrapper */
	    	}


	    	&.noticias {
	    		padding: 15px 0 0;
	    		margin-top: 0;
	    		
	    		.inner-wrapper {
		    		.destacado-wrapper {
			    		width: 300px;
			    		height: 230px;

				    	.date {
				    		font-size: 11px;
				    		line-height: 16px;
				    		color: @ColorA;
				    	}

			    		.resumen {
			    			margin-left: 0;
			    			margin-right: 0;
				    		font-size: 11px;
				    		line-height: 16px;
				    		color: @ColorB;
				    		height: auto;
			    		}
		    		}
		    	}

	    	} /* noticias */


	    	&.agenda {
	    		padding: 15px 0 0;
	    		margin-top: 0;

	    		.inner-wrapper {
		    		.destacado-wrapper {
			    		width: 223px;
		    			width: 221px;
			    		height: 250px;

		    			.date {
		    				font-size: 14px;
		    				font-weight: bold;
		    				color: @ColorA;
		    				margin: 5px 0;
		    			}

			    		.resumen {
			    			margin-left: 0;
			    			margin-right: 0;
				    		font-size: 11px;
				    		line-height: 16px;
				    		color: @ColorB;
				    		height: auto;
			    		}

			    		.read-more {
			    			bottom: 30px;
			    		}
		    		}
	    		}

	    	} /* .agenda */
	    }
	    

	    #page-wrapper {
	        .clearfix;
	        //padding-bottom: 30px;
	        //margin-bottom: 30px;
	        //border-bottom: 1px solid @ColorC;

	        ul#page-nav {
	            float: left;
	            display: inline-block;
	            .ie7-inline-block;
	            width: 220px;
	            margin: 0 20px 20px 0;
	            list-style: none;
	            padding:0;

                li {
                	.GradientA;
                	height: 37px;
                	line-height: 37px;
                	text-align: center;
                	margin-bottom: 2px;
                	color: @ColorB;
                	font-size: 12px;
                	text-shadow: 0px 1px 0px #FFF;


                    a {
                    	color: inherit;
                    	text-decoration: none;
                    	display: block;
                    	padding: 0 10px;
	                	white-space: nowrap;
	                	overflow: hidden;
	                	text-overflow: ellipsis;

	                	&.current, &:hover {
							background-color: @ColorA !important;
							background-image: none;
							color: @white;
							text-shadow: none;
	                	}                    	
                    }
                }
	            
	        } /* #page-nav */
	        
	        #page-content {
	            float: left;
	            display: inline-block;
	            .ie7-inline-block;
	            width: 698px;

	        } /* #page-content */
	            
            h1 {
            	font-size: 30px;
            	font-weight: normal;
                margin: 0 0 20px;
                color: @blue;
            }

            p {
            	font-size: 14px;
            	line-height: 20px;
            	color: @ColorB;
            	text-align: justify;
            }

            #noticia-wrapper {
            	margin: 20px 0;

            	img {
            		max-width: 100%;
            	}

            	h1 {
            		font-weight: normal;
            	}

            	.inner-wrapper {
            		.clearfix;

            		.contenido-noticia {
	            		padding-right: 10px;
	            		margin-right: 10px;
	            		border-right: 1px dotted @ColorC;
	            		float: left;
	            		width: 698px;

	            		h1 {
	            			color: @ColorB;
	            			margin: 15px 0 5px;
	            			font-size: 36px;
	            		}

	            		.date {
	            			font-size: 14px;
	            			color: @ColorA;
	            		}

	            		.new-body {
	            			text-align: justify;
	            			color: @ColorB;
	            			margin-top: 20px;
	            		}
	            	}

	            	.otras-noticias-wrapper {
	            		float: left;
	            		max-width: 215px;

	            		h5 {
	            			color: @ColorA;
	            			margin-top: 20px;
	            		}

	            		.noticia-wrapper {
	            			margin-bottom: 10px;
	            			padding-bottom: 15px;
	            			border-bottom: 1px dotted @ColorC;

		            		h3 {
		            			font-weight: normal;
		            		}

		            		.date {
		            			font-size: 11px;
		            			color: @ColorA;
		            		}

		            		.resumen {
		            			font-size: 11px;
		            			text-align: justify;
		            			color: @ColorB;
		            			margin-top: 3px;
		            		}

		            		.read-more {
		            			margin-top: 10px;
		            		}

	            		} /* .noticia-wrapper */
		            		
	            		.read-all-link {
	            			display: inline-block;
	            			.ie7-inline-block;
	            			margin-top: 0px;
				    		.border-radius(10px);
				    		background-color: @ColorD;
				    		font-size: 10px;
				    		color: @ColorC;
				    		padding: 3px 10px;
				    		text-decoration: none;
							float: right;
				    		border: 1px solid @ColorC;
				    	}

	            	} /* .otras-noticias-wrapper */
            	}

            } /* #noticia-wrapper */
            

            #listado-noticias-wrapper {
            	margin: 20px 0;

            	.inner-wrapper {
            		margin-top: 20px;

	            	.noticia-wrapper {
	            		padding-bottom: 15px;
	            		margin-bottom: 15px;
	            		border-bottom: 1px dotted @ColorC;
	            		position: relative;

		            	h2 {
		            		font-size: 18px;
		            		font-weight: normal;
		            	}

		            	.date {
	            			font-size: 12px;
	            			color: @ColorA;
		            	}

		            	.resumen {
	            			text-align: justify;
	            			color: @ColorB;
	            			margin-top: 5px;
	            			width: 87%;
		            	}

		            	.read-more {
		            		position: absolute;
		            		right: 30px;
		            		bottom: 15px;
		            	}
		            }
		        }

            } /* #listado-noticias-wrapper */
	        
	    } /* #page-wrapper */

	} /* #content-wrapper */
	
} /* #main-wrapper */






/* EOF */