/* Solparquet Gestión · 2/5 BASE: reinicio, tipografía, foco, utilidades. */
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px) }
body { margin: 0; background: var(--cream); color: var(--ink); font: var(--fs-base)/var(--lh) var(--font-body); min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.012em; line-height: var(--lh-tight); margin: 0 0 .5em; color: var(--ink) }
h1 { font-size: var(--fs-2xl) } h2 { font-size: var(--fs-xl) } h3 { font-size: var(--fs-lg) } h4 { font-size: var(--fs-base) }
p { margin: 0 0 .75em }
a { color: var(--link); text-decoration: none; text-underline-offset: .18em }
a:hover { color: var(--link-hover); text-decoration: underline }
img, svg { max-width: 100%; height: auto }
svg { flex-shrink: 0 }
code { overflow-wrap: anywhere; font-size: .9em; background: var(--cream-2); padding: .05em .35em; border-radius: 6px }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0 }
details > summary { cursor: pointer }
[hidden] { display: none !important }

/* Foco visible: anillo de 3 px con separación (>= 3:1 sobre cualquier fondo claro de la app) */
:focus { outline: none }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px }

/* Utilidades */
.muted { color: var(--ink-soft) } .faint { color: var(--ink-faint) }
.small { font-size: var(--fs-sm) } .xsmall { font-size: var(--fs-xs) }
.right { text-align: right } .center { text-align: center } .nowrap { white-space: nowrap } .num { font-variant-numeric: tabular-nums }
.hide { display: none !important }
.sr, .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 }
.stack > * + * { margin-top: var(--s-4) }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center }
.spread { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between }
.grow { flex: 1 1 auto; min-width: 0 }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

/* Icono SVG en línea: hereda el color del texto y se alinea con él */
.i { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.25em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.i-sm { width: 1em; height: 1em; vertical-align: -.15em }
.i-lg { width: 1.5em; height: 1.5em }

/* Enlace para saltar al contenido */
.skip { position: absolute; left: var(--s-3); top: -100px; z-index: 100; background: var(--ink); color: #FFFFFF; padding: .7rem 1rem; border-radius: var(--r-sm); font-weight: 600 }
.skip:focus { top: var(--s-3); color: #FFFFFF; text-decoration: none }

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