:root {
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --paper: #FFFFFF;
  --bg: #F8FAFC;
  --bg-2: #F1F5F9;
  --muted: #475569;
  --muted-2: #64748B;
  --line: #E2E8F0;
  --line-soft: #EEF2F7;
  --accent: #2563EB;
  --accent-2: #1D4ED8;
  --accent-3: #06B6D4;
  --accent-ink: #1D4ED8;
  --grad: linear-gradient(118deg, #1D4ED8 0%, #2563EB 45%, #06B6D4 100%);
  --grad-soft: linear-gradient(118deg, rgba(37,99,235,.10), rgba(29,78,216,.08) 52%, rgba(6,182,212,.12));
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 2px 6px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.05);
  --shadow-md: 0 12px 40px rgba(15,23,42,.10);
  --shadow-lg: 0 30px 70px rgba(15,23,42,.15);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { overflow-wrap: break-word; }

html[data-lang="es"] .en { display: none !important; }
html[data-lang="en"] .es { display: none !important; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

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

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

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow.plain { background: var(--bg-2); color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,251,253,.72);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-xs); }
.brand .word { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em; }
.brand .word b { font-weight: 800; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .93rem; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.lang-toggle button { border: 0; background: transparent; padding: 6px 12px; font: inherit; font-size: .78rem; font-weight: 600; color: var(--muted-2); cursor: pointer; transition: background .2s, color .2s; }
.lang-toggle button.active { background: var(--ink); color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent; transition: transform .18s ease, box-shadow .22s ease, background .2s, border-color .2s, color .2s; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gradient { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.28); }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37,99,235,.36); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted-2); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 118px 0 96px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
  width: 1100px; height: 700px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37,99,235,.16), rgba(29,78,216,.10) 45%, transparent 72%);
  filter: blur(20px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; margin: 22px auto 22px; max-width: 18ch; }
.hero .lead { font-size: clamp(1.08rem, 2.1vw, 1.32rem); color: var(--muted); max-width: 62ch; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: .86rem; color: var(--muted-2); }

