/* ======= variables (consolidated) ======= */
:root {
  --bo-bg: #0b0c0f;
  --bo-ink: #e6e6e6;
  --bo-muted: #9fb0be;
  --bo-cyan: #63ffe6;
  /* unified name */
  --bo-vio: #9b6bff;
  /* unified name */
  --bo-line: rgba(99, 207, 230, .25);
  --bo-card: #11161d;
  --wattpad: #ff6b00;
  /* compatibility aliases for older names */
  --bo-neon: var(--bo-cyan);
  --bo-uv: var(--bo-vio);
}

/* contenedor hero */
.bo-hero-terminal {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: var(--bo-bg);
  overflow: hidden;
  isolation: isolate;
  border-bottom: solid var(--bo-cyan);
}

/* canvas estrellas */
#boStars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* HUD orbital */
.bo-orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(90vmin, 900px);
  height: min(70vmin, 900px);
  opacity: .85;
  mix-blend-mode: screen;
}

.bo-orbit .rings {
  animation: spin 42s linear infinite;
  transform-origin: 300px 300px;
}

.pulse {
  animation: pulse 3.8s ease-in-out infinite;
  transform-origin: 300px 300px;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .9
  }

  50% {
    transform: scale(1.06);
    opacity: 1
  }
}

/* satélites orbitando */
.sat {
  transform-origin: 300px 300px;
}

.sat-a {
  animation: orbitA 12s linear infinite;
}

.sat-b {
  animation: orbitB 18s linear infinite reverse;
}

@keyframes orbitA {
  from {
    transform: rotate(0deg) translate(140px, 0)
  }

  to {
    transform: rotate(360deg) translate(140px, 0)
  }
}

@keyframes orbitB {
  from {
    transform: rotate(0deg) translate(200px, 0)
  }

  to {
    transform: rotate(360deg) translate(200px, 0)
  }
}

/* scanlines + ruido */
.bo-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: .7;
  background:
    linear-gradient(transparent 50%, rgba(255, 255, 255, .06) 50%) 0 0/100% 3px,
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .12) 50%, transparent 51%) 0 0/500px 500px;
  animation: scan 8s linear infinite;
}

@keyframes scan {
  to {
    background-position: 0 6px, 500px 500px;
  }
}

/* terminal */
.bo-terminal {
  position: relative;
  z-index: 2;
  width: min(980px, 92vw);
  border: 1px solid var(--bo-line);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0, 188, 212, .06), rgba(155, 107, 255, .06));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.bo-terminal__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font: 700 12px/1.1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: #0f1216;
  color: #cdeff0;
  border-bottom: 1px solid var(--bo-line);
}

.status {
  color: #9be7ff
}

.status--warn {
  color: #ffbd59
}

.bo-terminal__screen {
  margin: 0;
  padding: 18px 16px 8px;
  min-height: 240px;
  max-height: 48vh;
  overflow: auto;
  color: var(--bo-ink);
  font: 500 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-shadow: 0 0 10px rgba(99, 255, 230, .08);
  white-space: pre-wrap;
}

.bo-terminal__screen .muted {
  color: var(--bo-muted)
}

.bo-terminal__screen .warn {
  color: #ffbd59
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.05em;
  background: var(--bo-cyan);
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(99, 255, 230, .75);
  animation: blink 1s step-end infinite;
}

.bo-terminal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #0f1216;
  border-top: 1px solid var(--bo-line);
}

/* buttons: consolidated variant (uses unified variables) */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  border: 2px solid var(--bo-cyan);
  transition: .2s;
}

.btn-primary {
  background: var(--bo-cyan);
  color: #092022;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--bo-cyan);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(99, 255, 230, .12);
}

