/* NEXUS — web comercial (M3.5). Los mismos colores que la app (tema «Noche»), fuentes del sistema y nada de fuera. */
:root {
  --night: #0a0e1a;
  --deep: #111829;
  --line: #243049;
  --text: #eef2fb;
  --muted: #a3b0c9;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --signal: #5eead4;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #93c5fd;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--night);
  font-weight: 700;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

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

/* Cabecera y navegación */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.top nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.5rem;
  display: inline-block;
}

.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--text);
}

.top nav a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--violet);
}

/* Portada: cielo de estrellas como el fondo de la app, solo aquí */
.hero {
  background:
    radial-gradient(1px 1px at 12% 22%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 14%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 58%, #fffa 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 70%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 36%, #fff6 50%, transparent 51%),
    radial-gradient(60rem 30rem at 85% 30%, #4f46e533, transparent 70%),
    radial-gradient(40rem 26rem at 10% 90%, #2563eb26, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 3rem;
  padding-block: 3.5rem 5rem;
}

h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.button:hover {
  color: var(--text);
  border-color: var(--blue);
}

/* La escena: el dedo en el móvil mueve el cursor del PC */
.scene {
  width: 100%;
  height: auto;
  overflow: visible;
}

.scene .mini,
.scene .cursor {
  animation: glide 7s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

/* El dedo y el cursor del visor recorren lo mismo que el cursor del PC, a la escala del móvil (0,32). */
.scene .mini {
  --dx: 37.8px;
  --dy: -23.7px;
}

.scene .cursor {
  --dx: 118px;
  --dy: -74px;
}

.scene .trail {
  stroke-dasharray: 4 8;
  animation: flow 1.4s linear infinite;
}

@keyframes glide {
  0%, 12% { transform: translate(0, 0); }
  45%, 62% { transform: translate(var(--dx), var(--dy)); }
  92%, 100% { transform: translate(0, 0); }
}

@keyframes flow {
  to { stroke-dashoffset: -24; }
}

@media (prefers-reduced-motion: reduce) {
  .scene .mini,
  .scene .cursor,
  .scene .trail {
    animation: none;
  }
}

/* Secciones */
.section {
  padding-block: 4.5rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.section > .wrap > p,
.prose p,
.prose li {
  max-width: 40rem;
}

.muted {
  color: var(--muted);
}

/* Qué puedes hacer: lista sin orden, en columnas de texto */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 3rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.features h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.features h3::before {
  content: '';
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 0.9rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

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

/* Cómo empezar: es una secuencia de verdad, por eso va numerada */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--violet);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

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

/* Seguridad: tres afirmaciones en dos columnas de texto, sin tarjetas */
.claims {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  margin: 2.5rem 0 0;
}

.claims dt {
  font-weight: 700;
  font-size: 1.15rem;
}

.claims dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Planes */
.table-scroll {
  overflow-x: auto;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}

caption {
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--muted);
}

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

thead th {
  background: var(--deep);
  font-size: 1.1rem;
}

thead th span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

tbody th {
  font-weight: 500;
  color: var(--muted);
}

.yes {
  color: var(--signal);
  font-weight: 700;
}

.no {
  color: var(--muted);
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--violet);
  background: var(--deep);
  max-width: 44rem;
}

.section-tight {
  padding-block: 1.5rem 4rem;
}

/* Guías y textos largos */
.page-head {
  padding-block: 3rem 1rem;
}

.page-head p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0;
}

.guide-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  padding-block: 2rem 5rem;
}

.toc {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc li {
  margin-bottom: 0.4rem;
}

.prose h2 {
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  font-size: 1.75rem;
  letter-spacing: -0.015em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

kbd {
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--deep);
  font: inherit;
  font-size: 0.92em;
}

/* Problemas frecuentes: el mensaje que ve el usuario y qué hacer */
.faq {
  margin: 1.5rem 0 0;
  max-width: 44rem;
}

.faq dt {
  margin-top: 1.5rem;
  font-weight: 700;
}

.faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Pie */
.foot {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.foot p {
  margin: 0;
}

/* Móvil */
@media (max-width: 52rem) {
  .hero-grid,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 2rem 3.5rem;
  }

  .steps,
  .claims,
  .features {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .section {
    padding-block: 3.25rem;
  }
}
