/* DiztLink: misma paleta y tipografía que la app, para que la web y el programa se sientan uno. */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #131417;
  --bg-2: #18191d;
  --surface: #1f2126;
  --sunken: #15161a;
  --hover: #262930;
  --line: #2a2d34;
  --line-2: #373b44;
  --ink: #ececee;
  --soft: #b3b6be;
  --muted: #8a8e98;
  --faint: #636772;
  --accent: #5e8bff;
  --accent-2: #7499ff;
  --signal: #3fcf8e;
  --amber: #e8a23a;
  --rose: #ee5d5d;
  --radius: 10px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: rgb(94 139 255 / 0.35);
}
.mono {
  font-family: var(--mono);
  font-feature-settings: normal;
}

/* ---------- Marca ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg {
  width: 28px;
  height: 28px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
  font-weight: 500;
}
.btn-secondary:hover {
  background: var(--hover);
  border-color: #454a55;
}
.btn-block {
  width: 100%;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Página principal ---------- */
.wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.top nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.top nav a {
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 96px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 650;
  max-width: 12ch;
}
.hero .lede {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--soft);
}
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}
.hero .cta-note {
  font-size: 14px;
  color: var(--muted);
}

/* Diagrama: dos PCs y una línea directa entre ellos. */
.link-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 32px 28px 22px;
}
.link-figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.link-figure figcaption {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.link-figure figcaption b {
  color: var(--ink);
  font-weight: 500;
}
/* Secciones */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 620;
  max-width: 22ch;
}
.section .intro {
  margin: 14px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 16.5px;
}

/* Comparación de caminos */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
.path {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  background: var(--bg-2);
}
.path.ours {
  border-color: rgb(94 139 255 / 0.4);
  background: linear-gradient(180deg, rgb(94 139 255 / 0.06), transparent 70%), var(--bg-2);
}
.path h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.path p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.route {
  display: flex;
  align-items: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--soft);
}
.route .node {
  flex: none;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface);
  white-space: nowrap;
}
.route .node.far {
  border-style: dashed;
  color: var(--muted);
}
.route .wire {
  flex: 1;
  height: 1px;
  min-width: 18px;
  background: var(--line-2);
}
.ours .route .wire {
  height: 2px;
  background: var(--accent);
}

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 28px 0 0;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font: 500 13px/1 var(--mono);
  color: var(--soft);
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 0;
  height: 1px;
  background: var(--line);
}
.steps h3 {
  margin: 18px 0 0;
  font-size: 16px;
  font-weight: 600;
}
.steps p {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 30ch;
}

/* Juegos */
.games {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
.games li {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  font-size: 15px;
}
.games li span {
  font: 400 12.5px/1 var(--mono);
  color: var(--faint);
}
.games li.other {
  border-style: dashed;
  color: var(--muted);
}

/* Seguridad */
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 44px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.facts div {
  padding: 22px 24px;
  background: var(--bg-2);
}
.facts dt {
  font-weight: 600;
  font-size: 15px;
}
.facts dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.foot {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--faint);
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}

/* ---------- Invitación ---------- */
.invite-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.invite-page .top {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}
.invite-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 20px 64px;
}
.ticket {
  width: min(460px, 100%);
}
.pair {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
  background: #3d5ba8;
}
.avatar.you {
  background: var(--surface);
  color: var(--soft);
  border: 1px dashed var(--line-2);
  font-size: 14px;
  font-weight: 500;
}
.pair .wire {
  position: relative;
  flex: 1;
  max-width: 120px;
  height: 2px;
  margin: 0 10px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px);
  opacity: 0.8;
}
.pair .wire::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(94 139 255 / 0.18);
  animation: hop 2.4s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes hop {
  0% {
    left: 0;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}
.ticket h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 640;
}
.ticket .lede {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 16px;
  max-width: 40ch;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--soft);
  background: var(--bg-2);
}
.chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}
.chip.warn {
  color: var(--amber);
  border-color: rgb(232 162 58 / 0.35);
}
.chip.warn i {
  background: var(--amber);
}
.actions {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}
.panel {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 18px 20px;
}
.panel h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}
.panel ol {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}
.panel ol li + li {
  margin-top: 4px;
}
.panel b {
  color: var(--ink);
  font-weight: 500;
}
.panel p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.panel.reveal {
  animation: rise 0.35s ease-out both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.privacy {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--faint);
}
.privacy svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--signal);
}
.state-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 26px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.state-icon svg {
  width: 22px;
  height: 22px;
}
.state-icon.rose {
  color: var(--rose);
  border-color: rgb(238 93 93 / 0.35);
}
.state-icon.amber {
  color: var(--amber);
  border-color: rgb(232 162 58 / 0.35);
}

/* ---------- Adaptación ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 40px 0 72px;
  }
  .paths,
  .facts {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps li {
    padding: 0 0 0 48px;
  }
  .steps li::before {
    position: absolute;
    left: 0;
    top: 0;
  }
  .steps li:not(:last-child)::after {
    top: 34px;
    left: 15px;
    right: auto;
    bottom: -24px;
    width: 1px;
    height: auto;
  }
  .steps h3 {
    margin-top: 3px;
  }
  .top nav {
    display: none;
  }
  .section {
    padding: 64px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pair .wire::after,
  .panel.reveal {
    animation: none;
  }
  .pulse {
    display: none;
  }
  .pair .wire::after {
    left: calc(50% - 4px);
  }
}
.sr-copy {
  position: fixed;
  top: -1000px;
  left: 0;
  opacity: 0;
}
