/* Foundation acotado al shell interno y autenticación compartida. */
html,
body {
  margin: 0;
  padding: 0;
}

body:has(.internal-shell),
body.auth-page {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(.internal-shell, .auth-page) *,
:where(.internal-shell, .auth-page) *::before,
:where(.internal-shell, .auth-page) *::after {
  box-sizing: border-box;
}

:where(.internal-shell, .auth-page) a {
  color: inherit;
  text-decoration: none;
}

:where(.internal-shell, .auth-page) button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

:where(.internal-shell, .auth-page) :where(img, svg) {
  display: block;
  max-width: 100%;
}

:where(.internal-shell, .auth-page) :where(h1, h2, h3, h4) {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

:where(.internal-shell, .auth-page) p {
  margin: 0;
}

:where(.internal-shell, .auth-page) .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

:where(.internal-shell, .auth-page) .brand--logo .brand__img {
  display: block;
  width: auto;
  height: 28px;
}

:where(.internal-shell, .auth-page) .brand--logo .brand__sub {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

:where(.internal-shell, .auth-page) :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wm-azul-oscuro) 24%, transparent);
  outline-offset: 2px;
}

:where(.internal-shell, .auth-page) .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