/* responsive */
@media (max-width:680px) {
  .bo-terminal__screen {
    font-size: 13px
  }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {

  .rings,
  .pulse,
  .sat-a,
  .sat-b,
  .bo-scan {
    animation: none
  }
}

:root {
  --bo-bg: #0b0c0f;
  --bo-ink: #e6e6e6;
  --bo-muted: #9fb0be;
  --bo-cyan: #63ffe6;
  --bo-vio: #9b6bff;
  --bo-line: rgba(99, 207, 230, .25);
}

.bo-about-hud {
  background: var(--bo-bg);
  padding: 72px 0 48px;
  color: var(--bo-ink);
  position: relative;
  border-bottom: solid var(--bo-cyan);
}

.bo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: stretch;
}

/* ----- consola ----- */
.about-console {
  border: 1px solid var(--bo-line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 188, 212, .06), rgba(155, 107, 255, .06));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.c-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #0f1216;
  border-bottom: 1px solid var(--bo-line);
  font: 700 12px/1 ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #dbf7ff;
}

.c-head .lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffbd59;
  box-shadow: 0 0 10px rgba(255, 189, 89, .6)
}

.c-head .title {
  flex: 1
}

.c-head .chip {
  color: var(--bo-cyan)
}

.c-screen {
  margin: 0;
  padding: 18px 16px 14px;
  min-height: 240px;
  white-space: pre-wrap;
  overflow: auto;
  font: 500 14px/1.6 ui-monospace, monospace;
  text-shadow: 0 0 10px rgba(99, 255, 230, .08);
  height: 100%;
}

.c-screen .muted {
  color: var(--bo-muted)
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--bo-cyan);
  box-shadow: 0 0 8px rgba(99, 255, 230, .7);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

.c-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #0f1216;
  border-top: 1px solid var(--bo-line);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid var(--bo-cyan);
  transition: .2s;
}

.btn-primary {
  background: var(--bo-cyan);
  color: #092022
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px)
}

.btn-secondary {
  color: var(--bo-cyan)
}

.btn-secondary:hover {
  background: rgba(99, 255, 230, .12)
}

/* ----- especificaciones HUD ----- */
.about-spec {
  border: 1px solid var(--bo-line);
  border-radius: 14px;
  padding: 16px;
  background: #0f1216;
  display: grid;
  gap: 14px;
  align-content: start;
}

.spec-ring {
  position: relative;
  display: grid;
  place-items: center;
}

.spec-ring svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(99, 255, 230, .12));
}

.r {
  stroke: var(--bo-cyan);
  opacity: .28;
  fill: none
}

.r1 {
  stroke-width: 3;
  stroke-dasharray: 10 14;
  animation: spin 42s linear infinite
}

.r2 {
  stroke-width: 2;
  stroke-dasharray: 6 10;
  animation: spin 32s linear infinite reverse
}

.r3 {
  stroke-width: 1.5;
  opacity: .38
}

.dashed {
  stroke: var(--bo-vio);
  stroke-width: 2;
  stroke-dasharray: 2 10;
  opacity: .65;
  animation: spin 18s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.spec-badge {
  position: absolute;
  inset: auto 0 10px 0;
  margin: auto;
  width: max-content;
  max-width: 92%;
  padding: 6px 10px;
  border: 1px dashed var(--bo-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: #dff;
  font: 700 11px/1 ui-monospace, monospace;
  letter-spacing: .08em;
  text-align: center;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.spec-list li {
  border-left: 3px solid var(--bo-cyan);
  background: rgba(255, 255, 255, .02);
  padding: 10px 12px;
  border-radius: 8px;
}

.spec-list b {
  color: var(--bo-ink)
}

.bo-media-horz {
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--bo-line);
  border-radius: 12px;
  background: #0b0d12
}

.bo-media-horz img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform .35s ease
}

.bo-media-horz:hover img {
  transform: scale(1.04)
}

/* ----- barra de señal ----- */
.about-signal {
  margin: 20px auto 0;
  max-width: 1200px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cde;
  opacity: .9;
  border-top: 1px solid var(--bo-line);
}

.about-signal .bars {
  display: flex;
  gap: 6px;
  height: 18px;
  align-items: flex-end
}

.about-signal .bars span {
  width: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--bo-cyan), transparent);
  animation: bar 1.2s ease-in-out infinite
}

.about-signal .bars span:nth-child(2) {
  animation-delay: .1s
}

