:root {
  --ink: #15352c;
  --ink-2: #24483d;
  --deep: #052922;
  --deep-2: #083b33;
  --mint: #25b969;
  --sky: #55c6e8;
  --sun: #ff9418;
  --red: #ed2a32;
  --paper: #f6faf6;
  --cloud: #edf5f7;
  --white: #ffffff;
  --muted: #668076;
  --line: rgba(21, 53, 44, 0.16);
  --shadow: 0 22px 52px rgba(3, 28, 23, 0.16);
  --header-height: 116px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--deep);
}

.loader-mark {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.loader-mark img {
  width: 94px;
  height: auto;
}

.loader-line {
  position: absolute;
  left: 50%;
  bottom: 28%;
  width: min(260px, 52vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
}

.loader-line::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  transform: translateX(-120%);
  background: linear-gradient(90deg, var(--mint), var(--sky), var(--sun), var(--red));
  animation: loaderSweep 1s ease-in-out infinite;
}

@keyframes loaderSweep {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(245%);
  }
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--mint), var(--sky), var(--sun), var(--red));
}

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

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

button,
input,
textarea {
  font: inherit;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 94px 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
}

.top-strip {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(21, 53, 44, 0.08);
}

.top-strip p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.top-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(21, 53, 44, 0.55);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.top-link:hover,
.top-link:focus-visible {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(5, 41, 34, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled .nav-shell {
  background: rgba(5, 41, 34, 0.96);
  box-shadow: 0 12px 30px rgba(3, 28, 23, 0.18);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.86);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--sun);
  transition: transform 180ms ease;
}

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

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

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 32, 27, 0.82), rgba(5, 32, 27, 0.5) 42%, rgba(5, 32, 27, 0.2)),
    linear-gradient(180deg, rgba(5, 32, 27, 0.68), rgba(5, 32, 27, 0.06) 44%, rgba(5, 32, 27, 0.78));
}

.hero-frame {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.hero-content {
  position: relative;
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-height);
  padding-bottom: 54px;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--sun);
}

.eyebrow.dark {
  color: var(--white);
  background: var(--ink);
}

.eyebrow.light {
  color: var(--deep);
  background: var(--white);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.35rem;
  line-height: 1;
  font-weight: 900;
}

.js-title-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.js-title-word > span {
  display: inline-block;
  will-change: transform;
}

.hero-copy {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  color: var(--deep);
  background: var(--sun);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ffad41;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--deep);
  background: var(--white);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 150px));
  gap: 10px;
  margin: 42px 0 0;
}

.hero-facts div {
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  will-change: transform;
}

.hero-facts dt {
  margin: 0;
  font-size: 2.05rem;
  line-height: 1;
  font-weight: 900;
  color: var(--sun);
}

.hero-facts dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 34px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 5px;
  height: 12px;
  border-radius: 999px;
  background: var(--sun);
}

.intro {
  background: var(--paper);
}

.intro-grid,
.residences-grid,
.location-grid,
.gallery-grid,
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.08;
  font-weight: 900;
}

.section-copy p,
.section-heading p,
.final-cta p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
}

.feature-image,
.map-image,
.map-card,
.gallery-display,
.plant-stack img {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  will-change: transform;
}

.feature-image img,
.map-image img,
.map-card img,
.gallery-display img,
.plant-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.image-reveal {
  position: relative;
  --reveal-cover: 1;
}

.image-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-origin: right center;
  transform: scaleX(var(--reveal-cover));
  background: var(--sun);
  pointer-events: none;
}

.feature-image {
  aspect-ratio: 16 / 10;
}

.stats-band {
  background: var(--deep);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid article {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.stats-grid article:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.stats-grid strong {
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 900;
  color: var(--sun);
}

.stats-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.programs {
  background:
    linear-gradient(180deg, var(--cloud) 0%, var(--paper) 100%);
}

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

.section-heading.centered {
  margin: 0 auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.info-card {
  position: relative;
  min-height: 245px;
  padding: 26px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 148, 24, 0.4);
  box-shadow: 0 18px 36px rgba(3, 28, 23, 0.12);
}

.info-card h3 {
  margin: 36px 0 10px;
  font-size: 1.2rem;
  line-height: 1.22;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-mark {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 42px;
  height: 8px;
  border-radius: 4px;
}

.card-mark.green {
  background: var(--mint);
}

.card-mark.blue {
  background: var(--sky);
}

.card-mark.orange {
  background: var(--sun);
}

.card-mark.red {
  background: var(--red);
}

.criteria {
  margin-top: 20px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--deep);
  color: var(--white);
}

.criteria h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.criteria ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.criteria li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.criteria li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
}

.residences {
  background: var(--white);
}

.unit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.unit-list article {
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.unit-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(3, 28, 23, 0.1);
}

.unit-list span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.unit-list strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}

