:root {
  --bg: #04060e;
  --panel: #070c17;
  --panel-2: #0a1220;
  --text: #f2f7ff;
  --muted: #aabbd6;
  --steel: #8fa3c4;
  --ice: #7ef0ff;
  --blue: #3d7bff;
  --violet: #8a5cff;
  --amber: #ffb02e;
  --coral: #ff5f7a;
  --line: rgba(126, 240, 255, 0.16);
  --line-strong: rgba(126, 240, 255, 0.34);
  --line-warm: rgba(255, 176, 46, 0.4);
  --shell-max: 1400px;
  --gutter: clamp(18px, 4vw, 56px);
  --font-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-ui: "Chakra Petch", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Share Tech Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--amber);
  color: var(--bg);
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
ol,
dl,
dd {
  margin: 0;
}

ol {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 12px 18px;
  border: 1px solid var(--bg);
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--text);
}

/* ── Fondo de tripulación ───────────────────────────────── */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 54% 52% at 84% 6%, rgba(61, 123, 255, 0.16), transparent 68%),
    radial-gradient(ellipse 42% 46% at 8% 24%, rgba(138, 92, 255, 0.12), transparent 72%),
    var(--bg);
}

.starfield {
  position: absolute;
  inset: -4%;
  background-image:
    radial-gradient(circle, rgba(242, 247, 255, 0.78) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(126, 240, 255, 0.58) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(242, 247, 255, 0.4) 0 1.2px, transparent 1.6px);
  background-size: 223px 223px, 347px 347px, 487px 487px;
  background-position: 12px 18px, 86px 54px, 41px 130px;
  opacity: 0.62;
}

.planet {
  position: absolute;
  top: 81vh;
  left: -18vw;
  width: 140vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 6%, rgba(126, 240, 255, 0.24), rgba(61, 123, 255, 0.16) 18%, rgba(10, 18, 40, 0.9) 42%, #050912 68%);
  box-shadow:
    inset 0 2px 0 rgba(126, 240, 255, 0.42),
    inset 0 18px 60px rgba(61, 123, 255, 0.12);
  opacity: 0.8;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit--one {
  left: -14vw;
  top: 74vh;
  width: 126vw;
  height: 32vw;
  border: 1px solid rgba(126, 240, 255, 0.2);
  transform: rotate(-7deg);
}

.orbit--two {
  left: 12vw;
  top: 79vh;
  width: 96vw;
  height: 24vw;
  border: 1px solid rgba(138, 92, 255, 0.22);
  transform: rotate(-11deg);
}

.reticle {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(126, 240, 255, 0.14);
  border-radius: 50%;
  opacity: 0.8;
}

.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  background: rgba(126, 240, 255, 0.18);
}

.reticle::before {
  top: 50%;
  left: -12px;
  right: -12px;
  height: 1px;
}

.reticle::after {
  top: -12px;
  bottom: -12px;
  left: 50%;
  width: 1px;
}

.reticle--one {
  top: 18vh;
  right: -74px;
}

.reticle--two {
  bottom: 12vh;
  left: -86px;
  width: 140px;
  height: 140px;
}

.ghost-word {
  position: absolute;
  right: -2vw;
  bottom: -4vh;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(150px, 22vw, 400px);
  line-height: 0.8;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 1px rgba(126, 240, 255, 0.05);
  user-select: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(126, 240, 255, 0.045) 0,
    rgba(126, 240, 255, 0.045) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.34;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 88% 78% at 50% 42%, transparent 46%, rgba(4, 6, 14, 0.5) 82%, var(--bg) 100%);
}