.about-signal .bars span:nth-child(3) {
  animation-delay: .2s
}

.about-signal .bars span:nth-child(4) {
  animation-delay: .3s
}

.about-signal .bars span:nth-child(5) {
  animation-delay: .4s
}

@keyframes bar {
  50% {
    height: 18px
  }

  0%,
  100% {
    height: 6px
  }
}

@media (max-width: 980px) {
  .about-wrap {
    grid-template-columns: 1fr
  }
}

/* ===== Sección: Capítulos (HUD) ===== */
:root {
  --wattpad: #ff6b00;
  /* badge Wattpad */
}

.bo-chapters-hud {
  background: var(--bo-bg);
  padding: 72px 0;
  color: var(--bo-ink);
  border-bottom: solid var(--bo-cyan);
}

.bo-chapters-hud h3 {
  font-size: 1.9rem;
}

/* consola/intro */
.chap-console {
  border: 1px solid var(--bo-line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 188, 212, .06), rgba(155, 107, 255, .06));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  margin-bottom: 22px;
}

.c-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #0f1216;
  border-bottom: 1px solid var(--bo-line);
  font: 700 12px/1 ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #dbf7ff;
}

.c-head .lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffbd59;
  box-shadow: 0 0 10px rgba(255, 189, 89, .6)
}

.c-head .title {
  flex: 1
}

.chip {
  display: inline-block;
  padding: 4px 8px;
  border: 1px dashed var(--bo-line);
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: .08em
}

.chip-w {
  color: #fff;
  border-color: rgba(255, 107, 0, .35);
  background: linear-gradient(180deg, rgba(255, 107, 0, .22), rgba(255, 107, 0, .12));
}

.c-screen {
  margin: 0;
  padding: 18px 16px 10px;
  min-height: 140px;
  white-space: pre-wrap;
  overflow: auto;
  font: 500 14px/1.6 ui-monospace, monospace;
  text-shadow: 0 0 10px rgba(99, 255, 230, .08);
}

.c-screen .muted {
  color: var(--bo-muted)
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--bo-cyan);
  box-shadow: 0 0 8px rgba(99, 255, 230, .7);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

.chap-benefits {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px 14px;
  background: #0f1216;
  border-top: 1px solid var(--bo-line);
  margin: 0;
  list-style: none;
}

.chap-benefits li {
  padding: 6px 10px;
  border: 1px dashed var(--bo-line);
  border-radius: 8px;
  color: #cde;
  background: rgba(255, 255, 255, .02);
}

/* grid y cards */
.chap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.chap-card {
  background: #12141a;
  border: 1px solid var(--bo-line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: .25s;
}

.chap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 255, 230, .45);
}

.chap-card .bo-media-horz {
  border: 0;
  border-radius: 0;
}

.chap-card .info {
  padding: 14px;
}

.chap-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(6, 32, 34, .75);
  color: var(--bo-cyan);
  border: 1px solid var(--bo-cyan);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 900;
  letter-spacing: .06em;
}

.btn-read {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid var(--wattpad);
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 107, 0, .28), rgba(255, 107, 0, .14));
  transition: .2s;
}

.btn-read:hover {
  filter: brightness(1.05);
  transform: translateY(-1px)
}

.btn-wattpad {
  background: var(--bo-ink);
  color: var(--wattpad);
  border-color: var(--wattpad);
}

.btn-wattpad:hover {
  background: var(--bo-ink);
  color: var(--wattpad);
}

/* CTA grande */
.chap-cta {
  text-align: center;
  margin-top: 24px;
}

.btn-primary.big {
  font-size: 1rem;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.btn-primary.big .chip {
  border-color: rgba(255, 255, 255, .35);
  background: transparent
}

/* responsive */
@media (max-width:900px) {
  .chap-benefits {
    gap: 8px
  }

  .chap-benefits li {
    font-size: .92rem
  }
}


/* ====== LORE: variables locales ====== */
.bo-lore,
.bo-lore-modal {
  --bg: #0b0e12;
  --ink: #e6eef0;
  --muted: #9aa7b3;
  --line: rgba(99, 207, 230, .25);
  --cyan: #63ffe6;
  --vio: #9b6bff;
  --card: #11161d;
}

/* ====== Sección LORE ====== */
.bo-lore {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  padding: 72px 0 20px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: solid var(--cyan);
}

#boLoreCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bo-lore__wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bo-lore__head {
  text-align: center;
  margin: 0 0 18px;
}

