:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #f0f2f4;
  --ink: #0c1116;
  --muted: #5b636d;
  --line: #dfe3e8;
  --accent: #1155ff;
  --accent-dark: #0d3ec4;
  --dark: #0b0f14;
  --dark-soft: #151b22;
  --success: #1f9d64;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bg-pattern {
  position: fixed;
  inset: -12% -8%;
  z-index: -1;
  pointer-events: none;
  opacity: .4;
  filter: blur(70px);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22260%22%20height%3D%22260%22%20viewBox%3D%220%200%20260%20260%22%3E%20%3Cg%20fill%3D%22none%22%20stroke%3D%22%231155ff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20opacity%3D%220.55%22%3E%20%3Cpath%20d%3D%22M30%2030%20L30%20100%20L90%20100%20L90%20150%22%2F%3E%20%3Cpath%20d%3D%22M150%2020%20L150%2070%20L210%2070%20L210%20130%20L190%20130%22%2F%3E%20%3Cpath%20d%3D%22M20%20190%20L80%20190%20L80%20230%22%2F%3E%20%3Cpath%20d%3D%22M130%20160%20L130%20210%20L190%20210%20L190%20250%22%2F%3E%20%3Cpath%20d%3D%22M220%2020%20L220%2060%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20fill%3D%22%231155ff%22%20opacity%3D%220.6%22%3E%20%3Ccircle%20cx%3D%2230%22%20cy%3D%2230%22%20r%3D%224%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%22150%22%20r%3D%224%22%2F%3E%20%3Ccircle%20cx%3D%22150%22%20cy%3D%2220%22%20r%3D%224%22%2F%3E%20%3Ccircle%20cx%3D%22210%22%20cy%3D%22130%22%20r%3D%224%22%2F%3E%20%3Ccircle%20cx%3D%2280%22%20cy%3D%22230%22%20r%3D%224%22%2F%3E%20%3Ccircle%20cx%3D%22190%22%20cy%3D%22250%22%20r%3D%224%22%2F%3E%20%3Ccircle%20cx%3D%22220%22%20cy%3D%2260%22%20r%3D%224%22%2F%3E%20%3Ccircle%20cx%3D%22190%22%20cy%3D%22130%22%20r%3D%223%22%2F%3E%20%3C%2Fg%3E%20%3C%2Fsvg%3E");
  background-repeat: repeat;
  background-size: 260px 260px;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .bg-pattern { display: none; }
}

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0 0;
}

