/* Base: reinicio mínimo, tipografía y accesibilidad */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-fondo);
  color: var(--color-texto);
  font-family: var(--fuente);
  font-size: var(--texto-m);
  font-weight: var(--peso-normal);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

h1 { font-size: var(--texto-xl); line-height: 1.2; }
h2 { font-size: var(--texto-l); line-height: 1.3; font-weight: var(--peso-medio); }
h3 { font-size: var(--texto-m); font-weight: var(--peso-medio); }

ul[role="list"], ol[role="list"] {
  list-style: none;
  padding: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

/* Foco siempre visible al navegar con teclado (el neumorfismo solo no basta) */
:focus-visible {
  outline: none;
  box-shadow: var(--anillo-foco);
}

/* Cifras alineadas en montos */
.numero {
  font-family: var(--fuente-numeros);
  font-variant-numeric: tabular-nums;
}

.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enlace "saltar al contenido" para lectores de pantalla y teclado */
.saltar {
  position: absolute;
  left: var(--esp-4);
  top: -100px;
  z-index: 100;
  padding: var(--esp-3) var(--esp-4);
  border-radius: var(--radio-s);
  background: var(--color-primario);
  color: var(--color-sobre-primario);
  font-weight: var(--peso-medio);
}

.saltar:focus {
  top: var(--esp-4);
}

kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 1px 6px;
  border-radius: 6px;
  background: #eef1f5;
  border: 1px solid var(--color-borde);
  font-family: var(--fuente-numeros);
  font-size: var(--texto-xs);
  text-align: center;
}
