:root {
	--bg: #080e18;
	--bg2: #0d1b31;
	--fg: #f5f7fd;
	--closing-color: #080b18;
	--muted: #bdd0f0;
	--line: rgba(244, 239, 255, 0.14);
	--accent: #1F44F1;
	--accent-ink: #fff;
	--glow: rgb(27 173 216 / 14%);
	--glow2: rgb(70 99 230 / 16%);
	--font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "DM Mono", ui-monospace, Menlo, monospace;
	color-scheme: dark;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--bg: #f5f7fd;
		--bg2: #FFFFFF;
		--fg: #02061c;
		--closing-color: #02061c;
		--muted: #5b637e;
		--line: rgb(54 75 173 / 14%);
		--accent: #1F44F1;
		--accent-ink: #FFFFFF;
		--glow: rgb(27 173 216 / 14%);
		--glow2: rgb(70 99 230 / 16%);
		color-scheme: light;
	}
}

:root[data-theme="light"] {
	--bg: #F8F5FD;
	--bg2: #FFFFFF;
	--fg: #02061c;
	--closing-color: #02061c;
	--muted: #655B7E;
	--line: rgb(54 75 173 / 14%);
	--accent: #1F44F1;
	--accent-ink: #FFFFFF;
	--glow: rgb(27 173 216 / 14%);
	--glow2: rgb(70 99 230 / 16%);
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

[id] { scroll-margin-top: 77px; }
@media (max-width: 600px) {
	[id] { scroll-margin-top: 73px; }
}

html,
body {
	overflow-x: clip;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	padding-block: 0;
	margin: 0;
}

body::before {
	content: "";
	position: fixed;
	inset: 0 0 auto;
	height: env(safe-area-inset-top, 0px);
	z-index: 30;
	background: var(--bg);
}

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap {
	max-width: 1180px;
	margin: 0 auto;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	line-height: 1;
	letter-spacing: -0.02em;
	text-wrap: balance;
	margin: 0;
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

/* nav */
.nav {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 20;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
	padding-inline: max(16px, env(safe-area-inset-left, 0px));
}

.nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
}

.logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 22px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: -0.03em;
}

.logo svg.logo-logo {
	width: 119px;
	height: auto;
}

.logo svg.logo-iso {
	width: 38px;
	height: auto;
	fill: var(--accent);
}

.nav ul {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

.nav ul a {
	text-decoration: none;
	color: var(--muted);
	transition: color .2s;
}

.nav ul a:hover {
	color: var(--fg);
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	font-size: 15px;
	padding: 12px 20px;
	border-radius: 999px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}

.btn:not(.btn-outline):hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px -10px var(--accent);
}

.btn.ghost {
	background: transparent;
	color: var(--fg);
	border: 1px solid var(--line);
}

.btn.ghost:hover {
	box-shadow: none;
	border-color: var(--fg);
}

/* hero */
.hero {
	position: relative;
	padding-block: clamp(54px, 7vw, 80px) clamp(48px, 7vw, 80px);
}

.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	pointer-events: none;
	z-index: 0;
	animation: drift 18s ease-in-out infinite alternate;
}

.blob.a {
	width: 420px;
	height: 420px;
	background: var(--glow);
	top: -80px;
	right: -60px;
}

.blob.b {
	width: 360px;
	height: 360px;
	background: var(--glow2);
	top: -70px;
	left: -100px;
	animation-delay: -9s;
}

@keyframes drift {
	to {
		transform: translate(40px, 30px) scale(1.12);
	}
}

/*.hero > * { position: relative; z-index: 1; } */
.hero h1 {
	font-size: clamp(42px, 8.2vw, 104px);
	font-weight: 800;
	max-width: 14ch;
	margin-top: 22px;
}

.hero h1 em {
	font-style: normal;
	color: var(--accent);
}

.hero p.lead {
	max-width: 52ch;
	color: var(--muted);
	font-size: clamp(17px, 2vw, 20px);
	margin: 28px 0 0;
}

.hero .cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

.spark {
	position: absolute !important;
	right: clamp(-20px, 4vw, 60px);
	top: clamp(10px, 6vw, 70px);
	width: clamp(110px, 22vw, 280px);
	/*fill: var(--accent);*/
	animation: spin 28s linear infinite;
	z-index: 0 !important;
	opacity: .95;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.kpis {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
	align-items: center;
}

.kpis .eyebrow {
	margin-right: 10px;
}

.chip {
	font-family: var(--font-mono);
	font-size: 12.5px;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--fg);
	background: transparent;
}

