/* Nexo Construction Group — shared styles. No external dependencies. */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --panel: #f3f3f3;
  --muted: #595959;
  --line: #d7d7d7;
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, input, select, textarea { border-radius: 0; }
button { -webkit-appearance: none; appearance: none; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #111; outline-offset: 5px; box-shadow: 0 0 0 5px #fff; }
::selection { color: #fff; background: #111; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 550; line-height: 1.08; }
h1 { font-size: clamp(48px, 6.7vw, 88px); letter-spacing: -.065em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -.05em; text-wrap: balance; }
h3 { font-size: clamp(24px, 2.5vw, 32px); letter-spacing: -.035em; }
p { max-width: 65ch; }
p + p { margin-top: 1em; }
ul, ol { padding-left: 1.3em; }
[hidden] { display: none !important; }
.container { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 100; padding: 12px 20px; background: #111; color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); position: relative; background: #fff; z-index: 10; }
.header-inner { min-height: 112px; display: flex; align-items: center; gap: 30px; }
.brand { flex: 0 0 auto; display: inline-block; }
.brand img { width: 166px; height: 51px; }
.primary-nav { margin-left: auto; display: flex; gap: clamp(20px, 2.8vw, 40px); align-items: center; }
.nav-link { text-decoration: none; font-size: 14px; padding-block: 11px; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.header-utilities { display: flex; align-items: center; gap: 22px; }
.language-switch { display: flex; gap: 9px; align-items: center; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.language-switch a, .language-switch span[aria-current] { padding-block: 12px; }
.language-switch a { color: var(--muted); }
.language-switch span[aria-current] { font-weight: 700; }
.language-switch .divider { color: #777; }
.menu-toggle { display: none; background: transparent; padding: 10px; border: 1px solid var(--ink); min-height: 44px; font-size: 12px; gap: 9px; align-items: center; }
.menu-icon { width: 15px; height: 10px; border-top: 1px solid; border-bottom: 1px solid; }
.eyebrow { font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.with-line { display: flex; align-items: center; gap: 12px; }
.eyebrow.with-line::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: 0 0 auto; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 14px 22px; background: var(--ink); color: #fff; text-decoration: none; border: 1px solid var(--ink); font-size: 14px; font-weight: 500; line-height: 1.4; transition: background .18s ease, color .18s ease; }
.button:hover { background: #383838; }
.button-light { background: #fff; color: #111; border-color: #fff; }
.button-light:hover { background: #e6e6e6; }
.button-outline { background: transparent; color: #111; }
.button-outline:hover { background: #efefef; }
.arrow { display: inline-block; font-size: 22px; font-weight: 400; line-height: 1; flex: 0 0 auto; }
.text-link { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; font-size: 14px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 42px; padding-block: 72px 68px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin-block: 23px 24px; }
.hero-description { color: var(--muted); font-size: 17px; max-width: 40ch; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero-caption { margin-top: 26px; font-size: 12px; color: var(--muted); }
.architecture { background: var(--panel); padding: 24px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; position: relative; }
.figure-top, .figure-caption { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; line-height: 1.5; }
.figure-top { align-items: center; }
.figure-cross { font-size: 24px; line-height: 1; }
.architecture img { width: 100%; aspect-ratio: 600 / 620; object-fit: contain; }
.figure-caption { border-top: 1px solid #bcbcbc; padding-top: 16px; color: var(--muted); flex-wrap: wrap; }
.scope-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; gap: 30px; }
.scope-item { font-size: 13px; display: flex; align-items: baseline; gap: 16px; }
.scope-item span { color: #666; font-size: 11px; font-variant-numeric: tabular-nums; }
.section { padding-block: 100px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 48px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading > p { color: var(--muted); font-size: 17px; max-width: 44ch; justify-self: end; }
.service-list { border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 38px 1fr 1fr 24px; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: center; text-decoration: none; transition: padding .18s ease, background .18s ease; }
a.service-row:hover { background: var(--panel); padding-inline: 12px; }
.service-number { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; padding-top: 5px; }
.service-row h3 { font-size: clamp(24px, 2.5vw, 31px); }
.service-row p { color: var(--muted); font-size: 14px; max-width: 42ch; }
.section-bottom { display: flex; justify-content: flex-end; margin-top: 24px; }
.process { background: var(--ink); color: #fff; }
.process .section-heading > p { color: #c2c2c2; }
.steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 58px 0 0; }
.step { border-top: 1px solid #686868; padding-top: 22px; }
.step-number { color: #b7b7b7; font-size: 12px; margin-bottom: 34px; display: block; }
.step h3 { font-size: 24px; margin-bottom: 16px; }
.step p { color: #c2c2c2; font-size: 14px; }
.connection { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; border-bottom: 1px solid var(--line); }
.connection h2 { max-width: 14ch; }
.connection-copy .lead { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.45; letter-spacing: -.025em; }
.connection-copy > p + p { color: var(--muted); }
.connection-copy .text-link { margin-top: 24px; }
.contact-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.contact-band .eyebrow { margin-bottom: 22px; }
.contact-band h2 { max-width: 15ch; }
.contact-band p { color: var(--muted); margin-top: 24px; }
.contact-options { display: grid; gap: 20px; padding-top: 10px; min-width: 0; }
.contact-options .button { justify-self: start; }
.contact-detail { display: block; font-size: 14px; overflow-wrap: anywhere; }
.contact-detail .detail-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
.footer-note { font-size: 13px; margin-top: 18px; color: var(--muted); }
.footer-nav { display: flex; gap: 30px; flex-wrap: wrap; align-content: start; }
.footer-nav a { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom { display: flex; justify-content: space-between; align-items: start; gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 11px; color: var(--muted); }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { padding-block: 5px; }
.page-intro { padding-block: 70px 55px; border-bottom: 1px solid var(--line); }
.page-intro .eyebrow { margin-bottom: 22px; }
.page-intro h1 { max-width: 14ch; font-size: clamp(46px, 6.3vw, 80px); }
.page-intro .intro-text { margin-top: 28px; font-size: 18px; color: var(--muted); max-width: 57ch; }
.service-details { padding-top: 10px; }
.service-detail { padding-block: 46px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr 1.1fr; gap: 32px; scroll-margin-top: 30px; }
.service-detail h2 { font-size: 34px; }
.service-detail .detail-copy p { color: var(--muted); }
.service-detail ul { margin: 18px 0 0; font-size: 14px; }
.service-detail li { margin-bottom: 7px; }
.project-note { padding: 28px; background: var(--panel); margin-top: 36px; font-size: 14px; }
.project-note strong { font-weight: 600; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-block: 60px 100px; }
.contact-aside h2 { font-size: 32px; margin-bottom: 22px; }
.contact-aside .contact-detail { margin-top: 24px; font-size: 17px; }
.contact-aside p { font-size: 14px; color: var(--muted); }
.contact-aside .aside-note { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-header { margin-bottom: 30px; }
.form-header h2 { font-size: 32px; }
.form-header p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field label .optional { color: var(--muted); font-weight: 400; }
input, select, textarea { display: block; width: 100%; padding: 12px; border: 1px solid #777; background: #fff; min-height: 48px; line-height: 1.5; }
textarea { min-height: 140px; resize: vertical; }
.field small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.form-privacy { font-size: 12px; color: var(--muted); margin-top: 20px; }
.form-status { font-size: 14px; margin-top: 18px; border-left: 2px solid #111; padding-left: 14px; }
.noscript-note { padding: 18px; background: var(--panel); margin-top: 20px; font-size: 14px; }
.legal-layout { display: grid; grid-template-columns: .6fr 1.4fr; gap: 70px; padding-block: 56px 100px; }
.legal-meta { font-size: 13px; color: var(--muted); }
.legal-meta p + p { margin-top: 20px; }
.legal-content { min-width: 0; }
.legal-content section + section { margin-top: 38px; }
.legal-content h2 { font-size: 25px; margin-bottom: 15px; letter-spacing: -.025em; }
.legal-content p, .legal-content li { font-size: 15px; color: #414141; }
.legal-content a { overflow-wrap: anywhere; }
.error-page { padding-block: 80px 100px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.error-mark { font-size: clamp(120px, 22vw, 290px); font-weight: 600; letter-spacing: -.08em; line-height: 1; color: #d0d0d0; }
.error-page h1 { font-size: clamp(40px, 5vw, 64px); margin-block: 18px 24px; }
.error-page p { color: var(--muted); }
.error-page .hero-actions { margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .65s ease both; }
  .architecture img { animation: enter .85s .12s ease both; }
  @keyframes enter { from { opacity: .4; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
@media (min-width: 1440px) { :root { --max: 1440px; } }
@media (max-width: 1000px) {
  .header-inner { gap: 24px; }
  .header-utilities { gap: 16px; }
  .header-cta { display: none; }
  .hero { gap: 25px; }
  .architecture { padding: 18px; }
  .hero-actions { gap: 15px; }
  .contact-layout { gap: 42px; }
  .connection { gap: 50px; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 90px; flex-wrap: wrap; gap: 18px; padding-block: 19px; }
  .brand img { width: 142px; height: 44px; }
  .header-utilities { margin-left: auto; }
  .primary-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
  .js .menu-toggle { display: inline-flex; }
  .js .primary-nav:not(.is-open) { display: none; }
  .language-switch { gap: 7px; }
  .hero { grid-template-columns: 1fr; padding-block: 43px 32px; gap: 35px; }
  .hero h1 { font-size: clamp(52px, 10.3vw, 76px); max-width: 12ch; margin-top: 22px; }
  .hero-description { font-size: 16px; max-width: 43ch; }
  .hero-actions { margin-top: 26px; }
  .hero-caption { margin-top: 22px; }
  .architecture { padding: 20px; }
  .architecture img { max-height: 420px; width: 100%; }
  .scope-bar { gap: 12px; grid-template-columns: 1fr; padding-block: 20px; }
  .scope-item { gap: 14px; }
  .section { padding-block: 64px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .section-heading > p { justify-self: start; font-size: 16px; }
  .service-row { grid-template-columns: 24px 1fr 22px; gap: 15px; padding-block: 25px; }
  .service-row p { grid-column: 2; grid-row: 2; max-width: none; }
  .service-row > .arrow { grid-column: 3; grid-row: 1; }
  .service-row h3 { font-size: 26px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 34px 24px; margin-top: 34px; }
  .step-number { margin-bottom: 20px; }
  .step h3 { font-size: 23px; }
  .connection { grid-template-columns: 1fr; gap: 28px; }
  .connection h2 { max-width: 16ch; }
  .contact-band { grid-template-columns: 1fr; gap: 30px; }
  .contact-band h2 { max-width: 17ch; }
  .contact-options { padding-top: 0; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 25px; }
  .footer-top { margin-bottom: 28px; }
  .footer-nav { gap: 22px; }
  .footer-bottom { gap: 14px; }
  .page-intro { padding-block: 45px 36px; }
  .page-intro .intro-text { font-size: 16px; }
  .service-detail { grid-template-columns: 24px 1fr; gap: 16px; padding-block: 32px; }
  .service-detail h2 { font-size: 30px; }
  .service-detail .detail-copy { grid-column: 2; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; padding-block: 40px 64px; }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; padding-block: 35px 64px; }
  .legal-meta { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .error-page { grid-template-columns: 1fr; gap: 35px; padding-block: 50px 70px; }
  .error-mark { font-size: 140px; }
}
@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .header-utilities { gap: 12px; }
  .brand img { width: 126px; height: 39px; }
  .menu-toggle { padding-inline: 8px; gap: 7px; }
  .language-switch { font-size: 11px; gap: 6px; }
  .hero h1 { font-size: 50px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .button { padding-inline: 18px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-top: 18px; }
  .step-number { margin-bottom: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .button { width: 100%; }
  .footer-nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .menu-toggle, .header-utilities, .hero-actions, .form-actions, .skip-link { display: none; }
  .js .primary-nav:not(.is-open) { display: flex; }
  .section { padding-block: 30px; }
  .process { color: #111; background: #fff; }
  .process .section-heading > p, .step p, .step-number { color: #414141; }
  a { text-decoration: underline; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button:disabled { opacity: .6; cursor: not-allowed; }
:lang(es) .hero h1 { font-size: clamp(46px, 5.5vw, 76px); }
@media (max-width: 760px) { :lang(es) .hero h1 { font-size: clamp(46px, 8vw, 66px); } }
