/* Gesture Remote: sitio estático sin fuentes, scripts ni rastreadores externos. */

:root {
  --night: #000525;
  --navy: #020b3d;
  --navy-2: #071a6b;
  --blue: #2f6bff;
  --cyan: #38d6ff;
  --violet: #a78bfa;

  --bg: #04081f;
  --surface: #0b1438;
  --surface-2: #101c4a;
  --text: #e9eefc;
  --muted: #a8b4d6;
  --line: #1d2a5e;
  --link: #6fdcff;

  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7ff;
    --surface: #ffffff;
    --surface-2: #eef2ff;
    --text: #0d1640;
    --muted: #4a5682;
    --line: #d8def5;
    --link: #1849d6;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* Cabecera */

.site-header {
  background: var(--night);
  color: #fff;
  border-bottom: 1px solid #12205a;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.125rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: #c9d6ff;
  padding-block: 0.375rem;
}

/* Portada */

.hero {
  background:
    radial-gradient(60rem 30rem at 15% 20%, rgba(56, 214, 255, 0.18), transparent 60%),
    radial-gradient(50rem 30rem at 90% 80%, rgba(167, 139, 250, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--night) 70%);
  color: #fff;
  padding-block: 3rem 3.5rem;
}

.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .hero .wrap {
    grid-template-columns: 1fr 1.05fr;
  }
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--cyan);
}

.tagline {
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #d9e4ff;
}

.hero p {
  color: #dfe7ff;
}

.hero-art img {
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(111, 220, 255, 0.15);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #031033;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.5rem 1.5rem rgba(47, 107, 255, 0.35);
}

.button:hover {
  filter: brightness(1.08);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px dashed rgba(201, 214, 255, 0.55);
  color: #c9d6ff;
  font-weight: 600;
}

.soon small {
  font-weight: 400;
  opacity: 0.85;
}

.note {
  font-size: 0.9375rem;
  color: #b9c6ec !important;
}

.hero .note a {
  color: #9fe6ff;
}

/* Secciones */

section {
  padding-block: 3.25rem;
}

section + section {
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
}

.lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 44rem;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1rem;
}

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

.card p + p {
  margin-top: 0.6rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.625rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #031033;
  font-weight: 800;
}

.steps.compact {
  display: block;
  counter-reset: none;
  padding-left: 1.25rem;
  list-style: decimal;
}

.steps.compact li {
  counter-increment: none;
  background: none;
  border: 0;
  padding: 0.125rem 0;
}

.steps.compact li::before {
  content: none;
}

/* Tablas de gestos */

.tables {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  font-size: 0.975rem;
}

caption {
  text-align: left;
  font-weight: 700;
  padding: 0 0 0.5rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--surface-2);
  font-size: 0.875rem;
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: 0;
}

kbd {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 0.35rem;
  background: var(--surface-2);
  white-space: nowrap;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.05rem 0.35rem;
  overflow-wrap: anywhere;
}

pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.875rem;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
}

/* Conexión */

.two {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
}

.downloads a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-decoration: none;
  font-size: 0.9375rem;
}

details {
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  color: var(--link);
}

/* Privacidad */

.privacy-band {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
}

.checks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.checks li::before {
  content: "✓";
  display: inline-block;
  width: 1.5rem;
  color: var(--cyan);
  font-weight: 800;
}

/* Capturas */

.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.shots img {
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  margin-inline: auto;
  max-height: 34rem;
  width: auto;
}

figure {
  margin: 0;
}

figcaption {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Páginas de texto (política de privacidad) */

.doc {
  padding-block: 2.5rem 3.5rem;
}

.doc .wrap {
  max-width: 46rem;
}

.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.25rem;
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.doc .updated {
  color: var(--muted);
  margin-top: 0;
}

.doc table {
  margin: 0.75rem 0 1rem;
}

/* Pie */

.site-footer {
  background: var(--night);
  color: #b9c6ec;
  padding-block: 1.5rem;
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: #9fe6ff;
}

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