/* Orion — alineado con la UI del launcher (oscuro, paneles, acento violeta) */

:root {
  --bg: #0a0b10;
  --bg-elevated: #10121a;
  --bg-panel: #13151e;
  --text: #ececf1;
  --text-muted: #9499a8;
  --accent: #a78bfa;
  --accent-dim: #7c6bb5;
  --accent-hover: #c4b5fd;
  --neon: rgba(167, 139, 250, 0.35);
  --border: rgba(255, 255, 255, 0.07);
  --radius-panel: 14px;
  --radius-btn: 10px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --space: clamp(0.85rem, 2.2vw, 1.5rem);
  --max-width: 96rem;
  --rail-width: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(182, 159, 244, 0.9) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      ellipse 100% 70% at 50% -30%,
      rgba(167, 139, 250, 0.09),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      rgba(16, 18, 29, 0.16) 0%,
      rgba(16, 18, 29, 0.16) 49.9%,
      rgba(167, 139, 250, 0.07) 49.97%,
      rgba(167, 139, 250, 0.07) 50.03%,
      rgba(10, 12, 22, 0.14) 50.1%,
      rgba(10, 12, 22, 0.14) 100%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 0%,
      rgba(124, 107, 181, 0.06),
      transparent 45%
    );
}

/* Scrollbar (navegación lateral derecha) */

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(170, 145, 238, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(205, 186, 255, 0.62);
  box-shadow:
    0 0 0 1px rgba(223, 208, 255, 0.42) inset,
    0 0 14px -3px rgba(167, 139, 250, 0.75);
  transition: box-shadow 0.1s ease, background 0.1s ease, border-color 0.1s ease;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background: rgba(228, 214, 255, 1);
  border-color: rgba(242, 233, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(247, 240, 255, 0.9) inset,
    0 0 0 2px rgba(217, 200, 255, 0.55),
    0 0 26px 0 rgba(206, 186, 255, 0.95);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

strong {
  color: var(--text);
  font-weight: 400;
}

/* Marca ORION (como en la barra del launcher) */

.logo--brand {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 28px var(--neon);
}

.logo--brand:hover,
.logo--with-icon:hover .logo--brand {
  color: var(--accent);
}

.logo--brand--small {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
}

.logo--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo__text {
  transition: text-shadow 0.16s ease;
}

.logo--with-icon:hover,
.logo--with-icon:focus-visible {
  outline: none;
}

.logo--with-icon:hover .logo__text,
.logo--with-icon:focus-visible .logo__text {
  text-shadow: 0 0 16px rgba(196, 181, 253, 0.7);
}

.logo__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 7px;
}

/* Shell tipo app: rail izquierdo decorativo */

.app-shell {
  display: flex;
  min-height: calc(100vh - 57px);
  max-width: 100%;
}

.app-shell__rail {
  flex: 0 0 var(--rail-width);
  background: linear-gradient(
    180deg,
    rgba(167, 139, 250, 0.12) 0%,
    transparent 45%,
    rgba(124, 107, 181, 0.06) 100%
  );
  border-right: 1px solid var(--border);
}

.app-shell__main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .app-shell__rail {
    display: none;
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 16, 0.92);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max-width) + var(--rail-width) + var(--space) * 2.5);
  margin: 0 auto;
  padding: 0.875rem clamp(0.4rem, 1vw, 0.8rem);
  gap: 1rem;
}

.site-nav {
  flex: 1;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 0.6rem;
  align-self: center;
}

.lang-switch__toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 8px;
  padding: 0.36rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.lang-switch__toggle:hover,
.lang-switch__toggle:focus-visible {
  border-color: rgba(167, 139, 250, 0.46);
  box-shadow: 0 0 12px -7px rgba(167, 139, 250, 0.85);
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

.lang-switch__current {
  pointer-events: none;
}

.lang-switch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11.8rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid rgba(167, 139, 250, 0.26);
  border-radius: 10px;
  background: rgba(16, 18, 26, 0.96);
  box-shadow: 0 0 18px -9px rgba(167, 139, 250, 0.8);
  display: none;
  z-index: 20;
}

.lang-switch.is-open .lang-switch__menu {
  display: block;
}

.lang-switch__option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 8px;
  padding: 0.38rem 0.45rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.lang-switch__option:hover,
.lang-switch__option:focus-visible {
  background: rgba(167, 139, 250, 0.14);
  box-shadow: 0 0 12px -8px rgba(167, 139, 250, 0.8);
  outline: none;
}

.logo:not(.logo--with-icon) {
  font-weight: 700;
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.5rem, 1.1vw, 1rem);
  width: min(34rem, 100%);
  margin: 0;
  margin-left: auto;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.12s ease, text-shadow 0.12s ease;
}

.site-nav__list a:hover {
  color: var(--text);
  text-shadow: 0 0 16px rgba(167, 139, 250, 0.55);
}

