/* styles.css — Estilos propios del portal "Introducción al Sistema".
   Se carga DESPUÉS de css/portal-shell.css: el shell manda los tokens, la
   tipografía, el header, los botones, las tarjetas y las tablas. Acá solo va
   lo que es exclusivo de este portal: barra de secciones con buscador,
   dashboard, ecosistema 3D y deck de presentación.

   Regla del sistema de diseño: ni un hex suelto. Todo sale de var(--token).
   Única excepción permitida: --ondark (#17202A) para texto sobre ámbar. */

:root {
  --intro-tabs-height: 60px;
  --intro-header-height: 250px;
}

/* ── Accesibilidad ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ondark);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12px;
  clip-path: var(--chamfer-12);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--ondark);
}

#main-content:focus {
  outline: none;
}

.intro-shell :is(a, button, input):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.animate-in { animation: introIn .45s var(--ease-out) both; }

@keyframes introIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ── Escala de tono de cada sistema ──
   El catálogo asigna un tono; acá se traduce a tokens. Nunca a un hex nuevo. */
.tone-gold { --tone: var(--gold); --tone-ink: var(--goldink); --tone-soft: var(--goldsoft); --tone-line: var(--goldline); }
.tone-ok { --tone: var(--ok); --tone-ink: var(--ok); --tone-soft: var(--oksoft); --tone-line: var(--okline); }
.tone-ice { --tone: var(--ink); --tone-ink: var(--ink); --tone-soft: var(--hair); --tone-line: var(--hair2); }
.tone-steel { --tone: var(--muted); --tone-ink: var(--muted); --tone-soft: var(--hair); --tone-line: var(--hair2); }

/* ── Motion permanente del header: constelación detrás de la identidad ──
   Mismo campo generativo que el Hub (links). El contenido va por encima. */
.portal-id { position: relative; overflow: hidden; }

.portal-id__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .95;
  pointer-events: none;
}

.portal-id__inner { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .portal-id__field { display: none; }
}

/* ════════════════════════════════════════════════════════════
   Barra de secciones (usa .section-bar del shell) + buscador
   ════════════════════════════════════════════════════════════ */
.intro-tabs__inner {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--intro-tabs-height);
}

.intro-tabs__links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  min-width: 0;
}

.section-bar__link {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-ui);
  cursor: pointer;
}

/* ── Buscador de la suite: disparador + command palette ── */
.suite-search__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--hair2);
  color: var(--faint);
  font: 600 12.5px/1 var(--font-ui);
  cursor: pointer;
  clip-path: var(--chamfer-12);
  transition: color .2s ease, border-color .2s ease;
}

.suite-search__trigger:hover { color: var(--ink); border-color: var(--goldline); }
.suite-search__trigger i { font-size: 12px; }
.suite-search__trigger-txt { white-space: nowrap; }

.suite-search__kbd {
  padding: 4px 7px;
  border: 1px solid var(--hair2);
  color: var(--faint);
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .06em;
}

.palette {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(8, 12, 18, .66);
  backdrop-filter: blur(6px);
  animation: introIn .18s var(--ease-out) both;
}

.palette__box {
  width: 100%;
  max-width: 660px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hair2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  clip-path: var(--chamfer-22);
}

.palette__field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hair);
}

.palette__field i { color: var(--goldink); font-size: 14px; }

.palette__field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font: 500 16px/1.2 var(--font-ui);
}

.palette__field input::placeholder { color: var(--faint); }

.palette__results { flex: 1; min-height: 0; overflow-y: auto; }

.palette__hit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
}

.palette__hit:last-child { border-bottom: none; }
.palette__hit:hover,
.palette__hit.is-active { background: var(--surface2); color: var(--ink); }

.palette__mark {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
  color: var(--tone-ink);
  font-size: 12px;
}

