*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--surface-bg);
  color: var(--text-primary);
  font-family: var(--font-n3-family);
}

body {
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--surface-bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

/* El escenario base de la SPA */
.nao-stage {
  width: 100%;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Ocultar elementos visualmente para accesibilidad screen-readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}