@charset "utf-8";

.imgfondo {
	background-image: url(../images/encas2.jpg);
	background-size: 100% 100%;
	padding-bottom: 10px;
	padding-top: 10px;
}
.imgfondo h1 {
	width: 100%;
	text-align: center;
	color: #FFFFFF;
	font-size: 2rem;
	font-weight: bold;
	background-color: #1D77B3;
}
.imgfondo div {
	width: 50%;
	margin-left: 40%;
	background-color: rgba(29,119,179,0.40);
	color: #FFFFFF;
	padding-right: 1rem;
	padding-left: 1rem;
	font-weight: bold;
	padding-top: 2px;
	padding-bottom: 2px;
}
.imgfondo div:hover {
	background-color: #1D77B3;
}

.imgfondo:last-of-type {
	background-image: url(../images/dp0.jpg);
	background-size: 100% 100%;
	padding-bottom: 10px;
	padding-top: 10px;	
}

h2 {
	text-align: center;
	color: #FFFFFF;
	font-weight: bold;
	background-color: #1D77B3;
}
.contiene {
	display: flex;
	margin-top: 0px;
	margin-bottom: 0px;
}

figure {
	max-width: 50%;
	height: 80%;
}

figure figcaption {
	width: 100%;
}
figure img {
	width: 100%;
	height: 50%; 
}

.contiene1 {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
}


@media (max-width: 800px) {
	.imgfondo, .imgfondo:last-of-type {
		background-image: none;
		background-color: #20982E;
	}
	.imgfondo div {
		width: 100%;
		margin-left: 0px;
	}
	figure {
		display: none;
	}

}