.palette__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.palette__title { font-size: 13.5px; font-weight: 700; }
.palette__desc { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.palette__group {
  margin-left: auto;
  flex: none;
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.palette__empty { margin: 0; padding: 28px; color: var(--muted); font-size: 13px; text-align: center; }

.palette__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border-top: 1px solid var(--hair);
  background: var(--surface2);
  color: var(--faint);
  font: 600 11px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.palette__count { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .palette { animation: none; }
}

/* ════════════════════════════════════════════════════════════
   Estructura del portal
   ════════════════════════════════════════════════════════════ */
.intro-shell { background: var(--bg); }
.intro-main { display: block; }

.dashboard-page { display: flex; flex-direction: column; }

.dashboard-focus { position: relative; display: flex; flex-direction: column; }

/* La pista de scroll ya no flota sobre la escena: con el hero en dos columnas
   se pisaba con el HUD. Ahora vive en el flujo, bajo el hero. */
.dashboard-scroll-cue {
  align-self: flex-start;
  margin-inline: clamp(24px, 4vw, 54px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 clamp(24px, 4vw, 44px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dashboard-scroll-cue:hover { color: var(--goldink); }
.dashboard-scroll-cue i { animation: cueBob 2.2s ease-in-out infinite; }

@keyframes cueBob {
  0%, 100% { transform: none; }
  50% { transform: translateY(4px); }
}

.dashboard-details {
  padding-block: clamp(44px, 7vw, 86px);
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 44px);
}

.dashboard-section-heading { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.dashboard-section-heading p:last-child { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.dashboard-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* ── Hero del portal ── */
.intro-hero { border-block: 1px solid var(--hair); }
.intro-hero__inner { display: flex; flex-direction: column; align-items: flex-start; }

.intro-hero__lead {
  margin: 26px 0 32px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.6;
}

.intro-hero__lead strong { color: var(--ink); font-weight: 700; }

/* ── Bloque de panel con cabecera ── */
.panel-block { border: 1px solid var(--hair); background: var(--surface); }

.panel-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hair);
}

/* ── Tarjeta de sistema ── */
.panel-block__filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip.is-active { color: var(--goldink); border-color: var(--goldline); background: var(--goldsoft); }

.sys-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.sys-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  color: var(--ink);
  transition: background .2s ease;
}

/* Riel de tono en el canto: identifica la familia del sistema de un vistazo */
.sys-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tone);
  opacity: .35;
  transition: opacity .2s ease;
}

.sys-card:hover { background: var(--surface2); color: var(--ink); }
.sys-card:hover::before { opacity: 1; }
.sys-card.is-static { cursor: default; }

.sys-card__head { display: flex; align-items: flex-start; gap: 14px; }

.sys-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
  color: var(--tone-ink);
  font-size: 15px;
  transition: transform .2s var(--ease-spring);
}

.sys-card:hover .sys-card__icon { transform: translateY(-2px); }

.sys-card__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sys-card__title { font-size: 14.5px; font-weight: 700; }
.sys-card__desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Pie de la tarjeta: índice, categoría, estado y tipo de acceso */
.sys-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.sys-card__idx {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--faint);
}

.sys-card__cat {
  padding: 5px 10px;
  background: var(--hair);
  color: var(--muted);
  font: 700 10.5px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sys-card__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 700 10.5px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sys-card__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.sys-card__state.is-live { background: var(--oksoft); color: var(--ok); }
.sys-card__state.is-pilot { background: var(--goldsoft); color: var(--goldink); }
.sys-card__state.is-wip { background: var(--hair); color: var(--muted); }

.sys-card__access {
  margin-left: auto;
  font: 700 10.5px/1 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color .2s ease;
}

.sys-card:hover .sys-card__access { color: var(--goldink); }

/* ── Tarjetas de video / presentación ── */
.media-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(24px, 3vw, 32px);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--gold);
  color: var(--ink);
  cursor: pointer;
  clip-path: var(--chamfer-22);
  transition: background .2s ease, transform .2s ease;
}

.media-card:hover { background: var(--surface2); transform: translateY(-3px); }

.media-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background: var(--goldsoft);
  border: 1px solid var(--goldline);
  color: var(--goldink);
  font-size: 20px;
}

.media-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.media-card__note { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.media-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--goldink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.media-card__cta .btn-primary__tail { background: var(--goldink); }

/* ════════════════════════════════════════════════════════════
   Apertura: identidad + universo, en dos columnas
   ════════════════════════════════════════════════════════════ */
.universe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 1px;
  background: var(--hair);
  border-bottom: 1px solid var(--hair);
  min-height: calc(100svh - var(--intro-header-height) - var(--intro-tabs-height));
}