/* load-in */
.in {
	animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}

.in:nth-child(2) {
	animation-delay: .08s;
}

.in:nth-child(3) {
	animation-delay: .16s;
}

.in:nth-child(4) {
	animation-delay: .24s;
}

.in:nth-child(5) {
	animation-delay: .32s;
}

@keyframes rise {
	from {
		transform: translateY(22px);
	}

	to {
		transform: none;
	}
}

/* marquee */
.marquee {
	margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
	border-block: 1px solid var(--line);
	overflow: hidden;
	padding-block: 18px;
}

.track {
	--gap: 48px;
	display: flex;
	width: max-content;
	gap: var(--gap);
	animation: slide 36s linear infinite;
	will-change: transform;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(22px, 3.4vw, 38px);
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.track span {
	display: flex;
	align-items: center;
	gap: var(--gap);
	flex-shrink: 0;
}

.track span::after {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--accent);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

@keyframes slide {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(calc(-50% - (var(--gap) / 2)), 0, 0);
	}
}

section {
	padding-block: clamp(54px, 9vw, 80px);
}

.head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 48px;
	max-width: 760px;
}

.head h2 {
	font-size: clamp(32px, 5vw, 58px);
	font-weight: 700;
}

.head p {
	color: var(--muted);
	margin: 0;
	max-width: 56ch;
}

/* services */

#servicios{
	padding-bottom: 48px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.card {
	--mx: 50%;
	--my: 50%;
	position: relative;
	background: var(--bg2);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 270px;
	overflow: hidden;
	transition: border-color .25s, transform .25s;
	min-width: 0;
}

.card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(320px circle at var(--mx) var(--my), var(--glow), transparent 70%);
	opacity: 0;
	transition: opacity .3s;
	pointer-events: none;
}

.card:hover {
	border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
	transform: translateY(-4px);
}

.card:hover::before {
	opacity: 1;
}

.card>* {
	position: relative;
}

.card h3 {
	font-size: 26px;
	font-weight: 700;
}

.card p {
	color: var(--muted);
	margin: 0;
	font-size: 16px;
}

.card .tags {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--muted);
	border: 1px solid var(--line);
	padding: 3px 9px;
	border-radius: 6px;
}

/* process */

#industrias,
#metodo{
	padding-bottom: 0;
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid var(--line);
}

.step {
	padding: 28px 24px 8px 0;
	border-right: 1px solid var(--line);
	padding-left: 24px;
	min-width: 0;
}

.step:first-child {
	padding-left: 0;
}

.step:last-child {
	border-right: 0;
}

.step .n {
	font-family: var(--font-mono);
	color: var(--accent);
	font-size: 13px;
}

.step h3 {
	font-size: 24px;
	margin: 14px 0 10px;
}

.step p {
	color: var(--muted);
	margin: 0;
	font-size: 15.5px;
}

/* industries */
.ind {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(24px, 5vw, 72px);
	align-items: start;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chips button {
	font: 500 16px var(--font-body);
	color: var(--fg);
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 10px 18px;
	cursor: pointer;
	transition: all .2s;
}

.chips button:hover {
	border-color: var(--fg);
}

.chips button[aria-pressed="true"] {
	background: var(--accent);
	color: var(--accent-ink);
	border-color: var(--accent);
}

.panel {
	background: var(--bg2);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: clamp(24px, 4vw, 40px);
	min-height: 250px;
}

.panel h3 {
	font-size: 30px;
	margin-bottom: 14px;
}

.panel p {
	color: var(--muted);
	margin: 0 0 18px;
}

.panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.panel li {
	padding-left: 22px;
	position: relative;
}

.panel li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
}

/* faq */
.faq {
	max-width: 860px;
	border-top: 1px solid var(--line);
}

details {
	border-bottom: 1px solid var(--line);
}

summary {
	list-style: none;
	cursor: pointer;
	padding: 24px 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(19px, 2.4vw, 24px);
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: center;
}

summary::-webkit-details-marker {
	display: none;
}

