:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-concrete: #ada4a0;
  --color-gray: #4a4f54;
  --color-olive: #808122;
  --surface: #e9e5e0;
  --surface-soft: #f3f0ec;
  --surface-mid: #ddd7d1;
  --text: #151515;
  --muted: #5d5d59;
  --line: rgba(74, 79, 84, 0.18);
  --max-width: 1280px;
  --transition: 260ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 32px;
}

section[id] {
  scroll-margin-top: 100px;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  width: 100%;
  background: rgba(233, 229, 224, 0.88);
  border-bottom: 1px solid rgba(74, 79, 84, 0.14);
  backdrop-filter: blur(18px);
  transition: background var(--transition), border-color var(--transition);
}

.navbar--scrolled {
  background: rgba(243, 240, 236, 0.96);
  border-bottom-color: rgba(74, 79, 84, 0.22);
}

.navbar__content {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand__logo {
  width: auto;
  height: 80px;
  object-fit: contain;
}

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

.nav a {
  position: relative;
  color: var(--color-gray);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: var(--color-olive);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-olive);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(74, 79, 84, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--color-gray);
  transform: translateX(-50%);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 30px; }

.nav-toggle.open span:nth-child(1) {
  transform: translate(-50%, 8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translate(-50%, -8px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px 0 150px;
  background-color: #151515;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.04) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0.56) 100%),
    url('../images/renders-metz/casaesquina.jpg');
  background-size: cover;
  background-position: center center, center center, center center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 58%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: var(--max-width);
}

.hero h1 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(5.2rem, 9.6vw, 9.5rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero__subtitle {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.18rem, 1.9vw, 1.58rem);
  line-height: 1.35;
  font-weight: 500;
}

.hero__text {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.75;
}

.hero__byline {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 0;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__byline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 1px;
  background: var(--color-olive);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero .button {
  min-width: 196px;
}

.hero__footer {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.88);
}

.hero__attribute {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
}

.hero__attribute:last-of-type {
  border-right: 0;
}

.hero__attribute svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__attribute span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.78);
  border-bottom: 2px solid rgba(255, 255, 255, 0.78);
  transform: translateX(-50%) rotate(45deg);
  transition: opacity var(--transition), transform var(--transition);
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
  opacity: 0.7;
  transform: translate(-50%, 4px) rotate(45deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--color-olive);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

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

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

.button--primary:hover,
.button--primary:focus-visible {
  background: #6e701c;
  border-color: #6e701c;
}

.button--secondary {
  background: rgba(243, 240, 236, 0.86);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--surface-soft);
  border-color: var(--color-olive);
  color: var(--color-olive);
}

.section {
  position: relative;
  padding: clamp(96px, 8vw, 132px) 0;
  background: var(--surface);
}

.section:nth-of-type(odd) {
  background: var(--surface-soft);
}

.section__inner {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.section-copy {
  max-width: 610px;
}

.section-copy--wide {
  max-width: 760px;
}

.section-copy--gallery {
  max-width: 690px;
}

.section-copy--centered {
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}

.section-copy h2,
.contact__intro h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy p,
.contact__intro > p,
.modal__description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.section-copy p:last-child,
.contact__intro > p:last-child {
  margin-bottom: 0;
}

.image-frame,
.gallery-card {
  margin: 0;
}

.image-frame img,
.gallery-card img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--surface-mid);
  border: 1px solid var(--line);
}

.image-frame figcaption,
.gallery-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--color-gray);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.image-frame figcaption::before,
.gallery-card figcaption::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--color-olive);
}

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

.metz__media img {
  height: clamp(380px, 42vw, 620px);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(128, 129, 34, 0.34);
}

