/* Header refinements: larger logo and truly centered navigation. */
@media (min-width: 851px) {
  .nav-wrap {
    height: 104px;
    position: relative;
    justify-content: space-between;
  }

  .brand img {
    width: 84px;
    height: 84px;
  }

  .nav-wrap > nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    gap: 28px;
  }
}

@media (max-width: 850px) {
  .nav-wrap {
    height: 92px;
  }

  .brand img {
    width: 74px;
    height: 74px;
  }

  .nav-wrap > nav {
    top: 92px;
    transform: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 7.5vw, 54px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }
}

/* Keep long commercial headlines comfortable on phones. */
@media (max-width: 560px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    min-height: 0;
    padding: 122px 0 72px;
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
    padding-top: 0;
  }

  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .hero .eyebrow::before {
    width: 28px;
    margin-right: 10px;
  }

  .hero h1 {
    width: 100%;
    font-size: clamp(14px, 4.55vw, 20px);
    line-height: 1.03;
    letter-spacing: -.012em;
    margin: 18px 0 22px;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: balance;
  }

  .hero h1 span,
  .hero h1 em {
    max-width: 100%;
  }

  .hero h1 em {
    margin-top: 7px;
  }

  .hero .lead {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
  }

  .hero .actions {
    margin-top: 28px;
  }
}

/* Featured project in the home-page hero. */
.hero-project-feature {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: max(4vw, 46px);
  width: min(34vw, 650px);
  margin: 0;
  padding: 5px;
  background: linear-gradient(135deg, rgba(226, 194, 132, .88), rgba(197, 160, 89, .3));
  box-shadow: 0 20px 54px rgba(0, 0, 0, .45);
  transform: translateY(-50%);
}

/* Keep the feature vertically centered after its reveal animation finishes. */
.hero-project-feature.reveal.visible {
  transform: translateY(-50%);
}

.hero-project-link {
  color: inherit;
}

.hero-project-link:hover .hero-project-feature,
.hero-project-link:focus-visible .hero-project-feature {
  box-shadow: 0 24px 64px rgba(0, 0, 0, .58), 0 0 0 2px rgba(226, 194, 132, .78);
}

.hero-project-link:focus-visible {
  outline: none;
}

.whatsapp-float {
  width: 58px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.whatsapp-float:after {
  content: none;
}

.hero-project-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-project-feature figcaption {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  padding: 13px 16px;
  color: var(--white);
  background: linear-gradient(90deg, rgba(3, 11, 24, .94), rgba(3, 11, 24, .42));
  font: 700 clamp(14px, 1.25vw, 19px)/1.2 var(--serif);
}

.hero-project-feature figcaption span {
  color: var(--gold2);
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 950px) {
  .hero-project-feature {
    right: 28px;
    width: min(42vw, 490px);
  }
}

@media (max-width: 700px) {
  .hero-project-feature {
    position: relative;
    top: auto;
    right: auto;
    width: min(100% - 32px, 560px);
    margin: 6px auto 0;
    transform: none;
  }

  .hero-project-feature img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 1000px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 132px 0 64px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-project-feature {
    position: relative;
    top: auto;
    right: auto;
    width: min(100% - 40px, 620px);
    margin: 34px auto 0;
    transform: none;
  }

  .hero-project-feature.reveal.visible {
    transform: none;
  }
}

/* Larger location map while preserving the original footer design. */
html body footer .footer-grid > div {
  min-height: 490px;
}

footer .footer-contact-panel > .footer-address {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px 0;
  color: inherit;
  border-bottom: 1px solid rgba(197, 160, 89, .38);
  font-size: .86rem;
  line-height: 1.5;
  text-decoration: none;
}

footer .footer-contact-panel > .footer-address::before {
  content: "";
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: url("images/address.png") center / 100% 100% no-repeat;
}

footer .footer-location-panel h3::before {
  display: none !important;
  content: none !important;
}

footer .location-heading-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

footer .location-heading-link::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  vertical-align: middle;
  background: url("images/mapa.png") center / 100% 100% no-repeat;
}

footer .footer-map {
  position: relative;
}

html body footer .footer-map iframe {
  height: 350px !important;
  pointer-events: none;
}

footer .footer-map .map-click-link {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0 !important;
  cursor: pointer;
}

footer .footer-map .map-click-link:hover,
footer .footer-map .map-click-link:focus-visible {
  outline: 2px solid rgba(210, 164, 70, .85);
  outline-offset: -2px;
}

@media (max-width: 800px) {
  html body footer .footer-grid > div {
    min-height: 0;
  }

  html body footer .footer-map iframe {
    height: 300px !important;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: clamp(13px, 4.35vw, 16px);
  }
}

/* Expressive service illustrations, kept inline for fast loading. */
.service-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(197, 160, 89, .15), rgba(197, 160, 89, .035));
  border: 1px solid rgba(197, 160, 89, .42);
  border-radius: 18px;
  box-shadow: inset 0 0 24px rgba(197, 160, 89, .05);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.service-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cards .card:hover .service-icon {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(197, 160, 89, .22), rgba(197, 160, 89, .06));
}

@media (max-width: 560px) {
  .service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 15px;
  }

  .service-icon svg {
    width: 43px;
    height: 43px;
  }
}
