html,
body {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: 'Open Sans', sans-serif;
	display: inline;
	height: 100%;
	/* overflow: hidden; */
}

/* NAVBAR */

.navbar-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: black;
    color: white;
	padding: 10px 20px;
}

.navbarLeft {
	font-family: 'Barlow', sans-serif;
	font-weight: 500;
}

.navbarLeft a {
	text-decoration: none;
	color: white;
}

.navbarLeft a:hover {
	color: #0099CC;
}

.navbar {
	overflow: hidden;
	height: 47px;
	transition: height 0.3s ease;
	overflow: hidden;
}

.navbar a {
	float: left;
	display: block;
	color: white;
	text-align: left;
	padding: 14px 16px;
	text-decoration: none;
	font-size: 17px;
}

.navbar a:hover {
	background-color: #0099CC;
	transition-duration: 0.5s;
	color: white;
}

.navbar .icon {
	display: none;
}

/* QUÉ HACEMOS */

.parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.parent div {
    text-align: center;
}

.parent img {
    width: 100%;
    height: auto;
}

.imagenCabecera {
    grid-column: span 4 / span 4;
    grid-row: span 2 / span 2;
    background-image: url('../img/imagen2-01.png');
    background-repeat: no-repeat;
    background-size: cover;
	background-position: bottom;
    height: 50vh;
}

.titulo {
    grid-column: span 4 / span 4;
    grid-row-start: 3;
}

.titulo h2 {
	color: #FE9147;
	font-family: 'Barlow', sans-serif;
	font-weight: 700;
	align-self: center;
	font-size: 50px;
	padding: 20px;
	text-transform: uppercase;
	text-align: center;
    margin: 10px;
}

.subtitulo {
	font-size: 20px;
	padding: 0px auto;
	text-align: center;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 90%;
    margin: 0 auto 50px;
}

.card img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.card h4 {
	font-family: 'Open Sans', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #168197;
}

.container {
    padding: 2px 16px;
}

.footer {
	height: 120px;
	background-color: black;
	color: white;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: space-around;
	margin-top: auto;
	padding: 15px;
	font-size: 20px;
	font-family: 'Barlow', sans-serif;
}

.footer img {
	height: 80%;
}

.links {
	display: flex;
	flex-direction: row;
	text-align: center;
}

.links a {
	text-decoration: none;
	color: white;
	margin: 5px;
}

.links a:hover {
	color: #FE9147;
	transition-duration: 0.3s;
}

.links i {
	font-size: 40px;
	margin: 15px;
}

/* --- MEDIA QUERIES MOBILE --- */

@media screen and (max-width: 767px) {
	body {
		overflow: auto;
	}

    /* NAVBAR */

	.navbar-container {
		display: block;
	}

	.navbar a:not(:first-child) {
		display: none;
	}

	.navbar.responsive {
		position: relative;
		height: 200px;
	}

	.navbar.responsive .icon {
		position: absolute;
		right: 0;
		top: 0;
	}

	.navbarLeft {
		display: none;
	}

	.navbar a.icon {
		float: inline-end;
		display: block;
	}

	.navbar.responsive a {
		float: none;
		display: block;
		text-align: left;
	}

    /* QUÉ HACEMOS */
	
    .parent {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.imagenCabecera {
		grid-column: span 1;
		grid-row: auto;
		height: 20vh;
	}

	.titulo {
		grid-column: span 1;
		grid-row: auto;
	}

	.titulo h2 {
		font-size: 24px;
		padding: 10px;
	}

	.subtitulo {
		font-size: 12px;
		padding: 0 30px;
	}

	.card {
		width: 90%;
		margin: 20px;
	}

	.card img {
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	.footer {
		height: 50px;
	}

	.footer p, .footer img {
		display: none;
	}

	.footer i {
		font-size: 28px;
	}
}

/* --- MEDIA QUERIES TABLET --- */

@media screen and (min-width: 768px) and (max-width: 1024px) {
	body {
		overflow: auto;
	}
	/* NAVBAR */
	.navbar-container {
		display: block;
	}

	.navbar a:not(:first-child) {
		display: none;
	}

	.navbar.responsive {
		position: relative;
		height: 200px;
	}

	.navbar.responsive .icon {
		position: absolute;
		right: 0;
		top: 0;
	}

	.navbarLeft {
		display: none;
	}

	.navbar a.icon {
		float: inline-end;
		display: block;
	}

	.navbar.responsive a {
		float: none;
		display: block;
		text-align: left;
	}

	/* QUÉ HACEMOS */
	.parent {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto;
		gap: 20px 0;
		margin-bottom: 50px;
	}

	.imagenCabecera {
		grid-column: span 2 / span 2;
		grid-row: span 2 / span 2;
		height: 30vh;
	}

	.titulo {
		grid-column: span 2 / span 2;
		grid-row: auto;
	}

	.titulo h2 {
		font-size: 40px;
		padding: 15px;
	}

	.subtitulo {
		font-size: 16px;
		padding: 0 30px;
	}

	.card {
		width: 90%;
		height: 100%;
		margin: auto;
	}

	.card img {
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	.footer {
		height: 50px;
		font-size: 18px;
	}

	.footer img {
		display: none;
	}

	.footer i {
		font-size: 28px;
	}
}