.universe-hero__copy {
  background: var(--bg);
  padding: clamp(30px, 4vw, 52px) clamp(24px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.universe-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .9;
  font-size: clamp(44px, 5.6vw, 84px);
}

.universe-hero__title span { display: block; }
.universe-hero__title .is-accent { color: var(--gold); text-shadow: 0 0 60px rgba(245, 185, 66, .28); }

.universe-hero__lead {
  margin: 20px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(14.5px, 1.2vw, 16.5px);
  line-height: 1.6;
}

.universe-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.universe-hero__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.universe-hero__metrics .card { padding: 16px 18px; }

.universe-hero__stage {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

/* Dentro del hero el escenario no lleva marco propio: el pelo de la retícula
   ya lo separa de la columna de texto. */
.universe-hero .solar-stage { border: none; }

/* Angosto (o sin WebGL): las dos columnas se apilan y el escenario toma alto fijo */
@media (max-width: 900px) {
  .universe-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .universe-hero__stage { min-height: 500px; }
  .universe-hero__metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

.universe-hero.is-static { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.universe-hero.is-static .universe-hero__stage { min-height: 0; padding: 0 clamp(24px, 4vw, 54px) clamp(30px, 4vw, 52px); }

/* ── Sistemas de escritorio ── */
.panel-block__note {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 78ch;
}

.desk-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.desk-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border-top: 2px solid var(--tone);
}

.desk-card__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
  color: var(--tone-ink);
  font-size: 17px;
}

.desk-card__copy { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.desk-card__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.desk-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.desk-card__desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.desk-card__stack {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ════════════════════════════════════════════════════════════
   Widget del ecosistema (dashboard)
   ════════════════════════════════════════════════════════════ */
.ecosystem-widget { display: flex; flex-direction: column; gap: 24px; }

.ecosystem-widget__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ecosystem-widget__id { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ecosystem-widget__id .section-title span { color: var(--gold); }
.ecosystem-widget__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.ecosystem-widget__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.ecosystem-widget__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  animation: dotPulse 2.4s ease-in-out infinite;
}

.ecosystem-widget__stage {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--hair2);
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   SISTEMA SOLAR 3D (Three.js)
   ════════════════════════════════════════════════════════════ */
.solar-stage {
  position: relative;
  width: 100%;
  height: clamp(420px, 58vh, 620px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--hair2);
}

/* Capa HUD: rejilla técnica que se desvanece en los bordes + esquinas */
.solar-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 100% at 50% 42%, #000 28%, transparent 78%);
  mask-image: radial-gradient(125% 100% at 50% 42%, #000 28%, transparent 78%);
}

.solar-stage::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  --hud: var(--goldline);
  --l: 22px;
  --b: 2px;
  background:
    linear-gradient(var(--hud), var(--hud)) 0 0 / var(--l) var(--b) no-repeat,
    linear-gradient(var(--hud), var(--hud)) 0 0 / var(--b) var(--l) no-repeat,
    linear-gradient(var(--hud), var(--hud)) 100% 0 / var(--l) var(--b) no-repeat,
    linear-gradient(var(--hud), var(--hud)) 100% 0 / var(--b) var(--l) no-repeat,
    linear-gradient(var(--hud), var(--hud)) 0 100% / var(--l) var(--b) no-repeat,
    linear-gradient(var(--hud), var(--hud)) 0 100% / var(--b) var(--l) no-repeat,
    linear-gradient(var(--hud), var(--hud)) 100% 100% / var(--l) var(--b) no-repeat,
    linear-gradient(var(--hud), var(--hud)) 100% 100% / var(--b) var(--l) no-repeat;
}

.solar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.solar-canvas canvas { display: block; }

/* Insignia "órbita en vivo" (esquina superior izquierda del escenario) */
.solar-live {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--hair2);
  color: var(--muted);
  font: 700 10.5px/1 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Pie del escenario: HUD de lo que hay bajo el cursor + recordatorio de gestos */
.solar-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  pointer-events: none;
}

.solar-hud {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--hair2);
  border-left: 2px solid var(--tone, var(--gold));
  transition: border-left-color .2s ease;
}

.solar-hud__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.solar-hud__meta {
  font: 600 10.5px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.solar-foot__note {
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* El mismo mapa en enlaces: invisible hasta que el teclado entra en él.
   Un lector de pantalla lo lee siempre; el canvas queda aria-hidden. */
.solar-a11y {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 8;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.solar-a11y:focus-within {
  width: auto;
  height: auto;
  max-height: calc(100% - 36px);
  overflow: auto;
  clip-path: none;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--hair2);
}

.solar-a11y a {
  display: block;
  padding: 7px 12px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.solar-a11y a:hover { background: var(--surface2); color: var(--goldink); }

/* Modo compacto (widget del dashboard) */
.solar-stage--compact {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  border: none;
}


/* ── Vista Ecosistema: escenario + riel ── */
.ecosystem-full {
  height: calc(100svh - var(--intro-header-height) - var(--intro-tabs-height));
  min-height: 620px;
  box-sizing: border-box;
  padding: 16px var(--shell-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 26%, 340px);
  gap: 16px;
  align-items: stretch;
}

.ecosystem-full__stage { position: relative; min-width: 0; }

/* El título va sobre el escenario, no encima de él en el flujo: así el mapa
   se queda con todo el alto y la vista no necesita desplazarse. */
.ecosystem-full__title {
  position: absolute;
  top: 22px;
  left: 26px;
  right: 26px;
  z-index: 6;
  pointer-events: none;
  max-width: 640px;
}

.ecosystem-full__title h2 {
  margin: 0 0 .4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .98;
}

.ecosystem-full__title p { margin: 0; max-width: 480px; font-size: .88rem; color: var(--muted); }

/* Con el título ocupando la esquina, la insignia de órbita cruza a la derecha */
.solar-stage--fill .solar-live { left: auto; right: 18px; }

.ecosystem-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

/* ── Índice del ecosistema ── */
.ecosystem-index {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hair);
  background: var(--surface);
}

.ecosystem-index__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
}

/* En un riel de 280px el rótulo de sección normal parte en dos líneas y deja
   el contador descolgado: acá va con tracking más corto para caber en una. */
.ecosystem-index__head .card__label { font-size: 11px; letter-spacing: .1em; }
.ecosystem-index__count { font: 700 11px/1 var(--font-ui); color: var(--goldink); white-space: nowrap; }

.ecosystem-index__list { flex: 1; min-height: 0; overflow-y: auto; }

.ecosystem-index__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  transition: background .2s ease;
}

.ecosystem-index__row:last-child { border-bottom: none; }
.ecosystem-index__row:hover { background: var(--surface2); color: var(--ink); }

.ecosystem-index__mark {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
  color: var(--tone-ink);
  font-size: 12px;
}

.ecosystem-index__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ecosystem-index__title { font-size: 13px; font-weight: 700; }
.ecosystem-index__meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ecosystem-index__go { margin-left: auto; flex: none; color: var(--faint); font-size: 10px; transition: color .2s ease; }
.ecosystem-index__row:hover .ecosystem-index__go { color: var(--goldink); }

/* ── Leyenda de tonos ── */
.ecosystem-legend {
  flex: none;
  border: 1px solid var(--hair);
  background: var(--surface);
  padding: 18px;
}

.ecosystem-legend ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ecosystem-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.ecosystem-legend__dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }

