/* Nexo: shared tokens and mobile-first editorial layout. */
:root {
  --paper: #f7f7f5;
  --ink: #171717;
  --text: #484844;
  --line: #d1d1ca;
  --surface: #eaeae5;
  --gutter: 24px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Montserrat, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p { margin: 0; line-height: 1.65; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.045em; }
h1 { font-size: clamp(37px, 9vw, 64px); line-height: 1.13; margin: 28px 0; }
h2 { font-size: clamp(31px, 7.6vw, 42px); line-height: 1.2; }
h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
strong { font-weight: 600; color: var(--ink); }
.page { max-width: 1440px; padding-inline: var(--gutter); margin: auto; }
.skip { position: absolute; left: 20px; top: -100px; background: var(--ink); color: white; padding: 14px; z-index: 10; }
.skip:focus { top: 10px; }

/* Header and first-screen explanation. */
header { min-height: 94px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: block; width: 143px; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; }
header nav { display: flex; gap: 38px; font-size: 14px; font-weight: 500; }
header nav a { padding-block: 14px; }
header nav span { margin-left: 10px; }
.nav-about, .desktop { display: none; }
.hero { padding-top: 36px; position: relative; isolation: isolate; }
.nexo-mark { position: absolute; width: 155px; top: 65px; right: 0; color: #dfdfd7; opacity: .6; z-index: -1; }
.eyebrow { font-size: 12px; line-height: 1.5; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.period { color: #888880; }
.hero-bottom p { font-size: 17px; color: var(--text); max-width: 680px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 40px; min-height: 56px; padding: 17px 22px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 500; }
.button:hover { background: #383838; }
.button span { font-size: 24px; }
.hero-bottom .button { margin-top: 24px; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0; font-size: 12px; color: var(--text); }
.hero-foot a { padding-block: 12px; }
.hero-foot a span { margin-left: 10px; }
.service-overview { display: grid; margin-top: 32px; border-top: 1px solid var(--line); }
.service-overview a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.service-overview a > span:first-child { grid-row: 1 / 3; color: #66665d; font-size: 12px; padding-top: 3px; }
.service-overview strong { font-size: 17px; letter-spacing: -.025em; }
.service-overview a > span:last-child { font-size: 13px; color: var(--text); }
.service-overview a > span:last-child span { margin-left: 8px; }

/* Section hierarchy. */
.section { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.section-label { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.section-label > span { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border: 1px solid #aaa99f; border-radius: 50%; font-size: 12px; font-weight: 500; letter-spacing: 0; color: #55554f; flex-shrink: 0; }
.section-content { min-width: 0; }
.intro { font-size: 17px; max-width: 660px; color: var(--text); margin-top: 20px; }
.service-aside { display: none; }
.service-list { margin-top: 30px; }
.service-row { border-top: 1px solid var(--line); padding: 24px 0; scroll-margin-top: 24px; }
.service-row:nth-child(even) { background: var(--surface); box-shadow: 12px 0 var(--surface), -12px 0 var(--surface); }
.service-row h3 { display: flex; gap: 12px; align-items: baseline; margin-bottom: 17px; }
.service-index { color: #65655b; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.scan-list { margin: 0; padding: 0; list-style: none; color: var(--text); font-size: 16px; }
.scan-list li { position: relative; padding-left: 16px; line-height: 1.6; }
.scan-list li + li { margin-top: 10px; }
.scan-list li::before { content: ""; position: absolute; top: .7em; left: 0; width: 4px; height: 4px; background: #77776b; border-radius: 50%; }
.process { margin: 32px 0 0; padding: 0; list-style: none; }
.process li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.process li:first-child { border-top: 2px solid var(--ink); }
.step { font-size: 56px; letter-spacing: -.075em; font-weight: 500; line-height: 1; color: #8a8a7d; }
.process h3 { font-size: 22px; margin-bottom: 13px; }
.process p { font-size: 16px; color: var(--text); }

/* Brand connection and closing sections. */
.role { position: relative; background: var(--ink); color: var(--paper); margin-inline: calc(-1 * var(--gutter)); padding: 42px var(--gutter) 50px; border: 0; }
.role::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 26%; height: 8px; background: var(--paper); }
.role .section-label > span { border-color: #77776f; color: #deded7; }
.role h2 { font-size: clamp(36px, 9vw, 48px); }
.role .intro { color: #d0d0c8; }
.role strong { color: var(--paper); }
.connection { display: flex; align-items: center; gap: 10px; margin: 32px 0; font-size: 12px; max-width: 730px; }
.connection strong { font-size: 31px; letter-spacing: -.07em; }
.connector { height: 1px; background: #797972; flex: 1; min-width: 6px; position: relative; }
.connector::after { content: ""; position: absolute; width: 5px; height: 5px; right: 0; top: -2px; border-radius: 50%; background: var(--paper); }
.audience { border: 0; }
.audience-needs { margin-top: 24px; }
.audience-needs li + li { margin-top: 14px; }
.contact { border-top: 2px solid var(--ink); position: relative; }
.contact .eyebrow { margin-bottom: 20px; }
.contact h2 { font-size: clamp(38px, 9.3vw, 48px); }
.contact-pending { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--text); display: flex; align-items: baseline; gap: 10px; }
.contact .button { margin-top: 30px; }
.secondary-contact { display: block; margin-top: 22px; font-size: 16px; text-decoration: underline; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
footer > span { font-weight: 700; font-size: 23px; letter-spacing: -.04em; }
.footer-sub { display: block; margin-top: 7px; font-size: 10px; font-weight: 400; letter-spacing: 0; }
footer a { padding-block: 12px; }

@media (min-width: 761px) {
  :root { --gutter: clamp(40px, 6vw, 88px); }
  header { min-height: 112px; }
  .brand { width: 175px; }
  header nav { font-size: 15px; }
  .nav-about, .desktop { display: initial; }
  .hero { padding-top: 56px; }
  .nexo-mark { width: 30%; top: 44px; opacity: 1; }
  .eyebrow { font-size: 14px; }
  h1 { font-size: clamp(48px, 5.6vw, 80px); margin: 32px 0 34px; }
  h2 { font-size: clamp(35px, 3.4vw, 48px); }
  .hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 36px; }
  .hero-bottom p { font-size: 18px; }
  .hero-bottom .button { margin-top: 0; flex-shrink: 0; }
  .service-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin-top: 40px; }
  .service-overview a { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-bottom: 0; }
  .service-overview a:first-child { padding-left: 0; }
  .service-overview a + a { border-left: 1px solid var(--line); }
  .service-overview strong { font-size: 19px; }
  .hero-foot { font-size: 13px; }
  .section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); column-gap: 48px; padding: 56px 0 72px; }
  .section-label { grid-column: 1 / -1; gap: 16px; margin-bottom: 36px; font-size: 23px; }
  .section-label > span { width: 38px; height: 38px; font-size: 13px; }
  .section-content { grid-column: 2; }
  .intro { font-size: 18px; margin-top: 24px; }
  .service-aside { display: block; grid-column: 1; grid-row: 2; align-self: start; padding-top: 8px; }
  .service-aside p { font-size: 26px; line-height: 1.3; font-weight: 500; letter-spacing: -.04em; }
  .service-aside svg { display: block; width: 85%; max-width: 240px; margin: 28px 0 22px; color: #8c8c80; }
  .service-aside > span { font-size: 13px; color: var(--text); }
  .service-list { margin-top: 34px; }
  .service-row { padding: 26px 0; }
  .service-row h3 { font-size: 25px; }
  .service-row:nth-child(even) { box-shadow: 18px 0 var(--surface), -18px 0 var(--surface); }
  #como-trabajamos .section-content { grid-column: 1 / -1; }
  .process { margin-top: 38px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process li { display: block; border-top: 2px solid var(--ink); padding: 28px 24px 0 0; }
  .process li + li { padding-left: 24px; border-left: 1px solid var(--line); }
  .step { display: block; font-size: 88px; margin-bottom: 24px; }
  .process h3 { font-size: 24px; margin-bottom: 16px; }
  .role { padding: 56px var(--gutter) 72px; }
  .role h2 { font-size: clamp(42px, 4.6vw, 65px); }
  .connection { font-size: 15px; gap: 20px; margin: 38px 0; }
  .connection strong { font-size: 42px; }
  .audience .section-content { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 60px; }
  .audience h2 { grid-row: 1 / 3; }
  .audience .intro { margin-top: 0; }
  .contact::before { content: "↗"; grid-column: 1; grid-row: 2; font-size: 150px; line-height: 1; color: #aaa99e; }
  .contact h2 { font-size: clamp(44px, 4.75vw, 67px); }
  .contact-pending { font-size: 15px; }
  footer { font-size: 13px; padding-block: 30px; }
  .footer-sub { display: inline; margin-left: 16px; font-size: 12px; }
}
@media (min-width: 1100px) {
  .service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px; }
  .service-row h3 { display: block; margin: 0; }
  .service-index { display: block; margin-bottom: 10px; }
}
@media (max-width: 350px) {
  :root { --gutter: 18px; }
  h1 { font-size: 34px; }
  .process li { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .step { font-size: 46px; }
  .connection { font-size: 11px; gap: 7px; }
}