.logos-strip { margin-top: 74px; }
.logos-strip .label { text-align: center; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.tech-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .88rem; font-weight: 500; color: var(--ink-soft); box-shadow: var(--shadow-xs); transition: transform .18s, border-color .2s; }
.tech-pill:hover { transform: translateY(-2px); border-color: var(--accent); }
.tech-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 66ch; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.025em; margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.surface { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- About / stats ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-grid > * { min-width: 0; }
.about-copy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.025em; margin: 14px 0 18px; }
.about-copy p { color: var(--muted); font-size: 1.06rem; margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats > * { min-width: 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-xs); }
.stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 3.2vw, 1.5rem); letter-spacing: -.02em; overflow-wrap: break-word; }
.stat .n span { -webkit-background-clip: text; background-clip: text; }
.stat .l { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .cap-grid > *, .portfolio > *, .values > *, .process > * { min-width: 0; }

.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-xs); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; overflow: hidden; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #DADEEA; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent-ink); margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.16rem; letter-spacing: -.015em; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Capabilities (feature list) ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 40px; }
.cap { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.cap .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #fff; margin-top: 2px; }
.cap .tick svg { width: 15px; height: 15px; }
.cap h4 { margin: 0 0 3px; font-size: 1rem; letter-spacing: -.01em; }
.cap p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Portfolio ---------- */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pf { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-xs); transition: transform .25s, box-shadow .25s, border-color .25s; padding: 28px; }
.pf:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #DADEEA; }
.pf .app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pf .app-icon { width: 60px; height: 60px; border-radius: 15px; box-shadow: var(--shadow-sm); object-fit: cover; flex: none; }
.pf .app-glyph { width: 60px; height: 60px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent-ink); flex: none; }
.pf .app-glyph svg { width: 28px; height: 28px; }
.pf .kicker { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.pf h3 { margin: 3px 0 0; font-size: 1.15rem; letter-spacing: -.015em; }
.pf p { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.pf .spacer { flex: 1; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: .82rem; transition: transform .18s, opacity .2s; }
.badge:hover { transform: translateY(-2px); }
.badge small { display: block; font-size: .6rem; opacity: .75; line-height: 1; margin-bottom: 2px; letter-spacing: .02em; }
.badge b { font-weight: 600; line-height: 1; font-size: .86rem; }
.badge svg { width: 18px; height: 18px; flex: none; }
.badge.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.badge.soon:hover { transform: none; }
.pf.cta-card { align-items: flex-start; justify-content: center; background: linear-gradient(160deg, var(--grad-soft), transparent); }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.value { background: var(--paper); padding: 30px; transition: background .2s; }
.value:hover { background: var(--bg-2); }
.value .vi { color: var(--accent-ink); margin-bottom: 12px; }
.value .vi svg { width: 24px; height: 24px; }
.value h3 { margin: 0 0 6px; font-size: 1.08rem; letter-spacing: -.015em; }
.value p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.step { position: relative; }
.step .num { width: 42px; height: 42px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--accent-ink); margin-bottom: 16px; box-shadow: var(--shadow-xs); position: relative; z-index: 1; }
.step h4 { margin: 0 0 6px; font-size: 1.02rem; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.process::before { content: ""; position: absolute; top: 21px; left: 42px; right: 42px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); opacity: .35; }

/* ---------- Use cases ---------- */
.usecases { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.uc { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-weight: 500; box-shadow: var(--shadow-xs); transition: transform .18s, border-color .2s, color .2s; }
.uc:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-ink); }
.uc svg { width: 18px; height: 18px; color: var(--accent-ink); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 64px 48px; text-align: center; background: var(--ink); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 20% 0%, rgba(37,99,235,.42), transparent 60%), radial-gradient(700px 340px at 85% 120%, rgba(6,182,212,.28), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.025em; margin: 0 0 14px; }
.cta-band p { color: #C6CBDA; font-size: 1.08rem; margin: 0 auto 28px; max-width: 54ch; }
.cta-band .btn-ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #98A1B4; padding: 68px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand .word { color: #fff; }
.footer-brand p { max-width: 34ch; margin: 16px 0 0; font-size: .95rem; color: #7E889C; }
.footer-col h4 { color: #fff; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col a, .footer-col span { display: block; color: #98A1B4; padding: 5px 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 46px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #6D7688; }

/* ---------- Legal / content ---------- */
.doc { padding: 72px 0 44px; }
.doc .container { max-width: 800px; }
.doc h1 { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 2.9rem); margin: 0 0 6px; letter-spacing: -.025em; }
.doc .updated { color: var(--muted-2); font-size: .92rem; margin: 0 0 34px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; letter-spacing: -.015em; }
.doc p, .doc li { color: #39414F; }
.doc a { color: var(--accent-ink); font-weight: 600; }
.doc a:hover { text-decoration: underline; }
.doc ul { padding-left: 22px; } .doc li { margin: 6px 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.back-link:hover { color: var(--accent-ink); }

/* ---------- Brand guide ---------- */
.brand-block { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 22px 0; }
.brand-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.bp { padding: 44px; display: grid; place-items: center; }
.bp.light { background: #fff; } .bp.gray { background: var(--bg-2); } .bp.dark { background: var(--ink); }
.bp img { width: 92px; height: 92px; }
.bp .cap { font-size: .78rem; color: var(--muted-2); margin-top: 14px; text-align: center; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sw { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sw .chip { height: 74px; }
.sw .meta { padding: 12px 14px; } .sw .meta b { font-size: .9rem; } .sw .meta span { display: block; color: var(--muted-2); font-size: .8rem; font-variant-numeric: tabular-nums; }
.safe-area { position: relative; background: var(--bg-2); border-radius: var(--r); padding: 40px; display: grid; place-items: center; }
.safe-area .box { position: relative; padding: 28px; border: 1px dashed var(--accent); border-radius: 12px; }
.safe-area .box img { width: 72px; height: 72px; }
.minsize { display: flex; align-items: flex-end; gap: 30px; flex-wrap: wrap; background: var(--bg-2); border-radius: var(--r); padding: 28px 30px; }
.minsize .item { text-align: center; } .minsize .item .cap { font-size: .75rem; color: var(--muted-2); margin-top: 8px; }
.dont-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dont { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.dont .vis { height: 120px; display: grid; place-items: center; background: var(--bg-2); position: relative; overflow: hidden; }
.dont .tag { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.dont .x { width: 18px; height: 18px; border-radius: 50%; background: #DC2626; color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
@media (max-width: 720px) { .dont-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .cap-grid, .portfolio, .values, .process { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .process::before { display: none; }
  .cap-grid { gap: 4px 32px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 62px 0; }
  .hero { padding: 76px 0 58px; }
  .grid-4, .grid-2, .cap-grid, .portfolio, .values { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .values { border-radius: var(--r-lg); gap: 1px; }
  .cta-band { padding: 44px 24px; }
  .brand-preview { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .about-copy h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .site-header .container { height: 64px; }
  .brand .mark { width: 28px; height: 28px; }
  .brand .word { font-size: 1rem; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin-top: 18px; }
  .hero .lead { font-size: 1.02rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .card, .vertical, .pf, .value { padding: 24px; }
  .cta-band h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