.solar-stage--fill { height: 100% !important; min-height: 460px; margin: 0; }

/* Angosto: el riel baja bajo el mapa y el índice deja de tener alto propio */
@media (max-width: 900px) {
  .ecosystem-full {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 28px;
  }
  .ecosystem-full__stage { min-height: 460px; }
  .ecosystem-index { flex: none; }
  .ecosystem-index__list { max-height: 340px; }
  /* En un mapa angosto el rótulo se queda con el titular: la instrucción habla
     de pasar el cursor, que en pantalla táctil no aplica, y la insignia cabe
     mal junto al título. El HUD sigue diciendo qué hay bajo el dedo. */
  .ecosystem-full__title { top: 16px; left: 18px; right: 18px; }
  .ecosystem-full__title h2 { font-size: 1.25rem; }
  .ecosystem-full__title p { display: none; }
  .solar-stage--fill .solar-live { display: none; }
}

/* ── Vistas a pantalla completa: altura definida para que el iframe no colapse ── */
.video-full,
.presentation-full {
  height: calc(100svh - var(--intro-header-height) - var(--intro-tabs-height));
  min-height: 360px;
  box-sizing: border-box;
  padding: 16px var(--shell-pad);
}

.video-full__frame {
  height: 100%;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--hair2);
  overflow: hidden;
}

.video-full__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ════════════════════════════════════════════════════════════
   Presentación (deck)
   ════════════════════════════════════════════════════════════ */
.presentation-deck {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hair2);
}

.presentation-deck__slide {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: clamp(20px, 3.5vh, 44px) clamp(22px, 5vw, 64px);
  overflow-y: auto;
}

.presentation-deck__slide > div { width: 100%; max-width: 68rem; margin-inline: auto; }

.deck-cover,
.deck-body { display: flex; flex-direction: column; gap: 22px; }

.deck-cover__title { font-size: min(clamp(34px, 6vw, 72px), 13vh); }

.deck-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}

.deck-feature { display: flex; align-items: center; gap: clamp(22px, 4vw, 44px); flex-wrap: wrap; }

.deck-feature__mark {
  flex: none;
  width: clamp(96px, 14vw, 150px);
  height: clamp(96px, 14vw, 150px);
  display: grid;
  place-items: center;
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
  border-top: 2px solid var(--tone);
  color: var(--tone-ink);
  font-size: clamp(38px, 5vw, 60px);
}

.deck-feature__copy { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.deck-feature__title { font-size: clamp(26px, 3.6vw, 46px); }
.deck-feature__copy .eyebrow { margin: 0; }

.deck-points { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.deck-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface2);
  border-left: 2px solid var(--tone, var(--gold));
  font-size: 14.5px;
}

.deck-points li i { color: var(--tone-ink, var(--goldink)); font-size: 12px; }

.deck-map { display: flex; flex-direction: column; align-items: center; gap: 0; }

.deck-map__hub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  background: var(--goldsoft);
  border: 1px solid var(--goldline);
  color: var(--goldink);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  clip-path: var(--chamfer-16);
}

.deck-map__stem { width: 1px; height: 34px; background: var(--goldline); }
.deck-map__grid { width: 100%; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.deck-map__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--surface2);
  border-top: 2px solid var(--tone);
  text-align: center;
}

