/* Visto by Velno · estilos */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --night: #0B1020;
  --night-2: #10172C;
  --surface: #141B33;
  --surface-2: #1A2240;
  --line: rgba(166, 173, 200, .16);
  --line-strong: rgba(166, 173, 200, .28);
  --primary: #5B5BFF;
  --primary-soft: rgba(91, 91, 255, .16);
  --accent: #2EE6A6;
  --accent-ink: #062A1E;
  --alert: #FF6B5B;
  --alert-soft: rgba(255, 107, 91, .12);
  --text: #F5F7FF;
  --muted: #A6ADC8;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --gutter: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
.mono { font-family: var(--mono); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 14px 20px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 28px -10px rgba(46, 230, 166, .6); }
.btn--accent:hover { background: #5DF0BC; }
.btn--ghost { color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--outline { color: var(--accent); border-color: rgba(46, 230, 166, .5); }
.btn--outline:hover { background: rgba(46, 230, 166, .08); border-color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { width: 96px; height: auto; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (min-width: 960px) { .nav { display: flex; } .brand img { width: 112px; } }
@media (max-width: 359px) { .topbar .btn--sm { padding: 9px 12px; font-size: 13px; } }

/* Comunes */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(46, 230, 166, .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(46, 230, 166, 0); } }
.h2 { font-size: clamp(28px, 6.4vw, 44px); max-width: 20ch; }
.sub { color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); margin-top: 14px; max-width: 58ch; }
.icon { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(46, 230, 166, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EE6A6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.alert-text { color: var(--alert); }
.accent-text { color: var(--accent); }

/* 1. Hero */
.hero { position: relative; padding: 40px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(91, 91, 255, .28), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -20%; width: 560px; height: 560px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(46, 230, 166, .10), transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(36px, 9vw, 64px); max-width: 15ch; }
.hero .lead { margin-top: 20px; font-size: clamp(17px, 2.6vw, 21px); color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 46ch; }
@media (max-width: 479px) { .hero__cta .btn { width: 100%; } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 112px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
}

/* Chat simulado */
.chat {
  margin: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(91, 91, 255, .08);
}
.chat__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__dots { display: flex; gap: 6px; }
.chat__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.chat__title { font-size: 13px; font-weight: 700; color: var(--muted); }
.chat__body { padding: 20px 18px 22px; display: grid; gap: 14px; }
.msg { max-width: 92%; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.msg--user { justify-self: end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; font-weight: 600; }
.msg--ai { justify-self: stretch; width: 92%; background: rgba(245, 247, 255, .04); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--ai p { font-size: 13.5px; line-height: 1.65; color: var(--text); min-height: 6.6em; }
.msg--ai mark { background: var(--alert-soft); color: #FFB2A8; padding: 0 3px; border-radius: 4px; }
.chat__flag {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: var(--alert-soft); border: 1px solid rgba(255, 107, 91, .35); color: #FFC4BC; font-weight: 700; font-size: 14px;
}
.chat__flag svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--alert); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat__flag.is-hidden { opacity: 0; transform: translateY(6px); }
.chat__flag { transition: opacity .4s ease, transform .4s ease; }
.caret::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 2. Problema */
.problem { background: var(--night-2); border-block: 1px solid var(--line); }
.stats { display: grid; gap: 16px; margin-top: 40px; }
.stat { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.stat__num { font-size: clamp(40px, 9vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--alert); }
.stat__txt { margin-top: 12px; font-size: 16px; }
.stat__src { margin-top: auto; padding-top: 16px; font-size: 12.5px; color: var(--muted); }
.stat__src a { color: var(--muted); text-underline-offset: 2px; }
.stat__src a:hover { color: var(--text); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* 3. Score */
.score__grid { display: grid; gap: 48px; align-items: start; }
.dims { display: grid; gap: 14px; margin-top: 32px; }
.dim { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dim h3 { margin-top: 14px; font-size: 19px; }
.dim__q { color: var(--accent); font-weight: 700; margin-top: 4px; }
.dim p:last-child { color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (min-width: 600px) { .dims { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .score__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .meter { position: sticky; top: 100px; }
}

.meter {
  margin: 0; padding: 24px; border-radius: 22px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(91, 91, 255, .18), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.meter__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.meter__label { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.meter__biz { color: var(--muted); font-size: 12px; }
.gauge { width: 100%; max-width: 320px; margin: 18px auto 0; overflow: visible; }
.gauge path { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge__track { stroke: rgba(166, 173, 200, .14); }
.gauge__fill {
  stroke: var(--alert);
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v));
  transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1);
}
.meter:not(.is-in) .gauge__fill { stroke-dashoffset: 100; }
.meter__value { text-align: center; margin-top: -58px; font-weight: 800; letter-spacing: -.03em; }
.meter__num { font-size: 56px; color: var(--text); }
.meter__of { font-size: 22px; color: var(--muted); margin-left: 2px; }
.bars { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 112px 1fr 22px; align-items: center; gap: 12px; font-size: 14px; }
.bars span { color: var(--muted); font-weight: 600; }
.bar { display: block; height: 8px; border-radius: 99px; background: rgba(166, 173, 200, .14); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--primary), #8A8AFF); transition: width 1.2s cubic-bezier(.2, .8, .2, 1) .2s; }
.meter:not(.is-in) .bar i { width: 0; }
.bars em { font-style: normal; font-weight: 800; text-align: right; }
.meter__cap { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }

/* 4. Pasos */
.steps { background: var(--night-2); border-block: 1px solid var(--line); }
.steps__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step__n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-soft); color: #A9A9FF; font-weight: 800; font-size: 17px; border: 1px solid rgba(91, 91, 255, .4);
}
.step h3 { margin-top: 16px; font-size: 20px; }
.step p { margin-top: 8px; color: var(--muted); }
@media (min-width: 768px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; right: -21px; width: 22px; height: 1.5px; background: var(--line-strong);
  }
}

/* 5. Servicios */
.cards { display: grid; gap: 16px; margin-top: 40px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.card h3 { font-size: 21px; }
.card > p { margin-top: 10px; color: var(--muted); }
.card .checks { margin-bottom: 26px; font-size: 15px; }
.card .btn { margin-top: auto; }
.card--featured { border-color: rgba(46, 230, 166, .45); background: linear-gradient(180deg, rgba(46, 230, 166, .07), transparent 50%), var(--surface); }
.card__tag {
  position: absolute; top: -12px; left: 26px; padding: 4px 10px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800;
}
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* 6. Diferenciador */
.diff { background: radial-gradient(70% 90% at 50% 0%, rgba(91, 91, 255, .22), transparent 70%), var(--night); border-top: 1px solid var(--line); }
.diff__inner { text-align: center; }
.diff__title { font-size: clamp(28px, 6vw, 46px); max-width: 24ch; margin: 0 auto; }
.diff__compare { display: grid; gap: 14px; margin: 40px auto 0; max-width: 860px; text-align: left; }
.diff__col { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.diff__col p:last-child { font-size: 17px; margin-top: 6px; }
.diff__col--us { border-color: rgba(46, 230, 166, .45); }
.diff__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.diff__col--us .diff__label { color: var(--accent); }
.diff__stat { margin: 28px auto 0; max-width: 62ch; color: var(--muted); font-size: 15px; }
.diff__stat .stat__src { display: block; padding-top: 6px; }
@media (min-width: 768px) { .diff__compare { grid-template-columns: 1fr 1.4fr; } }

/* 7. Casos */
.cases__grid { display: grid; gap: 16px; margin-top: 40px; }
.case { padding: 24px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: rgba(20, 27, 51, .5); }
.case__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case h3 { font-size: 22px; }
.case__kind { color: var(--muted); margin-top: 4px; }
.pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--primary-soft); color: #B4B4FF; white-space: nowrap; }
.case__ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; }
.case__ba div { padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.case__ba dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.case__ba dd { margin: 6px 0 0; font-size: 20px; color: var(--muted); }
@media (min-width: 768px) { .cases__grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* 8. FAQ */
.faq { background: var(--night-2); border-block: 1px solid var(--line); }
.faq__wrap { max-width: 860px; }
.faq__list { margin-top: 32px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* 9. Formulario */
.form__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .form__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.form {
  display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; padding: 30px; } .form > .btn, .form__error, .form__fine { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select {
  width: 100%; font: 500 16px/1.3 var(--font); color: var(--text);
  background: var(--night); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A6ADC8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field select:invalid { color: var(--muted); }
.field input::placeholder { color: rgba(166, 173, 200, .55); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 230, 166, .18); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--alert); }
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.field--check label { font-weight: 500; color: var(--muted); }
.field--check a { color: var(--accent); }
.field--check.is-invalid label { color: #FFB2A8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--alert-soft); border: 1px solid rgba(255, 107, 91, .35); color: #FFC4BC; font-size: 14px; }
.form__error a { color: #fff; font-weight: 700; }
.form__fine { text-align: center; font-size: 13px; color: var(--muted); }
.form__ok {
  padding: 36px 26px; border-radius: 22px; text-align: center; background: var(--surface); border: 1px solid rgba(46, 230, 166, .45);
}
.form__ok svg { width: 64px; height: 64px; margin: 0 auto; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form__ok h3 { margin-top: 16px; font-size: 24px; }
.form__ok p { margin: 10px auto 22px; color: var(--muted); max-width: 40ch; }
.form__ok:focus { outline: none; }

/* 10. Footer */
.footer { padding: 48px 0 110px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 24px; }
.footer__inner img { width: 104px; height: auto; }
.footer__tag { margin-top: 12px; color: var(--muted); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: var(--muted); font-size: 13px; }
@media (min-width: 768px) {
  .footer { padding-bottom: 56px; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__legal { grid-column: 1 / -1; }
}

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
@media (min-width: 768px) { .wa-float { right: 28px; bottom: 28px; } }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gauge__fill, .bar i { transition: none; }
  .eyebrow .dot { animation: none; }
}

/* Páginas de texto (aviso de privacidad) */
.doc { padding: 48px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: #D5D9EA; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc a { color: var(--accent); }
.doc .meta { color: var(--muted); margin-top: 10px; }
.doc .todo { background: rgba(255, 107, 91, .16); color: #FFC4BC; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
