* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
   --brand: #4A90D9;
   --brand-dark: #2F6DB0;
   --ink: #14233A;
   --muted: #5B6B80;
   --line: #DCE6F2;
   --paper: #FFFFFF;
   --soft: #F3F7FC;
   --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
   --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--brand-dark); }
img { max-width: 100%; }
html[lang="es"] [lang="en"], html[lang="en"] [lang="es"] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--brand); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { font-weight: 900; font-size: 26px; letter-spacing: -1px; text-transform: lowercase; color: #fff; text-decoration: none; }
.nav { display: flex; gap: 20px; margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.nav a { color: #fff; text-decoration: none; opacity: .8; }
.nav a:hover { opacity: 1; }
.lang-switch { display: flex; gap: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; }
.lang-switch button { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 5px 12px; border-radius: 20px; cursor: pointer; font: inherit; opacity: .6; }
.lang-switch button.active { background: #fff; color: var(--brand); border-color: #fff; opacity: 1; }

/* Hero */
.hero { background: var(--brand); color: #fff; padding: 72px 0 96px; }
.hero .logo { font-size: clamp(64px, 12vw, 140px); font-weight: 900; letter-spacing: -3px; line-height: 1; text-transform: lowercase; }
.hero .subtitle { font-family: var(--mono); font-size: clamp(12px, 2vw, 16px); letter-spacing: 6px; text-transform: uppercase; opacity: .75; margin-top: 12px; }
.hero .pitch { font-size: clamp(20px, 3vw, 28px); max-width: 30em; margin-top: 40px; line-height: 1.4; text-wrap: balance; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 14px 28px; border-radius: 50px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.btn-light { background: #fff; color: var(--brand); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn svg { width: 20px; height: 20px; }

/* Sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--soft); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--brand-dark); }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -1px; line-height: 1.15; margin-top: 8px; text-wrap: balance; }
.lead { color: var(--muted); max-width: 40em; margin-top: 16px; }
.grid { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.card p { color: var(--muted); font-size: 16px; }
.card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-dark); }
.card .link { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
.card .link:hover { text-decoration: underline; }
.card.feature { border-color: var(--brand); border-width: 2px; }

.facts { display: grid; gap: 16px 40px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.facts dd { font-weight: 700; margin-top: 4px; }

.contact { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }

.eyebrow .num { color: var(--muted); margin-right: 10px; }

/* Client logo wall: bordered cells, logos in their own colours */
.clients { padding: 56px 0; border-bottom: 1px solid var(--line); }
.clients .caption { text-align: center; color: var(--muted); font-size: 15px; }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.logo-wall a { display: flex; align-items: center; justify-content: center; height: 120px; padding: 20px 24px; border-right: 1px solid var(--line); background: var(--paper); transition: background .2s ease; }
.logo-wall a:last-child { border-right: 0; }
.logo-wall a:hover { background: var(--soft); }
.logo-wall img { max-height: 64px; max-width: 100%; object-fit: contain; }
.logo-wall img.tall { max-height: 84px; }

/* Case cards with a real screenshot */
.cases { display: grid; gap: 24px; margin-top: 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.case:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20, 35, 58, .12); }
.case .shot { aspect-ratio: 16 / 10; max-width: 100%; background: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.case .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case .shot.logo-only img { width: auto; height: auto; max-width: 60%; max-height: 50%; object-fit: contain; }
.case .body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case .head { display: flex; align-items: center; gap: 12px; }
.case .head img { height: 32px; width: auto; max-width: 96px; object-fit: contain; }
.case h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.case p { color: var(--muted); font-size: 16px; }
.case .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-dark); }
.case .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--brand-dark); }
.case.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.case.wide .shot { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
.case.wide .body { padding: 36px; justify-content: center; }
.case.wide h3 { font-size: 28px; }

/* Footer */
.footer { background: var(--ink); color: #C9D4E3; padding: 40px 0; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; letter-spacing: -1px; line-height: 1.15; }
.legal .updated { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 1px; margin-top: 8px; }
.legal h2 { font-size: 22px; letter-spacing: 0; margin-top: 36px; }
.legal p, .legal li { margin-top: 12px; }
.legal ul { padding-left: 22px; }

@media (max-width: 900px) {
   .logo-wall { grid-template-columns: repeat(3, 1fr); }
   .logo-wall a { border-bottom: 1px solid var(--line); }
   .logo-wall a:nth-child(3n) { border-right: 0; }
   .case.wide { grid-template-columns: 1fr; }
   .case.wide .shot { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
   .case.wide .body { padding: 24px; }
   .case.wide h3 { font-size: 22px; }
}
@media (max-width: 760px) {
   .logo-wall { grid-template-columns: repeat(2, 1fr); }
   .logo-wall a { height: 96px; }
   .logo-wall a:nth-child(3n) { border-right: 1px solid var(--line); }
   .logo-wall a:nth-child(2n) { border-right: 0; }
   .nav { display: none; }
   .top .wrap { justify-content: space-between; }
   .hero { padding: 48px 0 64px; }
   section.block { padding: 64px 0; }
}

.logo-wall .mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; letter-spacing: -.3px; color: #1D3FE0; }
.logo-wall .mark img { height: 36px; }
.case .shot.brand-panel { background: linear-gradient(135deg, var(--soft), #E6EEF8); }
.card.full { grid-column: 1 / -1; }
.logo-wall a { text-decoration: none; }
.logo-wall .mark { font-size: 15px; gap: 6px; }
.logo-wall .mark img { height: 28px; }
.case.wide.reverse { grid-template-columns: 1fr 1.3fr; }
.case.wide.reverse .shot { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.product-word { font-weight: 900; font-size: clamp(56px, 8vw, 96px); letter-spacing: -3px; color: var(--brand); }
@media (max-width: 900px) {
   .case.wide.reverse { grid-template-columns: 1fr; }
   .case.wide.reverse .shot { order: 0; border-left: 0; }
}
section[id] { scroll-margin-top: 64px; }
