/*
 * Base — reset, tipografía, accesibilidad. Sin selectores de componentes.
 */

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

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
	unicode-range:
		U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
		U+20AD-20C0, U+2113;
}

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

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

body {
	margin: 0;
	background: var(--color-bg-base);
	color: var(--color-text-secondary);
	font-family: var(--font-family-base);
	font-size: var(--text-base);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-body);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--space-3);
	color: var(--color-text-primary);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-heading);
}

h1 {
	font-size: var(--text-2xl);
}

.page-title {
	margin: 0 0 var(--space-3);
	color: var(--color-text-primary);
	font-size: var(--text-2xl);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-heading);
}

h2 {
	font-size: var(--text-2xl);
}

h3 {
	font-size: var(--text-xl);
}

p {
	margin: 0 0 var(--space-4);
}

a {
	color: var(--color-accent);
	text-decoration: none;
}

a:hover {
	color: var(--color-accent-hover);
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

button {
	font-family: inherit;
}

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

/* Accesibilidad: foco visible consistente en todo el sitio, solo vía teclado */
:focus {
	outline: none;
}

:focus-visible {
	outline: none;
	box-shadow: var(--shadow-focus);
	border-radius: var(--radius-sm);
}

/* Tamaño táctil mínimo para cualquier elemento interactivo */
button,
a,
input,
select {
	min-height: 44px;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--space-3);
	z-index: var(--z-toast);
	padding: var(--space-2) var(--space-4);
	background: var(--color-accent);
	color: var(--color-text-primary);
	border-radius: var(--radius-sm);
	transition: top var(--duration-fast) var(--ease-standard);
}

.skip-link:focus {
	top: var(--space-3);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