.deck-map__node i { color: var(--tone-ink); font-size: 22px; }
.deck-map__node span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; }

.deck-contact { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.deck-contact .card__value { font-size: clamp(17px, 2vw, 22px); word-break: break-word; }
.deck-contact .deck-points { margin-top: 16px; }

.presentation-deck__footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--hair);
  background: var(--surface2);
}

.presentation-deck__nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: transparent;
  border: 1px solid var(--hair2);
  color: var(--muted);
  font: 700 12px/1 var(--font-ui);
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--chamfer-12);
  transition: color .2s ease, border-color .2s ease;
}

.presentation-deck__nav:hover:not(:disabled) { color: var(--ink); border-color: var(--goldline); }
.presentation-deck__nav:disabled { opacity: .3; cursor: default; }

.presentation-deck__progress-wrap { flex: 1; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.presentation-deck__progress { width: 100%; height: 3px; background: var(--hair2); overflow: hidden; }

.presentation-deck__progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width .42s var(--ease-out);
}

.presentation-deck__counter {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.presentation-deck__hint { color: var(--faint); }

/* ════════════════════════════════════════════════════════════
   Documentos
   ════════════════════════════════════════════════════════════ */
.docs-full {
  height: calc(100svh - var(--intro-header-height) - var(--intro-tabs-height));
  overflow-y: auto;
  padding: clamp(26px, 4vw, 56px) var(--shell-pad);
  box-sizing: border-box;
}

.docs-sheet { max-width: 1000px; margin-inline: auto; display: flex; flex-direction: column; gap: clamp(34px, 5vw, 58px); }

.docs-sheet__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hair);
}

.docs-sheet__head > div { display: flex; flex-direction: column; gap: 10px; }
.docs-sheet__sub { margin: 0; color: var(--muted); font-size: 15px; }

.docs-block { display: flex; flex-direction: column; gap: 18px; }

.docs-block__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.docs-block__num {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--goldsoft);
  border: 1px solid var(--goldline);
  color: var(--goldink);
  font-size: 13px;
}

.docs-note { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════
   Ecosistema estático — fallback sin WebGL / hardware modesto
   ════════════════════════════════════════════════════════════ */
.ecosystem-static {
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 28px;
  box-sizing: border-box;
  background: var(--bg);
}

.ecosystem-static__hub {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--goldsoft);
  border: 1px solid var(--goldline);
  color: var(--goldink);
  clip-path: var(--chamfer-16);
}

.ecosystem-static__hub span { display: flex; flex-direction: column; text-align: left; }
.ecosystem-static__hub strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.ecosystem-static__hub small { font-size: 11px; color: var(--muted); }

.ecosystem-static__grid {
  width: 100%;
  max-width: 900px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ecosystem-static__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  transition: background .2s ease;
}

.ecosystem-static__node:hover { background: var(--surface2); color: var(--ink); }

.ecosystem-static__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
  color: var(--tone-ink);
}

.ecosystem-static__label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; }

/* ── Pantalla de error amigable: nunca dejar la página en blanco ── */
.portal-error {
  max-width: 520px;
  margin: 80px auto;
  padding: 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--gold);
  clip-path: var(--chamfer-22);
}

.portal-error i { font-size: 34px; color: var(--goldink); }
.portal-error h2 { margin: 18px 0 10px; font-family: var(--font-display); text-transform: uppercase; }
.portal-error p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }

.portal-error button {
  background: var(--gold);
  color: var(--ondark);
  border: none;
  padding: 15px 28px;
  font: 700 13px/1 var(--font-ui);
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--chamfer-16);
}

/* ════════════════════════════════════════════════════════════
   Adaptación a pantallas chicas
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* La fila de secciones no puede empujar el ancho del contenedor: se desliza dentro */
  .intro-tabs__inner { align-items: stretch; flex-direction: column; gap: 0; padding-block: 10px; overflow: hidden; }
  /* En pantallas chicas las secciones se deslizan en una sola fila */
  .intro-tabs__links { gap: 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .intro-tabs__links::-webkit-scrollbar { display: none; }
  .section-bar__link { white-space: nowrap; }
  .suite-search__trigger { width: 100%; margin-top: 10px; justify-content: flex-start; }
  .ecosystem-widget__header { align-items: flex-start; }
  .ecosystem-widget__stage { min-height: 380px; }
}

