@charset "utf-8";
#contenedorminiaturas {
	height: auto;
	margin-top: 3rem;
	text-align: center;
	width: 101.8%;
	margin-left: -.9%;
	box-sizing:border-box;
	padding-top: 1px;
	padding-bottom: 1px;
}
.miniatura {
	display: inline-block;
	width: 18%;
	max-width: 185px;
	height: auto;
	margin-bottom: 1rem;
	margin-left: 1%;
	margin-right: 1%;
	cursor: pointer;
}

.relativo {
	position: relative;
	left: 0px;
	top: 0px;
	width: 100%;
	z-index: 2;
	overflow: hidden;
}

.ajustaaltura {
	width: 100%;
	height: auto;
	display: block;
}
.nombreservicio {
	position: absolute;
	left: 0px;
	top: 0%;
	width: 100%;
	height: 100%;
	z-index: 5;
	font-size: 1.5rem;
	color: white;
	box-sizing: border-box;
	background-color: rgba(0,0,0,.4);
	font-weight: 600;
	transform-origin: 100% 100%;
	transform: rotateZ(90deg);
	transition: all .5s ease-in 0s;
}
.nombreservicio table {
	width: 100%;
	height: 100%;
}
.nombreservicio td {
	text-align: center;
	vertical-align: middle;	
	padding: 0rem;
}
.colorfondo {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background-color: rgba(150,50,46,0.70);
	z-index: 3;
	transition: all 1s ease-in .2s;
}
.icono {
	position: absolute;
	left: 10%;
	top: 10%;
	width: 80%;
	height: 80%;
	z-index: 4;
	transition: all 1s ease-in .2s;
}
.relativo:hover .icono {
	transition: all 1s ease-in 0s;
	top: 50%;
	left: 50%;
	width: 0%;
	height: 0%;
}
.relativo:hover .colorfondo {
	transition: all 1s ease-in 0s;
	opacity: 0;
}
.relativo:hover .nombreservicio {
	transition: all .5s ease-in .7s;
	transform: rotateZ(0deg);
}
@media (max-width: 1200px) {
	.nombreservicio {
		font-size: 18px;
	}
	.nombreservicio td {
	text-align: center;
	vertical-align: middle;	
	padding: .5rem;
	}
}

@media (max-width: 900px) {
	#contenedoranimacion {
		margin-top: 1rem;
	}
	#contenedorminiaturas {
		margin-top: 2rem;
	}
	.miniatura {
		width: 26%;
		max-width: 175px;
	}

}
@media (max-width: 500px) {
	#contenedoranimacion {
		margin-top: .5rem;
	}
	#contenedorminiaturas {
		width: 100%;
		margin-left: 0px;
		margin-top: 1rem;
	}
	.nombreservicio {
		font-size: 11px;
	}	
	.nombreservicio td {
	text-align: center;
	vertical-align: middle;	
	padding: .15rem;
	}	
}