:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #232323;
  --muted: #5f5f5f;
  --brand: #2b4f54;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 3rem 0;
}

h1,
h3,
h4,
h5,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 8.8vw, 5rem);
  line-height: 1.1;
  color: #ffffff;
  text-transform: none;
}

h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.75rem, 4.8vw, 2.6rem);
  text-align: center;
  font-weight: 700;
}

h4 {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.9vw, 1.45rem);
  font-weight: 500;
  text-align: center;
}

h5 {
  margin-bottom: 0.5rem;
  font-size: 1.28rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid #ededed;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  min-height: 72vh;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.1rem;
  background: transparent;
  box-shadow: none;
}

.hero p {
  margin-top: 0.85rem;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  color: #f7f7f7;
}

.gallery {
  display: grid;
  gap: 0;
}

.gallery.single {
  grid-template-columns: 1fr;
}

.gallery.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.gallery img {
  min-height: 210px;
  box-shadow: none;
}

.patio-section {
  background-color: #eae4cc;
}

.patio-section .container {
  width: min(1120px, 100% - 2rem);
}

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

.patio-gallery img {
  border-radius: 0;
  box-shadow: none;
  min-height: 220px;
}

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

.zonas-comunes-section {
  background-color: #bed3f9;
}

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

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

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.45rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.video-block {
  text-align: center;
}

.video-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: #232323;
}

.video-wrapper {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.video-wrapper iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}

.video-block p {
  margin-top: 0.8rem;
  color: #fafafa;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.card-column {
  background: #ffffff;
  display: flex;
}

.card {
  background: transparent;
  border-radius: 4px;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card img {
  min-height: 190px;
  margin-bottom: 0.85rem;
}

.card h5,
.card p {
  padding-inline: 1rem;
}

.card p {
  color: var(--muted);
  padding-bottom: 1rem;
}

.features-section,
.details-section {
  background-color: #013d93;
}

.features-section > .container > h4,
.features-section > .container > h5 {
  color: #ffffff;
  line-height: 1.5;
}

.features-section > .container > h4,
.features-section > .container > h5 {
  text-align: center;
}

.features-section > .container > h4 {
  font-size: clamp(1.75rem, 4.8vw, 2.6rem);
  font-weight: 700;
}

.features-section > .container > h5 {
  font-size: 1.2rem;
  font-weight: 500;
}

.features-section > .container > h4 strong,
.features-section > .container > h5 strong {
  font-weight: inherit;
}

.section:not(.features-section):not(.details-section):not(.cta):not(.map-section) h3 {
  text-align: center;
}

.section:not(.features-section):not(.details-section):not(.cta):not(.map-section) h4 {
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.5;
}

.section:not(.features-section):not(.details-section):not(.cta):not(.map-section) h3 strong {
  font-weight: 700;
}

.details-section .gallery.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.details-section figcaption {
  color: #ffffff;
}

.details-section .container {
  width: min(1120px, 100% - 2rem);
}

.fade-slider {
  position: relative;
  width: 100%;
  min-height: 275px;
}

.fade-slider-track {
  position: relative;
  min-height: inherit;
}

.fade-slider-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s ease-in-out;
}

.fade-slider-track img.is-active {
  opacity: 1;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(12, 18, 28, 0.3);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.slider-control-prev {
  left: 0.6rem;
}

.slider-control-next {
  right: 0.6rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.slider-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slider-dot.is-active {
  background: #ffffff;
}

.cta {
  text-align: center;
  background: #fafafa;
}

.map-section {
  padding-top: 0;
  padding-bottom: 0;
}

.map-section iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.site-footer {
  background: #2e2e2e;
  color: #f5f5f5;
  padding: 80px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

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

.lightbox-image {
  max-width: min(92vw, 1300px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-prev {
  left: 0.9rem;
}

.lightbox-next {
  right: 0.9rem;
}

@media (max-width: 767px) {
  .section .gallery.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section .gallery.cols-3 img:nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .zonas-comunes-gallery img:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: clamp(3.5rem, 8vw, 5.6rem);
  }

  h3 {
    font-size: clamp(2rem, 3.3vw, 3rem);
  }

  h4 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
  }

  h5 {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  }

  .hero p {
    font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  }

  .section {
    padding: 5rem 0;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  .hero {
    min-height: 82vh;
  }

  .features-section {
    padding-bottom: 2rem;
  }

  .details-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .patio-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(220px, 1fr));
  }

  .habitaciones-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(210px, 1fr));
  }

  .zonas-comunes-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, minmax(210px, 1fr));
  }

  .zonas-comunes-gallery img:last-child {
    grid-column: auto;
  }

  .section .gallery.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .section .gallery.cols-3 img:nth-child(3):last-child {
    grid-column: auto;
  }

  .zonas-paso-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(210px, 1fr);
  }

  .fade-slider {
    min-height: 500px;
  }

  .section.map-section {
    padding-top: 0;
    padding-bottom: 0;
  }
}