@media (max-width: 640px) {
  :root { --intro-tabs-height: 54px; }
  .solar-stage { height: 420px; }
  .solar-foot { left: 12px; right: 12px; bottom: 12px; }
  .solar-foot__note { display: none; }
  .suite-search__trigger .suite-search__kbd { display: none; }
  .stair span.is-indent { padding-left: min(120px, 16vw); }
  .presentation-deck__nav span { display: none; }
  .presentation-deck__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .animate-in { animation: none; }
  .dashboard-scroll-cue i { animation: none; }
  .ecosystem-widget__dot { animation: none; }
}
/* Exploración guiada del ecosistema */
.universe-hero__stage { align-items: stretch; }
.solar-hud__name, .solar-hud__meta { white-space: normal; line-height: 1.5; }
.solar-hud__meta { color: var(--muted); font-size: 12px; letter-spacing: .02em; text-transform: none; }
.ecosystem-full { height: auto; align-items: start; }
.ecosystem-full__stage { display: flex; flex-direction: column; gap: 16px; }
.ecosystem-full__title { position: static; max-width: none; }
.ecosystem-full__title p { display: block; max-width: 680px; line-height: 1.6; }
.ecosystem-index__list { max-height: 600px; scrollbar-width: thin; }
.ecosystem-index__row { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--hair); font: inherit; cursor: pointer; }
.ecosystem-index__row[aria-pressed=true], .solar-list button[aria-pressed=true] { background: var(--surface2); box-shadow: inset 3px 0 var(--gold); }
.ecosystem-index__meta { white-space: normal; }
.solar-index-group { margin: 0; padding: 12px 16px; color: var(--muted); background: var(--surface2); font: 600 12px/1.4 var(--font-ui); }
.ecosystem-legend p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.solar-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 1px; padding: 0; }
.solar-list button { width: 100%; background: var(--surface); border: 1px solid var(--hair); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.solar-list small { display: block; margin-top: 4px; color: var(--muted); }
@media(max-width: 640px) {
 .ecosystem-index__list { max-height: none; }
}
/* Guía funcional y estaciones de escritorio */
.tone-station { --tone: #c4b5fd; --tone-soft: rgba(196,181,253,.1); --tone-line: rgba(196,181,253,.4); --tone-ink: #c4b5fd; }

/* Ecosistema en pantalla completa: el mapa toma todo el alto y la ficha flota encima */
/* Un ancestro con transform (animación de entrada) encerraría el position: fixed */
.animate-in:has(.solar-experience.is-fullscreen),
[data-rv]:has(.solar-experience.is-fullscreen) { animation: none; transform: none; }
.solar-experience.is-fullscreen .solar-stage,
.solar-experience.is-fullscreen .solar-stage--fill { flex: 1 1 auto; height: auto !important; min-height: 0; }
.solar-experience.is-fullscreen .ecosystem-static { flex: 1 1 auto; min-height: 0; overflow: auto; }
[data-theme="light"] .tone-station { --tone-ink: #584080; }
.docs-full { height: auto; min-height: 60vh; overflow: visible; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.docs-search { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--hair2); background: var(--surface); margin-top: 24px; }
.docs-search label { font-size: 14px; font-weight: 600; }
.docs-search input { box-sizing: border-box; width: 100%; min-height: 46px; border: 1px solid var(--hair2); border-radius: 0; background: var(--bg); color: var(--ink); padding: 12px; font: inherit; }
.docs-entries { display: grid; gap: 12px; }
.docs-entry { border: 1px solid var(--hair2); background: var(--surface); scroll-margin-top: 130px; }
.docs-entry summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; cursor: pointer; list-style: none; }
.docs-entry summary::-webkit-details-marker { display: none; }
.docs-entry summary strong { display: block; font: 700 18px/1.4 var(--font-ui); }
.docs-entry summary small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.docs-entry summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.docs-entry[open] { border-color: var(--goldline); }
.docs-entry[open] .docs-entry__toggle { transform: rotate(45deg); }
.docs-entry__toggle { font-size: 24px; color: var(--goldink); }
.docs-entry__body { border-top: 1px solid var(--hair); padding: 24px; line-height: 1.7; color: var(--muted); }
.docs-entry__body h3 { color: var(--ink); margin: 22px 0 8px; font: 700 16px/1.4 var(--font-ui); }
.docs-entry__body p { margin: 0 0 14px; }
.docs-entry__body li { margin-bottom: 8px; }
.docs-entry__body ul, .docs-entry__body ol { padding-left: 24px; }
.docs-entry__purpose { color: var(--ink); font-size: 17px; }
.docs-entry__source { padding: 14px; background: var(--bg); border-left: 2px solid var(--hair2); font-size: 13px; }
.docs-empty { padding: 24px; border: 1px solid var(--hair); }
@media(max-width:640px) { .docs-entry summary, .docs-entry__body { padding: 16px; } .docs-sheet__head { align-items: flex-start; } }
.docs-sheet { gap: 24px; }
.docs-search { margin-top: 0; }
.docs-sheet > .docs-note { margin: 0; }
.docs-protocol { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 16px; }
.docs-protocol article { padding: 20px; background: var(--surface); border: 1px solid var(--hair2); }
.docs-protocol h4 { margin: 0 0 12px; }
.docs-protocol p { color: var(--muted); line-height: 1.6; }
.docs-protocol strong { overflow-wrap: anywhere; }

/* ════════════════════════════════════════════════════════════
   Universo 3D · experiencia de exploración
   El escenario ocupa todo su bloque; controles, etiquetas y ficha
   flotan encima con el lenguaje del shell (pelos de 1px, radio 0).
   ════════════════════════════════════════════════════════════ */
.solar-experience { position: relative; box-sizing: border-box; width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.solar-experience--compact { position: absolute; inset: 0; }
.solar-experience--compact > .solar-stage { flex: 1 1 auto; height: auto; min-height: 0; border: 0; }
.solar-experience .solar-stage--fill { height: clamp(460px, calc(100svh - var(--intro-header-height) - var(--intro-tabs-height) - 140px), 860px) !important; }
.solar-experience.is-fullscreen { position: fixed; inset: 0; z-index: 1000; width: auto; height: auto; padding: 0; gap: 0; background: var(--bg); overflow: hidden; }
.solar-experience.is-fullscreen.is-static { padding: 12px; gap: 12px; }
.solar-experience.is-fullscreen > .solar-stage { border: 0; }
.solar-stage:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.solar-canvas canvas { touch-action: pan-y; }
.solar-experience.is-fullscreen .solar-canvas canvas { touch-action: none; }

/* Texto solo para lectores de pantalla */
.solar-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.solar-a11y button { font: 600 12px/1.4 var(--font-ui); color: var(--ink); background: var(--surface2); border: 1px solid var(--hair2); padding: 10px 12px; min-height: 44px; width: 100%; text-align: left; cursor: pointer; }
.solar-a11y button[aria-pressed="true"] { border-color: var(--gold); }

/* ── Barra de herramientas ── */
.solar-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--hair2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.solar-toolbar.is-inline { position: static; align-self: flex-end; }
.solar-toolbar__zoom { display: contents; }
.solar-toolbar__sep { width: 1px; margin: 5px 3px; background: var(--hair2); }

.solar-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 700 11px/1 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.solar-tool:hover { color: var(--ink); background: var(--surface2); }
.solar-tool[aria-pressed="true"] { color: var(--goldink); background: var(--goldsoft); border-color: var(--goldline); }
.solar-tool--tour { color: var(--goldink); }
.solar-tool--tour:not([aria-pressed="true"]):hover { background: var(--goldsoft); color: var(--goldink); }

/* Rótulo propio: el title nativo tarda y no respeta el tema */
.solar-tool[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 9px);
  right: -5px;
  z-index: 2;
  padding: 7px 10px;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--hair2);
  color: var(--ink);
  font: 600 11.5px/1 var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.solar-tool[data-tip]:hover::after,
.solar-tool[data-tip]:focus-visible::after { opacity: 1; transform: none; }
.solar-toolbar.is-inline .solar-tool[data-tip]::after { top: auto; bottom: calc(100% + 9px); }

/* ── Carga ── */
.solar-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
  font: 700 11px/1 var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: none;
}
.solar-loading__orbit { position: relative; width: 64px; height: 64px; border: 1px solid var(--hair2); border-radius: 999px; animation: solarSpin 1.6s linear infinite; }
.solar-loading__orbit::before { content: ""; position: absolute; inset: 24px; border-radius: 999px; background: var(--gold); }
.solar-loading__orbit::after { content: ""; position: absolute; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 999px; background: var(--ink); }
@keyframes solarSpin { to { transform: rotate(360deg); } }

/* ── Etiquetas de los cuerpos ── */
.solar-tags { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .7s ease .6s; }
.solar-tags.is-ready { opacity: 1; }
.solar-tag {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
  padding: 4px 8px 4px 7px;
  border: 1px solid var(--hair2);
  border-left: 2px solid var(--tag, var(--gold));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--ink);
  font: 700 10.5px/1.15 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
  transition: opacity .25s ease, background .2s ease, border-color .2s ease;
}
.solar-tag.is-hub { font-size: 11.5px; }
.solar-tag.is-station .solar-tag__name::before { content: "\25C6\00A0"; color: var(--tag); }
.solar-tag__meta { display: none; font: 600 10.5px/1.2 var(--font-ui); letter-spacing: .02em; text-transform: none; color: var(--muted); }
.solar-tag.is-hover,
.solar-tag.is-active { z-index: 2; background: var(--surface); border-color: var(--tag); }
.solar-tag.is-hover .solar-tag__meta,
.solar-tag.is-active .solar-tag__meta { display: block; }
.solar-tag.is-far { opacity: .55; }
.solar-tag.is-hidden { opacity: 0; pointer-events: none; }

