:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.55;
  color: #17233c;
  background: #f4f7fc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, #dceaff 0, transparent 32rem),
    linear-gradient(135deg, #f7faff 0%, #eef3fb 100%);
}
main { max-width: 56rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
main::before {
  content: "SABIO";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 1.3rem;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #4169e1, #2742a4);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  box-shadow: 0 .7rem 1.5rem #3154b433;
}
h1 { max-width: 40rem; margin: 0 0 .8rem; color: #152a61; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin: 0; color: #172d68; font-size: 1.35rem; line-height: 1.2; }
p { margin: .8rem 0; }
main > p { max-width: 48rem; color: #53627c; }
main > p:first-of-type { font-size: 1.08rem; color: #344563; }
a { color: #2956ca; font-weight: 650; }
section {
  margin: 1.5rem 0;
  padding: 1.65rem;
  border: 1px solid #dbe3f2;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 .8rem 2.2rem #2b4f9c12;
}
section h2 { display: flex; gap: .7rem; align-items: center; }
section h2::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e8efff;
  color: #3159c7;
  font-size: 1rem;
}
fieldset { border: 0; padding: 0; margin: 1.25rem 0 0; }
label { display: block; margin: 0 0 .4rem; color: #263858; font-size: .92rem; font-weight: 700; }
input {
  display: block;
  width: 100%;
  max-width: 34rem;
  padding: .82rem .95rem;
  border: 1px solid #b9c7df;
  border-radius: .7rem;
  background: #fbfdff;
  color: #17233c;
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: #4169e1; box-shadow: 0 0 0 .22rem #4169e133; outline: 0; }
button {
  margin-top: .7rem;
  padding: .78rem 1.05rem;
  border: 0;
  border-radius: .7rem;
  background: #3159c7;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 .35rem .8rem #3159c733;
  transition: background .15s, transform .15s, box-shadow .15s;
}
button:hover:not(:disabled) { background: #2448ae; transform: translateY(-1px); box-shadow: 0 .5rem 1rem #3159c744; }
button:disabled { cursor: wait; opacity: .6; }
.danger { background: #bd3347; box-shadow: 0 .35rem .8rem #bd334733; }
.danger:hover:not(:disabled) { background: #9e2639; }
#reset {
  margin: .3rem 0 0;
  background: transparent;
  color: #3159c7;
  box-shadow: none;
  font-weight: 650;
}
#reset:hover:not(:disabled) { background: #e8efff; }
.language-switcher { display: flex; justify-content: flex-end; gap: .35rem; margin-bottom: 1rem; }
.language-switcher button { margin: 0; padding: .35rem .65rem; border: 1px solid #b9c7df; background: #fff; color: #3159c7; box-shadow: none; font-size: .82rem; }
.language-switcher button[aria-pressed="true"] { background: #3159c7; color: #fff; }
[hidden] { display: none !important; }
#status {
  margin: 1.3rem 0;
  padding: .9rem 1rem;
  border: 1px solid #cbd8f0;
  border-radius: .75rem;
  background: #edf3ff;
  color: #29457f;
  white-space: pre-line;
}
noscript { display: block; margin-top: 1rem; padding: 1rem; border-radius: .75rem; background: #fff3d6; color: #6c4b00; }
:focus-visible { outline: 3px solid #7193ed; outline-offset: 3px; }
@media (max-width: 38rem) {
  main { padding: 2rem 1rem 3rem; }
  section { padding: 1.2rem; border-radius: 1rem; }
}
