:root {
	--aj-header-sticky-height: 80px;
	--aj-bg: #0b0d12;
	--aj-surface: #111522;
	--aj-text: #f5f7ff;
	--aj-muted: rgba(245, 247, 255, 0.72);
	--aj-accent: #7c5cff;
	--aj-max: 1120px;
	--aj-radius: 16px;
	--aj-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	--aj-header-bg: #0f0f0f;
	--aj-ink: #0a0e14;
	--aj-offwhite: #f5f3f6;
	--aj-yellow: #efef25;
	--aj-ice: #e6f1ff;
	--aj-footer-border: rgba(230, 241, 255, 0.3);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html:focus-within {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	html,
	html:focus-within {
		scroll-behavior: auto;
	}
}

#contacto {
	scroll-margin-top: calc(var(--aj-header-sticky-height, 80px) + 16px);
}

/* reCAPTCHA v3: insignia oculta; el aviso legal debe mostrarse en el formulario (p. ej. clase .c7-recaptcha en CF7). */
.grecaptcha-badge {
	visibility: hidden !important;
}

/* Sección «Hablemos»: ancho con respiro lateral (home.css solo carga en portada). */
.aj-home-contact__shell {
	position: relative;
	z-index: 1;
	width: min(100% - 40px, 1440px);
	margin-inline: auto;
}

/* Enlace a agencia Rompecabeza (rompecabeza.cl): hereda color del bloque. */
a.aj-link-rompecabeza {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a.aj-link-rompecabeza:hover {
	opacity: 0.9;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji",
		"Segoe UI Emoji";
	line-height: 1.6;
	color: var(--aj-text);
	background: radial-gradient(1200px 600px at 20% -10%, rgba(124, 92, 255, 0.35), transparent 60%),
		radial-gradient(900px 500px at 90% 0%, rgba(0, 186, 255, 0.22), transparent 55%), var(--aj-bg);
		overflow-x: hidden;
}

/* Todos los h1 y h2: extrabold (800). !important ante reglas por clase en home, experiencia, columnas, etc. */
h1,
h2 {
	font-weight: 800 !important;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

.aj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 999px;
	border: 1px solid rgba(245, 247, 255, 0.18);
	text-decoration: none;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.aj-btn--primary {
	background: var(--aj-accent);
	border-color: color-mix(in oklab, var(--aj-accent) 70%, #000);
	color: #0a0e14;
}

.aj-btn--ghost {
	background: rgba(255, 255, 255, 0.03);
	color: var(--aj-text);
}

.aj-btn:hover,
.aj-btn:focus-visible {
	transform: translateY(-1px);
}

.aj-btn:focus-visible {
	outline: 2px solid rgba(245, 247, 255, 0.35);
	outline-offset: 3px;
}

.aj-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #000;
	color: #fff;
	padding: 12px 16px;
	border-radius: 12px;
	z-index: 1000;
}

.aj-skip-link:focus {
	left: 12px;
	top: 12px;
}

.aj-container {
	width: min(100% - 40px, var(--aj-max));
	margin-inline: auto;
}

.aj-container--xl {
	width: min(100% - 48px, 1440px);
}

.aj-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--aj-header-bg);
	height: var(--aj-header-sticky-height, 80px);
	display: flex;
	align-items: center;
}

.aj-header__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 18px;
	height: 100%;
	position: relative;
	z-index: 2;
}

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

.aj-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid rgba(245, 247, 255, 0.22);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--aj-text);
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.aj-nav-toggle:hover,
.aj-nav-toggle:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(245, 247, 255, 0.35);
}

.aj-nav-toggle:focus-visible {
	outline: 2px solid rgba(245, 247, 255, 0.35);
	outline-offset: 3px;
}

.aj-nav-toggle__icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px;
	height: 16px;
}

.aj-nav-toggle__icon span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
}

.aj-header.is-menu-open .aj-nav-toggle__icon span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.aj-header.is-menu-open .aj-nav-toggle__icon span:nth-child(2) {
	opacity: 0;
}

.aj-header.is-menu-open .aj-nav-toggle__icon span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.aj-header__backdrop {
	display: none;
}

.aj-header__menu {
	display: flex;
	align-items: center;
	margin-left: auto;
	gap: 24px;
}

.aj-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.aj-logo {
	display: block;
	width: 160px;
	height: 38px;
	filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	height: 36px;
	width: auto;
	display: block;
}

.aj-nav {
	display: flex;
	margin-left: 0;
}

.aj-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 24px;
}

.aj-nav__list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 22px;
	border: 1px solid var(--aj-offwhite);
	text-decoration: none;
	color: #f8f9fc;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.aj-nav__list a:hover {
	background: #ffffff;
	color: var(--aj-ink);
	border-color: #ffffff;
}

