/* ============ Reset + tokens ============ */
:root {
  --primary: #2c64a8;
  --primary-dark: #1d4f8c;
  --primary-light: #4d97e8;
  --primary-soft: #e3edf8;
  --accent: #f59e0b;
  --bg: #fbfcfe;
  --bg-alt: #f3f5f9;
  --bg-dark: #0e1a2e;
  --surface: #ffffff;
  --text: #0e1a2e;
  --text-soft: #4a5568;
  --text-muted: #8b95a3;
  --border: #e3e7ee;
  --shadow-sm: 0 1px 2px rgba(14, 26, 46, 0.05);
  --shadow: 0 4px 12px rgba(14, 26, 46, 0.08);
  --shadow-lg: 0 20px 60px rgba(14, 26, 46, 0.15);
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  background: var(--bg-alt);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-dark);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn--lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  background: rgba(251, 252, 254, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.brand__text span { font-size: 11px; color: var(--text-muted); }

.nav__links { display: flex; gap: 28px; flex: 1; }
.nav__links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--primary); }

/* ============ Hero ============ */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 60%);
  z-index: 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__copy { max-width: 560px; }
.hero__pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 .hl {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero__bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
}
.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__bullets li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Mock visual */
.hero__visual {
  position: relative;
}
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock__chrome {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock__dot--r { background: #ff5f57; }
.mock__dot--y { background: #ffbd2e; }
.mock__dot--g { background: #28c940; }
.mock__title {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.mock__body {
  padding: 32px 28px;
  background: #f8fafc;
  background-image:
    linear-gradient(to right, #e8edf3 1px, transparent 1px),
    linear-gradient(to bottom, #e8edf3 1px, transparent 1px);
  background-size: 16px 16px;
}
.mock__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.mini-label {
  width: 100%;
  max-width: 360px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(14, 26, 46, 0.12);
  border-radius: 4px;
}
.mini-label--envio { max-width: 420px; }

/* ============ Sections ============ */
.section {
  padding: 90px 0;
}
.section--alt { background: var(--bg-alt); }
.section--cta { background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 100%); }
.section--why { background: var(--bg-dark); color: #fff; }
.section--why .section__title { color: #fff; }
.section--why .section__lead { color: rgba(255,255,255,0.7); }

.section__title {
  font-size: 36px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-align: center;
}
.section__lead {
  font-size: 16px;
  color: var(--text-soft);
  text-align: center;
  margin-bottom: 48px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Usecases ============ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.usecase:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.usecase__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #d8e7f7 100%);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}
.usecase:hover .usecase__icon { transform: scale(1.06) rotate(-2deg); }
.usecase h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.usecase p { font-size: 14px; color: var(--text-soft); margin-bottom: 12px; }
.usecase code { font-size: 11px; }

/* ============ Steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  text-align: center;
  padding: 20px;
}
.step__n {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(44, 100, 168, 0.3);
}
.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p { font-size: 14px; color: var(--text-soft); }

/* ============ Download ============ */
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}
.download-card__info {
  display: flex;
  gap: 18px;
  align-items: center;
}
.download-card__icon {
  width: 64px;
  height: 64px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}
.download-card__info h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.download-card__info p { font-size: 13px; color: var(--text-muted); }
.download-card__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.download-card__sub {
  font-size: 12px;
  color: var(--text-muted);
}
.download-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Excel cards ============ */
.xlsx-downloads {
  display: grid;
  gap: 14px;
}
.xlsx-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.xlsx-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: inherit;
}
.xlsx-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.xlsx-card__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.xlsx-card__body strong { font-size: 15px; color: var(--text); font-family: 'JetBrains Mono', monospace; }
.xlsx-card__body span { font-size: 13px; color: var(--text-soft); }
.xlsx-card__body small { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.xlsx-card__arrow { color: var(--primary); flex-shrink: 0; }

/* ============ Printers ============ */
.printers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.printer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  position: relative;
}
.printer-card strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.printer-card span { font-size: 12px; color: var(--text-muted); }
.printer-card p { font-size: 12px; color: var(--text-soft); margin-top: 8px; }
.printer-card--featured {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.printer-card__tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 8px;
}
.printer-card--more { background: transparent; border-style: dashed; }
.printer-card--more a {
  display: block;
  font-size: 12px;
  color: var(--primary);
  margin-top: 8px;
  font-weight: 600;
}

/* ============ Features ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.feature__ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.feature h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 12px; color: var(--text-soft); line-height: 1.5; }

/* ============ Why ============ */
.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.why-text .why-big {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.3;
}
.why-text p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 16px;
  font-size: 15px;
}
.why-text strong { color: #fff; font-weight: 600; }
.why-text .btn {
  margin-top: 12px;
  background: #fff;
  color: var(--primary-dark);
}
.why-text .btn:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-1px);
}
.why-services {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.why-services h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}
.why-services ul { display: flex; flex-direction: column; gap: 12px; }
.why-services li {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.why-services li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.why-services strong { color: #fff; font-weight: 600; }

/* ============ FAQ ============ */
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.faq:hover { box-shadow: var(--shadow); }
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
  position: relative;
  list-style: none;
  padding-right: 50px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p {
  padding: 0 22px 18px;
  color: var(--text-soft);
  font-size: 14px;
}

/* ============ Footer CTA ============ */
.footer-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 70px 0;
  text-align: center;
  color: #fff;
}
.footer-cta h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.footer-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.footer-cta .btn {
  background: #fff;
  color: var(--primary-dark);
}
.footer-cta .btn:hover { background: rgba(255,255,255,0.95); color: var(--primary); transform: translateY(-2px); }

/* ============ Footer ============ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand .brand__text strong { color: #fff; }
.footer__brand .brand__text span { color: rgba(255,255,255,0.5); }
.footer__brand p {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}
.footer__col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a, .footer__col li {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .nav__links { display: none; }
  .usecase-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .printers { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-card__info { flex-direction: column; text-align: center; }
  .download-card__cta { align-items: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom .container { flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero__lead { font-size: 15px; }
  .section { padding: 60px 0; }
  .section__title { font-size: 26px; }
  .usecase-grid, .features-grid { grid-template-columns: 1fr; }
  .printers { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .btn--lg { height: 48px; font-size: 14px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
}
