:root {
  --black: #0b0d0f;
  --graphite: #15191e;
  --steel: #232b33;
  --line: #d7d9dc;
  --line-dark: rgba(255,255,255,.16);
  --paper: #f4f4f4;
  --white: #ffffff;
  --text: #161616;
  --muted: #525252;
  --blue: #0f62fe;
  --blue-dark: #0043ce;
  --oxide: #b45f19;
  --oxide-dark: #85420e;
  --rust-soft: #fff2e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: rgba(11,13,15,.94);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 300px;
  padding: 10px 32px;
  border-right: 1px solid var(--line-dark);
}
.brand-logo { width: 52px; height: 52px; object-fit: contain; }
.brand strong { display: block; font-size: 18px; letter-spacing: .01em; }
.brand small { display: block; color: #c6c6c6; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: stretch; }
.nav a {
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: #d5d8dc;
  border-left: 1px solid var(--line-dark);
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { color: #fff; background: #262b31; }

.hero {
  position: relative;
  min-height: 770px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: stretch;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,7,9,.92) 0%, rgba(5,7,9,.76) 48%, rgba(5,7,9,.38) 100%),
    url('/assets/projects/photos/p13-mantenimiento-vigas-sitio-1-svti-6.jpg') center/cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--oxide), var(--blue), var(--oxide));
}
.hero-copy { max-width: 940px; padding: 112px 40px 112px 72px; align-self: end; }
.eyebrow, .kicker {
  margin: 0 0 24px;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #f0b27a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero-copy p:not(.eyebrow) { max-width: 760px; color: #e5e7eb; font-size: 21px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.ghost { background: transparent; border-color: rgba(255,255,255,.74); color: #fff; }
.button.ghost:hover { background: #fff; color: var(--black); }

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  min-height: 100%;
  padding: 48px 42px 96px;
  background: rgba(11,13,15,.82);
  border-left: 1px solid var(--line-dark);
}
.hero-panel span {
  color: #f0b27a;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-panel strong { display: block; font-size: 28px; font-weight: 300; line-height: 1.2; }
.hero-panel ul { margin: 0; padding-left: 19px; color: #d8dde4; }
.hero-panel li { margin: 10px 0; }

.section { padding: 96px 72px; }
.section-head { max-width: 960px; margin-bottom: 48px; }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; font-weight: 300; letter-spacing: -.035em; margin-bottom: 0; }
.intro { display: grid; grid-template-columns: minmax(320px, 600px) minmax(320px, 700px); gap: 80px; background: var(--white); }
.intro p:last-child { font-size: 22px; line-height: 1.65; color: var(--muted); margin: 48px 0 0; }

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--black);
  color: #fff;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.trust-band article {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0));
}
.trust-band article:last-child { border-right: 0; }
.trust-band span {
  display: block;
  margin-bottom: 46px;
  color: #f0b27a;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.trust-band strong {
  display: block;
  max-width: 320px;
  color: #eef1f4;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.28;
}

