/* Damico — base reset, tipografía, container. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; }

body {
	font-family: var(--font-body);
	font-size: var(--body);
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	margin: 0;
	letter-spacing: -0.01em;
	color: var(--ink);
}
h1 { font-weight: 700; font-size: var(--h1); line-height: 1.04; }
h2 { font-weight: 700; font-size: var(--h2); line-height: 1.1;  }
h3 { font-weight: 600; font-size: var(--h3); line-height: 1.3;  }
h4 { font-weight: 500; font-size: var(--h4); line-height: 1.35; }

p { margin: 0 0 1em; }
small { font-size: var(--body-sm); }

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--accent); }

button {
	font: inherit;
	cursor: pointer;
	border: 0;
	background: none;
	color: inherit;
	padding: 0;
}

input, select, textarea {
	font: inherit;
	color: inherit;
	background: var(--paper);
}

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

img.img-fade { opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
img.img-fade.loaded { opacity: 1; }

::selection { background: var(--accent); color: #fff; }

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: var(--space-7) 0;
}

/* Container — el ancho útil del sitio. */
.container {
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
}

.container--narrow { max-width: 880px; }
.container--wide   { max-width: 1600px; }

/* Stack vertical genérico */
.section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
.section--soft  { background: var(--bg-soft); }
.section--tonal { background: var(--bg-tonal); }
.section--tonal-strong { background: var(--bg-tonal-strong); }
.section--ink   { background: var(--ink); color: #fff; }

/* Eyebrow (gold uppercase mini-headline) */
.eyebrow {
	display: inline-block;
	font: 500 var(--eyebrow)/1 var(--font-body);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: var(--space-3);
}

/* Visually hidden (accesible, oculto visualmente). */
.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: 8px 16px;
	z-index: 10000;
}
.skip-link:focus { left: 16px; top: 16px; }

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