/*
 * Base — reset, document defaults, layout primitives, shared components and
 * accessibility helpers. Section-specific styles live in assets/css/sections/.
 */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-weight: var(--fw-regular);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--fw-medium); }

/* ---------- Type utilities (map to Figma styles) ---------- */
.t-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.t-h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }
.t-sub1 { font-size: var(--fs-sub1); line-height: var(--lh-sub1); }
.t-sub2 { font-size: var(--fs-sub2); line-height: var(--lh-sub2); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-body-s { font-size: var(--fs-body-s); line-height: var(--lh-body-s); }
.t-caption { font-size: var(--fs-caption); line-height: var(--lh-caption); }

/* Section eyebrow label ("OBSERVATORIO", "TURISMO"…) */
.eyebrow {
	font-size: var(--fs-eyebrow);
	line-height: var(--lh-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	font-weight: var(--fw-regular);
	text-transform: uppercase;
	color: var(--color-accent);
}

/* ---------- Layout ---------- */
/* Content column: --container-max (1360) is the CONTENT width; the inline
   padding lives OUTSIDE it (max-width += 2×pad) so a .container's content edge
   matches the full-bleed --gutter sections (and the Figma navbar at x=40),
   instead of being inset by an extra --container-pad. */
.container {
	width: 100%;
	max-width: calc(var(--container-max) + 2 * var(--container-pad));
	margin-inline: auto;
	padding-inline: var(--container-pad);
}
.section { padding-block: clamp(48px, 8vw, 96px); }

/* ---------- Button ("Botón 01") ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	padding: 9px 20px;
	min-height: 40px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-size: var(--fs-body);
	font-weight: var(--fw-medium);
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--dur) var(--ease),
		color var(--dur) var(--ease),
		border-color var(--dur) var(--ease),
		transform var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--bida-green); color: var(--white); font-weight: var(--fw-semibold); }
.btn--primary:hover { background: var(--bida-blue); border-color: var(--bida-blue); }
.btn--light { background: var(--white); color: var(--bida-blue); }
.btn--light:hover { background: var(--neutral-50); }
.btn--outline { background: transparent; border-color: currentColor; color: var(--bida-blue); }
.btn--outline:hover { background: var(--bida-blue); color: var(--white); }
.btn--ghost-light { background: rgba(255, 255, 255, 0.12); border-color: var(--neutral-50); color: var(--neutral-50); }
.btn--ghost-light:hover { background: var(--white); color: var(--bida-blue); border-color: var(--white); }
.btn__icon { width: 1em; height: 1em; flex: none; }

/* ---------- Accessibility ---------- */
.skip-link {
	position: absolute;
	left: var(--space-4);
	top: -100px;
	z-index: 1000;
	padding: var(--space-3) var(--space-4);
	background: var(--bida-blue);
	color: var(--white);
	border-radius: var(--radius-sm);
	transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

.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;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--bida-green);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

@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;
	}
}