summary::after {
	content: "+";
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: 26px;
	color: var(--accent);
	transition: transform .25s;
	flex: none;
}

details[open] summary::after {
	transform: rotate(45deg);
}

details p {
	margin: 0 0 24px;
	color: var(--muted);
	max-width: 62ch;
}

/* contact - Correo vuelve a ser clickeable con hover state */
.closing {
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: 28px;
	padding: clamp(32px, 7vw, 88px);
	position: relative;
	overflow: hidden;
}

.closing h2 {
	font-size: clamp(36px, 6.4vw, 84px);
	font-weight: 800;
	max-width: 13ch;
}

.closing p {
	max-width: 46ch;
	margin: 22px 0 0;
	font-size: 18px;
}

.closing .row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
	align-items: center;
}

.closing .btn {
	background: var(--accent-ink);
	color: var(--closing-color);
}

.closing .btn.ghost {
	background: transparent;
	color: var(--accent-ink);
	border: 1px solid color-mix(in srgb, var(--accent-ink) 40%, transparent);
}

.closing .mail {
	font-family: var(--font-mono);
	font-size: 15px;
	user-select: all;
	overflow-wrap: anywhere;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: opacity 0.2s;
}

.closing .mail:hover {
	opacity: 0.8;
}

.closing .spark2 {
	position: absolute;
	right: -50px;
	bottom: -50px;
	width: 260px;
	fill: var(--accent-ink);
	opacity: .1;
	animation: spin 40s linear infinite reverse;
}

/* Footer */

.d-flex {
	display: flex;
	flex-wrap: wrap;
}

footer {
	padding-block: 0 56px;
	font-size: 1rem;
}

footer h3 {
	margin-bottom: 1rem;
	font-size: 1.1111rem;
}

.footer_cols {
	gap: 3rem 2rem;
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--line);
}

.footer_cols .col{
	flex: 1 0 0%;
	width: 100%;
	max-width: 100%;
}

footer .description {
	color: var(--muted);
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

footer .description p {
	margin: 0;
}

.footer_menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer_menu li:not(:last-child) {
	margin-bottom: .5rem;
}

.footer_menu a {
	color: var(--muted);
	text-decoration: none;
}

.footer_menu a:hover{
	color: var(--fg);
}

.rrss_links{
	gap: .75rem;
	margin-bottom: 1.5rem;
}
.rrss_links a{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--line);
	color: inherit;
	border-radius: 6px;
	transition: border .3s ease;
}

.rrss_links a svg{
	width: 1.25rem;
	height: auto;
}

.rrss_links a:hover{
	color: inherit;
	border-color: var(--fg);
}

.geo{
	align-items: center;
	gap: .5rem;
	color: var(--muted);
}

.footer_legal{
	justify-content: space-between;
	font-size: 14px;
	gap: 2rem;
	color: var(--muted)
}
.legal_links{
	gap: 2rem;
}
.legal_links a{
	color: inherit;
	transition: color .3s ease;
	text-underline-offset: 4px;
}
.legal_links a:hover{
	color: var(--fg);
}

.btn-outline {
	background-color: transparent;
	color: inherit;
	border: 1px solid var(--line);
	transition: border .3s ease;
}

.btn-outline:hover {
	border-color: var(--fg);
	color: inherit;
}

@media (max-width: 1199px) {

	.footer_cols .col{
		flex: 0 0 auto;
		width: calc(50% - 1rem);
	}

}
@media (max-width: 900px) {
	.nav ul {
		display: none;
	}

	.grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.step:nth-child(2) {
		border-right: 0;
	}

	.step:nth-child(3) {
		padding-left: 0;
	}

	.step {
		border-bottom: 1px solid var(--line);
		padding-bottom: 28px;
	}

	.ind {
		grid-template-columns: 1fr;
	}

	.footer_cols .col{
		flex: 0 0 auto;
		width: 100%;
	}
	.footer_legal{
		flex-direction: column;
		gap: 1.5rem
	}

}

@media (max-width: 600px) {
	.grid {
		grid-template-columns: 1fr;
	}

	.steps {
		grid-template-columns: 1fr;
	}

	.step {
		padding-left: 0;
		border-right: 0;
	}

	.nav .btn {
		padding: 10px 16px;
	}

	.spark {
		opacity: .35;
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}
}