:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #0b1220;
  --ink-soft: #5b6472;
  --accent: #2e6bf2;
  --accent-deep: #12224e;
  --line: #e6e8ec;
  --radius: 14px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
section {
  padding: 96px 0;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.09em;
}
.logo .kp {
  color: #10203d;
}
.logo .x {
  background: linear-gradient(135deg, #0d47b5 0%, #236bea 55%, #60a5fa 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

/* ---------- HERO ---------- */
.hero {
  padding: 88px 0 40px;
}
.hero .eyebrow {
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  max-width: 840px;
  line-height: 1.08;
}
.hero p.lead {
  margin-top: 24px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* signature flow diagram */
.flow {
  margin-top: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  background: var(--bg-soft);
  overflow-x: auto;
}
.flow-track {
  display: flex;
  align-items: center;
  min-width: 640px;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  width: 150px;
}
.flow-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  margin-bottom: 14px;
  position: relative;
}
.flow-node:first-child .flow-dot,
.flow-node:last-child .flow-dot {
  background: var(--accent);
}
.flow-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.flow-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.flow-line {
  flex: 1 1 auto;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 6px,
    transparent 6px 12px
  );
  margin-bottom: 32px;
  min-width: 20px;
}

/* ---------- SOBRE NOSOTROS ---------- */
.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1/1.05;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.about-text h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin-bottom: 18px;
}
.about-text p {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 640px;
}
.about-caption {
  margin-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- SERVICIOS ---------- */
.services-head {
  max-width: 600px;
  margin-bottom: 56px;
}
.services-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin-top: 14px;
}
.service-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sgroup {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.sgroup:last-child {
  border-bottom: 1px solid var(--line);
}
.sgroup-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  padding-top: 4px;
}
.sgroup-label b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.scard-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
}
.scard h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.scard p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- COMO TRABAJAMOS ---------- */
.process {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-head {
  max-width: 600px;
  margin-bottom: 56px;
}
.process-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin-top: 14px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pstep {
  padding: 28px 24px 0 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
.pstep + .pstep {
  margin-left: 0;
}
.pnum {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.pstep h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.pstep p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- CONTACTO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-text h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  max-width: 420px;
}
.contact-text p {
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 400px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
form .btn-primary {
  margin-top: 6px;
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer p {
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 260px;
  }
  .sgroup {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .scard-list {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 64px 0;
  }
}

/* ---------- LEGAL PAGES ---------- */
.legal-hero {
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  margin-top: 14px;
}
.legal-updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 14px;
}
.legal-body {
  padding: 56px 0 96px;
  max-width: 760px;
}
.legal-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 14px;
}
.legal-body ul {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0 0 14px 22px;
}
.legal-body li {
  margin-bottom: 8px;
}
.legal-body strong {
  color: var(--ink);
}
.legal-body a.inline-link {
  color: var(--accent);
  text-decoration: underline;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.legal-table th {
  background: var(--bg-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.legal-note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 32px;
}
