:root {
  --blue: #0874b9;
  --blue-deep: #07548b;
  --green: #83c91b;
  --ink: #10202d;
  --muted: #65727c;
  --paper: #f5f7f7;
  --white: #fff;
  --line: rgba(16, 32, 45, .13);
  --font: 'Segoe UI', Arial, sans-serif;
  --display: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page-width { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; color: var(--white); background: var(--blue-deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { height: 88px; position: absolute; z-index: 20; inset: 0 0 auto; color: white; border-bottom: 1px solid rgba(255,255,255,.18); }
.header-inner { width: min(1320px, calc(100% - 64px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; width: 190px; height: 70px; }
.brand img { width: 100%; height: auto; max-height: 70px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: clamp(26px, 4vw, 56px); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green); }
.main-nav .nav-contact { padding: 15px 20px; color: var(--ink); background: var(--green); }
.nav-contact span { margin-left: 20px; }
.menu-toggle { display: none; }

.hero { min-height: min(790px, 100svh); min-height: max(680px, min(790px, 100svh)); position: relative; display: flex; align-items: center; overflow: hidden; color: white; background: #182b39; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url('/assets/montaje-estructura-industrial.jpeg') center 48% / cover no-repeat; transform: scale(1.02); }
.hero-shade { background: linear-gradient(90deg, rgba(5,23,37,.91) 0%, rgba(5,23,37,.74) 44%, rgba(5,23,37,.15) 100%), linear-gradient(0deg, rgba(4,24,38,.32), transparent 44%); }
.hero-content { position: relative; z-index: 1; padding-top: 90px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 25px; color: var(--blue-deep); font-size: 11px; font-weight: 700; letter-spacing: .15em; line-height: 1.5; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 24px; height: 2px; background: var(--green); }
.eyebrow-light { color: rgba(255,255,255,.78); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(54px, 8.2vw, 106px); font-weight: 700; letter-spacing: -.07em; line-height: .99; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 530px; margin: 29px 0 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; padding: 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .04em; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-green { color: #12222d; background: var(--green); }
.button-green:hover { background: #a1df3a; }
.text-link { display: inline-flex; gap: 15px; align-items: center; color: var(--blue-deep); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.text-link span { font-size: 17px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link-light { color: white; }
.hero-note, .hero-index { position: absolute; z-index: 1; bottom: 36px; display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.8); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.hero-note { left: max(32px, calc((100vw - 1180px) / 2)); }
.hero-note span:first-child { color: var(--green); font-weight: 700; }
.hero-index { right: max(32px, calc((100vw - 1180px) / 2)); }

.section { padding-block: 120px; }
.intro { min-height: 440px; display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: center; position: relative; overflow: hidden; }
.intro-heading, .intro-copy { position: relative; z-index: 1; }
.intro h2, .section-head h2 { margin: 0; font-size: clamp(39px, 5vw, 61px); font-weight: 700; letter-spacing: -.065em; line-height: 1.08; }
.intro h2 span, .section-head h2 span { color: var(--blue); }
.intro-copy { max-width: 480px; }
.intro-copy p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.intro-copy .lead { color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.035em; line-height: 1.5; }
.intro-copy .text-link { margin-top: 14px; }
.intro-mark { position: absolute; right: 2%; bottom: -16px; color: rgba(8,116,185,.052); font-family: var(--display); font-size: clamp(120px, 18vw, 245px); font-weight: 800; letter-spacing: -.09em; line-height: .8; white-space: nowrap; }
.intro-mark span { color: rgba(131,201,27,.13); }

.services { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 55px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-intro { max-width: 350px; margin-bottom: 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { min-height: 325px; position: relative; display: flex; flex-direction: column; padding: 32px 26px 28px; border-right: 1px solid var(--line); transition: background .25s ease, color .25s ease; }
.service-card:first-child { border-left: 1px solid var(--line); }
.service-card:hover { color: white; background: var(--blue-deep); }
.service-number { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.service-card:hover .service-number { color: var(--green); }
.service-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 31px 0 23px; color: var(--blue); }
.service-icon svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.service-card:hover .service-icon { color: var(--green); }
.service-card h3 { margin: 0 0 13px; font-family: var(--display); font-size: 18px; letter-spacing: -.04em; }
.service-card p { margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.service-card:hover p { color: rgba(255,255,255,.74); }
.service-card > a { display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: var(--blue-deep); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.service-card:hover > a { color: var(--green); }

.feature-project { min-height: 590px; display: grid; grid-template-columns: 1.1fr .9fr; color: white; background: #0e2637; }
.feature-photo { min-height: 590px; overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.feature-panel { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; overflow: hidden; padding: 80px clamp(40px, 7vw, 110px); }
.feature-panel > *:not(.feature-grid-mark) { z-index: 1; }
.feature-panel h2 { margin: 0 0 24px; font-size: clamp(37px, 4.4vw, 56px); letter-spacing: -.065em; line-height: 1.13; }
.feature-panel h2 span { color: var(--green); }
.feature-panel > p:not(.eyebrow) { max-width: 420px; margin-bottom: 26px; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.8; }
.feature-grid-mark { position: absolute; right: -20px; bottom: -14px; width: 280px; height: 260px; opacity: .08; background-image: linear-gradient(135deg, transparent 49.5%, #fff 50%, transparent 50.5%), linear-gradient(45deg, transparent 49.5%, #fff 50%, transparent 50.5%); background-size: 34px 34px; }

.projects { padding-bottom: 130px; }
.project-head { margin-bottom: 45px; }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 275px 275px; gap: 18px; }
.project-card { position: relative; overflow: hidden; background: #d8e0e3; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card:hover img { transform: scale(1.045); }
.project-large { grid-row: 1 / span 2; }
.project-large img { object-position: center; }
.project-tall img { object-position: center 58%; }
.project-wide img { object-position: center 44%; }
.project-overlay { position: absolute; inset: auto 0 0; display: flex; align-items: center; padding: 23px 25px; color: white; font-family: var(--display); font-size: 15px; font-weight: 600; background: linear-gradient(0deg, rgba(4,20,31,.82), transparent); }

.contact { position: relative; overflow: hidden; color: white; background: var(--blue-deep); }
.contact::after { content: 'IMEC'; position: absolute; right: -10px; bottom: -103px; color: rgba(255,255,255,.055); font-family: var(--display); font-size: clamp(190px, 30vw, 390px); font-weight: 800; letter-spacing: -.13em; line-height: 1; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 8vw; align-items: center; }
.contact h2 { margin: 0 0 19px; font-size: clamp(39px, 5vw, 63px); letter-spacing: -.065em; line-height: 1.08; }
.contact-inner > div:first-child > p:last-child { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.75; }
.contact-actions { display: flex; flex-direction: column; }
.contact-line { min-height: 69px; display: grid; grid-template-columns: 105px 1fr 20px; gap: 12px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.24); font-size: 15px; font-weight: 600; }
.contact-line:first-child { border-top: 1px solid rgba(255,255,255,.24); }
.contact-line:hover > span:nth-child(2) { color: var(--green); }
.contact-label { color: rgba(255,255,255,.58); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.whatsapp-button { align-self: flex-start; margin-top: 26px; }

.site-footer { padding: 36px 0 26px; color: rgba(255,255,255,.72); background: #0d1d29; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 22px 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 18px; color: white; font-size: 12px; font-weight: 600; }
.footer-brand img { width: 83px; height: 42px; object-fit: contain; object-position: left center; }
.footer-inner > p { margin: 0; font-size: 12px; }
.back-top { justify-self: end; color: var(--green); font-size: 12px; font-weight: 600; }
.footer-inner small { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); font-size: 10px; letter-spacing: .04em; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

@media (max-width: 900px) {
  .page-width { width: min(100% - 48px, 720px); }
  .header-inner { width: calc(100% - 48px); }
  .section { padding-block: 88px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3) { border-left: 1px solid var(--line); }
  .service-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-project { grid-template-columns: 1fr 1fr; }
  .feature-photo { min-height: 520px; }
  .feature-panel { padding: 55px 40px; }
  .project-grid { grid-template-rows: 230px 230px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .page-width { width: calc(100% - 40px); }
  .site-header { height: 74px; }
  .header-inner { width: calc(100% - 40px); }
  .brand { width: 145px; height: 56px; }
  .brand img { max-height: 56px; }
  .menu-toggle { width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; color: white; border: 1px solid rgba(255,255,255,.46); background: transparent; cursor: pointer; }
  .menu-toggle span { height: 1px; display: block; background: currentColor; }
  .main-nav { position: absolute; top: 73px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: #0d2638; }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 16px 8px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .main-nav .nav-contact { display: flex; justify-content: space-between; margin-top: 12px; padding: 16px; border: 0; }
  .hero { min-height: 750px; min-height: max(670px, 92svh); align-items: flex-end; padding-bottom: 110px; }
  .hero-image { background-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,23,37,.94), rgba(5,23,37,.58) 56%, rgba(5,23,37,.2)); }
  .hero-content { padding-top: 100px; }
  .eyebrow { gap: 9px; margin-bottom: 19px; font-size: 9px; letter-spacing: .12em; }
  .eyebrow > span { width: 18px; }
  .hero h1 { font-size: clamp(49px, 13.6vw, 75px); }
  .hero-copy { margin-top: 20px; font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 23px; margin-top: 28px; }
  .button { min-height: 50px; }
  .hero-note, .hero-index { bottom: 25px; font-size: 8px; }
  .hero-note { left: 20px; }
  .hero-index { right: 20px; }
  .section { padding-block: 74px; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-block: 75px; }
  .intro h2, .section-head h2 { font-size: clamp(38px, 11vw, 52px); }
  .intro-copy .lead { font-size: 19px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 19px; margin-bottom: 35px; }
  .section-intro { font-size: 13px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; padding: 26px 23px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .service-card:first-child { border-top: 0; }
  .service-card:nth-child(3) { border-left: 1px solid var(--line); }
  .service-icon { margin: 22px 0 17px; }
  .feature-project { grid-template-columns: 1fr; }
  .feature-photo { min-height: 360px; max-height: 440px; }
  .feature-panel { min-height: 390px; padding: 58px 25px; }
  .feature-panel h2 { font-size: 39px; }
  .project-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 210px; gap: 10px; }
  .project-large { grid-column: 1 / -1; grid-row: auto; }
  .project-overlay { padding: 16px 13px; font-size: 12px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact h2 { font-size: 43px; }
  .contact-line { grid-template-columns: 78px 1fr 18px; gap: 8px; font-size: 13px; }
  .contact-label { font-size: 9px; }
  .contact::after { bottom: -44px; font-size: 200px; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 18px 10px; }
  .footer-brand { gap: 11px; font-size: 10px; }
  .footer-brand img { width: 70px; height: 35px; }
  .footer-inner > p { grid-column: 1; grid-row: 2; font-size: 10px; }
  .back-top { grid-column: 2; grid-row: 1 / span 2; }
}
