:root {
  --blue: #143f96;
  --blue-dark: #081a33;
  --orange: #f57c13;
  --orange-dark: #c95b05;
  --ink: #122033;
  --muted: #5d6878;
  --paper: #f5f7fb;
  --line: rgba(18, 32, 51, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 26, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 63, 150, 0.04) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 38px rgba(8, 26, 51, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 15vw, 230px);
}

.brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  transition: filter 180ms ease;
}

.site-header.is-scrolled .brand img,
.site-header.is-open .brand img {
  filter: drop-shadow(0 7px 14px rgba(8, 26, 51, 0.16));
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  color: var(--orange);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(110deg, rgba(8, 26, 51, 0.94) 0%, rgba(8, 26, 51, 0.82) 46%, rgba(20, 63, 150, 0.18) 46%, rgba(245, 124, 19, 0.1) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 15px);
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(24px, 8vw, 96px) 72px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--orange);
}

.button.primary:hover {
  background: var(--orange-dark);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.button.light {
  color: var(--blue-dark);
  background: var(--white);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  padding: 120px clamp(24px, 6vw, 72px) 72px 0;
}

.hero-visual img {
  width: min(520px, 88%);
  margin-left: auto;
  border: 8px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.service-stack {
  display: grid;
  width: min(520px, 88%);
  margin: 18px 0 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.service-stack span {
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border-left: 4px solid var(--orange);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.metrics {
  display: grid;
  max-width: 1120px;
  margin: -52px auto 0;
  padding: 0 clamp(18px, 4vw, 36px);
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
}

.metrics div {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metrics strong {
  display: block;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px clamp(18px, 4vw, 36px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 60px;
  padding-bottom: 82px;
}

.intro-band p:last-child,
.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  padding: 0 0 26px;
  background: rgba(255, 255, 255, 0.76);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.service-grid article:nth-child(even) {
  background: rgba(20, 63, 150, 0.045);
}

.number {
  display: block;
  margin: 24px 26px 58px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.service-media {
  position: relative;
  height: 190px;
  flex: 0 0 190px;
  overflow: hidden;
  background: var(--blue-dark);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 280ms ease;
}

.service-media.impermeabilizacion img {
  object-position: center 56%;
}

.service-media.remodelaciones img {
  object-position: center 42%;
}

.service-media.herreria img {
  object-position: center 48%;
}

.service-grid article:hover .service-media img {
  transform: scale(1.05);
}

.service-grid h3,
.service-grid p,
.service-quote {
  margin-right: 26px;
  margin-left: 26px;
}

.service-grid p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.service-quote {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  margin-top: auto;
  padding: 0 14px;
  color: var(--white);
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.service-quote:hover {
  color: var(--white);
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
}

.work {
  max-width: none;
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
  background: #e9edf3;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.work-item {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 26, 51, 0.86), rgba(20, 63, 150, 0.66)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
}

.work-item::after {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  content: "";
  border: 10px solid var(--orange);
}

.work-item.large {
  grid-row: span 2;
}

.work-item.wide {
  grid-column: span 2;
}

.work-item span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-item strong {
  max-width: 360px;
  font-size: 28px;
  line-height: 1.1;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.timeline div {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.timeline span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 42px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
  border-radius: 8px;
}

.cta {
  display: grid;
  margin: 0 clamp(18px, 5vw, 72px) 72px;
  padding: clamp(34px, 6vw, 66px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(20, 63, 150, 0.96), rgba(8, 26, 51, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 17px);
}

.cta h2 {
  max-width: 780px;
}

.cta p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--blue-dark);
  font-size: 14px;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.footer a {
  color: var(--white);
  font-weight: 800;
}

.signature {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.74) !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.signature strong {
  color: var(--orange);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    padding: 0 24px 74px;
  }

  .hero-visual img,
  .service-stack {
    width: 100%;
    max-width: 560px;
    margin-right: auto;
  }

  .metrics,
  .intro-band,
  .service-grid,
  .timeline,
  .cta {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    width: 146px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy {
    padding: 110px 18px 40px;
  }

  .hero-visual {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-visual img {
    border-width: 6px;
  }

  .service-stack,
  .metrics,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 74px 18px;
  }

  .service-grid article {
    min-height: auto;
  }

  .service-media {
    height: 210px;
  }

  .service-quote {
    width: 100%;
    justify-content: center;
    margin-right: 0;
    margin-left: 0;
  }

  .number {
    margin-bottom: 36px;
  }

  .work-item.large,
  .work-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .cta {
    margin-right: 18px;
    margin-left: 18px;
  }
}
