/* ==== Fonts ==== */

@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap");

@font-face {
	font-style: normal;
	font-weight: 400;
	src:
		url("../fonts/SourceCodePro-Regular.woff2") format("woff2"),
		url("../fonts/SourceCodePro-Regular.woff") format("woff"),
		url("../fonts/SourceCodePro-Regular.ttf") format("truetype");
	font-family: "Source Code Pro";
	font-display: swap;
}

/* ==== Reset general ==== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	border: 0;
	padding: 0;
}

/* ==== Estructura base ==== */
html,
body {
	background-color: #ffffff;
	width: 100%;
	height: 100%;
	color: #242529;
	font-family: "Source Code Pro", Consolas, Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow: hidden;
	line-height: 1.4;
}
a {
	transition: color 0.3s ease;
	color: inherit;
	text-decoration: none;
}
a:hover,
a:focus {
	outline: none;
	color: #1340c1;
	text-decoration: none;
}
a:focus-visible {
	outline: 2px dashed #1340c1;
	text-decoration: none;
}

strong {
	font-weight: 900;
	font-family: Arial, Helvetica, sans-serif;
}

/* ==== Layout principal ==== */
.layout {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	padding-top: 7.407vh;
	min-width: 100vw;
	min-height: 100vh;
}
@supports (height: 100dvh) {
	.layout {
		min-height: 100dvh;
	}
}
.header,
.main,
.footer {
	padding: 0 15.625vw;
}

/* ==== Header ==== */
.header {
	display: flex;
	flex: 0 1 auto;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: center;
	justify-content: flex-start;
	align-items: stretch;
}
.visually-hidden {
	position: absolute;
	clip: rect(0 0 0 0);
	margin: -1px;
	border: 0;
	padding: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}
.header__logo--link {
	display: flex;
	height: 5.556vh;
	min-height: 3vh;
}

.logo__img {
	height: 100%;
	width: auto;
}

/* ==== Main ==== */
.main {
	display: flex;
	flex: 1;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: stretch;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding-block: 14.5vh 8.6vh;
}
.main__card p,
.main__contact p {
	margin: 0;
}
.main__card {
	flex: 0 1 360px;
}

/* ==== Banner ==== */
.banner {
	display: flex;
	flex: 1 1 45.37vh;
	margin-left: 5.2%;
	background: #000 url("../img/banner-1920.png") center 35% / cover no-repeat;
}

/* ==== Footer ==== */
.footer {
	display: flex;
	flex: 1;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: center;
	justify-content: space-between;
	align-items: center;
	gap: 4vh;
	padding-block: 4.2vh 6.5vh;
}
.footer__social {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 3.5rem;
}
.footer__copy {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
}

.footer__copy p {
	margin: 0;
}

/* ==== < 1600px ==== */
@media (max-width: 1600px) {
	.header,
	.main,
	.footer {
		padding-right: 10vw;
		padding-left: 10vw;
	}

	.banner {
		margin-left: 0%;
		background: #000 url("../img/banner-1600.png") center 35% / cover no-repeat;
	}
}

/* ==== < 1200px ==== */
@media (max-width: 1200px) {
	.header__logo--link {
		height: 5vh;
	}
	.header,
	.main,
	.footer {
		padding-right: 8vw;
		padding-left: 8vw;
	}

	.banner {
		margin-left: 0%;
		background: #000 url("../img/banner-1200.png") center 35% / cover no-repeat;
	}
}

/* ==== < 1025px ==== */
@media (max-width: 1025px) {
	.main {
		padding-block: 13vh 5vh;
	}
	.banner {
		margin-left: 0%;
		background: #000 url("../img/banner-1025.png") center 35% / cover no-repeat;
	}
}

/* ==== < 980px ==== */
@media (max-width: 980px) {
	body {
		font-size: medium;
	}
	.header {
		display: flex;
		justify-content: space-evenly;
		align-items: center;
		flex: 0 1 auto;
		flex-direction: row;
		flex-wrap: nowrap;
		align-content: center;
	}

	.main {
		display: flex;
		flex: 0 1 auto;
		flex-direction: column;
		flex-wrap: nowrap;
		align-content: flex-start;
		justify-content: flex-start;
		align-items: flex-start;
		padding-block: 10vh 3vh;
	}
	.main__card {
		flex: 0 1 auto;
	}
	.banner {
		flex: 1 1 auto;
		background: #000 url("../img/banner-980.png") center 35% / cover no-repeat;
	}
	.footer {
		display: flex;
		flex: 0 1 auto;
		flex-direction: column;
		flex-wrap: nowrap;
		align-content: center;
		justify-content: space-between;
		align-items: center;
		padding-block: 4vh 3vh;
	}
	.footer__social {
		gap: 2rem;
	}
	.footer__copy {
		font-size: small;
	}
}

/* ==== < 767px ==== */
@media (max-width: 767px) {
	.banner {
		flex: 1 1 auto;
		background: #000 url("../img/banner-767.png") center 35% / cover no-repeat;
	}
}

/* ==== < 420px ==== */
@media (max-width: 421px) {
	body {
		font-size: small;
	}
	.banner {
		flex: 1 1 auto;
		background: #000 url("../img/banner-420.png") center 35% / cover no-repeat;
	}
	.footer__social {
		display: flex;
		flex-direction: row;
		gap: 1rem;
	}

	.footer__copy {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-content: center;
		justify-content: space-between;
		align-items: center;
		font-size: x-small;
	}
}

/* ==== < 320px ==== */
@media (max-width: 320px) {
	body {
		font-size: x-small;
	}
	.logo__img {
		height: 25px;
	}
	.main__card,
	.main__contact {
		overflow-wrap: break-word;
		word-break: break-word; /* como fallback */
		text-wrap: balance; /* suaviza el salto (moderno) */
	}
	.banner {
		flex: 1 1 auto;
		background: #000 url("../img/banner-320.png") center 35% / cover no-repeat;
	}
	.footer__social {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}

	.footer__copy {
		font-size: x-small;
		text-align: center;
	}
}

/* ==== Height < 640px ==== */
@media (max-height: 640px) {
	.logo__img {
		height: 8vh;
	}
}
