:root {
  --ink: #14121f;
  --ink-soft: #4b4760;
  --muted: #8b87a3;
  --line: #e6e3f1;
  --surface: #ffffff;
  --surface-alt: #f7f6fc;
  --primary: #5b3df0;
  --primary-dark: #4527d6;
  --primary-soft: #eee9ff;
  --accent: #ff7a45;
  --accent-soft: #fff1ec;
  --success: #17a673;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(20, 18, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 18, 31, 0.1);
  --shadow-lg: 0 30px 70px rgba(20, 18, 31, 0.16);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Sora", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Elementos que aparecen con scroll — ver js/main.js */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-hamburger .bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.is-open .bar-1 {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open .bar-2 {
  opacity: 0;
}
.nav-hamburger.is-open .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ── */
.hero {
  padding: 4rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: -140px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(91, 61, 240, 0.16), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 1.7rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 10px 24px rgba(91, 61, 240, 0.3);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(91, 61, 240, 0.36);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.9rem 1.7rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-trust strong {
  color: var(--ink);
}

/* ── HERO: TICKET MOCKUP ──
   En vez de un dashboard genérico, mostramos el ticket real que el
   sistema imprime — es el artefacto más reconocible del producto. */
.hero-ticket-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-ticket-wrap::before {
  content: "";
  position: absolute;
  inset: -16px -16px auto -16px;
  height: 120%;
  background: radial-gradient(ellipse at top, rgba(255, 122, 69, 0.14), transparent 65%);
  z-index: -1;
}

.ticket {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem 1.5rem 2.4rem;
  font-family: var(--font-mono);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 96%,
    95% 100%,
    90% 96%,
    85% 100%,
    80% 96%,
    75% 100%,
    70% 96%,
    65% 100%,
    60% 96%,
    55% 100%,
    50% 96%,
    45% 100%,
    40% 96%,
    35% 100%,
    30% 96%,
    25% 100%,
    20% 96%,
    15% 100%,
    10% 96%,
    5% 100%,
    0 96%
  );
  transform: rotate(1.5deg);
}

.ticket-head {
  text-align: center;
  margin-bottom: 1rem;
}

.ticket-brand {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.ticket-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.ticket-dash {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 0.9rem 0;
}

.ticket-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.ticket-items {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.3rem;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
}

.ticket-item-name {
  display: flex;
  flex-direction: column;
}

.ticket-item-code {
  font-size: 0.64rem;
  color: var(--muted);
}

.ticket-tag {
  display: inline-flex;
  width: fit-content;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.ticket-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.4rem;
}

.ticket-total-row span:first-child {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticket-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.1rem;
  font-size: 0.68rem;
  color: var(--success);
  font-weight: 700;
}

.ticket-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(23, 166, 115, 0.18);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 1.4rem;
}

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

.hero-stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}

.hero-stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── LOGO STRIP ── */
.logo-strip {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.logo-strip strong {
  color: var(--ink-soft);
}

/* ── SECTION ── */
.section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--surface-alt);
}
.section-alt-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-head {
  max-width: 620px;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.16;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 1rem;
}

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

/* ── PAIN LIST ── */
.pain-list {
  display: flex;
  flex-direction: column;
}

.pain-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.6rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s;
}

.pain-row:last-child {
  border-bottom: 1px solid var(--line);
}

.pain-row:hover {
  background: var(--surface-alt);
}

.pain-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  padding-top: 0.15rem;
}

.pain-body {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  align-items: flex-start;
}

.pain-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-row h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.pain-row p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 60ch;
}

/* ── HOW IT WORKS ── */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
}

.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--primary-soft);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.step-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}
.step-card p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.plan-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 2.1rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 24px 56px rgba(91, 61, 240, 0.2);
  transform: scale(1.03);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.plan-price {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.plan-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px dashed var(--line);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.4rem 0 2rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  align-items: flex-start;
}

.plan-features li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--success);
}

.plan-features li.plan-inherit {
  color: var(--ink);
  font-weight: 600;
}

.plan-cta {
  text-align: center;
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid var(--line);
  transition: all 0.15s;
}

.plan-card.featured .plan-cta {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.plan-cta:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.plan-card.featured .plan-cta:hover {
  background: var(--primary-dark);
}

.pricing-foot {
  text-align: center;
  margin-top: 2.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── TESTIMONIAL ── */
.testimonial {
  background: var(--ink);
  border-radius: 24px;
  padding: 3.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -2rem;
  left: 1.5rem;
  font-family: var(--font-head);
  font-size: 10rem;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.testimonial-quote {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.42;
  margin-bottom: 1.4rem;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.92rem;
}
.testimonial-role {
  font-size: 0.8rem;
  color: #ffffffa0;
}

.testimonial-tag {
  font-size: 0.78rem;
  color: #ffffff80;
  border: 1px solid #ffffff30;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── CONTACT / CTA ── */
.cta-box {
  background: linear-gradient(135deg, var(--primary), #7a5cf5);
  border-radius: 24px;
  padding: 3.8rem 2.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 122, 69, 0.35), transparent 55%);
}

.cta-box > * {
  position: relative;
}

.cta-box h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.9rem;
}
.cta-box p {
  color: #ffffffcc;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-box .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.cta-box .btn-primary:hover {
  background: #f3f1ff;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #ffffffcc;
}

.cta-contacts a {
  font-weight: 600;
  color: #fff;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-made {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-made a {
  color: var(--primary);
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2.5rem;
  }
  .hero-inner {
    max-width: 640px;
    margin: 0 auto;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .ticket {
    transform: rotate(0);
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1.5rem;
    gap: 1.2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-hamburger {
    display: flex;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps::before {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .plan-card.featured {
    transform: none;
  }
  .testimonial {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .pain-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .pain-body {
    grid-template-columns: 40px 1fr;
  }
  .cta-contacts {
    flex-direction: column;
    gap: 0.6rem;
  }
}