/* ── Indicaciones ── */
.solar-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 5;
  box-sizing: border-box;
  max-width: calc(100% - 32px);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding: 9px 14px;
  transform: translateX(-50%);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--hair);
  color: var(--muted);
  font: 700 10.5px/1.3 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity .5s ease;
}
.solar-hint span { white-space: nowrap; }
.solar-hint span + span::before { content: "\00B7"; margin-right: 16px; color: var(--goldink); }
.solar-hint.is-hidden { opacity: 0; }

.solar-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  margin: 0;
  padding: 12px 18px;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--hair2);
  color: var(--ink);
  font: 600 13px/1.3 var(--font-ui);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.solar-toast.is-on { opacity: 1; }
.solar-toast kbd { padding: 2px 6px; border: 1px solid var(--hair2); background: var(--surface2); font: 700 11px/1 var(--font-ui); }

/* ── Ficha ── */
/* Arriba a la izquierda, bajo la fila de la barra: en la portada el borde
   inferior del escenario puede quedar bajo el pliegue */
.solar-card-float {
  position: absolute;
  left: 16px;
  top: 68px;
  z-index: 6;
  display: flex;
  width: min(380px, calc(100% - 32px));
  max-height: calc(100% - 84px);
}
.solar-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 18px 20px 16px;
  background: var(--surface);
  border: 1px solid var(--hair2);
  border-left: 3px solid var(--tag, var(--gold));
  color: var(--ink);
}
.solar-card.is-floating {
  overflow-y: auto;
  scrollbar-width: thin;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  animation: solarCardIn .45s var(--ease-out) both;
}
@keyframes solarCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.solar-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.solar-card__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 700 10.5px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.solar-card__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--tag, var(--gold)); flex: none; }
.solar-card__close { display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -8px -6px 0; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.solar-card__close:hover { color: var(--ink); border-color: var(--hair2); }
.solar-card__title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-top: 10px; }
.solar-card__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.solar-card__purpose { margin: 12px 0 0; color: var(--ink); font-size: 14px; line-height: 1.55; }
.solar-card__audience { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.solar-card__audience strong { color: var(--ink); font-weight: 600; }
.solar-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.solar-card__nav { display: inline-flex; align-items: center; gap: 4px; }
.solar-card__nav button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--hair2); background: var(--surface2); color: var(--ink); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.solar-card__nav button:hover { border-color: var(--gold); color: var(--goldink); }
.solar-card__count { min-width: 64px; text-align: center; color: var(--muted); font: 700 12px/1 var(--font-display); letter-spacing: .08em; }
.solar-card__cta { padding: 12px 18px; font-size: 11.5px; }
.solar-card__note { color: var(--muted); font-size: 12px; line-height: 1.4; }
.solar-card__timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tag, var(--gold)); transform-origin: left; animation: solarTimer linear both; }
@keyframes solarTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.solar-card-slot { display: flex; }
.solar-status { margin: 0; color: var(--muted); font-size: 13px; }

