/* ============================================
   VARIABLES
   ============================================ */
:root {
  --black:       #111013;
  --gold:        #8C7156;
  --gold-dark:   #7a6149;
  --offwhite:    #EBEAE8;
  --white:       #FFFFFF;

  --font: 'Clash Display', sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 500ms;

  --gutter: 2px;
  --max-w: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(5rem, 10vw, 10rem);
}


/* ============================================
   RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  padding: 0;
}

textarea {
  font-family: inherit;
}

iframe {
  border: 0;
  display: block;
}


/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
}

.label--dark {
  color: rgba(17, 16, 19, 0.45);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.875rem 1.875rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--outline {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--black);
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn--gold:disabled {
  opacity: 0.6;
  pointer-events: none;
}


/* ============================================
   CURSOR
   ============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--offwhite);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s var(--ease), height 0.2s var(--ease);
  will-change: transform;
}

.cursor.is-hover {
  width: 36px;
  height: 36px;
}

.cursor.is-click {
  width: 7px;
  height: 7px;
}

@media (pointer: coarse) {
  .cursor { display: none; }
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem var(--pad);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(17, 16, 19, 0.96);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.nav__logo img {
  height: 22px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(235, 234, 232, 0.65);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--offwhite);
}

.nav__cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 0.5rem 1.1rem;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--black) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: none;
  z-index: 201;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--offwhite);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
  transform-origin: center;
}

.nav__toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav__toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}


/* ============================================
   HERO
   ============================================ */
.hero__img,
.hero__video {
  animation: heroZoom 1.4s var(--ease) both;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad);
  max-width: calc(var(--max-w) + var(--pad) * 2);
  margin: 0 auto;
  width: 100%;
  animation: heroIn 1s var(--ease) 0.4s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__label {
  margin-bottom: 1.75rem;
}

.hero__headline {
  font-size: clamp(48px, 7.5vw, 92px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__subline {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
}

.hero__diagonal {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35vw;
  height: 35vw;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero__diagonal::before,
.hero__diagonal::after {
  content: '';
  position: absolute;
  right: -20%;
  bottom: 10%;
  width: 200%;
  height: 1px;
  background: rgba(140, 113, 86, 0.12);
  transform: rotate(-45deg);
}

.hero__diagonal::after {
  bottom: 30%;
  background: rgba(140, 113, 86, 0.07);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2.2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  20%  { opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur) var(--ease) var(--reveal-delay, 0ms),
    transform var(--dur) var(--ease) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   EL PROYECTO
   ============================================ */
.proyecto {
  padding: var(--section-pad) 0;
  background: var(--black);
}

.proyecto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.proyecto__headline {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
}

.proyecto__body {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(235, 234, 232, 0.68);
  margin-bottom: 3rem;
}

.ficha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 2rem;
}

.ficha__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ficha__label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.ficha__value {
  font-size: 15px;
  color: var(--offwhite);
}

.proyecto__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  position: sticky;
  top: 5rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: none;
  background: #1a1815;
  display: block;
  width: 100%;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 19, 0.25);
  transition: background 0.3s ease;
}

.gallery__item:hover::after {
  background: rgba(17, 16, 19, 0.08);
}

.gallery__item:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}


/* ============================================
   UNIDADES
   ============================================ */
.unidades__section {
  margin-top: calc(var(--section-pad) / 2);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 3rem;
}

.unidades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  margin-top: 2rem;
}

.unidad__card {
  background: var(--gold);
  color: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: background 0.25s ease;
}

.unidad__card:hover {
  background: var(--gold-dark);
}

.unidad__card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

.unidad__eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.unidad__number {
  font-size: clamp(52px, 5.5vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}

.unidad__cta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
  padding-top: 1.5rem;
}

