:root {
  --shell-blue: #013AA1;
  --shell-ink: #0f172a;
  --shell-muted: #475569;
}

[data-public-shell] {
  min-height: 100vh;
  box-sizing: border-box;
  margin: 0;
  padding: 24px;
  color: var(--shell-ink);
  background:
    radial-gradient(circle at 78% 18%, rgba(85, 168, 242, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-shell__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto;
}

.public-shell__brand strong { font-size: 20px; letter-spacing: -0.03em; }
.public-shell__brand span { color: var(--shell-muted); font-size: 12px; font-weight: 650; }

.public-shell__hero {
  display: flex;
  min-height: calc(100vh - 110px);
  max-width: 760px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.public-shell__eyebrow {
  margin: 0 0 16px;
  color: var(--shell-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.public-shell h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.public-shell__body {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--shell-muted);
  font-size: clamp(17px, 3vw, 20px);
  line-height: 1.55;
}

.public-shell__cta {
  display: inline-flex;
  min-height: 48px;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  color: #fff;
  background: var(--shell-blue);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(40, 114, 161, 0.22);
}

.public-shell__cta:hover { background: #012D7D; }
.public-shell__cta:focus-visible { outline: 2px solid var(--shell-blue); outline-offset: 4px; }

[data-shell-route='/'] {
  background: var(--shell-blue);
  color: #fff;
}
[data-shell-route='/'] .public-shell__brand {
  max-width: none;
  margin: -24px -24px 0;
  padding: 24px;
  background: #fff;
  color: var(--shell-ink);
}
[data-shell-route='/'] .public-shell__eyebrow,
[data-shell-route='/'] .public-shell__body { color: #fff; }
[data-shell-route='/'] .public-shell__cta { background: #fff; color: var(--shell-blue); }
[data-shell-route='/'] .public-shell__cta:hover { background: #eff6ff; }
[data-shell-route='/'] .public-shell__cta:focus-visible { outline-color: #fff; }

html:not([data-shell-language='es']) [data-shell-es],
html[data-shell-language='es'] [data-shell-en] { display: none; }

@media (max-width: 480px) {
  [data-public-shell] { padding: 20px; }
  [data-shell-route='/'] .public-shell__brand { margin: -20px -20px 0; padding: 20px; }
  .public-shell__hero { min-height: calc(100vh - 90px); }
  .public-shell h1 { font-size: clamp(38px, 13vw, 54px); }
}

@media (prefers-color-scheme: dark) {
  [data-public-shell] {
    color: #f8fafc;
    background:
      radial-gradient(circle at 78% 18%, rgba(85, 168, 242, 0.16), transparent 34%),
      #020617;
  }
  .public-shell__brand span,
  .public-shell__body { color: #cbd5e1; }
  [data-shell-route='/'] { background: var(--shell-blue); color: #fff; }
  [data-shell-route='/'] .public-shell__body { color: #fff; }
  [data-shell-route='/'] .public-shell__brand span { color: var(--shell-muted); }
}
