@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: #f1f1f1;

}

.container {
	max-width: 95%;
	margin: auto;
}

.logo {
	width: 8rem;
	margin: 0 50%;
	transform: translateX(-50%);
}

.heading {
	margin: 0 auto;
	margin-bottom: 2em;
	padding: 1em;
	border-radius: 5px;
	font-size: 1.2rem;
	text-align: center;
	box-shadow: 0 0 8px lightgray;
	max-width: min(350px, 90%);
	font-family: 'Roboto', sans-serif;
	color: #292929;
	background: #fafafa;
}

.mail {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1em;
}

.mail__icon {
	max-height: 2rem;
	margin-right: .5em;
}

.item {
	width: 90%;
	margin: 0 auto;
	padding: .5em;
}

.link {
	width: 100%;
	min-height: 5rem;
	padding: 1em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	border-radius: 5px;
	box-shadow: 2px 2px 5px lightgray;
	text-decoration: none;
	color: #292929;
	font-family: 'Roboto', sans-serif;
	font-size: 1.1rem;
	text-transform: uppercase;
	background-color: #fafafa;
}

.item__img,
.item__shadow {
	display: none;
}

.footer {
	width: 90%;
	text-align: center;
	margin: 1em 0;
	font-family: Monospace;
}

@media (min-width: 500px) {
	.main {
		display: grid;
		grid-template-columns: auto auto;
		column-gap: 1em;
	}

	.head {
		grid-column-start: 1;
		grid-column-end: 3;
	}
}

@media (max-width: 600px) {
	.link {
		width: 100%;
		height: 100%;
	}
}

@media (min-width: 900px) {

	.container {
		width: 100vw;
		height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.main {
		flex-grow: 1;
		grid-template-columns: auto 400px auto;
		grid-template-rows: auto auto auto;
		max-width: 900px;
		margin: 0 auto;
	}

	.head {
		grid-column-start: 2;
		grid-row-start: 2;
		grid-row-end: 4;
		align-self: end;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.logo {
		width: 60%;
		padding-top: 5em;
	}

	.head__text {
		max-width: 95%;
	}

	.heading,
	.mail {
		margin-top: 0;
		margin-bottom: 0;
	}

	.heading {
		margin-bottom: .5em;
	}

	.item {
		width: 200px;
		justify-self: center;
	}

	.link {
		text-transform: none;
		min-height: 0px;
		width: auto;
		padding: 0;
		border-radius: 0;
		background: #fee440;
	}

	.link p {
		width: 100%;
		z-index: 2;
		background: #fee440;
		padding: .4em;
		font-size: 1rem;
	}

	.item img {
		position: absolute;
		max-width: 300px;
	}

	.item .item__img {
		display: block;
	}

	.link:hover .item__shadow,
	.link:focus .item__shadow {
		display: block;
	}
	
	.link:hover p,
	.link:focus p {
		transform: scale(1.1);
		transition: transform .2s ease;
	}


	.item--peluquerias {
		grid-column-start: 1;
		grid-row-start: 3;
		position: relative;
	}

	.item--peluquerias img {
		top: -50%;
		left: -70%;
		max-width: 400px;
	}


	.item--parroquias {
		grid-column-start: 1;
		grid-row-start: 2;
	}

	.item--parroquias img {
		max-width: 300px;
	}

	.item--subdominios {
		grid-column-start: 2;
		grid-row-start: 1;
		align-self: end;
	}

	.item--subdominios img {
		max-width: 200px;
	}

	.item--ongs {
		grid-column-start: 3;
		grid-row-start: 2;
	}

	.item--bares {
		grid-column-start: 3;
		grid-row-start: 3;
	}

	.footer {
		text-align: left;
	}

}