.metric-row span {
  color: var(--color-gray);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section--location {
  background: #ded8d2;
}

.location-grid {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.location__heading {
  position: relative;
  padding-top: 8px;
}

.location__heading::after {
  content: '';
  display: block;
  width: min(180px, 42%);
  height: 1px;
  margin-top: 34px;
  background: rgba(128, 129, 34, 0.42);
}

.location__content {
  display: grid;
  gap: 20px;
}

.location__content > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.location__references {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(74, 79, 84, 0.16);
}

.location__references div {
  display: grid;
  gap: 7px;
}

.location__references span {
  color: var(--color-olive);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.location__references p {
  margin: 0;
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.55;
}

.architecture-grid {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  grid-template-areas:
    "copy primary"
    "secondary primary";
  gap: 44px;
  align-items: end;
}

.architecture-grid .section-copy {
  grid-area: copy;
  align-self: center;
}

.architecture__primary {
  grid-area: primary;
}

.architecture__secondary {
  grid-area: secondary;
}

.architecture__primary img {
  height: clamp(520px, 46vw, 640px);
  aspect-ratio: 4 / 5;
}

.architecture__secondary img {
  height: clamp(300px, 25vw, 410px);
  aspect-ratio: 16 / 10;
}

.section--virtual {
  background: #ded8d2;
}

.virtual-grid {
  gap: 30px;
}

.virtual__tour-wrap {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(74, 79, 84, 0.2);
  background: var(--surface-soft);
}

.virtual__tour-wrap::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.virtual__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.virtual__cta {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.virtual__cta h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 500;
}

.spaces-grid {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.52fr);
  grid-template-areas:
    "copy copy"
    "main main"
    "stairs kitchen";
  gap: 30px;
}

.spaces-grid .section-copy {
  grid-area: copy;
}

.spaces__main {
  grid-area: main;
}

.spaces__detail--stairs {
  grid-area: stairs;
}

.spaces__detail--kitchen {
  grid-area: kitchen;
}

.spaces__main img {
  height: clamp(430px, 43vw, 640px);
  aspect-ratio: 16 / 7.2;
}

.spaces__detail img {
  height: clamp(320px, 34vw, 500px);
  aspect-ratio: 4 / 3;
}

.spaces__detail--stairs img {
  object-position: center 42%;
}

.experience-grid {
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 48px;
  align-items: center;
}

.experience__media img {
  height: clamp(420px, 38vw, 580px);
  aspect-ratio: 16 / 10;
}

.private-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "copy copy"
    "master tv";
  gap: 30px;
}

.private-grid .section-copy {
  grid-area: copy;
}

.private__image--master {
  grid-area: master;
}

.private__image--tv {
  grid-area: tv;
}

.private__image img {
  height: clamp(340px, 34vw, 520px);
  aspect-ratio: 3 / 2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(230px, 0.72fr) minmax(230px, 0.72fr);
  grid-template-areas:
    "large small1 small2"
    "large wide wide";
  gap: 24px;
}

.gallery-card--large {
  grid-area: large;
}

.gallery-card:nth-child(2) {
  grid-area: small1;
}

.gallery-card:nth-child(3) {
  grid-area: small2;
}

.gallery-card--wide {
  grid-area: wide;
}

.gallery-card img {
  height: 100%;
}

.gallery-card--large img {
  height: clamp(520px, 45vw, 640px);
  aspect-ratio: 4 / 5;
}

.gallery-card:not(.gallery-card--large):not(.gallery-card--wide) img {
  height: clamp(240px, 21vw, 310px);
  aspect-ratio: 4 / 3;
}

.gallery-card--wide img {
  height: clamp(250px, 24vw, 340px);
  aspect-ratio: 16 / 8;
}

@media (min-width: 1081px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1.36fr) minmax(220px, 0.72fr) minmax(220px, 0.72fr);
    gap: 18px;
  }

  .gallery-card img {
    border-color: rgba(74, 79, 84, 0.1);
    background: transparent;
    transition: transform 620ms ease, filter 620ms ease;
    transform-origin: center center;
  }

  .gallery-card img:hover {
    transform: scale(1.012);
    filter: saturate(1.02);
  }

  .gallery-card figcaption {
    margin-top: 11px;
  }

  .gallery-card--large img {
    height: clamp(500px, 35vw, 570px);
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center center;
  }

  .gallery-card:nth-child(2) img {
    height: clamp(218px, 15.5vw, 260px);
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: center bottom;
  }

  .gallery-card:nth-child(3) img {
    height: clamp(218px, 15.5vw, 260px);
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center center;
  }

  .gallery-card--wide img {
    height: clamp(228px, 16.5vw, 280px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
  }
}

.acmol-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: center;
}

.acmol-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(74, 79, 84, 0.2);
  border-left: 1px solid rgba(74, 79, 84, 0.2);
}

