:root {
  --navy: #071a2c;
  --navy-soft: #122c42;
  --orange: #ff6500;
  --orange-dark: #e65700;
  --ink: #0b1c2e;
  --muted: #5b6672;
  --line: #dce2e8;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --container: 1150px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 rgba(7,26,44,.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 235px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-right: 2px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.06em;
}

.brand-copy small {
  margin-top: 6px;
  font-size: .56rem;
  font-weight: 750;
  letter-spacing: .015em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.3vw, 34px);
}

.main-nav a {
  position: relative;
  padding: 30px 0 26px;
  font-size: .93rem;
  font-weight: 650;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 19px;
  height: 2px;
  background: var(--orange);
  transition: right .2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--orange); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .94rem;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7,26,44,.18);
}

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

.header-cta { white-space: nowrap; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: .2s ease;
}

.hero {
  min-height: 460px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy) url("assets/hero-construccion.webp") center center / cover no-repeat;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,12,22,.93) 0%, rgba(3,12,22,.78) 36%, rgba(3,12,22,.25) 68%, rgba(3,12,22,.2) 100%),
    linear-gradient(0deg, rgba(7,26,44,.25), transparent 50%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-block: 56px 58px;
}

.hero-copy { max-width: 720px; }
.eyebrow, .kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: .9rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 5rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-lead {
  max-width: 540px;
  margin: 18px 0 22px;
  font-size: 1.2rem;
  line-height: 1.45;
}

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

.button-outline {
  color: #fff;
  border-color: rgba(255,255,255,.85);
  background: rgba(3,12,22,.28);
}

.button-outline:hover { background: rgba(3,12,22,.7); }
.wa-icon { font-size: 1.25rem; }

.hero-manifesto {
  min-width: 178px;
  margin: 0 0 8px;
  padding-left: 18px;
  border-left: 3px solid var(--orange);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.18;
}

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

.benefits {
  background: #fff;
  box-shadow: 0 10px 28px rgba(7,26,44,.08);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 23px;
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}
.benefit:last-child { border-right: 0; }
.benefit-icon {
  color: var(--navy);
  font-size: 2.3rem;
  line-height: 1;
}
.benefit p { margin: 0; line-height: 1.2; }

.section { padding: 62px 0; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.section-heading h2,
.about h2,
.cta-strip h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.section-heading p:not(.kicker) {
  max-width: 740px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.text-link {
  flex: 0 0 auto;
  margin-bottom: 5px;
  color: var(--orange);
  font-weight: 800;
}

.cards {
  display: grid;
  gap: 24px;
}

.services-grid,
.projects-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.service-card img,
.project-card img {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
}

.service-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.service-card h3,
.project-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.service-card a span {
  color: var(--orange);
  font-size: 2rem;
  font-weight: 500;
}

.service-card p,
.project-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.projects-section { background: var(--soft); }
.project-card img { margin-bottom: 12px; }
.project-card p { font-size: .9rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.65fr;
  align-items: center;
  gap: 65px;
}

.about-copy p {
  margin: 13px 0 24px;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.about-values div {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--line);
}
.about-values div:last-child { border-right: 0; }
.about-values span {
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 2.6rem;
  line-height: 1;
}
.about-values strong { font-size: 1.05rem; }
.about-values small { color: var(--muted); font-size: .82rem; }

.about-detail {
  margin-top: 48px;
  padding: 30px 34px;
  scroll-margin-top: 110px;
  border-left: 5px solid var(--orange);
  background: var(--soft);
}

.about-detail .kicker { margin-bottom: 7px; }
.about-detail h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}
.about-detail > p:last-child {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
}

.cta-strip {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,18,30,.96), rgba(5,18,30,.72)),
    url("assets/hero-construccion.webp") center 58% / cover no-repeat;
}

.cta-inner {
  min-height: 156px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: 30px;
}

.cta-strip h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-strip p { margin: 7px 0 0; font-size: 1rem; }

.site-footer { background: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr .75fr 1fr;
  align-items: center;
  gap: 34px;
  padding-block: 38px;
}

.footer-brand { min-width: 0; }
.footer-brand .brand-copy strong { font-size: 1.8rem; }
.footer-brand .brand-copy small { font-size: .49rem; }

