/* ============================================================
   Acquiria Labs - acquiria.cl
   Estilo minimalista oscuro con acento violeta (tipo Linear.app)
   ============================================================ */

:root {
  --bg: #08090b;
  --bg-soft: #0d0e13;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f7f8f8;
  --muted: #9a9ca8;
  --accent: #8b5cf6;
  --accent-2: #6d28d9;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --radius: 14px;
  --max: 1080px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Resplandor violeta superior, firma visual tipo Linear */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.18), transparent 70%);
  z-index: 0;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #a78bfa;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

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

/* ---------------- Nav ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 9, 11, 0.7);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------------- Botones ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}

/* Rejilla sutil de fondo con desvanecido radial */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 22px;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.65));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #a78bfa, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------- Features ---------------- */

.features {
  padding: 40px 0 90px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.04);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------------- Stack / CTA final ---------------- */

.stack-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
  text-align: center;
}

.stack-strip p {
  font-size: 14px;
  color: var(--muted);
}

.stack-strip strong {
  color: var(--text);
  font-weight: 500;
}

.final-cta {
  padding: 90px 0;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.final-cta p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ---------------- Paginas legales ---------------- */

.legal {
  padding: 80px 0 90px;
}

.legal-inner {
  max-width: 740px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.legal .updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.legal-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-section p {
  font-size: 15px;
  color: var(--muted);
}

.legal-section a {
  word-break: break-all;
}

.legal ol.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 6px;
}

.legal ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--muted);
}

.legal ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ---------------- Footer ---------------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 44px 0 36px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-legal {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-legal .sep {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.footer-disclaimer {
  font-size: 12.5px;
  color: rgba(154, 156, 168, 0.7);
  max-width: 560px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .site-nav .container {
    justify-content: center;
  }

  .footer-legal .sep {
    margin: 0 5px;
  }
}

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .legal {
    padding: 56px 0 70px;
  }
}
