@charset 'UTF-8';
@import url('normalize.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;700&display=swap');

html {
	font-family: 'Inter', sans-serif;
	font-size: 10pt;
}

body {
	line-height: 1.6rem;
	background-color: #f9f8f2;

}

h2 {
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1.6rem;
	color: #242019;
}

p {
	font-size: 1rem;
	font-weight: 400;
	margin: 0 0 1.4rem;
	max-width: 55ch;
	color: #242019;
}

a {
	text-decoration: none;
	color: #D56E28;
	font-weight: 500;
	cursor: pointer;
}
a:hover {
	text-decoration: underline;
}
.separador::before {
	content: "· ";
	color: #242019;
}

header {
	position: sticky;
	position: -webkit-sticky;
	top:0;
	display: block;
	background-color: #f9f8f2;
	opacity: 0.95;
	margin: 0 0 0 1rem;
	padding: 0.5rem 0;
	z-index: 1;
	transition: top 0.5s;
}
header img {
	width: 30%;
	margin: 0 0 0 -8px;
	max-width: 100px;
}
.esconder {
	top: -100px;
	transition: top 0.5s;
}

main {
	margin: 2rem 0 0 4rem;
	display: grid;
	grid-template-columns: 1fr;
	grid-auto-rows: min-content;
	grid-column-gap: 1rem;
	grid-row-gap: 1rem;

}
main h2 {
	padding: 100px 0 0;
	align-self: end;
}
main figure {
	align-self: start;
	transition: width 1s;
	max-width: 800px;
}
main figure div {
	padding:56.25% 0 0 0;
	position:relative;
}
main figure div iframe {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
}
main figcaption h3 {
	font-weight: 700;
}
main article {
	grid-column: 1 / -1;
}


.video {
	grid-column: span 1;
}
.video--reel {
	grid-column: 1 / -1;
}

aside {
	margin: 2rem 1rem 1rem;
}

footer {
	background-color: #242019;
	padding: 1rem;
}
footer address p{
	color: #f9f8f2;
}

/* Esconder el menu en pantallas bajitas */
@media (min-height: 670px) {
	.esconder {
		top: 0;
	}
}

@media (min-width: 500px) {
	html {
		font-size: 12pt;
	}
	main {
		margin: 1rem 0 0 115px;
		grid-template-columns: 1fr 1fr;
		grid-column-gap: 2rem;
	}
}

@media (min-width: 850px) {
	header {
		position: fixed;
		top: 0;
		width: 170px;
		margin: 0;
		background: unset;
	}
	header img {
		width: 150px;
		max-width: unset;
		margin: 0 0 0 0.5rem;
	}

	nav {
		margin: 10px 0 0 0;
	}
	nav a {
		display: block;
		margin: 0 0 0 1rem;
		padding: 0 0 0 2px;
	}
	.separador::before {
		content: "";
	}

	main {
		margin: 100px 1rem 0 170px;
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
		grid-auto-rows: minmax(150px,auto);
		grid-column-gap: 2rem;
	}
	aside {
		position: sticky;
		bottom: 0;
		display: block;
		width: 150px;
		padding: 0 0 1px;
		margin: 0 0 0 1rem;
	}
	aside a {
		display: block;
	}

}