.bo-lore__head h2 {
  margin: 0 0 6px;
  color: var(--cyan);
  letter-spacing: .04em
}

.bo-lore__head p {
  margin: 0;
  color: var(--muted)
}

.bo-lore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.bo-lore__card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  transition: .25s;
  cursor: pointer;
  overflow: hidden;
}

.bo-lore__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(99, 255, 230, .18), inset 0 0 26px rgba(155, 107, 255, .10);
  opacity: .85;
  transition: .25s;
}

.bo-lore__card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 255, 230, .45)
}

.bo-lore__card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(99, 255, 230, .28), inset 0 0 36px rgba(155, 107, 255, .16)
}

.card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font: 700 11px/1 ui-monospace, monospace;
  letter-spacing: .08em;
  color: #fff;
  padding: 4px 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.bo-lore__card h3 {
  margin: 0 0 6px;
  color: var(--ink)
}

.bo-lore__card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5
}

.card__btn {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .02em;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  transition: .2s;
}

.card__btn:hover {
  background: rgba(99, 255, 230, .12)
}

/* barra de señal */
.bo-lore__signal {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cde;
  border-top: 1px solid var(--line);
}

.bo-lore__signal .bars {
  display: flex;
  gap: 6px;
  height: 18px;
  align-items: flex-end
}

.bo-lore__signal .bars span {
  width: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: boBar 1.2s ease-in-out infinite
}

.bo-lore__signal .bars span:nth-child(2) {
  animation-delay: .1s
}

.bo-lore__signal .bars span:nth-child(3) {
  animation-delay: .2s
}

.bo-lore__signal .bars span:nth-child(4) {
  animation-delay: .3s
}

.bo-lore__signal .bars span:nth-child(5) {
  animation-delay: .4s
}

@keyframes boBar {
  50% {
    height: 18px
  }

  0%,
  100% {
    height: 6px
  }
}

/* ====== Modal ====== */
.bo-lore-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}

.bo-lore-modal[aria-hidden="false"] {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  margin: 6vh auto;
  width: min(920px, 92vw);
  background: #0f1216;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #0b0e12;
  border-bottom: 1px solid var(--line);
}

.modal__head .chip {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #ffd86b;
}

.modal__head h3 {
  margin: 0;
  flex: 1;
  color: var(--cyan);
  letter-spacing: .04em
}

.modal__close {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(255, 255, 255, .05)
}

.modal__decrypt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px dashed var(--line);
}

.modal__decrypt .label {
  font: 700 12px/1 ui-monospace, monospace;
  letter-spacing: .12em;
  color: #cde
}

.modal__decrypt .bar {
  flex: 1;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b1116;
  overflow: hidden;
}

.modal__decrypt .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--vio));
}

.modal__body {
  padding: 16px;
  display: grid;
  gap: 12px;
  max-height: 50vh;
  overflow: auto;
}

.modal__body h4 {
  margin: 0 0 6px;
  color: var(--ink)
}

.modal__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6
}

.modal__facts {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 0
}

.modal__facts li {
  list-style: none;
  border-left: 3px solid var(--cyan);
  background: rgba(255, 255, 255, .02);
  padding: 8px 10px;
  border-radius: 8px;
}



.modal__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #0b0e12;
  border-top: 1px solid var(--line)
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  transition: .2s;
}

.btn--primary {
  border: 2px solid var(--cyan);
  background: var(--cyan);
  color: #092022;
}

.btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px)
}

.btn--ghost {
  border: 2px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(99, 255, 230, .12)
}

/* estado activo en card */
.bo-lore__card.is-open {
  border-color: rgba(99, 255, 230, .5);
  transform: translateY(-2px);
}

