:root {
  color-scheme: light;
  --bg: oklch(0.977 0.008 255);
  --surface: oklch(0.995 0.004 255);
  --ink: oklch(0.29 0.055 255);
  --muted: oklch(0.47 0.035 255);
  --accent: oklch(0.47 0.115 255);
  --accent-strong: oklch(0.37 0.115 255);
  --line: oklch(0.87 0.018 255);
  --focus: oklch(0.61 0.17 255);
  --font: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font); }
body[data-lang="es"] [data-copy="en"], body[data-lang="en"] [data-copy="es"] { display: none !important; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { width: min(100% - 40px, 1200px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 16px; background: var(--ink); color: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; border-bottom: 1px solid var(--line); }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: 1.2rem; font-weight: 760; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.site-header nav a, .cv-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .82rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .cv-link:hover { color: var(--accent-strong); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-switch { display: flex; border: 1px solid var(--line); }
.language-switch button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.cv-link { padding-inline: 8px; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 5px; }
.hero { position: relative; isolation: isolate; min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); align-items: center; gap: clamp(48px, 7vw, 96px); padding-block: clamp(64px, 9vw, 120px); }
.route-field { position: absolute; z-index: -1; inset: 0 -12vw; overflow: hidden; pointer-events: none; color: var(--accent); opacity: .18; }
.route-field svg { width: 100%; height: 100%; }
.route-field path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 7 12; vector-effect: non-scaling-stroke; animation: route-shift 20s linear infinite; }
.route-field path:nth-child(2) { animation-duration: 27s; animation-direction: reverse; }
.route-field .signal { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: signal-pulse 3.6s var(--ease) infinite; }
.route-field .signal-b { animation-delay: 1.8s; }
.hero-copy { max-width: 700px; }
.eyebrow { margin: 0 0 24px; color: var(--accent-strong); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 12.5ch; margin: 0; font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 620; line-height: .99; letter-spacing: -.065em; text-wrap: balance; }
h1 strong { color: var(--accent); font-weight: 620; }
.lead { max-width: 64ch; margin: 32px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.7; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 13px 20px; border: 1px solid var(--ink); color: var(--ink); font-size: .9rem; font-weight: 720; text-decoration: none; transition: transform 180ms var(--ease), background 180ms, color 180ms; }
.button-primary { background: var(--ink); color: var(--surface); }
.button:hover { transform: translateY(-2px); }
.button-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button-secondary:hover { background: var(--surface); }
.availability { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; color: var(--muted); font-size: .85rem; }
.status-dot { width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; }
.portrait { width: min(100%, 410px); margin: 0; justify-self: end; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: .83; background: oklch(0.91 0.018 255); }
.portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 42%; }
.portrait-label { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; padding: 44px 18px 16px; background: linear-gradient(transparent, oklch(0.22 0.05 255 / .88)); color: var(--surface); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.proof-strip { border-block: 1px solid var(--line); background: var(--surface); }
.proof-list { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow-x: auto; color: var(--muted); font-size: .72rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; scrollbar-width: none; }
.proof-list span { white-space: nowrap; }
.case { padding-block: clamp(72px, 10vw, 128px); }
.section-label { display: flex; gap: 18px; margin-bottom: 32px; color: var(--accent-strong); font-size: .74rem; font-weight: 730; letter-spacing: .1em; text-transform: uppercase; }
.case-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 120px); padding-top: 30px; border-top: 1px solid var(--line); }
.case-state { width: fit-content; margin: 0 0 20px; padding: 6px 10px; border: 1px solid var(--accent); color: var(--accent-strong); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.case h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.case-title > p:last-child { max-width: 38ch; color: var(--muted); }
.case-detail { display: grid; gap: 30px; }
.case-detail h3 { margin: 0 0 10px; font-size: 1rem; }
.case-detail p { max-width: 65ch; margin: 0; color: var(--muted); }
.case-detail dl { margin: 0; border-top: 1px solid var(--line); }
.case-detail dl div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.case-detail dt { color: var(--muted); font-size: .78rem; font-weight: 720; text-transform: uppercase; }
.case-detail dd { margin: 0; }
.case-link { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 18px; color: var(--accent-strong); font-weight: 720; text-underline-offset: 6px; }
.client-work { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.client-heading { max-width: 820px; margin-bottom: 48px; }
.client-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 560; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.client-card { min-height: 400px; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 54px); }
.client-card + .client-card { border-left: 1px solid var(--line); }
.client-card h3 { max-width: 14ch; margin: 0; font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1; letter-spacing: -.05em; }
.client-card > p:not(.case-state) { max-width: 54ch; margin: 24px 0 0; color: var(--muted); }
.client-card > a { min-height: 44px; display: inline-flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 28px; color: var(--accent-strong); font-weight: 720; text-underline-offset: 6px; }
.profile { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.profile-statement { max-width: 27ch; margin: 0; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 32px; padding-block: 40px; border-top: 1px solid var(--line); }
.site-footer strong { font-size: 1.1rem; }
.site-footer p { max-width: 48ch; margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.footer-links { display: grid; gap: 4px; font-size: .82rem; }
#motion-toggle { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
body.motion-paused *, body.motion-off * { animation-play-state: paused !important; }
body.motion-off * { animation: none !important; transition: none !important; }
@keyframes route-shift { to { stroke-dashoffset: -190; } }
@keyframes signal-pulse { 0%, 100% { opacity: .2; transform: scale(.7); } 45% { opacity: 1; transform: scale(1.55); } }
@media (max-width: 920px) {
  .site-header nav { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: min(82vw, 440px); }
  .case-layout { grid-template-columns: 1fr; }
  .route-field { inset: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  #motion-toggle { justify-self: start; }
}
@media (max-width: 580px) {
  .site-header { min-height: 76px; gap: 10px; }
  .wordmark { font-size: 1rem; }
  .header-actions { gap: 4px; }
  .cv-link { display: none; }
  .hero { gap: 42px; padding-block: 56px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .portrait { width: 100%; }
  .proof-list { justify-content: flex-start; }
  .case-detail dl div { grid-template-columns: 1fr; gap: 2px; }
  .client-grid { grid-template-columns: 1fr; }
  .client-card { min-height: 340px; }
  .client-card + .client-card { border-left: 0; border-top: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) { .status-dot { forced-color-adjust: none; background: CanvasText; } }