/* Escenario angosto (se mide el escenario, no la ventana: la portada lo parte
   en columnas): la ficha toma el ancho bajo la barra y el foco baja el cuerpo
   a la parte libre. El umbral es el mismo que usa el bucle 3D (720px). */
.solar-stage { container-type: inline-size; }
@container (max-width: 719px) {
  .solar-card-float { top: 64px; left: 10px; right: 10px; width: auto; max-height: 58%; }
  .solar-card { padding: 12px 14px 10px; }
  .solar-card__close { width: 36px; height: 36px; }
  .solar-card__title-row { margin-top: 6px; }
  .solar-card__title { font-size: 17px; }
  .solar-card__purpose { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 8px; font-size: 13px; line-height: 1.45; }
  .solar-card__audience { display: none; }
  .solar-card__foot { flex-wrap: nowrap; margin-top: 10px; padding-top: 10px; }
  .solar-card__count { min-width: 52px; font-size: 11px; }
  .solar-card__cta { padding: 11px 14px; white-space: nowrap; }
  .solar-card__note { font-size: 11px; text-align: right; }
  .solar-toolbar { top: 10px; right: 10px; }
  .solar-hint { bottom: 10px; font-size: 9.5px; gap: 4px 10px; }
  .solar-hint span + span::before { margin-right: 10px; }
}

/* Táctil: objetivos de 44px y sin botones de zoom (se pellizca) */
@media (pointer: coarse) {
  .solar-card-float { top: 74px; }
  .solar-tool { min-width: 44px; height: 44px; }
  .solar-tool[data-tip]::after { display: none; }
  .solar-toolbar__zoom { display: none; }
  .solar-card__nav button { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .solar-loading__orbit, .solar-card.is-floating { animation: none; }
  .solar-tags, .solar-hint { transition: none; }
}
