/*
	MKT4IT - estilos propios del sitio.
	main.css contiene únicamente la plantilla "Story" (generada desde assets/sass).
*/

/* Fuentes (self-hosted, antes se cargaban desde Google Fonts) */
@font-face {
	font-family: "Source Sans Pro";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/source-sans-pro-latin-300-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Source Sans Pro";
	font-style: italic;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/source-sans-pro-latin-300-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Source Sans Pro";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-pro-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Source Sans Pro";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-pro-latin-400-italic.woff2") format("woff2");
}

:root {
	--mkt-accent: #fe5000;
	--mkt-nav-height: 70px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html {
	scroll-padding-top: var(--mkt-nav-height);
}

/* Navegación fija */
.nav-wrap {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: var(--mkt-nav-height);
	padding: 0 1.25rem;
	background-color: rgba(0, 0, 0, 0.85);
}

.nav-brand {
	border-bottom: 0;
	display: flex;
	align-items: center;
}

#mktLogo {
	display: block;
	width: 170px;
	height: auto;
}

#onepage-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

#onepage-nav li {
	margin: 0;
	padding: 0;
	line-height: 1.3;
}

#onepage-nav li a {
	color: #fff;
	border-bottom: 0;
	text-decoration: none;
	white-space: nowrap;
}

#onepage-nav li a:hover,
#onepage-nav li a:focus-visible,
#onepage-nav li a.scroll.active {
	text-decoration: underline;
	text-underline-offset: 4px;
}

#onepage-nav li a.scroll.active {
	font-weight: 600;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: transparent;
	border: 0;
	box-shadow: none;
	cursor: pointer;
}

.nav-toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background-color: #fff;
}

@media screen and (max-width: 980px) {
	.nav-toggle {
		display: flex;
	}

	#onepage-nav {
		display: none;
		position: absolute;
		top: var(--mkt-nav-height);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem 1.25rem 1rem;
		background-color: rgba(0, 0, 0, 0.92);
	}

	#onepage-nav.is-open {
		display: flex;
	}

	#onepage-nav li a {
		display: block;
		padding: 0.75rem 0;
	}
}

/* Secciones */
#home {
	padding-top: var(--mkt-nav-height);
}

.image > img {
	width: 100%;
	height: 256px;
	object-fit: cover;
}

.caption > h3 {
	padding: 2px 10px 5px 10px;
	background-color: #000;
	color: #fff;
}

/* "Cómo lo hacemos": pasos y valores.
   Todos los elementos tienen el mismo ancho fijo (sin importar cuánto texto
   tengan) y las filas incompletas se centran. */
ul.icons.steps,
ul.icons.values {
	--cols-gap: 1rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 1.5rem var(--cols-gap);
}

ul.icons.steps li,
ul.icons.values li {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 var(--item-width);
	width: var(--item-width);
	padding: 0;
	text-align: center;
}

ul.icons.steps {
	--item-width: 11rem;
	/* Escritorio: 3 por fila (2 filas de 3) en lugar de 5 + 1. */
	max-width: calc(3 * var(--item-width) + 2 * var(--cols-gap));
	margin-left: auto;
	margin-right: auto;
}

ul.icons.values {
	--item-width: 8rem;
}

@media screen and (max-width: 736px) {
	/* Móvil: 2 pasos y 3 valores por fila. */
	ul.icons.steps {
		--item-width: calc((100% - var(--cols-gap)) / 2);
	}

	ul.icons.values {
		--item-width: calc((100% - 2 * var(--cols-gap)) / 3);
	}
}

ul.icons.steps .label,
ul.icons.values .label {
	display: block;
	margin-top: 0.5rem;
	line-height: 1.3;
}

.imgHacemos {
	width: 96px;
	height: auto;
}

.imgValores {
	width: auto;
	height: 48px;
}

.imgItem {
	display: inline-block;
	width: 64px;
	height: auto;
}

/* Contacto */
.contact-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	text-align: center;
}

.contact-card h3 {
	font-size: 2.25rem;
	margin-bottom: 0.25rem;
}

.contact-role {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
}

@media screen and (max-width: 736px) {
	.contact-cards {
		grid-template-columns: 1fr;
	}

	.contact-card h3 {
		font-size: 1.75rem;
	}
}

/* Footer */
ul.icons.social {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
}

ul.icons.social li {
	padding: 0;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75em;
	height: 2.75em;
	border-bottom: 0;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px currentColor;
	color: inherit;
	transition: color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.social-link:hover,
.social-link:focus-visible {
	color: var(--mkt-accent);
}

.copy-mark {
	color: var(--mkt-accent);
}
