/* ==== RESET ==== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

img,
picture,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

table {
	border-collapse: collapse;
}

/* ==== TOKENS ==== */
:root {
	/* colores */
	--c-night: #1D2440;
	--c-night-2: #232C4E;
	--c-body: #F4F6F9;
	--c-text: #202638;
	--c-text-soft: #4B5471;
	--c-text-inv: #EDF1F7;
	--c-text-inv-soft: #AEB8D6;
	--c-accent: #22B8D1;
	--c-accent-soft: rgba(34, 184, 209, .14);
	--c-line: #D9DEE7;
	--c-line-inv: rgba(237, 241, 247, .16);
	--c-surface: #FFFFFF;
	--c-unused-marker: #2E3A63;

	/* espaciados */
	--s-2: .5rem;
	--s-3: .875rem;
	--s-4: 1.25rem;
	--s-5: 2rem;
	--s-6: 2.75rem;
	--s-7: 4rem;
	--s-8: 5.5rem;
	--s-9: 8rem;

	/* tipografia */
	--f-display: "Familjen Grotesk", "Segoe UI", Arial, sans-serif;
	--f-text: "Source Serif 4", Georgia, "Times New Roman", serif;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none;
		animation-duration: .01ms;
		animation-iteration-count: 1;
	}
}

/* ==== TIPOGRAFIA ==== */
@font-face {
	font-family: "Familjen Grotesk";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/familjen-grotesk-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/source-serif4-latin.woff2") format("woff2");
}

body {
	background: var(--c-body);
	color: var(--c-text);
	font-family: var(--f-text);
	font-size: 1.05rem;
	line-height: 1.6;
}

h1,
h2,
h3 {
	font-family: var(--f-display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: none;
}

h1 {
	font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
}

h2 {
	font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
}

h3 {
	font-size: clamp(1.15rem, 1.02rem + .6vw, 1.4rem);
}

p {
	max-width: 62ch;
}

.sr-only {
	position: absolute;
	overflow: hidden;
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	white-space: nowrap;
}

/* ==== ESTRUCTURA ==== */
.dl-container {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: var(--s-5);
}

.dl-skipnav {
	position: fixed;
	top: -120px;
	left: var(--s-4);
	z-index: 40;
	padding: var(--s-3) var(--s-4);
	border-radius: 8px;
	background: var(--c-night);
	color: var(--c-text-inv);
	font-family: var(--f-display);
	transition: top .18s ease;
}

.dl-skipnav:focus-visible {
	top: var(--s-3);
}

/* ==== CABECERA Y NAVEGACION ==== */
.dl-topbar-outer {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--c-body);
	border-bottom: 1px solid var(--c-line);
}

.dl-topbar-wrap {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: var(--s-5);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.dl-topbar {
	order: 2;
	display: flex;
	align-items: center;
	gap: var(--s-3);
	padding-block: var(--s-3);
	pointer-events: none;
}

.dl-topbar > * {
	pointer-events: auto;
}

.dl-wordmark {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	font-family: var(--f-display);
	font-weight: 500;
	font-size: 1.1rem;
	color: var(--c-text);
}

.dl-wordmark-mark {
	width: 30px;
	height: 30px;
	border-radius: 8px;
}

.dl-mobile-toggle {
	position: relative;
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
}

.dl-mobile-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	background: var(--c-text);
}

.dl-nav {
	order: 1;
}

.dl-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-5);
}

.dl-nav a {
	padding-block: var(--s-3);
	font-family: var(--f-display);
	font-size: .95rem;
	color: var(--c-text-soft);
	border-bottom: 2px solid transparent;
}

.dl-nav a:hover,
.dl-nav a:focus-visible {
	color: var(--c-text);
	border-bottom-color: var(--c-accent);
}

.dl-nav a.dl-nav-cta {
	padding: var(--s-2) var(--s-4);
	border: 1px solid var(--c-line);
	border-radius: 999px;
}

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

	.dl-mobile-toggle {
		display: flex;
	}

	.dl-topbar {
		width: 100%;
		justify-content: space-between;
	}
}

/* ==== MENÚ MÓVIL ==== */
.dl-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 30;
	display: none;
	flex-direction: column;
	justify-content: center;
	padding: var(--s-7) var(--s-5);
	background: var(--c-night);
}

.dl-mobile-menu.js-open {
	display: flex;
}

.dl-mobile-close {
	position: absolute;
	top: var(--s-4);
	right: var(--s-4);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	font-family: var(--f-display);
	font-size: 1.6rem;
	color: var(--c-text-inv);
}

.dl-mobile-menu ul {
	display: flex;
	flex-direction: column;
	gap: var(--s-5);
	margin-bottom: var(--s-7);
}

.dl-mobile-menu a {
	font-family: var(--f-display);
	font-size: 1.6rem;
	color: var(--c-text-inv);
}

.dl-mobile-contact a {
	color: var(--c-accent);
	font-family: var(--f-display);
}

/* ==== PIE DE PÁGINA ==== */
.dl-footer {
	border-top: 1px solid var(--c-line);
	padding-block: var(--s-5);
}

.dl-footer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-3) var(--s-4);
	font-size: .9rem;
	color: var(--c-text-soft);
}

.dl-footer-row a {
	color: var(--c-text);
	border-bottom: 1px solid var(--c-line);
}

.dl-footer-row a:hover,
.dl-footer-row a:focus-visible {
	color: var(--c-accent);
	border-bottom-color: var(--c-accent);
}

.dl-footer-sep {
	color: var(--c-line);
}

@media (min-width: 1800px) {
}