.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact h3,
.footer-social h3 {
  margin: 0 0 3px;
  font-size: .95rem;
}

.footer-contact a,
.footer-contact span {
  color: #273748;
  font-size: .86rem;
}

.footer-social div { display: flex; gap: 10px; }
.footer-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--navy);
  border-radius: 50%;
  font-weight: 900;
}

.footer-promise {
  display: flex;
  align-items: center;
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
}
.footer-promise span {
  width: 4px;
  height: 48px;
  margin-right: 14px;
  background: var(--orange);
}

.footer-bottom { background: #e9eef2; }
.footer-bottom .container {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #40505f;
  font-size: .8rem;
}

.floating-wa {
  position: fixed;
  z-index: 45;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #22c663;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  font-size: .88rem;
  font-weight: 900;
}

@media (max-width: 1060px) {
  .header-inner { grid-template-columns: auto auto 1fr; gap: 14px; }
  .brand { min-width: 205px; }
  .brand-copy strong { font-size: 1.72rem; }
  .brand-copy small { font-size: .48rem; }
  .main-nav { gap: 17px; }
  .main-nav a { font-size: .84rem; }
  .header-cta { padding-inline: 16px; font-size: .82rem; }
  .hero-manifesto { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 850px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .header-inner {
    min-height: 74px;
    grid-template-columns: 1fr auto;
  }
  .brand img { width: 46px; height: 46px; }
  .brand-copy strong { font-size: 1.62rem; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    inset: 74px 0 auto;
    display: flex;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(7,26,44,.14);
    opacity: 0;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
  }
  .main-nav.open {
    max-height: 390px;
    padding-block: 10px 22px;
    opacity: 1;
  }
  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .main-nav a::after { display: none; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero {
    min-height: 610px;
    align-items: end;
    background-position: 62% center;
  }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(3,12,22,.97) 0%, rgba(3,12,22,.82) 45%, rgba(3,12,22,.18) 85%),
      linear-gradient(90deg, rgba(3,12,22,.4), transparent);
  }
  .hero-inner { padding-block: 170px 42px; }
  .hero-copy { max-width: 620px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit { justify-content: flex-start; border-bottom: 1px solid var(--line); }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(n+3) { border-bottom: 0; }
  .services-grid,
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { position: relative; }
  html { scroll-padding-top: 10px; }
  .header-inner { min-height: 70px; }
  .brand { min-width: 0; }
  .brand img { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 1.5rem; }
  .brand-copy small { font-size: .42rem; }
  .main-nav { inset: 70px 0 auto; }

  .hero {
    min-height: 640px;
    background-position: 68% top;
  }
  .hero-inner { padding-block: 190px 36px; }
  .eyebrow { margin-bottom: 9px; font-size: .77rem; }
  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.6rem);
    line-height: .98;
  }
  .hero-lead {
    margin: 16px 0 20px;
    font-size: 1.05rem;
  }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; min-height: 52px; }

  .benefits-grid { padding-block: 0; }
  .benefit { min-height: 90px; padding: 15px 10px; gap: 10px; }
  .benefit-icon { font-size: 1.8rem; }
  .benefit p { font-size: .86rem; }

  .section { padding: 48px 0; }
  .section-heading {
    display: block;
    margin-bottom: 22px;
  }
  .section-heading h2,
  .about h2 { font-size: 2rem; }
  .section-heading p:not(.kicker) { font-size: .98rem; }
  .text-link { display: inline-block; margin-top: 14px; }
  .services-grid,
  .projects-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-card img,
  .project-card img { aspect-ratio: 16 / 9; }

  .about-values { grid-template-columns: repeat(2, 1fr); }
  .about-values div { border-bottom: 1px solid var(--line); }
  .about-values div:nth-child(2) { border-right: 0; }
  .about-values div:nth-child(n+3) { border-bottom: 0; }
  .about-detail { margin-top: 34px; padding: 24px 22px; }

  .cta-inner {
    min-height: 225px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
  }
  .cta-inner .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-social { max-width: 160px; }
  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 16px;
  }
  .floating-wa { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