nav {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark::before,
.brand-mark::after {
  content: ""; position: absolute; border-radius: 999px; background: #fff;
}
.brand-mark::before { width: 22px; height: 7px; left: 6px; top: 8px; transform: rotate(28deg); }
.brand-mark::after { width: 18px; height: 7px; left: 9px; top: 19px; transform: rotate(-28deg); }
.brand-text small { display: block; font-size: 10px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 4px; color: #3f4750; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 9px 16px; border-radius: 999px; transition: .15s ease; }
.nav-links a:hover { color: var(--ink); background: var(--surface-soft); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn-primary { border-radius: 999px; }

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  flex-shrink: 0;
}
.lang-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--ink);
  border-radius: 999px;
  transition: transform .2s ease;
}
.lang-switch[data-active="en"]::before { transform: translateX(100%); }
.lang-opt {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 6px 11px;
  min-width: 28px;
  text-align: center;
  color: var(--muted);
  transition: color .2s ease;
}
.lang-switch[data-active="es"] .lang-opt[data-lang-opt="es"],
.lang-switch[data-active="en"] .lang-opt[data-lang-opt="en"] { color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.is-open { display: flex; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px; border: 1px solid transparent;
  transition: .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: #1b222a; }
.btn-secondary { background: rgba(255,255,255,.7); border-color: var(--line); }
.btn-secondary:hover { background: #fff; }

.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 6px rgba(17,85,255,.10); }

h1 {
  font-size: clamp(40px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 0 0 28px;
  max-width: 760px;
}
.hero p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative;
  min-height: 560px;
}
.core-card {
  position: absolute;
  inset: 54px 28px 36px 48px;
  border-radius: 34px;
  background: var(--dark);
  color: #fff;
  padding: 34px;
  box-shadow: 0 40px 80px rgba(12,17,22,.22);
  overflow: hidden;
}
.core-card::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(17,85,255,.45), rgba(17,85,255,0));
  top: -120px; right: -100px;
}
.core-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.core-title { font-size: 14px; color: #bfc7d1; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #c8d0da; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 5px rgba(110,231,168,.10); }
.core-big { position: relative; z-index: 2; margin-top: 72px; font-size: 46px; letter-spacing: -.055em; line-height: 1.05; max-width: 380px; }
.core-big .accent { color: #8ea7ff; }
.core-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 64px; }
.core-chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 16px; }
.core-chip b { display: block; font-size: 13px; margin-bottom: 4px; }
.core-chip span { font-size: 11px; color: #98a3af; }

.float-card {
  position: absolute;
  width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  z-index: 4;
}
.float-card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.float-card h3 { font-size: 16px; margin: 0 0 5px; letter-spacing: -.02em; }
.float-card p { font-size: 12px; margin: 0; line-height: 1.45; color: var(--muted); }
.pos { left: -6px; top: 0; }
.billing { right: -12px; top: 110px; }
.accounting { left: 4px; bottom: 0; }
.pos .icon { background: #eaf0ff; color: #1d4ed8; }
.billing .icon { background: #eefbf5; color: #11845b; }
.accounting .icon { background: #fff2e8; color: #bd5d18; }

.section { padding: 92px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 5vw, 64px); letter-spacing: -.05em; line-height: 1; margin: 0; max-width: 740px; }
.section-head p { max-width: 520px; color: var(--muted); margin: 0; font-size: 17px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--line); margin-top: 38px; }
.stat { background: var(--surface); padding: 28px; }
.stat strong { display: block; font-size: 42px; line-height: 1; letter-spacing: -.045em; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 14px; }

.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  min-height: 460px;
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product-card h3 { font-size: 32px; letter-spacing: -.04em; margin: 14px 0 10px; }
.product-card p { color: var(--muted); max-width: 320px; }
.product-link { font-weight: 700; font-size: 14px; display: inline-flex; gap: 9px; align-items: center; }
.product-screen {
  height: 190px;
  border-radius: 18px;
  margin-top: 28px;
  border: 1px solid rgba(0,0,0,.08);
  background: #f6f7f8;
  padding: 14px;
  transform: perspective(900px) rotateX(4deg) rotateY(-5deg);
  box-shadow: 0 22px 50px rgba(13,24,38,.12);
}
.screen-bar { height: 10px; width: 90px; border-radius: 999px; background: #d6dce3; margin-bottom: 14px; }
.screen-grid { display: grid; grid-template-columns: 72px 1fr; gap: 10px; height: calc(100% - 24px); }
.screen-side { background: #111820; border-radius: 10px; }
.screen-main { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.screen-box { background: #fff; border: 1px solid #e4e8ed; border-radius: 10px; }
.billing-card .product-screen { background: #f0fbf6; }
.accounting-card .product-screen { background: #fff7f0; }
.billing-card .screen-side { background: #17795a; }
.accounting-card .screen-side { background: #a4531b; }

.dark-section { background: var(--dark); color: #fff; }
.dark-section .section-head p { color: #9ca7b4; }
.platform-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.platform-copy { background: var(--dark-soft); border: 1px solid #242c35; border-radius: var(--radius); padding: 30px; }
.platform-copy h3 { font-size: 30px; letter-spacing: -.04em; margin: 0 0 18px; }
.platform-copy p { color: #9ca7b4; }
.platform-map { background: #10161d; border: 1px solid #242c35; border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; }
.platform-layer { border: 1px solid #29313a; border-radius: 16px; padding: 18px; }
.platform-layer small { color: #8b95a1; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.platform-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.platform-item { background: #171e26; border: 1px solid #2a333d; border-radius: 12px; padding: 13px; font-size: 12px; color: #ccd3db; text-align: center; }
.platform-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.platform-product { border-radius: 14px; padding: 18px; font-weight: 700; background: #fff; color: #111; text-align: center; }

.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.principle span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #eef2ff; color: var(--accent); font-weight: 800; margin-bottom: 20px; }
.principle h3 { font-size: 22px; margin: 0 0 9px; }
.principle p { color: var(--muted); margin: 0; }

.vision-card {
  border-radius: 30px;
  background: linear-gradient(135deg, #0e1520, #121b28);
  color: #fff;
  padding: 54px;
  position: relative;
  overflow: hidden;
}
.vision-card::after { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(17,85,255,.45), transparent 70%); right: -180px; top: -220px; }
.vision-card h2 { font-size: clamp(32px, 6vw, 78px); letter-spacing: -.055em; line-height: 1; margin: 0 0 24px; max-width: 800px; position: relative; z-index: 2; }
.vision-card p { max-width: 680px; color: #b1bac6; font-size: 18px; position: relative; z-index: 2; }
.vision-card .btn { margin-top: 18px; background: #fff; color: #0c1116; position: relative; z-index: 2; }

.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info h2 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -.05em; line-height: 1; margin: 0 0 18px; }
.contact-info p { color: var(--muted); font-size: 17px; max-width: 420px; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.contact-list b { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-soft); align-items: center; justify-content: center; font-size: 13px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; }
.field input,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: var(--surface-soft);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12px; color: var(--muted); }

footer { padding: 54px 0 34px; background: var(--dark); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 40px; }
.footer-brand p { color: #9ca7b4; max-width: 360px; }
footer .brand-mark { background: #fff; }
footer .brand-mark::before,
footer .brand-mark::after { background: var(--dark); }
footer .brand-text small { color: #9ca7b4; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #9ca7b4;
  transition: background .15s ease, color .15s ease;
}
.social-links a:hover { background: var(--accent); color: #fff; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; color: #fff; }
.footer-col a { display: block; color: #9ca7b4; margin: 10px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #242c35; margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; color: #9ca7b4; font-size: 12px; }

.legal-main { padding: 64px 0 96px; }
.legal-main h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; }
.legal-main h2 { font-size: 22px; margin-top: 40px; }
.legal-main p, .legal-main li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-bottom: 32px; }

.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.not-found h1 { font-size: clamp(64px, 12vw, 140px); margin: 0; letter-spacing: -.06em; }
.not-found p { color: var(--muted); font-size: 18px; margin: 12px 0 28px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .hero-grid, .platform-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .portfolio, .principles { grid-template-columns: 1fr; }
  .product-card { min-height: 420px; }
  .section-head { align-items: start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 58px; }
  .hero-visual { min-height: 460px; }
  .core-card { inset: 40px 8px 28px 18px; padding: 24px; }
  .core-big { font-size: 34px; margin-top: 60px; }
  .float-card { width: 170px; padding: 14px; }
  .billing { right: -2px; top: 86px; }
  .accounting { left: 0; }
  .section { padding: 72px 0; }
  .platform-items { grid-template-columns: repeat(2,1fr); }
  .platform-products { grid-template-columns: 1fr; }
  .vision-card { padding: 34px 24px; }
  .contact-form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