.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid article {
  min-height: 320px;
  padding: 28px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid span {
  display: block;
  margin-bottom: 72px;
  color: var(--oxide);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
}
.service-grid h3 { font-size: 24px; line-height: 1.18; font-weight: 600; margin-bottom: 16px; }
.service-grid p { color: var(--muted); margin-bottom: 0; }

.method { display: grid; grid-template-columns: minmax(320px, 520px) 1fr; gap: 80px; color: #fff; background: var(--black); }
.method-copy p:not(.kicker) { color: #c6cbd1; font-size: 19px; line-height: 1.6; margin-top: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.timeline li { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.timeline span { color: #f0b27a; font-weight: 600; }
.timeline p { color: #d8dde4; margin: 0; }

.technical { background: #fff; }
.technical-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.technical-grid article { min-height: 300px; padding: 28px; background: var(--rust-soft); }
.technical-grid h3 { font-family: 'IBM Plex Mono', monospace; font-size: 22px; color: var(--oxide-dark); margin-bottom: 24px; }
.technical-grid p { color: #3f342b; margin: 0; }
.technical-note {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #f7f3ef;
}
.technical-note strong {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--oxide-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
}
.technical-note ul { margin: 0; padding-left: 20px; color: #3f342b; }
.technical-note li { margin: 8px 0; }

.sectors { display: grid; grid-template-columns: minmax(320px, 680px) 1fr; gap: 72px; background: var(--steel); color: #fff; }
.sectors h2 { max-width: 760px; }
.sector-list { display: grid; align-content: start; border-top: 1px solid var(--line-dark); }
.sector-list span { padding: 20px 0; border-bottom: 1px solid var(--line-dark); color: #e5e7eb; font-size: 20px; }

.projects { background: #0c0e10; color: #fff; }
.projects .section-head p:not(.kicker) { margin-top: 20px; color: #c8ced6; font-size: 18px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.photo-card { position: relative; min-height: 340px; overflow: hidden; background: #161b20; }
.photo-card img { width: 100%; height: 340px; display: block; object-fit: cover; filter: grayscale(.15) saturate(.9) contrast(1.08); transition: transform 400ms ease, filter 400ms ease; }
.photo-card::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.9)); }
.photo-card div { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; }
.photo-card span { display: block; margin-bottom: 8px; color: #f0b27a; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.photo-card strong { color: #fff; font-size: 20px; line-height: 1.16; }
.photo-card:hover img { transform: scale(1.045); filter: grayscale(0) saturate(1.02) contrast(1.12); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; padding: 96px 72px; color: #fff; background: linear-gradient(90deg, rgba(11,13,15,.97), rgba(11,13,15,.72)), url('/assets/projects/photos/p22-proteccion-superior-vigas-viaducto-hualpen-puente-industrial.jpg') center/cover; }
.contact h2 { max-width: 900px; }
.contact p:not(.kicker) { max-width: 760px; color: #d8dde4; font-size: 20px; line-height: 1.6; margin-top: 26px; }
.contact-content { align-self: start; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 940px; margin-top: 42px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.proof-grid span { min-height: 116px; padding: 20px; background: rgba(255,255,255,.07); color: #e6e9ed; font-size: 15px; }
.proof-grid strong { display: block; margin-bottom: 22px; color: #f0b27a; font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.response-note { display: grid; grid-template-columns: 180px 1fr; gap: 22px; max-width: 940px; margin-top: 24px; padding: 24px; background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); }
.response-note strong { color: #f0b27a; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.response-note p { margin: 0 !important; color: #d8dde4 !important; font-size: 17px !important; line-height: 1.55 !important; }
.quote-card { display: grid; gap: 14px; align-self: start; padding: 30px; background: var(--oxide); color: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.34); }
.quote-label { margin: 0 0 8px !important; color: rgba(255,255,255,.74) !important; font-family: 'IBM Plex Mono', monospace; font-size: 13px !important; text-transform: uppercase; letter-spacing: .08em; }
.contact-link { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.24); font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.quote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.quote-actions .button.primary { background: #fff; color: var(--oxide-dark); border-color: #fff; padding: 0 12px; }
.quote-actions .button.primary:hover { background: var(--black); color: #fff; border-color: var(--black); }
.button.ghost-dark { grid-column: 1 / -1; background: transparent; color: #fff; border-color: rgba(255,255,255,.72); }
.button.ghost-dark:hover { background: #fff; color: var(--oxide-dark); border-color: #fff; }
.quote-list { margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.88); }
.quote-list strong { display: block; margin-bottom: 10px; }
.quote-list ul { margin: 0; padding-left: 18px; }
.quote-list li { margin: 8px 0; }
.footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 72px; color: #d8dde4; background: #050607; font-size: 14px; }
.footer a { color: #fff; }

@media (max-width: 1120px) {
  .site-header { position: static; display: block; }
  .brand { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .nav { overflow-x: auto; }
  .nav a { min-height: 52px; white-space: nowrap; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 82px 28px; }
  .hero-panel { min-height: auto; padding: 34px 28px 48px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .section, .contact { padding: 72px 28px; }
  .intro, .method, .sectors, .contact { grid-template-columns: 1fr; gap: 44px; }
  .service-grid, .technical-grid, .photo-grid { grid-template-columns: 1fr 1fr; }
  .trust-band { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .response-note { grid-template-columns: 1fr; gap: 12px; }
  .technical-note { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  .brand { padding: 10px 18px; }
  .brand-logo { width: 46px; height: 46px; }
  .nav a { padding: 0 16px; }
  h1 { font-size: clamp(42px, 13vw, 60px); }
  h2 { font-size: clamp(34px, 10vw, 48px); }
  .hero-copy p:not(.eyebrow), .intro p:last-child { font-size: 18px; }
  .service-grid, .technical-grid, .photo-grid, .trust-band, .proof-grid { grid-template-columns: 1fr; }
  .service-grid article, .technical-grid article { min-height: auto; }
  .trust-band article { min-height: auto; }
  .trust-band span { margin-bottom: 26px; }
  .proof-grid span { min-height: auto; }
  .service-grid span { margin-bottom: 34px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .quote-actions { grid-template-columns: 1fr; }
  .footer { flex-direction: column; padding: 28px; }
}
