/* SoftData — Inteligencia de Negocios y Big Data */
:root {
  --bg: #06080b;
  --surface: #0a0d12;
  --ink: #e9eef2;
  --ink-2: #b9c3cc;
  --ink-3: #9aa6b1;
  --muted: #8b97a3;
  --faint: #6f7b87;
  --accent: #3de0ff;
  --accent-hi: #9cf0ff;
  --on-accent: #04121a;
  --line: rgba(233, 238, 242, .1);
  --gutter: clamp(20px, 5vw, 64px);
  --display: Syne, sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(.2, .7, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
::selection { background: rgba(61, 224, 255, .3); color: #fff; }
input, textarea, button { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.page { position: relative; overflow-x: clip; background: var(--bg); min-height: 100vh; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(6, 8, 11, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(233, 238, 242, .08);
}
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; }
.brand-mark span { width: 5px; height: 5px; background: var(--accent); }
.brand-mark .o5 { opacity: .5; }
.brand-mark .o2 { opacity: .2; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--accent); }
.btn-header {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid rgba(61, 224, 255, .45); color: var(--accent);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-header:hover { background: var(--accent); color: var(--on-accent); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px;
  font-size: 15px; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn-ghost { border: 1px solid rgba(233, 238, 242, .22); color: var(--ink); font-weight: 500; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 15px 22px; gap: 10px; }
.btn .mono { font-family: var(--mono); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; min-height: 88svh;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 8, 11, .55) 0%, rgba(6, 8, 11, 0) 25%, rgba(6, 8, 11, 0) 55%, rgba(6, 8, 11, .9) 100%);
}
.hero-content { position: relative; width: 100%; padding-top: 96px; padding-bottom: 56px; pointer-events: none; }
.hero-tags {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 28px;
}
.hero-tags .on { color: var(--accent); }
.hero-title {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 5.6vw, 92px); line-height: .96; letter-spacing: -.035em;
  max-width: 16ch; text-wrap: balance;
}
.hero-title .mask { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }
.hero-title .ink { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; pointer-events: auto; }
.hero-hint {
  position: absolute; right: var(--gutter); top: 120px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--faint);
  text-transform: uppercase; writing-mode: vertical-rl; pointer-events: none;
}

/* ── Section labels ─────────────────────────────────── */
.label { display: flex; align-items: baseline; gap: 18px; }
.label .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.label h2 {
  margin: 0; font-family: var(--mono); font-weight: 400; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* ── Photos ─────────────────────────────────────────── */
.photo {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--surface);
  width: 100%;
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ── 01 Quiénes somos ───────────────────────────────── */
.about {
  padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(64px, 8vw, 120px);
}
.about .label { margin-bottom: 48px; }
.about-body { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: flex-end; }
.about-text {
  flex: 2 1 520px; margin: 0; min-width: 0;
  font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.9vw, 42px);
  line-height: 1.22; letter-spacing: -.015em; text-wrap: pretty;
}
.about-text .w { color: rgba(233, 238, 242, .16); transition: color .25s; }
.about-text .w.lit { color: var(--ink); }
.about-text .w.a.lit { color: var(--accent); }
.about-photo { aspect-ratio: 4 / 5; min-width: 0; flex: 1 1 240px; max-width: 330px; }

/* ── 02 Misión y Visión ─────────────────────────────── */
.mv { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(24px, 3vw, 40px); }
.mv .label { margin-bottom: 56px; }
.mv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  border-top: 1px solid var(--line);
}
.mv-col { padding: 48px 0; min-width: 0; }
.mv-col:first-child { padding-right: clamp(0px, 3vw, 48px); border-right: 1px solid var(--line); }
.mv-col:last-child { padding-left: clamp(0px, 3vw, 48px); }
.mv-col h3 {
  margin: 0 0 28px; font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5vw, 72px); letter-spacing: -.03em; line-height: 1;
}
.mv-col h3.accent { color: var(--accent); }
.mv-col p { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.office-photo {
  margin-top: clamp(40px, 6vw, 80px); margin-inline: auto;
  aspect-ratio: 16 / 9; max-width: 1100px; min-height: 220px;
}

/* ── 03 Servicios ───────────────────────────────────── */
.services { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 6vw, 80px); }
.services > .label { margin-bottom: 28px; }
.service {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 6vw, 96px); padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line);
}
.service-intro, .service-items { min-width: 0; }
.service-sticky { position: sticky; top: 110px; }
.service-idx { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 18px; }
.service h3 {
  margin: 0 0 34px; font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 4vw, 60px); line-height: 1; letter-spacing: -.03em;
}
.service h3.has-sub { margin-bottom: 6px; }
.service-sub { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.service-desc { margin: 0 0 36px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }
.bi-photo { aspect-ratio: 16 / 9; }
.chart-frame {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface);
}
.chart-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.service-items { display: flex; flex-direction: column; }
.item { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.item:last-child { border-bottom: 0; }
.item .n { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 6px; }
.item h4 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -.01em; }
.item p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }

/* ── 04 Tecnologías ─────────────────────────────────── */
.tech { padding: clamp(64px, 8vw, 120px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech .label { margin-bottom: 48px; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee + .marquee { margin-top: 8px; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-item {
  display: inline-flex; align-items: center;
  gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--display); font-weight: 700; font-size: clamp(48px, 8vw, 128px);
  letter-spacing: -.04em; line-height: 1.1;
}
.marquee-item .t { color: var(--ink); }
.marquee-item .sq { width: .18em; height: .18em; background: var(--accent); display: inline-block; }
.marquee.outline .t { color: transparent; -webkit-text-stroke: 1.5px rgba(233, 238, 242, .55); }
.marquee.outline .sq { background: none; border: 2px solid var(--accent); }

/* ── 05 Contacto ────────────────────────────────────── */
.contact { padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(64px, 8vw, 120px); }
.contact .label { margin-bottom: 40px; }
.contact-lead {
  margin: 0 0 72px; font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -.03em;
  max-width: 20ch; text-wrap: balance;
}
.contact-lead span { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(48px, 6vw, 96px); }
.contact-grid > * { min-width: 0; }
.contact-intro { margin: 0 0 40px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; text-wrap: pretty; }
.channels { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.channel {
  display: grid; grid-template-columns: minmax(0, 160px) 1fr auto; gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink);
  transition: color .2s, padding .3s;
}
a.channel:hover { color: var(--accent); padding-left: 10px; }
.channel .k { font-family: var(--mono); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.channel .v { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; overflow-wrap: anywhere; }
.channel .arr { font-family: var(--mono); }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.form {
  padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px;
}
.form-note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(233, 238, 242, .2); border-radius: 0;
  padding: 10px 0; color: var(--ink); font-size: 16px; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.btn-submit {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px;
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
  font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, color .2s;
}
.btn-submit:hover { background: var(--accent); color: var(--on-accent); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer-meta {
  padding-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase;
}
.footer-word {
  font-family: var(--display); font-weight: 800; font-size: clamp(80px, 21vw, 330px);
  letter-spacing: -.06em; line-height: .78; text-align: center; color: transparent;
  -webkit-text-stroke: 1px rgba(61, 224, 255, .35); margin-top: 32px; transform: translateY(12%);
  user-select: none;
}

/* ── Motion ─────────────────────────────────────────── */
.js-motion [data-reveal] { opacity: 0; }
.js-motion [data-reveal].revealed { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
