:root {
  --navy: #161a28;
  --navy-2: #22283b;
  --navy-3: #2e3550;
  --cyan: #1fb5e0;
  --cyan-dark: #0f8db3;
  --amber: #f5b400;
  --ink: #1b2030;
  --muted: #5d6478;
  --line: #e3e7ef;
  --tint: #f4f7fb;
  --white: #fff;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--tint); }
.center { text-align: center; margin-top: 32px; }
.muted { color: var(--muted); }
.accent { color: var(--cyan); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--cyan); margin-bottom: 12px;
}
.eyebrow--dark { color: var(--cyan-dark); }
.lead { font-size: 1.12rem; color: #c9cfdd; max-width: 56ch; }
.head { max-width: 720px; margin-bottom: 40px; }
.head--center { margin-inline: auto; text-align: center; }
.sub { color: var(--muted); font-size: 1.08rem; }

/* Botones */
.btn {
  display: inline-block; background: var(--cyan); color: var(--navy); font-weight: 700;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 2px solid var(--cyan);
  transition: background .2s, transform .2s; cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { background: #4cc8ec; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border-color: #4a5372; }
.btn--ghost:hover { background: var(--navy-3); }
.btn--sm { padding: 9px 18px; }
.btn--full { width: 100%; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(22, 26, 40, .94); backdrop-filter: blur(8px); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 46px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a { color: #d6dbe7; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav__menu a:hover { color: var(--cyan); }
.nav__menu a.btn { color: var(--navy); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* Portada */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(31, 181, 224, .18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #1a1f30 100%);
  color: var(--white); padding: clamp(64px, 10vw, 130px) 0 clamp(56px, 8vw, 100px);
}
.hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li {
  background: var(--navy-2); border: 1px solid #2f3650; border-radius: var(--radius);
  padding: 20px 24px; display: flex; flex-direction: column;
}
.stats b { font-size: 2rem; color: var(--amber); line-height: 1.1; }
.stats li:nth-child(2) b { color: var(--cyan); }
.stats li:nth-child(3) b { color: #6fd3a0; }
.stats span { color: #aab2c5; }

/* Pilares */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.pillar {
  position: relative; display: block; text-decoration: none; color: var(--white);
  border-radius: 22px; padding: 40px 36px; min-height: 280px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 26, 40, .25); }
.pillar--trade { background: linear-gradient(135deg, #f5b400 0%, #f08a00 100%); color: var(--navy); }
.pillar--tech { background: linear-gradient(135deg, var(--navy-2) 0%, #123a52 100%); }
.pillar__num { font-size: 3.4rem; font-weight: 800; opacity: .25; position: absolute; right: 28px; top: 14px; }
.pillar h3 { font-size: 1.7rem; margin-top: 40px; }
.pillar p { max-width: 44ch; opacity: .92; }
.pillar__more { font-weight: 700; }
.pillar--tech .pillar__more { color: var(--cyan); }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--cyan); box-shadow: 0 10px 28px rgba(22, 26, 40, .08); }
.card p { color: var(--muted); margin: 0; }
#trade .card { border-top: 4px solid var(--amber); }
.card--big p { margin-bottom: 14px; }
.tag {
  display: inline-block; background: #e3f6fc; color: var(--cyan-dark); font-weight: 700;
  font-size: .75rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .08em;
}
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 26px; position: relative; margin: 6px 0; font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: rotate(-45deg);
}

.note {
  margin-top: 32px; background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 30px 34px; display: flex; gap: 28px; align-items: center; justify-content: space-between;
}
.note p { color: #c9cfdd; margin: 0; max-width: 70ch; }
.note .btn { flex-shrink: 0; }

/* Bloque de introducción con imagen */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.intro .head { margin-bottom: 0; }
.intro__img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 18px 40px rgba(22, 26, 40, .12); }

/* Caso ERP */
.case {
  margin-top: 40px; background: var(--navy); color: var(--white); border-radius: 22px;
  padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
}
.case h3 { font-size: 1.5rem; }
.case p { color: #c9cfdd; }
.case__img { width: 100%; height: auto; }
.flow { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: f; display: flex; flex-wrap: wrap; gap: 8px; }
.flow li {
  counter-increment: f; background: var(--navy-2); border: 1px solid #2f3650; border-radius: 999px;
  padding: 6px 14px 6px 6px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem;
}
.flow li::before {
  content: counter(f); width: 24px; height: 24px; border-radius: 50%; background: var(--cyan);
  color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex-shrink: 0;
}

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.compare__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.compare__col h4 { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--muted); }
.compare__col ul { margin: 0; padding-left: 18px; color: var(--muted); }
.compare__col li { margin: 6px 0; }
.compare__col--klix { border: 2px solid var(--cyan); background: #f1fbfe; }
.compare__col--klix h4 { color: var(--cyan-dark); }
.compare__col--klix ul { color: var(--ink); font-weight: 600; }

/* Clientes */
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos li {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; height: 120px;
  display: grid; place-items: center; padding: 16px;
}
.logos img { max-height: 84px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.logos li:hover img { filter: none; opacity: 1; }

/* Nosotros */
.about { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.about__icon { width: 160px; height: auto; border-radius: 28px; }
.about p { color: var(--muted); font-size: 1.05rem; max-width: 70ch; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--tint); border-radius: 12px; padding: 16px; }
.steps b {
  width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: var(--navy);
  display: grid; place-items: center; flex-shrink: 0;
}

/* Contacto */
.contact { background: var(--navy); color: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact__list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid #2f3650; }
.contact__list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #8e97ad; }
.contact__list a { color: var(--white); font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.contact__list a:hover { color: var(--cyan); }
.form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 30px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfd5e1; border-radius: 10px;
  background: var(--white); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.form__hint { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }

/* Pie */
.footer { background: #10131e; color: #8e97ad; padding: 28px 0; font-size: .9rem; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer img { height: 40px; width: auto; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}

/* Responsive */
@media (max-width: 980px) {
  .cards, .cards--3 { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .case, .intro { grid-template-columns: 1fr; }
  .intro { gap: 28px; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    display: none; border-top: 1px solid #2f3650;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: 14px 4px; border-bottom: 1px solid #262c40; }
  .nav__menu a.btn { margin-top: 14px; text-align: center; border-bottom: 0; }
  .hero__grid, .pillars, .contact__grid, .compare, .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li { padding: 16px; }
  .stats b { font-size: 1.5rem; }
  .note { flex-direction: column; align-items: flex-start; }
  .about__icon { width: 96px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .pillar { padding: 32px 24px; min-height: 0; }
  .pillar__num { font-size: 2.4rem; right: 20px; top: 10px; }
  .pillar h3 { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
