body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
}

h1 { font-size: var(--fs-hero); font-weight: var(--fw-bold); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-title); font-weight: var(--fw-bold); line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-subtitle); font-weight: var(--fw-semibold); line-height: 1.3; }

.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-caption { font-size: var(--fs-caption); }
.text-micro { font-size: var(--fs-micro); }

.money {
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen-pad {
  padding: var(--space-6) var(--space-4) var(--space-12);
  max-width: 480px;
  /* `margin: auto` (no `0 auto`): centra horizontal Y verticalmente dentro de
     `.screen` (flex column, 100dvh). En pantallas altas (desktop) el contenido
     queda centrado en vez de pegado arriba con un vacío enorme; cuando el
     contenido supera el viewport los márgenes colapsan y scrollea normal. */
  margin: auto;
  width: 100%;
}

.screen-header { margin-bottom: var(--space-6); }
.screen-header h1 { margin-bottom: var(--space-2); }
.screen-header p { color: var(--text-tertiary); font-size: var(--fs-body); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.stack-sm > * + * { margin-top: var(--space-2); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