.acmol-values article {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid rgba(74, 79, 84, 0.2);
  border-bottom: 1px solid rgba(74, 79, 84, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.acmol-values span {
  display: block;
  margin-bottom: 30px;
  color: var(--color-olive);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.acmol-values h3 {
  margin: 0;
  color: var(--color-gray);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  font-weight: 500;
  line-height: 1.32;
}

.section--video {
  background: #e2ddd7;
}

.video-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(64px, 8vw, 124px);
  max-width: 1040px;
  margin: 0 auto;
}

.video-copy h2 {
  max-width: 10ch;
}

.video-copy__secondary {
  max-width: 520px;
  margin-top: 18px;
}

.section-copy .video-copy__detail {
  margin-top: 30px;
  color: var(--color-olive);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

.video-frame {
  width: min(100%, 330px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  padding: 5px;
  border: 1px solid rgba(74, 79, 84, 0.3);
  border-radius: 12px;
  background: rgba(243, 240, 236, 0.68);
  box-shadow: 0 18px 38px rgba(47, 50, 52, 0.12);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  background: #111;
  object-fit: contain;
}

.section--aliados {
  overflow: hidden;
  background: var(--surface-soft);
}

.section--aliados .section-copy {
  width: 100%;
  max-width: 720px;
}

.section--aliados .section-copy p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.aliados-grid {
  gap: clamp(34px, 4.4vw, 58px);
}

.aliados-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  gap: clamp(28px, 6vw, 82px);
  padding-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid rgba(128, 129, 34, 0.28);
}

.aliados-logo {
  display: grid;
  place-items: center;
  min-height: 118px;
}

.aliados-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aliados-logo--a10 img {
  max-width: 136px;
  max-height: 136px;
}

.aliados-logo--archbio img {
  max-width: 238px;
  max-height: 76px;
  transform: scale(2.4);
}

.aliados-logo--m3 img {
  max-width: 148px;
  max-height: 148px;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.contact__intro {
  display: grid;
  gap: 20px;
}

.contact__info {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(128, 129, 34, 0.34);
}

.contact__info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact__info strong {
  color: var(--color-gray);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(243, 240, 236, 0.76);
  border: 1px solid rgba(74, 79, 84, 0.16);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--color-gray);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 14px 15px;
  border: 1px solid rgba(74, 79, 84, 0.2);
  border-radius: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contact-form textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-olive);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 3px rgba(128, 129, 34, 0.13);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(94, 93, 90, 0.56);
}

.contact-form .button {
  width: fit-content;
}

.contact-form__status {
  display: none;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.contact-form__status.is-visible {
  display: block;
}

.contact-form__status.is-success {
  color: var(--color-olive);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 220ms ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 30px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  transform: translateY(18px);
  transition: transform 220ms ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 79, 84, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  color: var(--color-gray);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.modal h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
}

.modal__description {
  margin: 10px 0 18px;
}

.contact-form--modal {
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-form--modal textarea {
  min-height: 84px;
}

.footer {
  padding: 46px 0 32px;
  background: #dcd5ce;
  border-top: 1px solid rgba(74, 79, 84, 0.18);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer__brand-block {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.footer__logo {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.footer__note,
.footer__copy {
  margin: 0;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.footer__links a {
  color: var(--color-gray);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--color-olive);
}

.footer__social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(128, 129, 34, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  color: var(--color-olive);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  background: var(--color-olive);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__facebook-icon {
  width: 18px;
  height: 18px;
}

.footer__copy {
  padding-top: 4px;
  font-size: 0.86rem;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: var(--color-olive);
  color: var(--color-white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), background var(--transition);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px);
  background: #6e701c;
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .architecture-grid,
  .location-grid,
  .experience-grid,
  .acmol-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .architecture-grid .section-copy,
  .architecture__primary,
  .architecture__secondary {
    grid-area: auto;
  }

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

  .architecture__primary img,
  .architecture__secondary img,
  .experience__media img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "large large"
      "small1 small2"
      "wide wide";
  }

  .gallery-card--large img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 860px) {
  .container {
    width: calc(100% - 44px);
    padding: 0;
  }

  .navbar__content {
    min-height: 78px;
  }

  .brand__logo {
    height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav {
    position: fixed;
    inset: 78px 0 auto;
    display: grid;
    gap: 0;
    padding: 8px 22px 24px;
    background: rgba(243, 240, 236, 0.98);
    border-bottom: 1px solid rgba(74, 79, 84, 0.14);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-18px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(74, 79, 84, 0.12);
    font-size: 0.82rem;
  }

  .nav a::after {
    display: none;
  }

  .hero {
    min-height: 96svh;
    padding: 118px 0 138px;
    background-position: center center, center center, 42% center;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 16vw, 7rem);
  }

  .hero__content {
    align-self: start;
    padding-top: 7svh;
  }

  .hero__actions {
    max-width: 430px;
  }

  .hero__actions .button {
    flex: 1 1 190px;
  }

  .hero__footer {
    bottom: 26px;
  }

  .hero__attribute {
    padding: 0 18px;
  }

  .section {
    padding: 80px 0;
  }

  .section-copy h2,
  .contact__intro h2 {
    font-size: clamp(2.1rem, 7vw, 3rem);
  }

  .metz__media img,
  .spaces__main img,
  .spaces__detail img,
  .private__image img,
  .gallery-card img,
  .gallery-card--large img,
  .gallery-card--wide img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .spaces-grid,
  .private-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .spaces-grid .section-copy,
  .spaces__main,
  .spaces__detail--stairs,
  .spaces__detail--kitchen,
  .private-grid .section-copy,
  .private__image--master,
  .private__image--tv,
  .gallery-card--large,
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card--wide {
    grid-area: auto;
  }

  .acmol-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .video-frame {
    width: min(82vw, 300px);
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 36px);
  }

  section[id] {
    scroll-margin-top: 86px;
  }

  .navbar,
  .navbar--scrolled {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
  }

  .navbar__content {
    min-height: 72px;
  }

  .brand__logo {
    height: 58px;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.28));
  }

  .nav-toggle {
    display: inline-flex;
    position: fixed;
    top: 13px;
    right: auto;
    left: 296px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(21, 21, 21, 0.52);
  }

  .nav-toggle span {
    background: var(--text);
  }

  .nav {
    inset: 72px 0 auto;
  }

  .hero {
    min-height: 106svh;
    align-items: start;
    padding: 76px 0 126px;
    background-color: #151515;
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.62) 100%),
      url('../images/renders-metz/casaesquina.jpg');
    background-size: cover;
    background-position: 42% center;
    background-repeat: no-repeat;
  }

  .hero__content {
    padding-top: 3svh;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 25vw, 6rem);
  }

  .hero__subtitle {
    max-width: 29ch;
    margin-top: 10px;
    font-size: 1.08rem;
    line-height: 1.36;
  }

  .hero__text {
    max-width: 34ch;
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .hero__byline {
    width: auto;
    margin-top: 14px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .hero__actions {
    width: 100%;
    margin-top: 18px;
  }

  .hero__actions .button {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
  }

  .contact-form .button {
    width: 100%;
  }

  .hero__footer {
    left: 0;
    right: 0;
    max-width: none;
    display: block;
    width: 100vw;
    height: 74px;
    margin: 0;
    padding: 0 18px;
    bottom: 24px;
    box-sizing: border-box;
    transform: none;
  }

  .hero__attribute {
    position: absolute;
    bottom: 0;
    min-height: 62px;
    width: 120px;
    gap: 8px;
    padding: 0 6px;
  }

  .hero__attribute:nth-child(1) {
    left: 0;
  }

  .hero__attribute:nth-child(2) {
    left: 120px;
  }

  .hero__attribute:nth-child(3) {
    left: 240px;
  }

  .hero__attribute svg {
    width: 22px;
    height: 22px;
  }

  .hero__attribute span {
    font-size: 0.46rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .button {
    min-height: 50px;
    padding: 0 18px;
  }

  .metric-row {
    display: grid;
    gap: 12px;
  }

  .image-frame figcaption,
  .gallery-card figcaption {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .section--aliados .section-copy h2 {
    max-width: 11ch;
    margin-left: auto;
    margin-right: auto;
  }

  .section--aliados .section-copy p {
    max-width: 22ch;
  }

  .aliados-logos {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 26px;
  }

  .aliados-logo {
    min-height: 92px;
  }

  .aliados-logo--a10 img {
    max-width: 112px;
    max-height: 112px;
  }

  .aliados-logo--archbio img {
    max-width: 218px;
    max-height: 70px;
    transform: scale(2.15);
  }

  .aliados-logo--m3 img {
    max-width: 124px;
    max-height: 124px;
  }

  .modal {
    padding: 26px 20px 20px;
  }

  .footer__logo {
    height: 44px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}