/* responsive */
@media (max-width:900px) {
  .bo-lore__signal {
    padding: 10px
  }
}

/* ================== CREW POP-OUT (cards) ================== */
.bo-crew-pop {
  --bg: #070a10;
  --ink: #e9f6f6;
  --muted: #9fb0be;
  --cyan: #63ffe6;
  --vio: #9b6bff;
  --line: rgba(99, 255, 230, .25);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(99, 255, 230, .06), transparent),
    radial-gradient(1000px 600px at 90% 110%, rgba(155, 107, 255, .06), transparent),
    #04060a;
  color: var(--ink);
  padding: 72px 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  border-bottom: solid var(--cyan);
}

.bo-crew-pop .crew-head {
  max-width: 1200px;
  margin: 0 auto 60px
}

.bo-crew-pop .crew-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem)
}

.bo-crew-pop .crew-head p {
  margin: 0;
  color: var(--muted)
}

.crew-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 55px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.crew-card {
  position: relative;
  overflow: visible;
  border-radius: 18px;
  padding: 18px 15px 35px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  isolation: isolate;
}

/* Marco HUD estático + halo suave */
.holo-frame {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  padding: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--vio));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  box-shadow: 0 0 18px rgba(99, 255, 230, .32), 0 0 26px rgba(155, 107, 255, .18) inset;
  animation: holo-breathe 3.8s ease-in-out infinite;
  filter: saturate(130%);
}

@keyframes holo-breathe {
  50% {
    box-shadow: 0 0 26px rgba(99, 255, 230, .45), 0 0 36px rgba(155, 107, 255, .24) inset
  }
}

/* Scanlines sutiles */
.crew-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: .18;
}

/* Retrato que sale del card */
.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: visible;
  transform: translateY(-14%);
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, .45));
}

.portrait img {
  width: min(92%, 360px);
  height: auto;
  display: block;
  margin: 0 auto;
  transform-origin: center bottom;
  filter: saturate(.95) brightness(1.06) drop-shadow(0 0 12px rgba(99, 255, 230, .15)) drop-shadow(0 0 22px rgba(155, 107, 255, .10));
  transition: transform .35s ease, filter .35s ease;
}


/* Meta + botón */
.meta {
  text-align: center;
  margin-top: -6%;
}

.meta h3 {
  margin: 0 0 4px;
  letter-spacing: .06em
}

.meta .role {
  margin: 0 0 10px;
  color: var(--muted)
}

.btn-view {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 9px 14px;
  border-radius: 12px;
  color: #062022;
  background: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: 0 8px 18px rgba(99, 255, 230, .18);
  transition: .2s;
}

/* intel styles removed (feature deprecated) */

.crew-card:hover .portrait img {
  transform: translateY(-6px) scale(1.02);
  filter: saturate(1) brightness(1.08) drop-shadow(0 0 18px rgba(99, 255, 230, .22))
}


.crew-card:hover .btn-view {
  filter: brightness(1.06);
  transform: translateY(-1px)
}

/* ================== MODAL (HUD) ================== */
.bo-crew-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}

.bo-crew-modal[aria-hidden="false"] {
  display: block;
}

.bo-crew-modal,
.bo-crew-modal * {
  --ink: #e9f6f6;
  --muted: #9fb0be;
  --line: rgba(99, 255, 230, .25);
  --cyan: #63ffe6;
  --vio: #9b6bff;
}

.cm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px);
}

.cm-panel {
  position: relative;
  z-index: 1;
  margin: 6vh auto;
  width: min(960px, 92vw);
  background: #0b0e12;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  /* allow the panel to scroll when its content exceeds the viewport (mobile) */
  max-height: calc(100vh - 12vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.cm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #070a10;
  border-bottom: 1px solid var(--line)
}

.cm-head .chip {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #ffd86b
}

.cm-head h3 {
  margin: 0;
  flex: 1;
  color: var(--ink)
}

.cm-close {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer
}

.cm-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
  padding: 16px
  ;
  /* allow inner content to scroll if needed */
  overflow: auto;
}

