/*
 * Base: reset mínimo, fuentes self-hosted y tipografía global.
 * La primera regla es la red de seguridad de la agencia contra el scroll horizontal en móvil:
 * en los dos selectores, hidden y luego clip (ver ~/.claude/CLAUDE.md).
 */
html, body { overflow-x: hidden; overflow-x: clip; }

@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/outfit-var.woff2') format('woff2');
}
@font-face {
	font-family: 'Noto Sans';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/noto-sans-var.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.5;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-brand); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-brand-dark); outline-offset: 2px; border-radius: 2px; }
.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; }
/* El «skip to content» tiene que verse al tabular */
a.sr-only:focus-visible { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; overflow: visible; background: var(--c-white); color: var(--c-brand-dark); border: 2px solid var(--c-brand); border-radius: var(--r-sm); }

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 0.5em;
	color: var(--c-ink);
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); line-height: 1.25; }
h5 { font-size: var(--fs-h5); line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--c-muted); }
.eyebrow {
	font-family: var(--font-display);
	font-size: var(--fs-small);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-brand-dark);
	margin: 0 0 var(--sp-sm);
}
.label {
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-small); }

/* Prosa de los bloques de contenido (salida de cs_md_to_html) */
.prose { max-width: 72ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose h3 { margin-top: 1.6em; }
.prose strong { font-weight: 700; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); margin: 0 0 1.2em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.prose th { font-family: var(--font-display); font-weight: 600; background: var(--c-grey-light); }
.prose blockquote { margin: 0 0 1.2em; padding: var(--sp-md) var(--sp-lg); border-left: 3px solid var(--c-brand); background: var(--c-brand-light); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Nota de maqueta: solo se imprime en local (CS_SHOW_LAYOUT) */
.layout-note {
	font-size: var(--fs-small);
	color: #8a4b00;
	background: #fff4e0;
	border: 1px dashed var(--c-accent);
	border-radius: var(--r-sm);
	padding: var(--sp-xs) var(--sp-sm);
	margin: 0 0 var(--sp-md);
}
