/* Common style */
.comunidades {
	background: url(../img/bg_home.jpg) center repeat;
	/*background: url(http://localhost:54000/websdis_2015_v2/modules/mod_cmp_blank/img/bg_home.jpg) center repeat;*/
}

.barra_top {
	width:95%;
	height:5px;
}

/* --- COLORES DE COMUNIDADES --- */
.color_1 {
	background-color:#009999;
}
.color_2 {
	background-color:#FFB973;
}
.color_3 {
	background-color:#196400;
}
.color_4 {
	background-color:#00589A;
}
.color_5 {
	background-color:#FF3F00;
}
.color_6 {
	background-color:#FF4CFF;
}
.color_7 {
	background-color:#2C9A26;
}
.color_8 {
	background-color:#610C52;
}
.color_9 {
	background-color:#D86C00;
}
/* --- COLORES DE COMUNIDADES -FIN --- */


.grid {
	margin: 20px auto 10px 40px;
	width: 900px;
	padding:15px 0px;
}

.grid a {
	float: left;
	width: 285px;
	height:127px;
	color: #333;
}

.espacio {
	clear:both;
	width:100%;
	height:10px;
}

.grid a:nth-child(odd) {
	margin: 0px;
}

.grid figure {
	position: relative;
	overflow: hidden;
	margin: 0px 15px 20px 0px;
	padding:0px 0px 0px 0px;
}

.grid figure img {
	position: relative;
	display: block;
	width: 100%;
}

.grid figcaption {
	position: absolute;
	top: 0;
	z-index: 11;
	padding: 10px;
	width: 100%;
	height: 100%;
	text-align: center;
}

.grid figcaption h2 {
	margin: -54px 0px 0px 0px;
	letter-spacing: 0.5px;
	font-weight: normal;
	font-family:Arial, Helvetica, sans-serif;
	font-size: 20px;
	-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
}

.grid figcaption h2 {
	-webkit-transform: translateY(50px);
	transform: translateY(50px);
}

.grid figure button {
	position: absolute;
	padding: 4px 20px;
	border: none;
	letter-spacing: 1px;
	font-weight: bold;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
}

.grid figcaption,
.grid figcaption h2,
.grid figure button {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* Style for SVG */
.grid svg {
	position: absolute;
	top: -1px; /* fixes rendering issue in FF */
	z-index: 10;
	width: 100%;
	height: 100%;
}

.grid svg path {
	fill: #fff;
}

/* Hover effects */
.grid a:hover figure img {
	opacity: 1;
}

.grid a:hover figcaption h2 {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}


/* Individual styles */

.comunidades .grid figure button {
	top: 55%;
	left: 50%;
	border: 2px solid #fff;
	background: rgba(0, 0, 0, 0.4) none repeat;
	/*background: url(http://localhost/prueba_instalaciones/images/servicios/bg_ver_mas.png) repeat;*/
	color: #fff;
	opacity: 0;
	-webkit-transform: translateY(-50%) translateX(-50%) scale(0.25);
	transform: translateY(-50%) translateX(-50%) scale(0.25);
}

.comunidades .grid a:hover figure button {
	opacity: 1;
	-webkit-transform: translateY(-50%) translateX(-50%) scale(1);
	transform: translateY(-50%) translateX(-50%) scale(1);
}

.comunidades .grid figcaption h2 {
	-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.115, 1); /* older webkit */
	-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.115, 1.445);
	timing-function: cubic-bezier(0.250, 0.250, 0.115, 1.445);
}

.comunidades .grid figcaption h2 {
	color: #52be7f;
}

.comunidades .grid a:hover figcaption h2 {
	-webkit-transform: translateY(5px);
	transform: translateY(5px);
}