@media (max-width: 768px) {
  .unidades__section {
    margin-top: clamp(3rem, 8vw, 5rem);
  }

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


/* ============================================
   EL LUGAR
   ============================================ */
.lugar {
  background: var(--offwhite);
  color: var(--black);
  padding: var(--section-pad) 0;
}

.lugar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.lugar__headline {
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 2rem;
}

.lugar__body {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(17, 16, 19, 0.72);
  margin-bottom: 2.5rem;
}

.lugar__puntos {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lugar__puntos li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 15px;
  color: rgba(17, 16, 19, 0.8);
  line-height: 1.4;
}

.punto-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.lugar__mapa {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1815;
}

.lugar__mapa iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(100%) invert(1) contrast(1.1);
}


/* ============================================
   AVANCE DE OBRA
   ============================================ */
.obra {
  background: var(--black);
  padding: var(--section-pad) 0;
}

.obra__header {
  margin-bottom: 4rem;
  max-width: 680px;
}

.obra__headline {
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.obra__body {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(235, 234, 232, 0.58);
  margin-bottom: 2rem;
}

.obra__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(140, 113, 86, 0.45);
  padding: 0.6rem 1.25rem;
}

.badge-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 2.4s ease infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.obra__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.obra__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: none;
  background: #2a2420;
  display: block;
  width: 100%;
}

.obra__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.obra__item:hover img {
  transform: scale(1.05);
}

.obra__item:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.obra__fecha {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(235, 234, 232, 0.5);
  z-index: 2;
  pointer-events: none;
}


/* ============================================
   LA EMPRESA
   ============================================ */
.empresa {
  background: var(--black);
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.empresa__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.empresa__headline {
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.empresa__body {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(235, 234, 232, 0.62);
  margin-bottom: 1.5rem;
}

.empresa__datos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 2.5rem;
  margin-top: 3rem;
}

.empresa__dato {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dato-number {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gold);
}

.dato-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(235, 234, 232, 0.42);
  line-height: 1.5;
}

.empresa__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1815;
  position: sticky;
  top: 5rem;
}

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


/* ============================================
   CONTACTO
   ============================================ */
.contacto {
  background: var(--black);
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contacto__wrapper {
  max-width: 540px;
}

.contacto__headline {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contacto__body {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(235, 234, 232, 0.62);
  margin-bottom: 3rem;
}

.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(235, 234, 232, 0.42);
}

.form__optional {
  color: rgba(235, 234, 232, 0.25);
  font-size: 10px;
}

.form__input,
.form__textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(235, 234, 232, 0.12);
  color: var(--offwhite);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  padding: 0.75rem 0;
  outline: none;
  resize: none;
  width: 100%;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--gold);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(235, 234, 232, 0.18);
}

.form__success {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.75rem 0;
}

.contacto__sep {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contacto__sep::before,
.contacto__sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(235, 234, 232, 0.08);
}

.contacto__sep span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(235, 234, 232, 0.25);
}

.contacto__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 16px;
  color: var(--gold);
  transition: opacity 0.2s ease;
}

.contacto__whatsapp:hover {
  opacity: 0.7;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__logo {
  opacity: 0.4;
}

.footer__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.footer__info span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(235, 234, 232, 0.28);
}


/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 16, 19, 0.97);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 82vh;
  width: 100%;
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  transition: opacity 0.2s ease;
  display: block;
}

.lightbox__img.is-loading {
  opacity: 0;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: rgba(235, 234, 232, 0.55);
  transition: color 0.2s ease;
  cursor: none;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--offwhite);
}

.lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox__prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(235, 234, 232, 0.3);
}

.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}


/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .proyecto__grid {
    gap: 3rem;
  }

  .lugar__grid {
    gap: 3rem;
  }

  .empresa__grid {
    gap: 3rem;
  }
}


