/* Same dark palette as the app (apps/web/src/styles/tokens.css); dark theme only (REQ-THEME-001). */
@font-face {
  font-family: "Nunito";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
}

:root {
  --bg-body: #0b0716;
  --bg-card: #181025;
  --border-color: #2e2241;
  --primary: #9057c3;
  --text-primary: #f4f1ff;
  --text-muted: #a99fc8;
  --text-accent: #b98ee0;
  --text-highlight: #50ff5c;
  --danger: #ff8a8a;
  --radius: 14px;
  --font-heading: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* A soft violet glow at the top and a faint green one on the side: the same mood as the presentation, never louder than the text. */
body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(900px 520px at 88% -4%, rgba(144, 87, 195, 0.2), transparent 62%),
    radial-gradient(700px 460px at -6% 38%, rgba(80, 255, 92, 0.045), transparent 62%),
    radial-gradient(800px 500px at 100% 82%, rgba(144, 87, 195, 0.1), transparent 62%), var(--bg-body);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* Dots like the modules of the logo's QR bunch, fading out down the page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(185, 142, 224, 0.13) 1.6px, transparent 1.8px) 0 0 / 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

main,
.bar,
footer {
  width: min(1040px, 100% - 32px);
  margin-inline: auto;
}

/* Holds the logo symbol only; it takes no space. */
.sprite {
  position: absolute;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--text-highlight);
  color: var(--bg-body);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

a {
  color: var(--text-accent);
}

:focus-visible {
  outline: 3px solid var(--text-highlight);
  outline-offset: 3px;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark {
  width: 32px;
  height: 37px;
  flex: none;
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.w-grape {
  color: var(--primary);
}
.w-field {
  color: var(--text-highlight);
}

.btn {
  display: inline-block;
  min-height: 44px;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn-small {
  padding: 8px 18px;
  min-height: 40px;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--text-accent);
  color: var(--text-primary);
}

/* The three sections of the page: Inicio, Precios and Contacto. */
.sections {
  display: flex;
  align-items: center;
  gap: 4px 20px;
}
.nav-link {
  padding: 10px 4px;
  color: var(--text-muted);
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text-primary);
}
.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--text-highlight);
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 60px -24px rgba(144, 87, 195, 0.55);
}

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 48px 0 56px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--text-highlight);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
}
.lead,
.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.lead {
  margin: 0 0 28px;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
}
/* The title of the Precios and Contacto pages: the page's only h1, sized like a section title. */
.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}
section {
  padding: 40px 0;
}
.section-lead {
  margin: 0 0 28px;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  padding: 22px;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.card h3 {
  margin: 12px 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--text-muted);
}
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.chip-on {
  background: rgba(80, 255, 92, 0.14);
  color: var(--text-highlight);
}
.chip-soon {
  background: rgba(185, 142, 224, 0.16);
  color: var(--text-accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: rgba(80, 255, 92, 0.06);
  border: 1px solid rgba(80, 255, 92, 0.35);
  border-radius: var(--radius);
}
.trial h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
}
.trial p {
  margin: 0;
  max-width: 60ch;
  color: var(--text-muted);
}

.plans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.plan-featured {
  border-color: var(--primary);
  box-shadow: 0 18px 50px -26px rgba(144, 87, 195, 0.9);
}
.plan h3 {
  margin: 10px 0 4px;
  font-size: 1.3rem;
  font-weight: 800;
}
.plan:not(.plan-featured) h3 {
  margin-top: 0;
}
.plan-for {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.price {
  margin: 0 0 4px;
  line-height: 1.2;
}
.amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}
.per {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.included {
  margin: 8px 0 14px;
  color: var(--text-accent);
  font-size: 0.9rem;
  font-weight: 700;
}
.plan-list {
  flex: 1;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.plan-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--text-highlight);
  font-weight: 800;
}
.plan-list .chip {
  margin-left: 4px;
  vertical-align: 1px;
}
.video {
  margin: 0 0 48px;
}
.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.video figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.step-title {
  margin: 40px 0 12px;
  font-size: 1.4rem;
}
.step-lead {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--text-muted);
}
.step-lead strong {
  color: var(--text-primary);
}
.enterprise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 16px;
  padding: 20px 24px;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.enterprise h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
}
.enterprise p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
}
.packs {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.packs th,
.packs td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  color: var(--text-muted);
}
.packs thead th {
  font-size: 0.85rem;
  color: var(--text-accent);
}
.packs tbody th {
  color: var(--text-primary);
  font-weight: 800;
}
.packs tr:last-child th,
.packs tr:last-child td {
  border-bottom: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.plan-notes {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.plan-notes li {
  margin-bottom: 6px;
}
.plan-notes strong {
  color: var(--text-primary);
}

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}
.steps {
  margin: 0;
  padding-left: 22px;
  color: var(--text-muted);
}
.steps li {
  margin-bottom: 10px;
}
.steps strong {
  color: var(--text-primary);
}

.demo {
  display: grid;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  padding: 32px;
  background: rgba(24, 16, 37, 0.86);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.demo-photo {
  display: none;
}
form {
  max-width: 520px;
}
.field {
  margin-bottom: 18px;
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.optional {
  color: var(--text-muted);
  font-weight: 400;
}
input[type="email"],
input[type="text"],
input[type="tel"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--bg-body);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font: inherit;
}
input[aria-invalid="true"] {
  border-color: var(--danger);
}
.hint {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.error {
  margin: 4px 0 0;
  min-height: 0;
  color: var(--danger);
  font-size: 0.9rem;
}
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--primary);
}
.check label {
  margin: 0;
  font-weight: 400;
}
.check .error {
  grid-column: 2;
}
.privacy {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.status {
  margin: 14px 0 0;
  font-weight: 600;
}
.status[data-kind="ok"] {
  color: var(--text-highlight);
}
.status[data-kind="error"] {
  color: var(--danger);
}

/* Bots fill it; people never see it. Off-screen instead of display:none so simple bots still fill it. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.brand-small .wordmark {
  font-size: 1.25rem;
}
.brand-small .mark {
  width: 24px;
  height: 28px;
}
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.velt {
  width: 56px;
  height: 56px;
}
.copy {
  margin: 0;
  width: 100%;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding: 72px 0 64px;
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .split-reverse .photo {
    order: -1;
  }
  .demo {
    grid-template-columns: 1fr minmax(240px, 320px);
    gap: 48px;
  }
  .demo-photo {
    display: block;
  }
  .copy {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