.unit-list p {
  margin: 10px 0 0;
}

.plant-stack {
  display: grid;
  gap: 16px;
}

.plant-stack img:first-child {
  aspect-ratio: 16 / 8;
}

.plant-stack img:last-child {
  aspect-ratio: 16 / 9;
}

.gallery-section {
  background: var(--deep);
  color: var(--white);
}

.gallery-section .section-copy p {
  color: rgba(255, 255, 255, 0.75);
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.gallery-controls button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible,
.gallery-controls button.is-active {
  color: var(--deep);
  border-color: var(--sun);
  background: var(--sun);
}

.gallery-display {
  margin: 0;
  background: var(--ink);
  transform-origin: center center;
}

.gallery-display img {
  aspect-ratio: 16 / 10;
}

.gallery-display figcaption {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.implantation {
  background: var(--paper);
}

.implantation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  margin-top: 34px;
  align-items: start;
}

.map-card {
  background: var(--deep);
}

.map-card img {
  aspect-ratio: 18 / 7;
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.amenities-list span {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.amenities-list span:hover {
  color: var(--white);
  background: var(--ink);
  transform: translateX(4px);
}

.location {
  background: var(--white);
}

.nearby-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.nearby-list article {
  min-height: 106px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.nearby-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(3, 28, 23, 0.1);
}

.nearby-list strong {
  display: block;
  color: var(--sun);
  font-size: 1.5rem;
  line-height: 1;
}

.nearby-list span {
  display: block;
  margin-top: 8px;
  font-weight: 800;
}

.nearby-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.map-image {
  aspect-ratio: 4 / 3;
  background: var(--cloud);
}

.final-cta {
  background:
    linear-gradient(90deg, rgba(5, 41, 34, 0.94), rgba(5, 41, 34, 0.82)),
    url("assets/fachada-dia.jpg") center / cover;
  color: var(--white);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.76);
}

.cta-panel {
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.cta-panel h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.cta-panel p {
  margin: 0 0 24px;
}

.site-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.76);
  background: var(--deep);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-grid span {
  font-weight: 800;
}

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

@media (max-width: 1040px) {
  .nav-links {
    gap: 16px;
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

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

  .implantation-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 108px;
  }

  .top-strip {
    height: 44px;
    justify-content: space-between;
    gap: 12px;
  }

  .top-strip p {
    font-size: 0.78rem;
  }

  .top-link {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .nav-shell {
    height: 64px;
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(5, 41, 34, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero,
  .hero-content {
    min-height: 78vh;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro-grid,
  .residences-grid,
  .location-grid,
  .gallery-grid,
  .final-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-pad {
    padding: 72px 0;
  }

  .section-copy h2,
  .section-heading h2,
  .final-cta h2 {
    font-size: 2.15rem;
  }

  .stats-grid,
  .criteria ul {
    grid-template-columns: 1fr;
  }

  .stats-grid article,
  .stats-grid article:last-child {
    min-height: 118px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .stats-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .top-strip p {
    display: none;
  }

  .top-strip {
    justify-content: center;
  }

  .brand span {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-frame {
    inset: 10px;
  }

  .scroll-cue {
    display: none;
  }

  .hero-facts,
  .program-grid,
  .unit-list,
  .nearby-list,
  .amenities-list {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    padding: 14px 16px;
  }

  .button {
    width: 100%;
  }

  .feature-image,
  .map-image {
    aspect-ratio: 1 / 1;
  }

  .plant-stack img:first-child,
  .map-card img {
    aspect-ratio: 4 / 3;
  }

  .gallery-display img,
  .plant-stack img:last-child {
    aspect-ratio: 4 / 3;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .page-loader {
    display: none;
  }
}