.site-nav__list a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 16px rgba(167, 139, 250, 0.55);
  outline: none;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 20px -6px rgba(167, 139, 250, 0.75);
}

.nav-toggle:focus-visible {
  outline: none;
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 10vw, 5rem) var(--space);
}

.hero__inner {
  max-width: min(var(--max-width), calc(100vw - 2.5rem));
  margin: 0 auto;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 9vw, 4.25rem);
  line-height: 1.05;
}

.hero__title--with-icon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hero__brand-icon {
  width: clamp(2.75rem, 14vw, 4.5rem);
  height: clamp(2.75rem, 14vw, 4.5rem);
  object-fit: contain;
  flex-shrink: 0;
  border-radius: clamp(8px, 2vw, 14px);
}

.hero__brand-name {
  line-height: 1.05;
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: 0.11em;
}

.hero__tagline {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero__tagline strong,
.hero__tagline em {
  color: var(--text);
  font-style: normal;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 36rem;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.12s ease, color 0.12s ease, background-color 0.12s ease;
}

.btn--primary {
  color: #0a0b10;
  background: var(--accent);
  box-shadow: 0 0 18px -6px rgba(167, 139, 250, 0.6);
}

.btn--primary:hover {
  color: #0a0b10;
  background: var(--accent-hover);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  box-shadow: 0 0 14px -8px rgba(167, 139, 250, 0.55);
}

.btn--ghost:hover {
  color: var(--accent-hover);
}

.btn:hover,
.btn:focus-visible {
  box-shadow: 0 0 24px -4px rgba(167, 139, 250, 0.82);
}

.btn:focus-visible {
  outline: none;
}

/* Secciones y paneles (como contenedores del launcher) */

.section {
  padding: clamp(1.5rem, 4.2vw, 2.6rem) var(--space);
  border-top: 1px solid var(--border);
}

.section--tight {
  padding-top: 0;
  border-top: none;
}

.section--alt {
  background: rgba(16, 18, 26, 0.65);
}

.section__wide {
  max-width: min(var(--max-width), calc(100vw - 2.5rem));
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

.section__heading {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__lede {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.section__lede strong {
  color: var(--text);
  font-weight: 400;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 1.75rem);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
  border-color: rgba(167, 139, 250, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 28px -14px var(--neon);
}

.panel--glow {
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.12) inset,
    0 0 40px -12px var(--neon);
}

.panel__title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel__body {
  margin: 0;
  color: var(--text-muted);
}

.panel__body p {
  margin: 0 0 1rem;
}

.panel__body p:last-child {
  margin-bottom: 0;
}

.panel__body--muted {
  font-size: 0.9375rem;
  opacity: 0.92;
}

.meta-panel {
  padding: 1rem 1.1rem;
}

.meta-panel__title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.meta-panel__list {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meta-panel__list li + li {
  margin-top: 0.35rem;
}

.panel__body strong {
  color: var(--text);
  font-weight: 400;
}

.status-list {
  margin: 0;
  padding-left: 1rem;
}

.status-list li + li {
  margin-top: 0.4rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.faq-item:hover {
  border-color: rgba(167, 139, 250, 0.26);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 18px -11px rgba(167, 139, 250, 0.72);
}

.faq-question {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.faq-item:hover .faq-question {
  color: #f0edff;
  text-shadow: 0 0 14px rgba(196, 181, 253, 0.55);
}

.faq-item.is-open {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 0 16px -11px rgba(167, 139, 250, 0.7);
}

.faq-item__content {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition:
    max-height 0.24s ease,
    opacity 0.16s ease,
    visibility 0s linear 0.24s;
}

.faq-item__content p {
  margin: 0;
  color: var(--text-muted);
}

.faq-item.is-open .faq-item__content {
  max-height: 220px;
  opacity: 1;
  visibility: visible;
  transition:
    max-height 0.24s ease,
    opacity 0.18s ease,
    visibility 0s linear 0s;
}

.inline-code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: ui-monospace, "Cascadia Code", monospace;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-hover);
}

/* Tarjetas “para quién” */

.card-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.2);
  box-shadow: 0 0 28px -14px var(--neon);
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.card__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space);
  background: rgba(10, 11, 16, 0.5);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  vertical-align: middle;
}

.site-footer__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 5px;
}

.site-footer__brand strong {
  color: var(--text);
  font-weight: 400;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Mobile nav */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    transition: max-height 0.28s ease;
  }

  .site-nav.is-open {
    max-height: 22rem;
  }

  .site-header__inner {
    flex-wrap: wrap;
    position: relative;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--space);
  }

  .lang-switch {
    margin-left: auto;
  }

  .site-nav__list li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav__list li:last-child {
    border-bottom: none;
  }

  .site-nav__list a {
    display: block;
    padding: 0.75rem 0;
  }
}
