@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #121214;
  --surface-2: #1b1b1f;
  --line: #2c2c32;
  --field-line: #75757f;
  --ink: #ffffff;
  --muted: #b4b4bc;
  --accent: #3ddc97;
  --accent-strong: #62e8ae;
  --on-accent: #03130c;
  --glow-a: #0c8f88;
  --glow-b: #1e4fd8;
  --error: #ff9d8f;
  --bubble-me: #0b5c4b;
  --bubble-shop: #26262c;
  --nav-height: 68px;
  --section: clamp(80px, 11vw, 136px);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 em,
h2 em {
  color: var(--accent);
  font-style: normal;
}

h2 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
}

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

.wrap {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.center {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 12px;
  font:
    800 1.0625rem/1.1 "Manrope",
    system-ui,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.cta {
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
}

.cta:hover {
  background: var(--accent-strong);
}

.cta[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.ghost {
  border: 2px solid var(--accent);
  color: var(--ink);
}

.ghost:hover {
  background: var(--surface-2);
}

.cta-small {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.9375rem;
}

/* Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(0 0 0 / 0.88);
  backdrop-filter: blur(10px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--nav-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  flex: none;
}

.nav nav {
  display: none;
}

.nav nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav nav a:hover {
  color: var(--ink);
}

/* Inicio */
.hero {
  padding: 32px 0 40px;
}

.pill {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
}

.hero-copy {
  text-align: center;
}

h1 {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(2.25rem, 6.4vw, 4.5rem);
  line-height: 1.06;
}

.lead {
  max-width: 660px;
  margin: 18px auto 24px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-actions > * {
  flex: 1 1 100%;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage {
  position: relative;
  margin-top: 44px;
  padding-bottom: 32px;
}

.glow {
  position: absolute;
  inset: 8% -20% 0;
  background:
    radial-gradient(45% 60% at 22% 45%, var(--glow-a), transparent 72%),
    radial-gradient(45% 60% at 78% 45%, var(--glow-b), transparent 72%);
  filter: blur(36px);
  opacity: 0.75;
}

.window {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4a4a52;
}

.window-body {
  display: grid;
}

.screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 500px;
  padding: 16px;
  overflow: hidden;
}

.msg {
  flex: none;
  width: fit-content;
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.msg.me {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--bubble-me);
}

.msg.shop {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--bubble-shop);
}

.msg img {
  width: 100%;
  height: 130px;
  margin-bottom: 8px;
  border-radius: 10px;
  object-fit: cover;
  object-position: 50% 20%;
}

.msg time {
  display: block;
  margin-top: 2px;
  color: #c9d3d6;
  font-size: 0.6875rem;
  text-align: right;
}

.is-playing .msg.pending {
  display: none;
}

.msg.enter {
  animation: rise 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.typing {
  display: flex;
  flex: none;
  gap: 4px;
  align-self: flex-start;
  padding: 13px;
  border-radius: 14px;
  background: var(--bubble-shop);
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 160ms;
}

.typing i:nth-child(3) {
  animation-delay: 320ms;
}

.order {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.9375rem;
  transition:
    opacity 320ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-waiting .order {
  opacity: 0;
  transform: translateY(10px);
}

.order-kicker {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
}

.order-total {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.order-time {
  margin-top: 8px;
  font-size: 0.8125rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

/* Agente de ventas */
.sales {
  padding-bottom: var(--section);
  overflow-x: clip;
}

.demo-grid {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.tabs {
  display: none;
}

.js .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font:
    700 0.9375rem/1.1 "Manrope",
    system-ui,
    sans-serif;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.tab small {
  color: var(--muted);
  font-size: 0.75rem;
}

.tab:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.tab[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--ink);
}

.tab[aria-selected="true"] small {
  color: var(--accent);
}

.panels {
  display: grid;
  gap: 24px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.js .panel:not([hidden]) {
  animation: rise 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.panel > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 22%;
}

[data-panel="fotos"] > img {
  object-position: 74% 50%;
}

.panel-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.tag {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.panel-note {
  padding: 0 16px 20px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Cómo funciona */
.how {
  padding-bottom: var(--section);
}

.how-grid {
  display: grid;
  gap: 48px;
}

.steps {
  margin: 28px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.8;
}

.shots {
  position: relative;
  margin: 0;
}

.shots img {
  border-radius: 18px;
}

.shot-main {
  width: 72%;
}

.shot-side {
  position: absolute;
  top: 9%;
  right: 0;
  width: 44%;
  border: 4px solid var(--bg);
}

.shots figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Gratis: lo principal de la página */
.free {
  padding-bottom: var(--section);
}

.free-card {
  padding: clamp(28px, 6vw, 72px);
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(30 79 216 / 0.8), transparent 70%),
    radial-gradient(80% 100% at 0% 100%, rgb(12 143 136 / 0.95), transparent 70%),
    var(--surface);
}

.free-kicker {
  color: var(--accent);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.free-card h2 {
  max-width: 16em;
  margin-top: 4px;
}

.free-number {
  display: block;
  font-size: clamp(7rem, 30vw, 17rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.free-rule {
  margin-top: 20px;
  font-size: 1.125rem;
  font-weight: 600;
}

.sum {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  font-weight: 600;
}

.sum b {
  display: block;
  color: var(--accent);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.free-result {
  margin-top: 32px;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.free-note {
  max-width: 36rem;
  margin: 12px 0 28px;
}

/* El proyecto */
.project {
  padding-bottom: var(--section);
}

.project-grid {
  display: grid;
  gap: 32px;
}

.base {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.base h3 {
  font-size: 1.5rem;
}

.base ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.base li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

/* Próximos agentes */
.next {
  padding-bottom: var(--section);
}

.next-grid {
  display: grid;
  gap: 14px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.next-grid li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.next-grid h3 {
  font-size: 1.375rem;
}

.next-grid p {
  margin-top: 10px;
}

.next-grid small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Preguntas */
.faq {
  padding-bottom: var(--section);
}

.faq-grid {
  display: grid;
  gap: 28px;
}

details {
  margin-bottom: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

details[open] {
  border-color: var(--accent);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 10px 0;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 180ms ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding-bottom: 18px;
  color: var(--muted);
}

/* Formulario */
.signup {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.signup-wrap {
  max-width: 720px;
}

.signup-card {
  margin-top: 32px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

form > * {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
}

input:not([type="checkbox"]),
select {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font:
    500 1rem/1.2 "Manrope",
    system-ui,
    sans-serif;
}

input::placeholder {
  color: #a0a0a9;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
}

label.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.consent input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.error {
  display: block;
  margin-top: 6px;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
}

.error:empty {
  display: none;
}

.consent + .error {
  margin-top: -8px;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form .cta {
  width: 100%;
}

.done {
  padding: 12px 4px;
  text-align: center;
}

.done:focus {
  outline: none;
}

.done h3 {
  color: var(--accent);
  font-size: 2.5rem;
}

.done p {
  margin-top: 10px;
  font-size: 1.125rem;
}

footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p + p {
  margin-top: 6px;
}

/* Autorización de datos */
.prose {
  padding: 48px 0 80px;
}

.narrow {
  width: min(100% - 32px, 42rem);
}

.prose h1 {
  margin-top: 24px;
  font-size: clamp(2.125rem, 7vw, 3.25rem);
}

.prose h2 {
  margin-top: 36px;
  font-size: 1.5rem;
}

.prose p,
.prose ul {
  margin: 12px 0 0;
}

/* Revelar al bajar: solo con script y sin pedido de menos movimiento */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.seen {
  opacity: 1;
  transform: none;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 56px;
  }

  .lead {
    font-size: 1.1875rem;
  }

  .hero-actions > * {
    flex: 0 0 auto;
  }

  .nav-label {
    font-size: 1rem;
  }

  .cta-small {
    padding: 0 20px;
  }

  .half {
    grid-column: auto;
  }

  .sum {
    grid-template-columns: repeat(3, 1fr);
  }

  .signup-card {
    padding: 32px;
  }
}

@media (min-width: 760px) {
  .next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .window-body {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .order {
    align-self: stretch;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
  }

  .panel > img {
    grid-row: 1 / 3;
    height: 100%;
    aspect-ratio: auto;
    min-height: 420px;
  }

  .panel-chat {
    padding: 24px;
  }

  .panel-note {
    padding: 0 24px 28px;
    font-size: 1.5rem;
  }
}

@media (min-width: 1000px) {
  .next-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav nav {
    display: flex;
    gap: 26px;
  }

  .demo-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    margin-top: 64px;
  }

  .js .tabs {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .tab {
    width: 100%;
    min-height: 60px;
    border-width: 0 0 0 3px;
    border-radius: 0;
    font-size: 1.125rem;
  }

  .project-grid,
  .how-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
