.atlas-loading {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: var(--bg);
  color: var(--ink);
}
.loading-sidebar {
  padding: 34px 28px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.loading-sidebar .brand {
  margin-bottom: 50px;
}
.loading-line {
  height: 10px;
  width: 80%;
  border-radius: 8px;
  background: var(--line);
  opacity: 0.6;
  margin: 18px 0;
}
.loading-line.short {
  width: 50%;
}
.loading-nav-placeholder {
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  margin: 22px 0;
}
.loading-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.loading-topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.loading-topbar .loading-line {
  width: 150px;
}
.loading-topbar-circle {
  width: 30px;
  height: 30px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.loading-center {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px;
  position: relative;
  isolation: isolate;
}
.loading-center::before {
  content: "";
  position: absolute;
  width: min(600px, 95%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  z-index: -1;
}
.loading-card {
  width: min(460px, 100%);
  text-align: center;
  padding: 40px 38px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.loading-orbit {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto 22px;
}
.loading-orbit::before,
.loading-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.loading-orbit::after {
  inset: 13px;
  border-style: dashed;
  opacity: 0.65;
}
.loading-orbit .brand-mark {
  width: 50px;
  height: 52px;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  transform: rotate(-8deg);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 22%, transparent);
}
.loading-orbit-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: atlas-orbit 3s linear infinite;
}
.loading-orbit-track::before {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  background: var(--accent);
  border: 2px solid var(--surface);
  border-radius: 50%;
}
.loading-card .eyebrow {
  color: var(--accent);
  font-size: 10px;
  margin-bottom: 10px;
}
.loading-card h1 {
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.loading-card p {
  font-size: 13px;
  margin: 10px auto 22px;
  max-width: 290px;
}
.loading-progress {
  height: 3px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line);
  width: 110px;
  margin: 0 auto;
}
.loading-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--accent);
  animation: atlas-loading 1.8s ease-in-out infinite;
}
.loading-footnote {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.loading-footnote span:first-child {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}
html[lang="es"] .atlas-loading [lang="en"],
html[lang="en"] .atlas-loading [lang="es"] {
  display: none;
}
.route-loading .atlas-loading {
  display: block;
  min-height: calc(100vh - 155px);
}
.route-loading .loading-sidebar,
.route-loading .loading-topbar {
  display: none;
}
.route-loading .loading-center {
  min-height: calc(100vh - 155px);
  padding: 20px;
}
@keyframes atlas-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes atlas-loading {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(360%);
  }
}
@media (max-width: 700px) {
  .atlas-loading {
    grid-template-columns: 1fr;
  }
  .loading-sidebar {
    display: none;
  }
  .loading-center {
    padding: 24px;
  }
  .loading-card {
    padding: 32px 22px 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-orbit-track,
  .loading-progress::after {
    animation: none;
  }
  .loading-progress::after {
    width: 100%;
    opacity: 0.5;
  }
}