/* ── Header / marca ────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 4;
  background: linear-gradient(180deg, rgba(4, 6, 14, 0.98), rgba(4, 6, 14, 0.86));
  border-bottom: 1px solid rgba(126, 240, 255, 0.28);
  box-shadow: 0 2px 0 rgba(255, 176, 46, 0.26);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 54px;
  background: linear-gradient(145deg, var(--amber) 0%, #ff8a2e 100%);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-mark svg {
  width: 38px;
  height: 38px;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(3rem, 3.6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.9;
}

.brand-chrome {
  background: linear-gradient(180deg, #ffffff 0%, #dff7ff 27%, #86a5c8 50%, #f2f7ff 64%, #93a9c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--text);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .brand-chrome {
    color: transparent;
  }
}

.brand-lab {
  color: var(--amber);
  text-shadow: 0.035em 0.035em 0 rgba(255, 95, 122, 0.6);
}

.mission-patch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 8px 18px 8px 9px;
  background: linear-gradient(140deg, rgba(126, 240, 255, 0.7), rgba(61, 123, 255, 0.34) 48%, rgba(138, 92, 255, 0.72));
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.mission-patch::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(180deg, #0a1326, #060b15);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.patch-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(126, 240, 255, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, rgba(61, 123, 255, 0.35), rgba(4, 6, 14, 0.9) 70%);
  color: var(--ice);
}

.patch-icon svg {
  width: 28px;
  height: 28px;
}

.patch-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  white-space: nowrap;
}

.patch-copy b {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.patch-copy span {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.patch-copy em {
  color: var(--amber);
  font-style: normal;
}

/* ── Ticker ────────────────────────────────────────────── */

.ticker {
  position: relative;
  z-index: 3;
  height: 30px;
  overflow: hidden;
  border-bottom: 1px solid rgba(126, 240, 255, 0.26);
  background: #060a13;
  contain: layout paint;
}

.ticker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(135deg, var(--amber) 0 10px, var(--bg) 10px 20px);
  opacity: 0.9;
}

.ticker-track {
  position: absolute;
  top: 5px;
  left: 0;
  display: flex;
  width: max-content;
  animation: ticker-slide 44s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 16px;
  padding-right: 16px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-group b {
  color: var(--ice);
  font-weight: 400;
}

.ticker-strong {
  color: var(--text);
}

.ticker-accent {
  color: var(--amber);
}

/* ── Aviso file:// ─────────────────────────────────────── */

.file-notice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 20px 18px 16px 16px;
  border: 1px solid var(--coral);
  border-left: 6px solid var(--amber);
  background:
    repeating-linear-gradient(135deg, rgba(255, 95, 122, 0.08) 0 12px, transparent 12px 24px),
    var(--panel);
  box-shadow: 8px 8px 0 rgba(255, 95, 122, 0.24);
}

.file-notice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--coral) 0 10px, var(--bg) 10px 20px);
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 95, 122, 0.6);
  background: rgba(255, 95, 122, 0.12);
  color: var(--coral);
}

.notice-icon svg {
  width: 25px;
  height: 25px;
}

.notice-copy strong {
  display: block;
  color: var(--amber);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.notice-copy > span {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
}

.notice-copy code {
  padding: 1px 4px;
  background: rgba(126, 240, 255, 0.1);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* ── Hero ──────────────────────────────────────────────── */

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.95fr);
  grid-template-areas:
    "copy card"
    "steps card";
  column-gap: clamp(28px, 3.4vw, 56px);
  row-gap: 16px;
  align-items: center;
  align-content: center;
  padding-block: clamp(14px, 2.6vh, 36px);
}

.hero-copy {
  grid-area: copy;
  align-self: end;
  min-width: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: none;
  background: var(--amber);
}

.kicker-code {
  color: var(--ice);
}

