/* Reinicio, tipografía base, contenedor y utilidades. */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-300);
	line-height: var(--lh-body);
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img, picture { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
iframe { border: 0; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
p { margin: 0 0 var(--sp-2); }
button { font: inherit; cursor: pointer; }

a { color: var(--cyan-700); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover, a:focus { color: var(--navy); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-body);
	font-weight: 700;
	line-height: 1.15;
	color: var(--navy);
	margin: var(--sp-3) 0 var(--sp-2);
	letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-600); }
h2 { font-size: var(--fs-500); }
h3 { font-size: var(--fs-400); }
h4 { font-size: var(--fs-300); margin-top: var(--sp-2); }
h5 { font-size: var(--fs-200); margin-top: var(--sp-2); }

strong, b { font-weight: 700; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

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

.skip-link {
	position: absolute; left: 12px; top: -80px; z-index: 2000;
	background: var(--white); color: var(--navy);
	padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.icon { width: 1em; height: 1em; flex: none; }

/* Revelado suave al entrar en pantalla (reveal.js); sin JavaScript todo es visible */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
