html, body {
  overflow-x: hidden;
}

/* Estilos para carrusel automático de logos de clientes */

.clientes-swiper-cont {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.clientes-swiper-list {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
}

.clientes-swiper-list img {
    height: 40px !important;
    width: auto;
}


/* ====== Swiper modelos de casas ====== */

/* ====== Contenedor general ====== */
.models-swiper-block {
  width: 100%;
  padding: 40px;
  background: #e9e4d7;
  border-radius: 20px;
}

/* ====== Tabs de modelos (paginación) ====== */
.models-swiper-block .models-tabs {
  width: fit-content;
  margin: 0;
  margin-bottom: 40px;
    background: #121316;
  padding: 10px;
  border-radius: 999px;
  position: relative;
}

.gradient-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(to right, transparent, #121316);
    z-index: 99999;
    pointer-events: none;
    display: none; /* solo en desktop */
}

.models-swiper-block .models-tabs .swiper-slide {
  width: auto !important;
}

.models-swiper-block .models-tabs .tab-pill {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: transparent;
  transition: background-color .2s ease, color .2s ease;
  text-transform: uppercase;
}
.models-swiper-block .models-tabs .swiper-slide.is-active .tab-pill {
  background: #d2c8ae;   /* beige activo */
  color: #121316;        /* texto oscuro */
}
.models-swiper-block .models-tabs .tab-pill:hover {
  background: rgba(255,255,255,0.08);
}

/* ====== Swiper principal ====== */
.models-swiper {
  width: 100%;
}
.models-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ====== Tarjeta de cada modelo ====== */
.model-card {
  display: flex;
  gap: 60px;
  width: 100%;
}

.model-card__content { display: flex; flex-direction: column; justify-content: center; padding: 40px 40px 0 40px; width: 55%; }
.model-card__content h2 { font-size: 50px; font-weight: 500; margin: 0; }
.model-card__excerpt { font-size: 18px; color: #444; margin: 15px 0 0 0; line-height: 1.4; }

.model-card__header {
  padding-bottom: 25px;
}

/* Features */

.model-card__info {
  padding: 25px 0;
  border-top: 1px solid #d2c8ae;
  border-bottom: 1px solid #d2c8ae;
}

.model-card__story-residence {
  font-weight: 500;
}

.model-card__features { display: flex; flex-wrap: wrap; gap: 25px; margin: 15px 0 0 0; }

.model-card__features span { font-size: 14px; color: #121316; display: flex; align-items: center; gap: 5px; line-height: 1; }

.model-card__item {
  display: flex;
  flex-direction: column;
  gap:8px;
  align-items: center;
  justify-content: center;
}

.model-card__item svg {
  width: 25px;
  height: 25px;
}

/* Precio */
.model-card__price {   
  padding: 25px 0;
  border-bottom: 1px solid #d2c8ae; 
}
.model-card__price strong { display: block; font-weight: 500; font-size: 14px; color: #121316; margin-bottom: 5px; }
.model-card__price p { font-size: 45px; font-weight: 500;  margin: 0; color: #121316; line-height: 1;}

.model-card__monthly {
  margin: 0 !important;
  padding: 25px 0;
}

/* Botones */
.model-card__actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-secondary { background: #fff !important; color: #121316 !important; border-color: #fff !important; } 

/* ====== Galería interna (main + thumbs) ====== */
.model-card__gallery { display: flex; flex-direction: column; justify-content: center; gap: 15px; width: 45%; }
.model-gallery-main { width: 100%; overflow: hidden; }
.model-gallery-main .swiper-slide { width: 100% !important; height: 100%; }
.model-gallery-main img { width: 100% !important; height: 100%; display: block; border-radius: 30px; object-fit: cover; aspect-ratio: 1; }

.model-gallery-thumbs { width: 100%; }
.model-gallery-thumbs .swiper-slide {
  width: 22.75% !important; /* 4 thumbs visibles con ~3% total de gaps */
  height: 100%;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.model-gallery-thumbs .swiper-slide-thumb-active { opacity: 1; }
.model-gallery-thumbs img { width: 100%; height: 100%; border-radius: 20px; cursor: pointer; display: block; object-fit: cover; aspect-ratio: 1; }

/* Lots svg planimetria */
[id^="LOT-"] {
  cursor: pointer;
  stroke: 1px solid red;
}

/* Lote vendido (sold) - filtro oscuro */
/* [id^="LOT-"].lot-sold {
  filter: grayscale(1) brightness(0.6) !important;
  opacity: 0.7 !important;
  position: relative;
}
 */
/* Badge SOLD */
.lot-sold-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #c0392b;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 16px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Contenedor de tabs */
/* Contenedor de tabs de estados */
.lot-status-tabs {
  display: flex;
  padding: 10px;
  background: #fff;
  border-radius: 999px;
  overflow-x: auto;
}

/* Quitar barra de scroll en navegadores */
.lot-status-tabs::-webkit-scrollbar {
  display: none;
}

/* Gradiente al final (igual que en models) */
.lot-status-tabs .gradient-right {
    background: linear-gradient(to right, transparent, white);
}

/* Botón/tab */
.lot-status-tab {
  background: white !important;
  color: #121316 !important;
  padding: 10px 20px !important; 
  border: none !important;
  text-transform: uppercase;
  font-weight: 600 !important;
}

/* Activo */
.lot-status-tab.active {
  background: #121316 !important;
  color: #fff !important;
}



/* Responsive */
@media (max-width:1199px) {

  .models-swiper-block {
      padding: 40px 20px;
  }

    .models-swiper-block .models-tabs { 
    width: 100%
  }

  .model-card {
    flex-direction: column;
  }

  .model-card__content {
    padding: 0;
    width: 100%;
  }

  .model-card__gallery {
    width: 100%;
  }

  .model-gallery-main img { aspect-ratio: 16/9; }

  
}
@media (max-width:767px) {
  .model-gallery-main img { aspect-ratio: 1; }

  .gradient-right {
    display: block;
  }

.model-card__content h2 { font-size: 35px;  }

}