/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  body { cursor: auto; }

  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 199;
  }

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

  .nav__links a {
    font-size: 18px;
    letter-spacing: 0.2em;
    opacity: 0.9;
  }

  .nav__cta {
    border: 1px solid var(--gold);
    padding: 0.6rem 1.25rem;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__headline {
    font-size: clamp(40px, 10vw, 64px);
  }

  .proyecto__grid,
  .empresa__grid {
    grid-template-columns: 1fr;
  }

  .proyecto__gallery {
    position: static;
  }

  .empresa__image {
    position: static;
    aspect-ratio: 16 / 10;
    order: -1;
  }

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

  .lugar__mapa {
    aspect-ratio: 4 / 3;
  }

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

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

  .footer__info {
    align-items: flex-start;
  }
}


/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  .proyecto__gallery {
    grid-template-columns: 1fr;
  }

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

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

  .empresa__datos {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lightbox__prev {
    left: 0.5rem;
  }

  .lightbox__next {
    right: 0.5rem;
  }
}


/* ============================================
   RENDER PARALLAX
   ============================================ */
.render-parallax {
  height: 68vh;
  min-height: 420px;
  background-image: url('img/render_iso_color.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .render-parallax {
    background-attachment: scroll;
  }
}


/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.wa-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 500;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.wa-fab::after {
  content: 'Escribinos por WhatsApp';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--offwhite);
  background: var(--black);
  border: 1px solid rgba(140, 113, 86, 0.3);
  padding: 0.5rem 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

.wa-fab:hover {
  background: var(--gold-dark);
  transform: scale(1.1);
}

.wa-fab:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.wa-fab::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(140, 113, 86, 0.4);
  animation: fabRing 2.6s ease infinite;
  pointer-events: none;
}

@keyframes fabRing {
  0%   { transform: scale(1);    opacity: 0.7; }
  60%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.wa-fab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (pointer: coarse) {
  .wa-fab { cursor: pointer; }
}


/* ============================================
   GALERÍA EXTENDIDA (full-width)
   ============================================ */
.proyecto__gallery-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--gutter);
}

@media (max-width: 768px) {
  .proyecto__gallery-extra {
    grid-template-columns: repeat(2, 1fr);
  }

  .proyecto__gallery-extra .gallery__item:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .proyecto__gallery-extra {
    grid-template-columns: 1fr;
  }

  .proyecto__gallery-extra .gallery__item:last-child:nth-child(odd) {
    grid-column: span 1;
  }
}


/* ============================================
   AMENITIES
   ============================================ */
.amenities {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.5rem;
  margin-top: 0;
}

.amenities__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 0.75rem;
}

.amenities__list li {
  font-size: 14px;
  color: rgba(235, 234, 232, 0.65);
  line-height: 1.8;
}

.amenities__list li + li::before {
  content: '·';
  margin: 0 0.65rem;
  color: var(--gold);
}


/* ============================================
   PROGRAMA POR NIVEL — TABS
   ============================================ */
.niveles {
  margin-top: var(--section-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 3rem;
}

.niveles__tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
  gap: 0;
}

.niveles__tab {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(235, 234, 232, 0.35);
  padding: 0.875rem 2.5rem 0.875rem 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  cursor: none;
  position: relative;
}

.niveles__tab:hover {
  color: rgba(235, 234, 232, 0.7);
}

.niveles__tab.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.niveles__tab:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* panels */
.niveles__panels {
  position: relative;
}

.niveles__panel {
  display: none;
}

.niveles__panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding-top: 3rem;
  animation: panelIn 0.4s var(--ease) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* nivel content */
.nivel__eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(235, 234, 232, 0.3);
  margin-bottom: 0.75rem;
}

.nivel__title {
  font-size: clamp(56px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 2rem;
}

.nivel__items {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.nivel__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 15px;
  color: rgba(235, 234, 232, 0.72);
  line-height: 1.5;
}

.nivel__item::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.nivel__plan {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1815;
}

.nivel__plan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9) contrast(1.05);
}

/* responsive */
@media (max-width: 768px) {
  .niveles__tab {
    padding-right: 1.5rem;
    font-size: 10px;
  }

  .niveles__panel.is-active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nivel__plan {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .niveles__tab {
    padding-right: 1rem;
    letter-spacing: 0.15em;
  }
}
