:root {
  --black: #050505;
  --graphite: #151515;
  --graphite-soft: #202020;
  --white: #ffffff;
  --offwhite: #f5f2ec;
  --muted: #b9b2a7;
  --text: #141414;
  --text-soft: #5c564d;
  --gold: #b89b5e;
  --gold-soft: rgba(184, 155, 94, 0.2);
  --border: rgba(184, 155, 94, 0.28);
  --light-border: #e5dfd4;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c4a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

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

.section {
  padding: clamp(68px, 8vw, 116px) 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  max-width: 680px;
  color: var(--white);
  font-size: clamp(3rem, 4.8vw, 5.6rem);
}

h2 {
  color: var(--text);
  font-size: clamp(2.35rem, 5vw, 5.2rem);
}

p {
  color: var(--text-soft);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 88% 8%, rgba(184, 155, 94, 0.18), transparent 28%),
    linear-gradient(135deg, #050505 0%, #151515 48%, #070707 100%);
  padding: clamp(26px, 5vw, 64px) 0;
}

.hero__shell {
  min-height: min(760px, calc(100vh - 52px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.46fr);
  grid-template-rows: 1fr;
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--graphite);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: clamp(18px, 2vw, 26px);
  position: relative;
}

.hero__visual {
  position: absolute;
  inset: clamp(18px, 2vw, 26px) calc(clamp(18px, 2vw, 26px) + min(38vw, 470px) + clamp(22px, 3vw, 36px)) clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px);
  border-radius: 8px;
  overflow: hidden;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.24)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 45%);
}

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

.hero__content {
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: end;
  padding: clamp(22px, 4vw, 50px);
}

.hero__lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 34px;
}

.chips span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  padding: 9px 13px;
  backdrop-filter: blur(10px);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  padding: 15px 24px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

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

.button--primary,
.button--light {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.22);
}

.button--primary:hover,
.button--light:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
}

.wa-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: currentColor;
}

.button-note {
  max-width: 520px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.hero__media {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

.media-label {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.phone-frame {
  width: min(430px, 100%);
  aspect-ratio: 9 / 16;
  border: 8px solid #070707;
  border-radius: 28px;
  background: #080808;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__mobile-cta {
  display: none;
}

.hero__media > p:not(.media-label) {
  max-width: 430px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  text-align: center;
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.section-heading p:not(.eyebrow) {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 1.04rem;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.58fr);
  gap: 42px;
  max-width: none;
  align-items: end;
}

.gallery-section {
  background: var(--offwhite);
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) repeat(2, minmax(180px, 0.55fr));
  grid-auto-rows: 250px;
  gap: 14px;
}

.gallery__item {
  border: 0;
  border-radius: 8px;
  background: var(--graphite);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.gallery__item:first-child {
  grid-row: span 2;
}

.gallery__item:nth-child(2) {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 48%);
}

.gallery__item:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.04);
}

.gallery__item span {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.details-section,
.advantages-section {
  background: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--light-border);
  background: var(--light-border);
}

.info-card {
  min-height: 138px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  padding: 24px;
}

.info-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.55vw, 1.62rem);
  font-weight: 500;
  line-height: 1.18;
}

.distribution-section {
  background: var(--black);
  color: var(--white);
}

.distribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.floor-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--graphite);
  padding: clamp(28px, 4vw, 48px);
}

.floor-card h2 {
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
}

.floor-card ul,
.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.floor-card li,
.check-list li {
  color: rgba(255, 255, 255, 0.74);
  position: relative;
  padding-left: 26px;
}

.floor-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  left: 0;
  top: 0.68em;
}

.location-section {
  background: var(--offwhite);
}

.location-grid,
.advantages-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.7fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
}

.location-grid p,
.advantages-grid p {
  max-width: 680px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.highlight-grid article {
  min-height: 150px;
  display: flex;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--graphite);
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.32rem, 2.25vw, 2.12rem);
  line-height: 1.08;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.highlight-grid article::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 2px;
  left: 22px;
  top: 22px;
  background: var(--gold);
}

.advantages-section h2,
.advantages-section p {
  color: var(--text);
}

.check-list {
  border-left: 1px solid var(--light-border);
  padding-left: clamp(22px, 4vw, 48px);
}

.check-list li {
  color: var(--text-soft);
}

.final-cta {
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.88)),
    url("assets/images/sala-ampla-duplex-setor-bueno.jpg") center / cover;
  color: var(--white);
}

.final-cta h2,
.final-cta p {
  color: var(--white);
}

.final-cta p {
  opacity: 0.78;
}

.final-cta__inner {
  max-width: 790px;
  text-align: center;
}

.final-cta__inner .button {
  margin-top: 18px;
}

.sticky-whatsapp {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  background: var(--whatsapp);
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.28);
  color: var(--white);
  font-weight: 850;
  padding: 15px 22px;
  transition: background 180ms ease, transform 180ms ease;
}

.sticky-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 28px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  width: min(1120px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--white);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-family: var(--sans);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  font-size: 2.4rem;
  line-height: 0.8;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
    align-items: stretch;
  }

  .hero__shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero__visual {
    inset: 18px;
  }

  .hero__content {
    min-height: 560px;
  }

  .hero__media {
    width: min(430px, 100%);
    justify-self: center;
  }

  .phone-frame {
    width: min(430px, 100%);
    margin-inline: auto;
  }

  .section-heading--split,
  .location-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .distribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__item:first-child,
  .gallery__item:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 58px 0;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.45rem);
  }

  .hero {
    padding: 14px 0 22px;
  }

  .hero__shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: 10px;
    padding: 14px;
  }

  .hero__visual {
    display: none;
  }

  .hero__content {
    display: contents;
    min-height: auto;
    padding: 0;
  }

  .hero__content .eyebrow {
    order: 1;
    margin: 4px 0 -6px;
  }

  .hero__content h1 {
    order: 2;
  }

  .hero__media {
    order: 3;
    width: 100%;
  }

  .media-label {
    display: none;
  }

  .phone-frame {
    width: 100%;
    max-height: 68vh;
    border-width: 6px;
    border-radius: 22px;
  }

  .hero__mobile-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 14px;
  }

  .hero__media > p:not(.media-label) {
    margin-top: 12px;
    text-align: left;
  }

  .hero__actions {
    display: none;
  }

  .hero__lead {
    order: 4;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
  }

  .chips {
    order: 5;
    margin: 0;
    gap: 8px;
  }

  .chips span {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .button {
    width: 100%;
    padding-inline: 14px;
    text-align: center;
  }

  .gallery {
    display: flex;
    gap: 12px;
    margin-inline: -14px;
    overflow-x: auto;
    padding-inline: 14px;
    scroll-snap-type: x mandatory;
  }

  .gallery__item {
    min-width: 86vw;
    height: 360px;
    scroll-snap-align: start;
  }

  .info-grid,
  .distribution-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 112px;
  }

  .highlight-grid article {
    min-height: 112px;
  }

  .check-list {
    border-left: 0;
    padding-left: 0;
  }

  .sticky-whatsapp {
    right: 14px;
    bottom: 14px;
    left: 14px;
    border-radius: 8px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 22px;
    transform: none;
  }
}
