:root {
  --ink: #0A0B0D;
  --panel: #111317;
  --line: #23262B;
  --line-strong: #4A5059;
  --paper: #F3F4F5;
  --paper-line: #CFD3D8;
  --text: #F2F3F5;
  --text-soft: #B9BEC6;
  --muted: #9AA0A8;
  --ink-soft: #33373D;
  --ink-muted: #555B64;
  --accent: #6EA8FF;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, p, dl, dd { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Encabezado */
.site-header { border-bottom: 1px solid var(--line); background: var(--ink); color: var(--text); }
.site-header .wrap {
  padding-top: 22px; padding-bottom: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-mark { font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.brand-name { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 36px; font-size: 15px; }
.nav a { padding: 12px 0; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a.nav-cta { padding: 12px 20px; border: 1px solid var(--text); color: var(--text); }
.nav a.nav-cta[aria-current="page"] { background: var(--text); color: var(--ink); }

/* Tipografía */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.display { font-size: clamp(40px, 5.4vw, 76px); font-weight: 300; line-height: 1.04; letter-spacing: -.02em; }
.display-sm { font-size: clamp(38px, 4.8vw, 68px); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.1; letter-spacing: -.015em; }
.title-lg { font-size: clamp(32px, 4vw, 56px); font-weight: 300; line-height: 1.07; letter-spacing: -.02em; }
.lead { font-size: 19px; color: var(--text-soft); }

/* Botones */
.btn { display: inline-block; padding: 15px 28px; font: inherit; font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Secciones */
.section { border-bottom: 1px solid var(--line); }
.section > .wrap { padding-top: 112px; padding-bottom: 112px; }
.section-light { background: var(--paper); color: var(--ink); border-bottom: 0; }
.section-light .eyebrow { color: var(--ink-muted); }

/* Portada */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > .wrap { position: relative; padding-top: 136px; padding-bottom: 144px; }
.hero .eyebrow { margin-bottom: 28px; }
.hero .display { max-width: 760px; }
.hero .display-sm { max-width: 820px; }
.hero .lead { margin-top: 32px; max-width: 560px; }
.hero .btn-row { margin-top: 48px; }
.hero-compact > .wrap { padding-top: 112px; padding-bottom: 112px; }

/* Servicios (grilla de inicio) */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .title { max-width: 620px; }
.text-link { padding: 12px 0; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 500; }
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); }
.service-card { background: var(--paper); padding: 36px 32px 44px; display: flex; flex-direction: column; gap: 14px; }
.service-card .num, .service-row .num { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); }
.service-card h3 { font-size: 22px; font-weight: 500; }
.service-card p { color: #454A52; font-size: 16px; }

/* Cómo trabajamos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; margin-top: 48px; }
.step { border-top: 1px solid var(--text); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-size: 30px; font-weight: 300; }
.step p { color: var(--text-soft); }

/* Dos columnas */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 96px; }
.split .eyebrow { margin-bottom: 16px; }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 17px; color: var(--text-soft); }
.section-light .prose { color: var(--ink-soft); }
.statement { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; }

/* Llamado a contacto */
.cta > .wrap { padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 640px; }
.cta-side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact-line { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Página de servicios */
.service-list > .wrap { padding-top: 40px; padding-bottom: 104px; }
.service-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 64px; padding: 48px 0; border-bottom: 1px solid var(--paper-line); }
.service-row .head { display: flex; flex-direction: column; gap: 12px; }
.service-row h2 { font-size: 30px; font-weight: 400; letter-spacing: -.01em; }
.service-row .body { display: flex; flex-direction: column; gap: 16px; }
.service-row .body p { font-size: 17px; color: var(--ink-soft); }
.service-row .body .tags { font-family: var(--mono); font-size: 13px; color: var(--ink-muted); }
.fine-print { margin-top: 40px; max-width: 640px; font-size: 14px; color: var(--ink-muted); }

/* Contacto */
.contact > .wrap { padding-top: 112px; padding-bottom: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px 96px; }
.contact-intro { display: flex; flex-direction: column; gap: 28px; }
.contact-intro .lead { max-width: 440px; font-size: 18px; }
.contact-data { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 4px; }
.contact-data dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-data dd { font-size: 17px; }
.form { display: flex; flex-direction: column; gap: 24px; border: 1px solid var(--line); background: var(--panel); padding: 40px 36px 44px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--text-soft); }
.field input, .field textarea {
  padding: 0 14px; background: var(--ink); border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: 16px; border-radius: 0;
}
.field input { height: 48px; }
.field textarea { padding-top: 12px; padding-bottom: 12px; resize: vertical; min-height: 140px; }
.form .btn { align-self: flex-start; }
.hidden { position: absolute; left: -9999px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: var(--muted); }
.site-footer .wrap { padding-top: 36px; padding-bottom: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; font-size: 13px; }
.site-footer .note { max-width: 520px; }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section > .wrap, .hero-compact > .wrap { padding-top: 72px; padding-bottom: 72px; }
  .hero > .wrap { padding-top: 88px; padding-bottom: 96px; }
  .cta > .wrap, .contact > .wrap { padding-top: 80px; padding-bottom: 80px; }
  .nav { gap: 4px 24px; }
  .form { padding: 28px 20px 32px; }
  .service-card { padding: 28px 24px 32px; }
}