.aj-nav__list a:focus-visible {
	background: #ffffff;
	color: var(--aj-ink);
	border-color: #ffffff;
	outline: 2px solid rgba(245, 247, 255, 0.35);
	outline-offset: 3px;
}

.aj-header__contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	height: 29px;
	border-radius: 31px;
	border: 1px solid var(--aj-yellow);
	background: var(--aj-yellow);
	color: var(--aj-ink);
	font-weight: 800;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-decoration: none;
	margin-left: 0;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.aj-header__contact:hover,
.aj-header__contact:focus-visible {
	background: #000000;
	color: var(--aj-yellow);
	border-color: var(--aj-yellow);
}

.aj-header__contact:focus-visible {
	outline: 2px solid rgba(245, 247, 255, 0.35);
	outline-offset: 3px;
}

body.aj-nav-open {
	overflow: hidden;
}

@media (max-width: 959.98px) {
	.aj-nav-toggle {
		display: inline-flex;
	}

	.aj-header__backdrop {
		display: block;
		position: fixed;
		inset: 80px 0 0 0;
		z-index: 150;
		background: rgba(0, 0, 0, 0.55);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.aj-header.is-menu-open .aj-header__backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.aj-header__menu {
		position: fixed;
		top: 80px;
		right: 0;
		bottom: 0;
		left: auto;
		width: min(100%, 340px);
		z-index: 160;
		flex-direction: column;
		align-items: stretch;
		margin-left: 0;
		padding: 24px min(40px, 6vw) 32px;
		gap: 28px;
		background: var(--aj-header-bg);
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		border-left: 1px solid rgba(255, 255, 255, 0.08);
		box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(100%);
		transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	}

	.aj-header.is-menu-open .aj-header__menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0);
	}

	.aj-nav {
		width: 100%;
		flex: 1;
		min-height: 0;
	}

	.aj-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: 100%;
	}

	.aj-nav__list li {
		width: 100%;
	}

	.aj-nav__list a {
		width: 100%;
		justify-content: center;
		padding: 14px 16px;
	}

	.aj-header__contact {
		margin-left: 0;
		width: 100%;
		justify-content: center;
		flex-shrink: 0;
	}
}

.aj-main {
	padding: 44px 0 0;
}

@media (min-width: 1200px) {
	.aj-container--xl {
		width: min(100% - 192px, 1440px);
	}
}

/* Footer — Figma nodo 203:5858 */
.aj-footer {
	padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
	border-top: 2px solid var(--aj-footer-border);
	background: var(--aj-header-bg);
	color: var(--aj-ice);
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.aj-footer__inner {
	max-width: min(100%, 976px);
}

.aj-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px 40px;
	align-items: start;
}

@media (min-width: 768px) {
	.aj-footer__grid {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
	}

	.aj-footer__brand {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
	}

	.aj-footer__meta {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: start;
		text-align: right;
	}

	.aj-footer__social {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: end;
		margin-top: 8px;
	}
}

.aj-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.aj-footer__logo-link {
	display: block;
	text-decoration: none;
	line-height: 0;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
	border-radius: 2px;
}

.aj-footer__logo-link:focus-visible {
	outline: 2px solid var(--aj-yellow);
	outline-offset: 4px;
}

.aj-footer__logo {
	display: block;
	width: 192px;
	max-width: min(192px, 100%);
	height: auto;
}

.aj-footer__copyright {
	margin: 0;
	font-size: 14px;
	line-height: 1.43;
	letter-spacing: -0.01em;
	color: var(--aj-ice);
	opacity: 0.5;
}

.aj-footer__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

@media (min-width: 768px) {
	.aj-footer__meta {
		align-items: flex-end;
	}
}

.aj-footer__years {
	margin: 0;
	font-size: 14px;
	line-height: 1.43;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--aj-yellow);
	text-transform: uppercase;
	white-space: nowrap;
}

.aj-footer__tagline {
	margin: 0;
	font-size: 14px;
	line-height: 1.43;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--aj-ice);
	opacity: 0.7;
	text-align: inherit;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.aj-footer__tagline {
		white-space: normal;
		max-width: 100%;
	}
}

.aj-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 767px) {
	.aj-footer__social {
		justify-content: flex-start;
	}
}

.aj-footer__social li {
	margin: 0;
	padding: 0;
}

.aj-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.aj-footer__social-link:hover,
.aj-footer__social-link:focus-visible {
	opacity: 0.88;
	transform: translateY(-1px);
}

.aj-footer__social-link:focus-visible {
	outline: 2px solid var(--aj-yellow);
	outline-offset: 3px;
}

.aj-footer__social-link img {
	display: block;
	width: 29px;
	height: 29px;
	object-fit: contain;
}

