/* =========================================================
   LISTADO DE RESIDENCIAS
========================================================= */

.aurum-residencias,
.residencias {
  background: #f2f2f2;
  padding: var(--space-section) 0;
}

.residencias-intro {
  padding-bottom: 48px;
}

.residencias-intro h1 {
  margin-bottom: 4px;
  font-size: var(--fs-h1);
}

.residencias-intro h2 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 400;
}

.residencias-intro p {
  max-width: 1000px;
  color: var(--muted);
}

.residencia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
  margin-bottom: 64px;
}

.residencia-row:last-child {
  margin-bottom: 0;
}

.residencia-row.is-reverse .residencia-img {
  order: 2;
}

.residencia-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.residencia-content h3 {
  margin-bottom: 16px;
  font-size: 29px;
}

.residencia-content p {
  margin-bottom: 22px;
  color: #444;
}


/* =========================================================
   SINGLE RESIDENCIA
========================================================= */

.residencia-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  color: #fff;
  background-color: var(--blue);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Capa azul que cubre toda la sección */
.residencia-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(37, 72, 120, 0.02) 0,
      rgba(37, 72, 120, 0.05) 260px,
      rgba(37, 72, 120, 0.20) 360px,
      rgba(37, 72, 120, 0.52) 450px,
      rgba(37, 72, 120, 0.86) 535px,
      var(--blue) 610px,
      var(--blue) 100%
    );
  pointer-events: none;
}

/* Isotipo decorativo */
.residencia-hero-isotipo {
  position: absolute;
  right: -80px;
  bottom: 0;
  z-index: 2;
  width: min(820px, 70vw);
  max-width: none;
  opacity: 0.32;
  pointer-events: none;
}

/* Contenido */
.residencia-hero-inner {
  position: relative;
  z-index: 3;
  padding-top: clamp(320px, 42vw, 500px);
  padding-bottom: 64px;
}

.residencia-hero-heading {
  position: relative;
}

.residencia-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 8px 24px;
  border-radius: 7px;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.residencia-hero h1 {
  margin: 0 0 2px;
  color: #fff;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
}

.residencia-hero h2 {
  margin: 0 0 54px;
  color: #fff;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}

.residencia-hero-text {
  max-width: 1060px;
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
}

.residencia-hero-text p {
  margin: 0 0 18px;
}

.residencia-hero-text p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   GALERÍA
========================================================= */

.residencia-gallery-wrap {
  position: relative;
  margin-top: 44px;
  padding: 0 84px;
}

.residencia-swiper {
  overflow: hidden;
}

.residencia-gallery-item {
  display: block;
  border: 3px solid #fff;
  border-radius: 10px;
  overflow: hidden;
}

.residencia-gallery-item img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
}

.residencia-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 68px;
  line-height: 1;
  cursor: pointer;
}

.residencia-gallery-prev {
  left: 12px;
}

.residencia-gallery-next {
  right: 12px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .residencia-row,
  .residencia-row.is-reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .residencia-row.is-reverse .residencia-img {
    order: initial;
  }

  .residencia-hero {
    min-height: 620px;
    background-size: auto 100%;
    background-position: center top;
  }

  .residencia-hero-inner {
    padding-top: 300px;
    padding-bottom: 50px;
  }

  .residencia-hero h2 {
    margin-bottom: 36px;
    font-size: 20px;
  }

  .residencia-gallery-wrap {
    padding: 0 54px;
  }

  .residencia-gallery-arrow {
    font-size: 56px;
  }
}

@media (max-width: 560px) {
  .residencia-hero {
    min-height: auto;
    background-size: auto 520px;
    background-position: center top;
  }

  .residencia-hero-inner {
    padding-top: 330px;
    padding-bottom: 42px;
  }

  .residencia-badge {
    padding: 7px 18px;
    font-size: 13px;
  }

  .residencia-hero h1 {
    font-size: 34px;
  }

  .residencia-hero h2 {
    margin-bottom: 28px;
    font-size: 18px;
  }

  .residencia-hero-text {
    font-size: 15px;
  }

  .residencia-hero-isotipo {
    right: -150px;
    bottom: -90px;
    width: 560px;
  }

  .residencia-gallery-wrap {
    margin-top: 34px;
    padding: 0 42px;
  }

  .residencia-gallery-item img {
    height: 135px;
  }

  .residencia-gallery-arrow {
    font-size: 46px;
  }

  .residencia-gallery-prev {
    left: 4px;
  }

  .residencia-gallery-next {
    right: 4px;
  }
}