.hero-title {
  max-width: 12ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.8vw, 7rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.title-scramble {
  display: block;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 0.08em;
  white-space: nowrap;
}

.title-line--indent {
  padding-left: 0.52em;
}

.title-line--vote {
  margin-top: 0.035em;
}

.title-word {
  position: relative;
  display: inline-block;
  flex: none;
}

.title-ghost {
  visibility: hidden;
}

.title-text,
.vote {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  white-space: nowrap;
}

.vote-base {
  position: relative;
  z-index: 1;
  color: var(--amber);
  text-shadow: 0.045em 0.045em 0 var(--coral);
}

.vote-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.vote-layer--coral {
  color: var(--coral);
}

.vote-layer--cyan {
  color: var(--ice);
}

.vote.is-glitching .vote-layer--coral {
  animation: glitch-coral 0.7s steps(1, end) 1 both;
}

.vote.is-glitching .vote-layer--cyan {
  animation: glitch-cyan 0.7s steps(1, end) 0.06s 1 both;
}

.title-caret {
  display: inline-block;
  flex: none;
  width: max(5px, 0.075em);
  height: 0.62em;
  background: var(--amber);
  opacity: 0;
}

.title-line.is-scrambling .title-caret {
  opacity: 1;
  animation: caret-blink 0.8s steps(1, end) infinite;
}

.lede {
  max-width: 52ch;
  margin-top: clamp(10px, 1.6vh, 18px);
  padding-left: 15px;
  border-left: 2px solid rgba(126, 240, 255, 0.45);
  color: var(--muted);
  font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ── Protocolo / cards ─────────────────────────────────── */

.steps-block {
  grid-area: steps;
  align-self: start;
  min-width: 0;
}

.steps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.steps-head h2 {
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.steps-head h2 .prompt {
  margin-right: 4px;
  color: var(--amber);
}

.steps-head span {
  color: var(--steel);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.steps-head b {
  color: var(--amber);
  font-weight: 400;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.step {
  position: relative;
  min-width: 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(126, 240, 255, 0.32);
  background:
    linear-gradient(158deg, rgba(61, 123, 255, 0.1), transparent 56%),
    var(--panel);
  transition: transform 150ms ease;
}

.step::before,
.step::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.step::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--ice);
  border-left: 2px solid var(--ice);
}

.step::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--ice);
  border-bottom: 2px solid var(--ice);
}

.step:hover {
  transform: translateY(-2px);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.step-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.step-num {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.step-tag {
  overflow: hidden;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--ice);
}

.step-icon svg {
  width: 21px;
  height: 21px;
}

.step h3 {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-cmd {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-cmd .prompt {
  margin-right: 3px;
  color: var(--amber);
}

.step-foot {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(126, 240, 255, 0.3);
}

.step-barcode {
  display: block;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--text) 0 2px,
    transparent 2px 4px,
    var(--text) 4px 7px,
    transparent 7px 10px,
    var(--text) 10px 11px,
    transparent 11px 14px
  );
  opacity: 0.58;
}

.boot-log {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.boot-log .prompt {
  color: var(--amber);
}

.caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--amber);
  animation: caret-blink 1.2s steps(1, end) infinite;
}

/* ── Pase de abordaje / QR ─────────────────────────────── */

.qr-card {
  position: relative;
  grid-area: card;
  justify-self: end;
  align-self: center;
  width: min(100%, 410px);
  padding: 14px;
  border: 1px solid var(--ice);
  background:
    linear-gradient(158deg, rgba(126, 240, 255, 0.06), transparent 44%),
    var(--panel);
  box-shadow: 10px 10px 0 rgba(61, 123, 255, 0.32);
  outline: 1px solid rgba(126, 240, 255, 0.16);
  outline-offset: -6px;
}

.corner {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  border-color: var(--ice);
  border-style: solid;
  pointer-events: none;
}

.corner--tl {
  top: 5px;
  left: 5px;
  border-width: 2px 0 0 2px;
}

.corner--tr {
  top: 5px;
  right: 5px;
  border-width: 2px 2px 0 0;
}

.corner--bl {
  bottom: 5px;
  left: 5px;
  border-width: 0 0 2px 2px;
}

.corner--br {
  right: 5px;
  bottom: 5px;
  border-width: 0 2px 2px 0;
}

.qr-head {
  margin-top: 0;
}

.qr-head h2 {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.pass-fields {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.6fr;
  gap: 7px;
  margin-top: 9px;
  padding-block: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pass-fields div {
  min-width: 0;
}

.pass-fields dt {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.pass-fields dd {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pass-fields div:first-child dd {
  color: var(--amber);
}

.pass-fields div:last-child dd {
  color: var(--ice);
}

.perforation {
  height: 0;
  margin: 7px -14px 0;
  border-top: 1px dashed rgba(126, 240, 255, 0.32);
}

.qr-figure {
  margin-top: 7px;
}

.qr-frame {
  padding: clamp(7px, 0.8vw, 11px);
  border: 3px solid var(--ice);
  background: #ffffff;
  box-shadow: 5px 5px 0 rgba(61, 123, 255, 0.42);
}

.qr-host {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ffffff;
}

.qr-host svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-host svg path {
  shape-rendering: crispEdges;
}

.qr-noscript {
  padding: 16px;
  color: #2b2b36;
  font-family: var(--font-ui);
  font-size: 13px;
  text-align: center;
}

.scan-code {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 7px;
  padding-left: 2px;
  text-align: left;
}

.scan-cmd {
  display: inline-flex;
  align-items: center;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.scan-cmd .prompt {
  margin-right: 5px;
  color: var(--amber);
}

.scan-cmd .caret {
  margin-left: 5px;
}

.scan-note {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.share {
  margin-top: 7px;
}

.share-url {
  display: block;
  padding: 5px 7px;
  border: 1px solid rgba(126, 240, 255, 0.26);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  user-select: all;
}

.share-url::before {
  content: ">_ ";
  color: var(--amber);
}

.card-actions {
  margin-top: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 130ms ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.btn-primary {
  width: 100%;
  min-height: 42px;
  border-color: var(--bg);
  background: var(--amber);
  color: var(--bg);
  box-shadow: 4px 4px 0 rgba(255, 95, 122, 0.42);
}

.btn-primary:hover:not(:disabled) {
  transform: translate(-2px, -2px);
}

.btn-primary:active:not(:disabled) {
  transform: translate(2px, 2px);
}

.btn-primary:focus-visible {
  outline-color: var(--text);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.btn-row .btn {
  flex: 1 1 132px;
  min-height: 38px;
  border-color: var(--bg);
  background: var(--ice);
  color: var(--bg);
  box-shadow: 3px 3px 0 rgba(61, 123, 255, 0.45);
}

.btn-row .btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
}

.btn-row .btn:active:not(:disabled) {
  transform: translate(2px, 2px);
}

#fullscreen-btn .icon-collapse {
  display: none;
}

#fullscreen-btn[aria-pressed="true"] .icon-expand {
  display: none;
}

#fullscreen-btn[aria-pressed="true"] .icon-collapse {
  display: block;
}

.barcode {
  height: 13px;
  margin-top: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--text) 0 2px,
    transparent 2px 4px,
    var(--text) 4px 7px,
    transparent 7px 10px,
    var(--text) 10px 11px,
    transparent 11px 14px
  );
  opacity: 0.62;
}

/* ── Toast ─────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 4vh, 32px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 11px 16px 11px 11px;
  border: 1px solid var(--ice);
  background: #060a13;
  box-shadow: 6px 6px 0 rgba(255, 95, 122, 0.4);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  background: var(--amber);
  color: var(--bg);
}

.toast-icon svg {
  width: 16px;
  height: 16px;
}

.toast-icon-error {
  display: none;
}

.toast[data-tone="error"] {
  border-color: var(--coral);
}

.toast[data-tone="error"] .toast-icon {
  background: var(--coral);
  color: var(--bg);
}

.toast[data-tone="error"] .toast-icon-ok {
  display: none;
}

.toast[data-tone="error"] .toast-icon-error {
  display: block;
}

/* ── Animaciones ───────────────────────────────────────── */

.reveal {
  animation: rise 0.6s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.reveal--card {
  animation-delay: 0.08s;
}

.reveal--steps {
  animation-delay: 0.14s;
}

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

@keyframes ticker-slide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes glitch-coral {
  0% {
    opacity: 0.8;
    transform: translate3d(-5px, 2px, 0);
  }
  26% {
    opacity: 0.8;
    transform: translate3d(4px, -1px, 0);
  }
  28% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes glitch-cyan {
  0% {
    opacity: 0.62;
    transform: translate3d(4px, -2px, 0);
  }
  21% {
    opacity: 0.62;
    transform: translate3d(-3px, 2px, 0);
  }
  23% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1180px) {
  .header-inner {
    gap: 16px;
  }

  .brand-name {
    font-size: 3rem;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.95fr);
    column-gap: 30px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 5.6vw, 5rem);
  }

  .qr-card {
    width: min(100%, 360px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "card"
      "steps";
    row-gap: 26px;
    padding-block: 28px 40px;
  }

  .hero-copy {
    align-self: start;
  }

  .hero-title {
    max-width: 12ch;
    font-size: clamp(3.2rem, 9vw, 5.8rem);
  }

  .lede {
    max-width: 58ch;
  }

  .qr-card {
    justify-self: center;
    width: min(100%, 480px);
  }

  .steps-block {
    width: 100%;
  }

  .steps-head h2 {
    font-size: 10.5px;
  }

  .step h3 {
    font-size: 12.5px;
  }

  .step-cmd {
    font-size: 10px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 9px 14px;
    min-height: 0;
    padding-block: 10px;
  }

  .mission-patch {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    padding: 7px 14px 7px 8px;
  }

  .patch-icon {
    width: 32px;
    height: 32px;
  }

  .patch-icon svg {
    width: 24px;
    height: 24px;
  }

  .patch-copy b {
    font-size: 11.5px;
  }

  .patch-copy span {
    font-size: 8px;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 46px;
    height: 43px;
  }

  .brand-mark svg {
    width: 31px;
    height: 31px;
  }

  .brand-name {
    font-size: 34px;
  }

  .ticker {
    height: 26px;
  }

  .ticker::before {
    height: 4px;
  }

  .ticker-track {
    top: 4px;
  }

  .ticker-group {
    gap: 12px;
    padding-right: 12px;
    font-size: 10px;
    line-height: 16px;
  }

  .file-notice {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
    padding: 18px 14px 14px;
  }

  .notice-icon {
    width: 36px;
    height: 36px;
  }

  .hero {
    row-gap: 22px;
    padding-block: 22px 34px;
  }

  .hero-kicker {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .hero-title {
    font-size: clamp(3rem, 13.6vw, 4.5rem);
  }

  .title-line--indent {
    padding-left: 0.4em;
  }

  .lede {
    margin-top: 12px;
    padding-left: 12px;
    font-size: 14.5px;
    line-height: 1.6;
  }

  .steps {
    gap: 8px;
  }

  .step {
    padding: 11px 11px 10px;
  }

  .step h3 {
    font-size: 12px;
  }

  .step-cmd {
    font-size: 10px;
  }

  .qr-card {
    width: 100%;
    padding: 13px;
    box-shadow: 7px 7px 0 rgba(61, 123, 255, 0.3);
  }

  .qr-head h2 {
    font-size: 1.08rem;
  }

  .qr-frame {
    padding: 8px;
  }

  .btn {
    min-height: 44px;
    font-size: 11.5px;
  }

  .btn-primary {
    min-height: 46px;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
    flex: 1 1 auto;
    min-height: 44px;
  }

  .share-url {
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 32px;
  }

  .hero-title {
    font-size: clamp(2.85rem, 13.4vw, 3.7rem);
  }

  .step {
    padding: 11px 10px 10px;
  }

  .step-tag {
    font-size: 8px;
  }

  .step h3 {
    font-size: 12px;
  }

  .step-cmd {
    font-size: 10px;
  }

  .qr-card {
    padding: 12px;
  }
}

/* ── Compacto por altura (proyección) ──────────────────── */

@media (min-width: 901px) and (max-height: 800px) {
  .header-inner {
    min-height: 64px;
    padding-block: 6px;
  }

  .brand-mark {
    width: 48px;
    height: 45px;
  }

  .brand-mark svg {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 3rem;
  }

  .patch-icon {
    width: 32px;
    height: 32px;
  }

  .patch-icon svg {
    width: 24px;
    height: 24px;
  }

  .mission-patch {
    padding: 6px 14px 6px 8px;
  }

  .patch-copy b {
    font-size: 11.5px;
  }

  .ticker {
    height: 24px;
  }

  .ticker::before {
    height: 4px;
  }

  .ticker-track {
    top: 4px;
  }

  .ticker-group {
    gap: 12px;
    padding-right: 12px;
    font-size: 10px;
    line-height: 15px;
  }

  .hero {
    column-gap: 32px;
    row-gap: 10px;
    padding-block: 8px;
  }

  .hero-kicker {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
  }

  .lede {
    margin-top: 8px;
    padding-left: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .steps-head {
    margin-bottom: 6px;
    padding-bottom: 4px;
  }

  .steps {
    gap: 7px;
  }

  .step {
    padding: 11px 12px 10px;
  }

  .step h3 {
    font-size: 12px;
  }

  .step-cmd {
    font-size: 10px;
  }

  .step-top {
    margin-bottom: 5px;
  }

  .step-icon {
    width: 20px;
    height: 20px;
  }

  .step-icon svg {
    width: 19px;
    height: 19px;
  }

  .step-foot {
    margin-top: 7px;
    padding-top: 5px;
  }

  .step-barcode {
    height: 5px;
  }

  .boot-log {
    margin-top: 5px;
    padding-top: 4px;
    font-size: 9px;
  }

  .qr-card {
    width: min(100%, 340px);
    padding: 12px;
    box-shadow: 7px 7px 0 rgba(61, 123, 255, 0.3);
  }

  .qr-head {
    margin-top: 0;
  }

  .qr-head h2 {
    font-size: 1rem;
  }

  .pass-fields {
    margin-top: 7px;
    padding-block: 6px;
  }

  .perforation {
    margin: 6px -12px 0;
  }

  .qr-figure {
    margin-top: 6px;
  }

  .qr-frame {
    padding: 7px;
  }

  .scan-code {
    margin-top: 5px;
  }

  .share {
    margin-top: 6px;
  }

  .share-url {
    padding: 4px 7px;
    font-size: 9.5px;
  }

  .card-actions {
    margin-top: 6px;
  }

  .btn-primary {
    min-height: 38px;
    font-size: 10.5px;
  }

  .btn-row {
    gap: 5px;
    margin-top: 5px;
  }

  .btn-row .btn {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 9.5px;
  }

  .btn-row .btn svg {
    width: 14px;
    height: 14px;
  }

  .barcode {
    height: 10px;
    margin-top: 6px;
  }
}

@media (min-width: 901px) and (max-height: 690px) {
  .header-inner {
    min-height: 58px;
    padding-block: 4px;
  }

  .brand-mark {
    width: 44px;
    height: 41px;
  }

  .brand-mark svg {
    width: 29px;
    height: 29px;
  }

  .brand-name {
    font-size: 2.8rem;
  }

  .ticker {
    height: 22px;
  }

  .ticker::before {
    height: 3px;
  }

  .ticker-track {
    top: 3px;
  }

  .hero {
    padding-block: 5px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 4.7vw, 4.2rem);
  }

  .lede {
    margin-top: 6px;
    font-size: 0.85rem;
  }

  .step {
    padding: 11px 11px 10px;
  }

  .step h3 {
    font-size: 12px;
  }

  .step-cmd {
    font-size: 10px;
  }

  .boot-log {
    margin-top: 4px;
    padding-top: 3px;
    font-size: 8.5px;
  }

  .qr-card {
    width: min(100%, 326px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .vote-layer,
  .caret,
  .title-caret {
    animation: none;
  }

  .vote-layer {
    opacity: 0;
  }

  .caret {
    opacity: 1;
  }

  .title-caret {
    display: none;
  }

  .ticker-track {
    animation: none;
    transform: none;
  }
}
