/* VAZLIA — página pública. Tema oscuro de marca (logo: violeta → azul). */
:root {
  --bg: #0f1017;
  --bg-2: #13141d;
  --surface: #181a25;
  --surface-2: #1f2230;
  --border: #2a2d3d;
  --text: #eef0f7;
  --muted: #a6aabf;
  --violet: #5a4ff7;
  --blue: #1c8fe6;
  --grad: linear-gradient(135deg, var(--violet), var(--blue));
  --ok: #34d399;
  --radius: 14px;
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb4ff;
  margin-bottom: 12px;
}

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

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid #9fb4ff;
  outline-offset: 2px;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(60, 100, 240, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(60, 100, 240, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

.btn-sm {
  padding: 9px 16px;
  font-size: 0.92rem;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ── Encabezado ──────────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 16, 23, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 26px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

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

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .top .login-link {
    display: none;
  }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(90, 79, 247, 0.28), transparent);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto auto -50% -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(28, 143, 230, 0.18), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust li::before {
  content: '✓';
  color: var(--ok);
  font-weight: 800;
  margin-right: 6px;
}

.hero-mark {
  display: flex;
  justify-content: center;
}

.hero-mark img {
  width: min(320px, 70%);
  filter: drop-shadow(0 30px 60px rgba(60, 100, 240, 0.35));
}

@media (max-width: 860px) {
  .hero {
    padding: 56px 0 48px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    display: none;
  }
}

/* ── Secciones ───────────────────────────────────────────────────────────── */
.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }
}

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

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

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(90, 79, 247, 0.14);
  color: #b6b0ff;
  margin-bottom: 14px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* Segmentos */
.segment {
  display: flex;
  flex-direction: column;
}

.segment ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.segment li {
  margin-bottom: 6px;
}

/* ── Precios ─────────────────────────────────────────────────────────────── */
.plans {
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan.highlight {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
}

.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan .tagline {
  color: var(--muted);
  min-height: 3.2em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 4px;
}

.price strong {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.vat {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #d6d9e6;
  font-size: 0.97rem;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, #000 45%, transparent 47%);
  mask: radial-gradient(circle, #000 45%, transparent 47%);
}

.plan .btn {
  width: 100%;
}

.addons {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.addons strong {
  color: var(--text);
}

/* ── Pasos ───────────────────────────────────────────────────────────────── */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  font-weight: 800;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ── Clientes ────────────────────────────────────────────────────────────── */
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  align-items: center;
}

.clients img {
  height: 44px;
  width: auto;
  opacity: 0.85;
}

.clients span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--muted);
}

.quote {
  font-size: 1.05rem;
}

.quote footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Preguntas ───────────────────────────────────────────────────────────── */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: '+';
  color: #9fb4ff;
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--muted);
  margin: 12px 0 0;
}

/* ── Cierre y pie ────────────────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: 72px 24px;
  border-radius: 22px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(90, 79, 247, 0.35), transparent),
    radial-gradient(600px 300px at 80% 100%, rgba(28, 143, 230, 0.3), transparent),
    var(--surface);
  border: 1px solid var(--border);
}

.cta-final .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

.login-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.login-box form {
  display: flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}

.login-box input {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 9px 4px 9px 16px;
  width: 140px;
  min-width: 0;
  flex: 1 1 auto;
  font: inherit;
  text-align: right;
}

.login-box input:focus {
  outline: none;
}

.login-box .suffix {
  color: var(--muted);
  padding-right: 8px;
}

@media (max-width: 420px) {
  .login-box input {
    width: 96px;
    padding-left: 12px;
  }

  .login-box button {
    padding: 9px 12px;
  }
}

.login-box button {
  flex-shrink: 0;
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
}

.foot {
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.foot li {
  margin-bottom: 6px;
}

.foot .copy {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

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

  .btn {
    transition: none;
  }
}
