:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d616b;
  --dim: #8b8f98;
  --line: #e3e1db;
  --accent: #2c4bd1;
  --accent-hover: #1f38a8;
  --ink: #12151c;
  --ink-text: #f3f2ee;
  --ink-muted: #a7abb4;

  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #161920;
    --text: #ecebe7;
    --muted: #a2a6af;
    --dim: #6f737c;
    --line: #262a33;
    --accent: #7d95ff;
    --accent-hover: #a3b4ff;
    --ink: #1a1e27;
    --ink-text: #f3f2ee;
    --ink-muted: #a7abb4;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: inset -6px -6px 0 0 color-mix(in srgb, var(--accent) 55%, #000);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.93rem;
}

.site-header nav a { color: var(--muted); transition: color .15s; }
.site-header nav a:hover { color: var(--text); }

.site-header nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.site-header nav .nav-cta:hover { border-color: var(--text); }

/* Hero */
.hero {
  padding: 112px 0 104px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 72px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.07;
  font-weight: 650;
  letter-spacing: -0.035em;
  max-width: 15ch;
}

.hero-sub {
  margin-top: 28px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 54ch;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.btn {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 550;
  font-size: 0.97rem;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent); color: #fff; }

.link-arrow {
  font-weight: 550;
  font-size: 0.97rem;
  color: var(--text);
}
.link-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform .15s;
}
.link-arrow:hover::after { transform: translateX(3px); }

.hero-list {
  border-top: 1px solid var(--text);
}

.hero-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 550;
}

.hero-list .dim {
  font-weight: 400;
  color: var(--dim);
  font-size: 0.92rem;
  text-align: right;
}

/* Qué hacemos */
.section { padding: 112px 0; }

.section-head { max-width: 720px; margin-bottom: 64px; }

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.features li {
  padding: 32px 32px 8px 0;
}

.features li + li {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.num {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 40px;
}

.features h3 {
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.features p { color: var(--muted); font-size: 0.98rem; }

/* Contacto */
.contact {
  background: var(--ink);
  color: var(--ink-text);
  padding: 88px 0;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.contact p { color: var(--ink-muted); max-width: 48ch; }

.btn-light { background: var(--ink-text); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }

/* Footer */
.site-footer {
  padding: 28px 0;
  font-size: 0.86rem;
  color: var(--dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted); border-bottom: 1px solid var(--line); }
.site-footer a:hover { color: var(--text); border-color: var(--text); }

/* Foco visible */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 80px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .section { padding: 80px 0; }

  .features { grid-template-columns: 1fr; }
  .features li,
  .features li + li {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .num { margin-bottom: 16px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  body { font-size: 16px; }
  .site-header nav { gap: 18px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero-list .dim { display: none; }
  .contact { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
