﻿:root {
  --bg: #070b14;
  --panel: rgba(18, 24, 38, 0.92);
  --border: rgba(120, 160, 220, 0.2);
  --text: #e8eef8;
  --muted: #8a9ab8;
  --accent: #6eb5ff;
  --orion: #ffb84d;
  --event: #e070ff;
}
* { box-sizing: border-box; }
html {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", system-ui, sans-serif;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #152238 0%, var(--bg) 45%);
  color: var(--text);
}
header {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  padding-top: max(1.25rem, env(safe-area-inset-top));
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.95), transparent);
}
header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 28%,
    rgba(255, 255, 255, 0.05) 42%,
    rgba(200, 230, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.05) 58%,
    transparent 72%
  );
  background-size: 220% 100%;
  background-position: 130% 0;
  animation: header-nav-sweep 6.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}
.header-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}
.header-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  padding: 0.35rem 0;
}
.header-logo-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  outline-offset: 3px;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.header-logo-link:hover .header-logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(110, 181, 255, 0.5))
    drop-shadow(0 0 36px rgba(110, 181, 255, 0.22));
}
.header-logo-link:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.9);
}
.header-logo-link:focus-visible .header-logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 16px rgba(110, 181, 255, 0.45))
    drop-shadow(0 0 34px rgba(110, 181, 255, 0.2));
}
.header-logo-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110%;
  height: 180%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 55% 65% at 50% 50%,
    rgba(110, 181, 255, 0.38),
    rgba(110, 181, 255, 0.08) 45%,
    transparent 70%
  );
  opacity: 0.55;
  animation: header-logo-glow 3.8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes header-logo-glow {
  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.04);
  }
}
@keyframes header-nav-sweep {
  0%,
  18% {
    background-position: 130% 0;
  }
  42%,
  58% {
    background-position: -30% 0;
  }
  82%,
  100% {
    background-position: 130% 0;
  }
}
.header-logo {
  position: relative;
  z-index: 1;
  height: 4.25rem;
  width: auto;
  max-width: min(100%, 34rem);
  aspect-ratio: 1440 / 320.25;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(110, 181, 255, 0.35))
    drop-shadow(0 0 32px rgba(110, 181, 255, 0.15));
}
.header-text {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 42rem;
}
.header-disclaimer {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.header-disclaimer--source {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.28rem;
  max-width: 100%;
}
.header-disclaimer--source > span {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}
.header-source-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: var(--accent);
  padding: 0.2rem;
  border-radius: 8px;
  line-height: 0;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.header-source-link:hover {
  color: #9eceff;
  background: rgba(110, 181, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(110, 181, 255, 0.25);
}
.header-source-link svg {
  width: 1.15em;
  height: 1.15em;
}
header a { color: var(--accent); }
.header-tz-wrap {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 3;
}
.header-tz-btn {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(110, 181, 255, 0.42);
  background: linear-gradient(160deg, rgba(40, 58, 92, 0.55) 0%, rgba(14, 22, 42, 0.92) 100%);
  color: #a8dcff;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(80, 160, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.header-tz-btn:hover {
  border-color: rgba(160, 215, 255, 0.55);
  color: #d4ecff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 26px rgba(100, 190, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.header-tz-btn:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.85);
  outline-offset: 3px;
}
.header-tz-btn__icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  filter: drop-shadow(0 0 6px rgba(120, 200, 255, 0.35));
}
.header-tz-btn__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-youtube-cluster {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  max-width: min(100% - 2rem, 22rem);
}
@media (min-width: 520px) {
  .header-youtube-cluster {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
.header-youtube-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.48rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 120, 0.45);
  background: linear-gradient(165deg, rgba(200, 40, 40, 0.95) 0%, rgba(140, 20, 25, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 2px 12px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(255, 60, 60, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.header-youtube-live--broadcast {
  border-color: rgba(110, 181, 255, 0.45);
  background: linear-gradient(165deg, rgba(35, 70, 120, 0.95) 0%, rgba(18, 40, 78, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 2px 12px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(80, 160, 255, 0.2);
}
.header-youtube-live:hover {
  border-color: rgba(255, 200, 200, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 4px 18px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(255, 80, 80, 0.35);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.header-youtube-live--broadcast:hover {
  border-color: rgba(180, 220, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 4px 18px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(100, 190, 255, 0.32);
}
.header-youtube-live:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.85);
  outline-offset: 3px;
}
/* Tabletas / ventanas estrechas: el copy del header sigue leyendo a 0.9rem por encima de 640px */
@media (max-width: 900px) {
  .header-text {
    gap: 0.4rem;
  }
  .header-disclaimer {
    font-size: 0.76rem;
    line-height: 1.4;
  }
  .header-disclaimer--source {
    gap: 0.26rem;
  }
  .header-logo {
    height: 3rem;
  }
}
@media (max-width: 640px) {
  .header-tz-wrap {
    top: max(0.5rem, env(safe-area-inset-top));
    left: max(0.65rem, env(safe-area-inset-left));
  }
  .header-tz-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
  }
  .header-tz-btn__icon {
    width: 1.22rem;
    height: 1.22rem;
  }
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.55rem 0.85rem;
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
    padding-top: max(0.55rem, env(safe-area-inset-top));
  }
  .header-brand {
    gap: 0.55rem;
    width: 100%;
    max-width: 26rem;
  }
  .header-logo-wrap {
    padding: 0.2rem 0;
  }
  .header-logo {
    height: 2.35rem;
    max-width: 100%;
  }
  .header-text {
    gap: 0.32rem;
    max-width: 100%;
  }
  .header-disclaimer {
    font-size: clamp(0.62rem, 2.85vw, 0.68rem);
    line-height: 1.32;
  }
  .header-disclaimer--source {
    gap: 0.2rem;
  }
  .header-source-link {
    padding: 0.12rem;
  }
  .header-source-link svg {
    width: 0.95em;
    height: 0.95em;
  }
  /* Tras el texto de la NASA: flujo normal, sin solapar el copy */
  .header-youtube-cluster {
    position: static;
    width: 100%;
    max-width: 22rem;
    margin-top: 0.45rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(110, 181, 255, 0.2);
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
  }
  .header-youtube-live {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: min(100%, 9.5rem);
    font-size: clamp(0.58rem, 2.65vw, 0.62rem);
    padding: 0.34rem 0.42rem;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-youtube-live:hover {
    transform: none;
  }
  .header-tz-btn:hover {
    transform: none;
  }
}
body.tz-modal-open {
  overflow: hidden;
}
.tz-modal[hidden] {
  display: none !important;
}
.tz-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
}
#timelineHelpModal.tz-modal:not([hidden]) {
  z-index: 410;
}
#tzModal.tz-modal:not([hidden]) {
  z-index: 420;
}
.tz-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(5px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tz-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(110, 181, 255, 0.38);
  background: linear-gradient(165deg, rgba(18, 26, 48, 0.98) 0%, rgba(8, 12, 24, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(60, 140, 220, 0.12);
}
.tz-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.tz-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.tz-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(110, 181, 255, 0.35);
  background: rgba(10, 16, 30, 0.9);
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tz-modal__close:hover {
  color: var(--text);
  border-color: rgba(160, 215, 255, 0.45);
  background: rgba(20, 30, 52, 0.95);
}
.tz-modal__close:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.85);
  outline-offset: 2px;
}
.tz-modal__desc {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}
.tz-modal__desc strong {
  color: #a8dcff;
  font-weight: 600;
}
.tz-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.tz-modal__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(180, 200, 230, 0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tz-modal__field select,
.tz-modal select {
  width: 100%;
  max-width: 100%;
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(110, 181, 255, 0.4);
  color: var(--text);
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.tz-modal__done {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(110, 181, 255, 0.45);
  background: linear-gradient(165deg, rgba(50, 90, 150, 0.5) 0%, rgba(25, 45, 85, 0.85) 100%);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.tz-modal__done:hover {
  filter: brightness(1.08);
  border-color: rgba(160, 215, 255, 0.55);
}
.tz-modal__done:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.85);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .tz-modal__backdrop {
    backdrop-filter: none;
  }
}
.layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}
.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mission-hud {
  --hud-cyan: rgba(120, 200, 255, 0.95);
  position: relative;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.75rem, 1fr));
  gap: 0.55rem 0.75rem;
  padding: 0.75rem max(1rem, env(safe-area-inset-left)) 0.85rem max(1rem, env(safe-area-inset-right));
  background:
    linear-gradient(180deg, rgba(22, 32, 56, 0.55) 0%, transparent 45%),
    linear-gradient(165deg, rgba(10, 16, 32, 0.98) 0%, rgba(6, 10, 22, 0.97) 100%);
  border-bottom: 1px solid rgba(110, 181, 255, 0.38);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(60, 140, 220, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.mission-hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(160, 220, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: mission-hud-sheen 7s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.mission-hud::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 45%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hud-cyan), transparent);
  box-shadow: 0 0 14px rgba(150, 210, 255, 0.85);
  animation: mission-hud-scan 5.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.75;
}
@keyframes mission-hud-sheen {
  0%,
  100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}
@keyframes mission-hud-scan {
  0%,
  100% { transform: translateX(0); opacity: 0.35; }
  40% { opacity: 0.9; }
  50% { transform: translateX(320%); opacity: 0.85; }
}
.mission-hud-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  background: linear-gradient(
    155deg,
    rgba(36, 52, 88, 0.42) 0%,
    rgba(14, 22, 42, 0.88) 55%,
    rgba(8, 14, 28, 0.92) 100%
  );
  border: 1px solid rgba(110, 181, 255, 0.32);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(70, 150, 230, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.mission-hud-item:hover {
  border-color: rgba(160, 215, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 6px 22px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(100, 190, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.mission-hud-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(180, 200, 230, 0.82);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 0 20px rgba(140, 190, 255, 0.2);
  width: 100%;
  text-align: center;
}
.mission-hud-arg-flag-wrap {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-inline-start: 0.2em;
}
.mission-hud-arg-flag-wrap--value {
  margin-inline-start: 0;
  flex-shrink: 0;
}
.mission-hud-arg-flag {
  display: block;
  height: 1.2em;
  width: auto;
  aspect-ratio: 513 / 342;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.mission-hud-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.02rem;
  font-weight: 500;
  color: #a8dcff;
  line-height: 1.35;
  word-break: break-word;
  text-shadow:
    0 0 18px rgba(120, 200, 255, 0.45),
    0 0 36px rgba(80, 160, 255, 0.2),
    0 1px 0 rgba(0, 0, 0, 0.45);
  width: 100%;
  text-align: center;
}
.mission-hud-value.mission-hud-value--arg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4em;
}
.mission-hud-time-text {
  text-align: center;
  min-width: 0;
}
@media (min-width: 900px) {
  .mission-hud {
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    gap: 0.65rem 0.9rem;
    padding: 0.85rem max(1.25rem, env(safe-area-inset-left)) 0.95rem max(1.25rem, env(safe-area-inset-right));
  }
  .mission-hud-item {
    padding: 0.72rem 0.85rem;
    border-radius: 14px;
  }
  .mission-hud-label {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }
  .mission-hud-value {
    font-size: 1.12rem;
  }
}
/* HUD de misión en móvil: 1 fila ancha (fecha/hora) + 3 + 3 KPIs */
@media (max-width: 640px) {
  .mission-hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem 0.42rem;
    padding: 0.52rem max(0.65rem, env(safe-area-inset-left)) 0.6rem max(0.65rem, env(safe-area-inset-right));
  }
  .mission-hud-item:nth-child(1) {
    grid-column: 1 / -1;
  }
  .mission-hud-item {
    padding: 0.38rem 0.32rem;
    border-radius: 9px;
    gap: 0.12rem;
  }
  .mission-hud-label {
    font-size: clamp(0.52rem, 2.4vw, 0.6rem);
    letter-spacing: 0.06em;
    line-height: 1.15;
  }
  .mission-hud-value {
    font-size: clamp(0.62rem, 3.1vw, 0.74rem);
    line-height: 1.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mission-hud::before,
  .mission-hud::after,
  .timeline-hud::before,
  .timeline-hud::after {
    animation: none;
  }
  .mission-hud::after,
  .timeline-hud::after {
    left: 20%;
    width: 60%;
    opacity: 0.4;
    transform: none;
    box-shadow: 0 0 10px rgba(150, 210, 255, 0.4);
  }
  .mission-hud-item {
    transition: none;
  }
  .mission-hud-item:hover {
    transform: none;
  }
  .timeline-icon-btn {
    transition: none;
  }
  .timeline-icon-btn:hover:not(:disabled) {
    transform: none;
  }
  .timeline-help-btn:hover {
    transform: none;
  }
}
@media (max-width: 640px) {
  .timeline-hud-inner {
    gap: 0.52rem;
  }
}
.stage-view {
  position: relative;
  flex: 1 1 0;
  min-height: max(200px, min(42dvh, 520px));
  width: 100%;
  isolation: isolate;
}
@media (min-width: 900px) {
  .stage-view {
    min-height: max(320px, min(58dvh, 900px));
  }
}
@media (min-width: 1200px) {
  .stage-view {
    min-height: max(360px, min(62dvh, 960px));
  }
}
.view-surface {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: 0;
  background: radial-gradient(ellipse at 50% 50%, #0d1528 0%, #050810 100%);
  border: none;
  border-bottom: 1px solid var(--border);
}
#threeHost.view-surface {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
}
.scene-body-label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.76rem, 1.2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.22rem 0.5rem;
  background: rgba(10, 14, 26, 0.88);
  border-radius: 7px;
  border: 1px solid rgba(110, 181, 255, 0.42);
  white-space: nowrap;
  pointer-events: none;
}
.scene-body-label--orion {
  color: #ffd79a;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.95),
    0 0 14px rgba(255, 160, 70, 0.45);
  box-shadow: 0 0 18px rgba(80, 160, 255, 0.15);
}
.scene-body-label--earth {
  color: #a8dcff;
  border-color: rgba(90, 180, 255, 0.55);
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.95),
    0 0 16px rgba(80, 170, 255, 0.5);
  box-shadow: 0 0 22px rgba(60, 150, 255, 0.28);
}
.scene-body-label--moon {
  color: #e8ecf8;
  border-color: rgba(175, 190, 230, 0.52);
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.95),
    0 0 14px rgba(195, 205, 235, 0.48);
  box-shadow: 0 0 20px rgba(150, 165, 210, 0.22);
}

.stage-timeline.timeline-hud {
  --hud-cyan: rgba(120, 200, 255, 0.95);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0.75rem max(1rem, env(safe-area-inset-left)) 0.95rem max(1rem, env(safe-area-inset-right));
  background:
    linear-gradient(180deg, rgba(22, 32, 56, 0.55) 0%, transparent 42%),
    linear-gradient(165deg, rgba(10, 16, 32, 0.98) 0%, rgba(6, 10, 22, 0.97) 100%);
  border-top: 1px solid rgba(110, 181, 255, 0.28);
  border-bottom: 1px solid rgba(110, 181, 255, 0.38);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(60, 140, 220, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.timeline-hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(160, 220, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: mission-hud-sheen 7.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.timeline-hud::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 45%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hud-cyan), transparent);
  box-shadow: 0 0 14px rgba(150, 210, 255, 0.85);
  animation: mission-hud-scan 5.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.65;
}
.timeline-hud-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.timeline-hud-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.42rem;
}
.timeline-hud-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
  min-width: 0;
}
.timeline-hud-title {
  margin: 0;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(180, 200, 230, 0.88);
  font-weight: 600;
  text-shadow: 0 0 18px rgba(140, 190, 255, 0.2);
}
.timeline-help-btn {
  -webkit-tap-highlight-color: transparent;
}
.timeline-help-btn:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.85);
  outline-offset: 2px;
  border-radius: 4px;
}
.timeline-help-btn--plain {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.2rem 0.45rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: rgba(150, 195, 255, 0.92);
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.timeline-help-btn--plain:hover {
  color: #d4ecff;
  background: rgba(110, 181, 255, 0.14);
}
.timeline-help-btn__mark {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
  top: -0.04em;
}
.timeline-help-modal__body {
  margin: 0 0 1rem;
}
.timeline-help-modal__p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(160, 180, 210, 0.92);
}
.timeline-help-modal__p:last-child {
  margin-bottom: 0;
}
.timeline-help-modal__p strong {
  color: #a8dcff;
  font-weight: 600;
}
.timeline-hud-card {
  position: relative;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: linear-gradient(
    155deg,
    rgba(36, 52, 88, 0.38) 0%,
    rgba(14, 22, 42, 0.85) 55%,
    rgba(8, 14, 28, 0.9) 100%
  );
  border: 1px solid rgba(110, 181, 255, 0.3);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(70, 150, 230, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.timeline-hud-card--events .timeline-events-heading {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(180, 200, 230, 0.85);
  font-weight: 600;
}
.timeline-events-hint {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: rgba(150, 170, 200, 0.9);
  line-height: 1.35;
}
.timeline-transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.timeline-transport-sep {
  width: 1px;
  align-self: stretch;
  min-height: 1.35rem;
  margin: 0 0.15rem;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(110, 181, 255, 0.28),
    rgba(110, 181, 255, 0.42),
    rgba(110, 181, 255, 0.28),
    transparent
  );
  flex-shrink: 0;
  border-radius: 1px;
}
.timeline-icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #a8dcff;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.timeline-icon-btn:hover:not(:disabled) {
  color: #d4ecff;
  background: rgba(110, 181, 255, 0.14);
}
.timeline-icon-btn:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.85);
  outline-offset: 2px;
}
.timeline-icon-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  filter: grayscale(0.25);
  background: transparent;
}
.timeline-icon-btn:disabled:hover {
  color: #a8dcff;
  background: transparent;
}
.timeline-icon {
  width: 1.38rem;
  height: 1.38rem;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(120, 200, 255, 0.35));
}
.timeline-range {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}
.timeline-phase {
  margin-top: 0;
  box-shadow: 0 0 14px rgba(255, 184, 77, 0.2);
  border: 1px solid rgba(255, 184, 77, 0.35);
}
@media (min-width: 900px) {
  .stage-timeline.timeline-hud {
    padding: 0.85rem max(1.25rem, env(safe-area-inset-left)) 1.05rem max(1.25rem, env(safe-area-inset-right));
  }
}
.tz-select-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0;
}
.tz-select-row label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.tz-select-row select {
  min-width: min(100%, 18rem);
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid rgba(110, 181, 255, 0.35);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.tz-select-hint {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.9;
  line-height: 1.35;
  margin: 0;
  flex: 1 1 12rem;
}
.timeline-wrap {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.time-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 0.15rem;
  gap: 0.45rem;
}
.time-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 0;
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: rgba(6, 10, 20, 0.45);
  border: 1px solid rgba(110, 181, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.time-cell-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}
.time-cell--cur {
  border-color: rgba(110, 181, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 16px rgba(80, 160, 255, 0.12);
}
.time-cell--cur .time-day {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(110, 181, 255, 0.35);
}
.time-day {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.time-clock {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.2;
}
button:not(.timeline-icon-btn) {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(110, 181, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
}
@media (min-width: 700px) {
  button:not(.timeline-icon-btn) {
    min-height: unset;
  }
}
button:not(.timeline-icon-btn):hover {
  background: rgba(110, 181, 255, 0.22);
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.phase-badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 184, 77, 0.15);
  color: var(--orion);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.35rem;
}
.error {
  flex-shrink: 0;
  padding: 1rem;
  background: rgba(180, 60, 60, 0.2);
  border: 1px solid rgba(255, 100, 100, 0.35);
  border-radius: 8px;
  margin: 0.5rem max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
  font-size: 0.9rem;
}
.loading {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(7, 11, 20, 0.85);
  border-radius: 0;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  text-align: center;
}
.loading[hidden] { display: none !important; }
.event-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  max-height: none;
  overflow: visible;
}
.event-btn {
  flex: 1 1 calc(50% - 0.35rem);
  min-width: min(100%, 11rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.28rem;
  font-size: inherit;
  padding: 0.6rem 0.55rem;
  min-height: 3.35rem;
  border: 1px solid rgba(180, 140, 255, 0.35);
  background: rgba(100, 80, 140, 0.12);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 720px) {
  .event-btn {
    flex: 1 1 calc(25% - 0.4rem);
    min-width: 0;
  }
}
.event-btn-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
.event-btn-meta {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}
.event-btn:hover {
  background: rgba(120, 100, 180, 0.2);
  border-color: rgba(200, 170, 255, 0.45);
  box-shadow: 0 0 14px rgba(160, 130, 220, 0.15);
}
footer {
  flex-shrink: 0;
  padding: 0.85rem 1rem max(1rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}
footer .site-footer__credits {
  margin: 0 auto;
  max-width: min(96vw, 76rem);
  font-size: 0.92rem;
  text-align: center;
}
footer .site-footer__credits a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
footer .site-footer__credits a:hover {
  color: #c8e8ff;
}
@media (max-width: 640px) {
  footer .site-footer__credits {
    font-size: 0.86rem;
    line-height: 1.5;
  }
  footer code { word-break: break-all; }
}
.moon-status {
  line-height: 1.35;
}
/* Transporte inicio / play / pausa / fin superpuesto al visor 3D */
.viewer-transport {
  position: absolute;
  left: 50%;
  bottom: max(0.55rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 48;
  pointer-events: none;
  max-width: min(24rem, calc(100% - 5.25rem));
  box-sizing: border-box;
}
.viewer-transport__inner {
  pointer-events: auto;
  margin: 0;
  margin-bottom: 0 !important;
  justify-content: center;
  gap: 0.25rem 0.4rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(6, 10, 22, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(110, 181, 255, 0.24);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .viewer-transport__inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (max-width: 640px) {
  .viewer-transport {
    max-width: min(19rem, calc(100% - 4.35rem));
    bottom: max(0.45rem, env(safe-area-inset-bottom));
  }
  .viewer-transport__inner {
    gap: 0.1rem 0.2rem;
    padding: 0.18rem 0.34rem;
  }
  .viewer-transport .timeline-icon-btn {
    width: 2rem;
    height: 2rem;
    min-width: 36px;
    min-height: 36px;
    border-radius: 6px;
  }
  .viewer-transport .timeline-icon {
    width: 1.05rem;
    height: 1.05rem;
  }
  .viewer-transport .timeline-transport-sep {
    min-height: 0.95rem;
    margin: 0 0.06rem;
  }
}
.nav-3d-wrap {
  position: absolute;
  right: max(0.65rem, env(safe-area-inset-right));
  bottom: max(0.65rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 50;
  touch-action: manipulation;
}
.nav-3d-wrap button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 30, 0.88);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.nav-3d-wrap button:hover {
  border-color: rgba(110, 181, 255, 0.45);
  background: rgba(22, 32, 52, 0.95);
}
@media (min-width: 700px) {
  .nav-3d-wrap button {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* —— Gráficos OEM (index): velocidad y distancia —— */
.oem-charts {
  flex-shrink: 0;
  padding: 1.15rem max(1rem, env(safe-area-inset-left)) 1.35rem max(1rem, env(safe-area-inset-right));
  border-top: 1px solid rgba(110, 181, 255, 0.28);
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.98) 0%, rgba(12, 18, 34, 0.96) 100%);
}
.oem-charts[hidden] {
  display: none !important;
}
.oem-charts-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.oem-charts-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.95);
  text-shadow: 0 0 20px rgba(100, 170, 255, 0.2);
}
.oem-charts-lead {
  margin: 0 0 1.1rem;
  max-width: 48rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.oem-charts-source {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  word-break: break-all;
}
.oem-charts-source[hidden] {
  display: none !important;
}
.oem-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
}
@media (min-width: 800px) {
  .oem-charts-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
.oem-chart-card {
  padding: 0.85rem 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(110, 181, 255, 0.28);
  background: linear-gradient(155deg, rgba(32, 48, 82, 0.28) 0%, rgba(12, 18, 34, 0.9) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.28);
}
.oem-chart-card__title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #d4e8ff;
}
.oem-chart-card__unit {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.oem-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: min(42vw, 16rem);
  min-height: 12.5rem;
}
@media (min-width: 800px) {
  .oem-chart-canvas-wrap {
    height: 15rem;
    min-height: 14rem;
  }
}

/* —— Sección “Más sobre Artemis II” (index) —— */
.artemis-more {
  flex-shrink: 0;
  padding: 1.35rem max(1rem, env(safe-area-inset-left)) 1.6rem max(1rem, env(safe-area-inset-right));
  border-top: 1px solid rgba(110, 181, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(14, 20, 36, 0.97) 0%, rgba(7, 11, 20, 0.99) 100%);
}
.artemis-more-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.artemis-more-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.95);
  text-shadow: 0 0 20px rgba(100, 170, 255, 0.2);
}
.artemis-more-lead {
  margin: 0 0 1.15rem;
  max-width: 44rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.artemis-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 0.85rem 1rem;
}
@media (min-width: 900px) {
  .artemis-card--wide {
    grid-column: 1 / -1;
  }
}
.artemis-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(110, 181, 255, 0.32);
  background: linear-gradient(155deg, rgba(32, 48, 82, 0.35) 0%, rgba(12, 18, 34, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.35);
}
.artemis-card__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #d4e8ff;
  letter-spacing: 0.02em;
}
.artemis-card__media {
  margin: 0 0 0.75rem;
  border-radius: 11px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(110, 181, 255, 0.28);
  background: rgba(4, 8, 18, 0.65);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.artemis-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.artemis-card--wide .artemis-card__media {
  aspect-ratio: 2.15 / 1;
  max-height: 11.5rem;
}
@media (min-width: 600px) {
  .artemis-card--wide .artemis-card__media {
    max-height: 13rem;
  }
}
.artemis-card__text {
  margin: 0 0 0.85rem;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(170, 190, 220, 0.92);
}
.artemis-card__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
  border: 1px solid rgba(110, 181, 255, 0.5);
  background: linear-gradient(165deg, rgba(45, 85, 140, 0.45) 0%, rgba(20, 38, 72, 0.9) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.artemis-card__btn:hover {
  filter: brightness(1.08);
  border-color: rgba(170, 215, 255, 0.6);
}
.artemis-card__btn:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.9);
  outline-offset: 2px;
}

/* —— Páginas secundarias (artículos) —— */
body.page-article {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.article-top {
  position: relative;
  z-index: 200;
  flex-shrink: 0;
  padding: 0.55rem max(1rem, env(safe-area-inset-left)) 0.85rem max(1rem, env(safe-area-inset-right));
  padding-top: max(0.55rem, env(safe-area-inset-top));
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.98), rgba(7, 11, 20, 0.96));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.article-top-inner {
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.article-top-inner--nav {
  position: relative;
  z-index: 3;
  max-width: 72rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.article-top-inner--title {
  position: relative;
  z-index: 0;
  max-width: 48rem;
  padding-top: 0.15rem;
}
.article-nav-logo {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 0;
  border-radius: 8px;
  text-decoration: none;
}
.article-nav-logo:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.85);
  outline-offset: 3px;
}
.article-nav-logo-img {
  height: 2.35rem;
  width: auto;
  max-width: min(52vw, 18rem);
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(110, 181, 255, 0.28))
    drop-shadow(0 0 24px rgba(110, 181, 255, 0.12));
}
.article-nav-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.article-nav-sim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.85rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid rgba(110, 181, 255, 0.5);
  background: linear-gradient(165deg, rgba(45, 85, 140, 0.45) 0%, rgba(20, 38, 72, 0.9) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.article-nav-sim:hover {
  filter: brightness(1.08);
  border-color: rgba(170, 215, 255, 0.55);
}
.article-nav-sim:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.9);
  outline-offset: 2px;
}
.article-nav-drawer {
  position: static;
}
.article-nav-burger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(110, 181, 255, 0.45);
  background: rgba(18, 28, 48, 0.95);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.article-nav-burger::-webkit-details-marker {
  display: none;
}
.article-nav-burger:hover {
  border-color: rgba(170, 215, 255, 0.55);
  background: rgba(26, 38, 62, 0.98);
}
.article-nav-burger:focus-visible {
  outline: 2px solid rgba(110, 181, 255, 0.9);
  outline-offset: 2px;
}
.article-nav-burger svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}
.article-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: min(17.5rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 24rem);
  overflow-y: auto;
  padding: 0.35rem 0;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(110, 181, 255, 0.35);
  background: linear-gradient(165deg, rgba(28, 40, 68, 0.98) 0%, rgba(10, 16, 28, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 99999;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.article-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-nav-list a {
  display: block;
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(220, 232, 255, 0.95);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.article-nav-list a:hover {
  background: rgba(110, 181, 255, 0.12);
  color: #f0f6ff;
}
.article-nav-list a.is-current {
  background: rgba(110, 181, 255, 0.16);
  border-left-color: var(--accent);
  color: #fff;
}
@media (min-width: 480px) {
  .article-nav-logo-img {
    height: 2.65rem;
    max-width: min(48vw, 22rem);
  }
}
@media (min-width: 700px) {
  .article-nav-sim {
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
  }
}
.article-page-title {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.article-main {
  position: relative;
  z-index: 0;
  flex: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
}
.article-prose {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(210, 220, 240, 0.94);
}
.article-prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #c8e0ff;
  letter-spacing: 0.03em;
}
.article-prose h2:first-child {
  margin-top: 0;
}
.article-prose p {
  margin: 0 0 1rem;
}
.article-prose ul,
.article-prose ol {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}
.article-prose li {
  margin-bottom: 0.4rem;
}
.article-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.article-prose a:hover {
  color: #c8e8ff;
}
.article-prose strong {
  color: #e8f0ff;
  font-weight: 600;
}
.article-prose .note {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  border-left: 3px solid rgba(110, 181, 255, 0.45);
  background: rgba(110, 181, 255, 0.08);
  border-radius: 0 8px 8px 0;
}
.article-figure {
  margin: 1.1rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(110, 181, 255, 0.28);
  background: rgba(4, 8, 18, 0.5);
}
.article-figure img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
  gap: 0.55rem;
  margin: 1.25rem 0;
}
.article-gallery__item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(110, 181, 255, 0.25);
  aspect-ratio: 1;
  background: rgba(4, 8, 18, 0.5);
}
.article-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.article-footer {
  flex-shrink: 0;
  padding: 0.85rem max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  text-align: center;
}
.article-footer a {
  color: var(--accent);
}