.cm-portrait {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  background: #0a0d13
}

.cm-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block
}

.cm-role {
  color: var(--muted);
  margin: .25rem 0 .5rem
}

.cm-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1rem 0 1rem
}

.state {
  font: 900 .8rem/1 ui-monospace, monospace;
  letter-spacing: .08em;
  color: #64ffa3
}

.state.warn {
  color: #ffc857
}

.state.alert {
  color: #ff5d73
}

.meter {
  flex: 1;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b1116;
  overflow: hidden
}

.meter i {
  display: block;
  height: 100%;
  width: var(--val, 0%);
  background: linear-gradient(90deg, var(--cyan), var(--vio))
}

.cm-facts {
  list-style: none;
  margin: .5rem 0;
  padding: 0;
  display: grid;
  gap: 8px
}

.cm-facts li {
  background: rgba(255, 255, 255, .02);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1.5;
}

.cm-log {
  color: #dfe;
  font-style: italic;
  margin: .25rem 0 1rem
}

.cm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.cm-actions .btn-view {
  border: 2px solid var(--cyan);
  background: var(--cyan);
  color: #052022;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 900;
  text-decoration: none;
}

.cm-actions .btn-view:hover {
  filter: brightness(1.05)
}

@media (max-width:900px) {
  .cm-body {
    grid-template-columns: 1fr
  }
}

.bo-subscribe-min {
  --cyan: #63ffe6;
  --bg: #04060a;
  --ink: #e9f6f6;
  --line: rgba(99, 255, 230, .3);
  background:
    radial-gradient(900px 500px at 50% 0, rgba(99, 255, 230, .08), transparent),
    #04060a;
  color: var(--ink);
  text-align: center;
  padding: 80px 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  border-bottom: solid var(--cyan);
}

.bo-subscribe-min h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
  letter-spacing: .06em;
}

.bo-subscribe-min p {
  color: rgba(233, 246, 246, .7);
  margin-bottom: 24px;
}

.sub-form {
  display: inline-flex;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 0 24px rgba(99, 255, 230, .1);
}

.sub-form input {
  flex: 1;
  background: #0a0f14;
  color: var(--ink);
  border: none;
  padding: 14px 18px;
  font-size: 1rem;
  outline: none;
}

.sub-form input:focus {
  background: #0c141c;
}

@media (max-width: 600px) {
  .sub-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .sub-form input,
  .sub-form button,
  .sub-form input[type="submit"] {
    width: 100%;
    box-sizing: border-box;
  }
}

.bo-gallery {
  --cyan: #63ffe6;
  --vio: #9b6bff;
  --ink: #e9f6f6;
  --bg: #04060a;
  background: #04060a;
  padding: 80px 18px;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

.gal-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin: 0 0 8px;
  color: var(--ink);
}

.gal-head p {
  color: rgba(233, 246, 246, .7);
  margin: 0 0 32px;
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media(max-width:1024px) {
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .gal-grid {
    grid-template-columns: 1fr;
  }
}

.gal-item {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(99, 255, 230, .3);
  border-radius: 14px;
  cursor: pointer;
  transition: .3s;
  background: rgba(255, 255, 255, .02);
  aspect-ratio: 16 / 11;
  min-height: 500px;
  width: 100%;
  margin: 0;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keeps image filling tile without letterbox */
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}

/* remove browser default margins on figures which caused gaps */
figure {
  margin: 0;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .4s ease;
}

.gal-item:hover img {
  transform: scale(1.05);
}

.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .6));
  opacity: .3;
  transition: .3s;
}

.gal-item:hover::after {
  opacity: .6;
}

.gal-item figcaption {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  font-size: .95rem;
  color: #e9f6f6;
  text-align: left;
  text-shadow: 0 0 6px rgba(0, 0, 0, .6);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  margin-bottom: 12px;
}

.lightbox .close {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 32px;
  color: var(--cyan);
  cursor: pointer;
}

.lightbox p {
  color: #ccc;
  font-size: 1rem;
  max-width: 80%;
}