/* Variables de diseño, reset y tipografía global */
:root {
  /* Marca */
  --grn: #01bf63;
  --acc: #557bf2;
  --gray: #acb4b1;
  --grn-text: #0a8a53;
  --on-brand: #04110b;
  /* Superficies y texto */
  --bg: #fff;
  --card: #fff;
  --white: #fff;
  --onacc: #fff;
  --ink: #0f1b26;
  --mut: #5b6877;
  --line: #dde3ea;
  --soft: #f1f5f9;
  /* Degradados */
  --gradient-brand: linear-gradient(90deg, var(--grn), var(--acc));
  --gradient-progress: linear-gradient(90deg, var(--acc), var(--grn));
  --gradient-edge: linear-gradient(180deg, var(--acc), var(--grn) 52%, var(--gray));
  /* Tipografía */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --text-xs: 13.5px;
  --text-sm: 14px;
  --text-md: 14.5px;
  --text-base: 15px;
  --text-lg: 16px;
  /* Radios */
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-card: 18px;
  --radius-xl: 20px;
  --radius-pill: 99px;
  /* Sombras y foco */
  --shadow-tab-active: inset 0 -3px 0 var(--grn), 0 1px 0 var(--line);
  --focus-ring: 3px solid var(--acc);
  color-scheme: light;
}

html {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--text-lg) / 1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}

h2 {
  font: 700 26px / 1.15 var(--serif);
  margin: 0 0 6px;
}

label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin: 14px 0 6px;
}

.hint {
  color: var(--mut);
  font-size: var(--text-md);
  margin: 0 0 16px;
}
.hint--spaced {
  margin-top: 12px;
}
.hint--centered {
  text-align: center;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
