/*
 * base.css — tipografías, reset y utilidades compartidas.
 */

/* ---------- Tipografía self-hosted (sin CDN, por RGPD) ---------- */

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lato-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lato-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/lato-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/lato-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Figma usa "Lato ExtraBold" (800) en los títulos del pie; Google Fonts sirve
   900 como peso superior disponible, que es el que mapeamos. */
@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 800 900;
	font-display: swap;
	src: url("../fonts/lato-900-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 800 900;
	font-display: swap;
	src: url("../fonts/lato-900-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset ---------- */

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

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

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--fc-white);
	color: var(--fc-ink);
	font-family: var(--fc-font);
	font-size: var(--fc-fs-body);
	font-weight: var(--fc-weight-regular);
	line-height: var(--fc-lh-heading);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
ul,
ol {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

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

a {
	color: inherit;
}

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

/* ---------- Foco visible ---------- */

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: var(--fc-focus-ring);
	outline-offset: var(--fc-focus-offset);
}

/* Sobre fondos oscuros el anillo azul corporativo no se ve. */
:where(.fc-hero, .fc-form) :where(a, button, input):focus-visible {
	outline-color: var(--fc-lime);
}

/* ---------- Utilidades ---------- */

/* El max-width incluye los gutters para que el ancho útil coincida con el del
   diseño (1110px de contenido, igual que los frames de Figma). */
.fc-container {
	width: 100%;
	max-width: calc(var(--fc-container) + var(--fc-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--fc-gutter);
}

.fc-container--wide {
	max-width: calc(var(--fc-container-wide) + var(--fc-gutter) * 2);
}

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

.fc-skip-link {
	position: absolute;
	top: -100px;
	left: var(--fc-gutter);
	z-index: 100;
	padding: 12px 20px;
	background: var(--fc-navy);
	color: var(--fc-white);
	font-weight: var(--fc-weight-bold);
	text-decoration: none;
	border-radius: 0 0 var(--fc-radius-sm) var(--fc-radius-sm);
}

.fc-skip-link:focus {
	top: 0;
}

/* ---------- Botones ---------- */

.fc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border: 0;
	border-radius: var(--fc-radius-sm);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-heading);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease,
		border-color 0.18s ease, transform 0.18s ease;
}

.fc-btn:hover {
	transform: translateY(-1px);
}

.fc-btn--primary {
	background: var(--fc-cyan);
	color: var(--fc-navy);
}

.fc-btn--primary:hover {
	background: #3fbcc9;
}

.fc-btn--lime {
	background: var(--fc-lime);
	color: var(--fc-navy);
}

.fc-btn--lime:hover {
	background: #bcc93f;
}

.fc-btn--ghost {
	background: transparent;
	border: 1.758px solid var(--fc-white);
	color: var(--fc-neutral-6);
}

.fc-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

.fc-btn--hero {
	padding: 11px 14px;
	font-size: clamp(1.125rem, 1.03rem + 0.26vw, 1.375rem); /* 18 → 22px */
	min-height: 50px;
}

/* ---------- Píldora de título de sección ---------- */

.fc-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 19px;
	background: var(--fc-navy);
	color: var(--fc-white);
	font-size: var(--fc-fs-h3);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-heading);
	text-align: center;
	min-height: 54px;
}

/* ---------- Círculo de icono ---------- */

.fc-icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: var(--fc-radius-pill);
}

.fc-icon-circle--cyan {
	background: var(--fc-cyan);
}

.fc-icon-circle--lime {
	background: var(--fc-lime);
}

.fc-icon-circle--navy {
	background: var(--fc-navy);
}
