:root {
  --shell-background: #05090d;
  --shell-surface: #0b1219;
  --shell-border: rgba(164, 184, 200, .18);
  --shell-text: #edf6ff;
  --shell-muted: #8fa0af;
  --shell-accent: #ffb85b;
  --shell-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shell-accent-soft: rgba(255, 184, 91, .14);
  --shell-accent-soft-strong: rgba(255, 184, 91, .24);
  --shell-accent-line: rgba(255, 184, 91, .38);
  --shell-ink-on-accent: #111820;
  --shell-fill-muted: rgba(164, 184, 200, .22);
  --shell-surface-inset: rgba(11, 18, 25, .55);
  --shell-surface-2: #111b24;
  --shell-line-soft: rgba(164, 184, 200, .1);
  --shell-ok: #69d8c8;
  --shell-warn: #ffbf66;
  --shell-danger: #ff8a8a;
}

* { box-sizing: border-box; }

.observatory-header-center { justify-self: center; display: grid; justify-items: center; gap: 9px; }

.observatory-nav { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--shell-border); border-radius: 999px; background: rgba(5, 9, 13, .76); backdrop-filter: blur(12px); }
.observatory-nav a { min-height: 27px; padding: 0 10px; border-radius: 999px; color: var(--shell-muted); font: 8px/27px var(--shell-mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.observatory-nav a:hover, .observatory-nav a:focus-visible { color: var(--shell-text); outline: 1px solid var(--shell-accent); outline-offset: 2px; }
.observatory-nav a[aria-current="page"] { color: #111820; background: var(--shell-accent); }

.observatory-page { min-height: 100svh; margin: 0; color: var(--shell-text); background: radial-gradient(circle at 75% 0, rgba(255, 184, 91, .12), transparent 36rem), var(--shell-background); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.observatory-page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; padding: max(20px, env(safe-area-inset-top)) clamp(20px, 5vw, 72px) 20px; border-bottom: 1px solid var(--shell-border); }
.observatory-brand { color: var(--shell-text); font: 750 14px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-decoration: none; }
.observatory-page-header .observatory-nav { margin-inline: auto; }

.observatory-placeholder { display: grid; align-content: center; min-height: calc(100svh - 82px); max-width: 760px; padding: 80px clamp(24px, 8vw, 120px); }
.observatory-placeholder p:first-child { margin: 0 0 16px; color: var(--shell-accent); font: 9px/1 var(--shell-mono); letter-spacing: .16em; text-transform: uppercase; }
.observatory-placeholder h1 { max-width: 16ch; margin: 0; font-size: clamp(42px, 8vw, 78px); letter-spacing: -.055em; line-height: .94; }
.observatory-placeholder p:last-child { max-width: 58ch; margin: 26px 0 0; color: var(--shell-muted); font-size: 17px; line-height: 1.6; }

@media (max-width: 780px) {
  .observatory-header-center { position: absolute; right: 18px; bottom: -39px; left: 18px; z-index: 710; }
  .observatory-header-center .map-app-title { display: none; }
  .observatory-nav { width: 100%; justify-content: center; }
  .observatory-nav a { padding-inline: 8px; }
  .observatory-page-header { flex-wrap: wrap; min-height: auto; padding-bottom: 16px; }
  .observatory-page-header .observatory-nav { order: 3; width: 100%; margin-top: 4px; }
  .observatory-placeholder { min-height: calc(100svh - 128px); padding-top: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* La línea de corte del mapa lee su fecha del dataset; el modificador solo
   avisa cuando la ventana de frescura ya pasó (gana por especificidad a la
   regla de mapa/assets/app.css sin tocarla). */
.map-data-cut.map-data-cut--stale { color: var(--shell-danger); }
.map-data-cut.map-data-cut--stale i { background: var(--shell-danger); box-shadow: 0 0 8px var(--shell-danger); }

/* Cabecera sólida y común ------------------------------------------------
   La barra superior es una superficie propia en los cuatro módulos: fondo
   opaco y borde inferior, en lugar de flotar translúcida sobre cada vista. */

.observatory-page-header,
.map-app-header {
  background: var(--shell-surface);
  border-bottom: 1px solid var(--shell-border);
}

.observatory-page-header { min-height: 62px; }
