:root {
  --bg: #07070d;
  --clay: #e08a4a;
  --clay2: #f3a85a;
  --violet: #7b8cff;
  --text: #f2f3f8;
  --muted: #9aa0b4;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Resplandor de fondo */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 50vh at 75% -5%, rgba(224, 138, 74, 0.22), transparent 60%),
    radial-gradient(50vw 45vh at 10% 10%, rgba(123, 140, 255, 0.18), transparent 60%),
    radial-gradient(40vw 40vh at 50% 110%, rgba(123, 140, 255, 0.1), transparent 60%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.grad {
  background: linear-gradient(100deg, var(--clay2), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 60px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 14, 0.55);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--clay), #c2410c);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(224, 138, 74, 0.4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-ghost {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.nav-ghost:hover {
  background: var(--card);
}
.nav-xtarify {
  padding: 7px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: #0a0a10 !important;
  background: linear-gradient(135deg, #ffd25e, var(--clay2));
  box-shadow: 0 4px 16px rgba(243, 168, 90, 0.35);
}
.nav-xtarify:hover {
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 60px) 40px;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--clay2);
  background: rgba(224, 138, 74, 0.12);
  border: 1px solid rgba(224, 138, 74, 0.3);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero .sub {
  margin-top: 20px;
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 540px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.fine {
  margin-top: 16px;
  font-size: 13px;
  color: #6f7488;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  color: #1a0f06;
  background: linear-gradient(135deg, var(--clay2), var(--clay));
  box-shadow: 0 10px 30px rgba(224, 138, 74, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(224, 138, 74, 0.5);
}
.btn-ghost {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}
.btn.big {
  padding: 16px 32px;
  font-size: 16.5px;
}

/* Captura */
.hero-shot {
  position: relative;
  display: grid;
  place-items: center;
}
.shot-glow {
  position: absolute;
  width: 80%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(224, 138, 74, 0.45), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.hero-shot img {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Stats ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 5vw, 64px);
  max-width: 1000px;
  margin: 10px auto 30px;
  padding: 22px clamp(18px, 5vw, 60px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  background: linear-gradient(120deg, var(--clay2), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Secciones ---------- */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 100px) clamp(18px, 5vw, 60px);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

/* Grid de características */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: rgba(224, 138, 74, 0.4);
}
.card .ic {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(224, 138, 74, 0.12);
  color: var(--clay2);
  margin-bottom: 16px;
}
.card .ic svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* Cómo funciona */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.how-step {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.how-step .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-weight: 800;
  color: #1a0f06;
  background: linear-gradient(135deg, var(--clay2), var(--clay));
}
.how-step h4 {
  font-size: 16px;
  margin-bottom: 5px;
}
.how-step p {
  color: var(--muted);
  font-size: 14px;
}
.how-step code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12.5px;
}

/* Descargar */
.download {
  display: grid;
  place-items: center;
}
.dl-card {
  text-align: center;
  width: 100%;
  max-width: 680px;
  padding: clamp(36px, 6vw, 56px);
  border-radius: 24px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(224, 138, 74, 0.16), transparent 70%),
    var(--card);
  border: 1px solid var(--border);
}
.dl-card h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}
.dl-card p {
  color: var(--muted);
  margin-top: 10px;
}
.dl-cta {
  justify-content: center;
  margin-top: 26px;
}

/* Banda xtarify */
.xtarify-band {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto clamp(56px, 9vw, 90px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(255, 210, 94, 0.1), rgba(243, 168, 90, 0.06));
  border: 1px solid rgba(243, 168, 90, 0.28);
}
.xt-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay2);
}
.xtarify-band h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 4px 0 4px;
}
.xtarify-band p {
  color: var(--muted);
  font-size: 14.5px;
}
.btn-xtarify {
  color: #0a0a10;
  background: linear-gradient(135deg, #ffd25e, var(--clay2));
  box-shadow: 0 8px 26px rgba(243, 168, 90, 0.35);
  white-space: nowrap;
}
.btn-xtarify:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px clamp(18px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.foot-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
}
.foot-links a:hover {
  color: var(--text);
}
.muted {
  color: var(--muted);
  font-weight: 400;
}
.small {
  font-size: 12.5px;
  width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
  }
  .hero .sub {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-row {
    justify-content: center;
  }
  .hero-shot {
    order: -1;
    margin-bottom: 10px;
  }
  .grid,
  .how-grid {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.nav-xtarify):not(.nav-ghost) {
    display: none;
  }
}
@media (max-width: 560px) {
  .nav-ghost {
    display: none;
  }
  .footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
