/* === Paleta de lujo === */
:root{
  --lux-dark: #0f0f0f;
  --lux-gold: #c7a265;
  --lux-gold-2: #b99657;
  --lux-ink: #1a1a1a;
}

/* Contenedor principal más elegante */
.casa-detalles{
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.12);
  overflow: hidden;
  padding: 0;
}

/* === HERO === */
.property-hero .hero-media{
  position: relative;
  height: clamp(320px, 48vw, 520px);
  overflow: hidden;
}
.property-hero .hero-media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%);
}
.hero-badges{
  position:absolute; top:18px; left:20px; display:flex; gap:10px; z-index:2;
}
.badge{
  padding:8px 12px; border-radius:999px; font-size:.85rem; letter-spacing:.3px; backdrop-filter: blur(4px);
  border:1px solid rgba(255,255,255,.2);
}
.badge-gold{ color:#111; background: linear-gradient(135deg, var(--lux-gold), var(--lux-gold-2)); }
.badge-dark{ color:#fff; background: rgba(0,0,0,.35); }

.hero-title{
  position:absolute; left:24px; bottom:24px; z-index:2; color:#fff;
}
.hero-title h1{
  font-size: clamp(28px, 4.2vw, 48px);
  margin:0 0 6px 0;
  font-weight:800;
  letter-spacing:.4px;
  text-shadow: 0 6px 18px rgba(0,0,0,.4);
}

.hero-title p{ margin:0; opacity:.9; font-weight:500; }

.hero-price{
  position:absolute; right:24px; bottom:24px; z-index:2;
  background: rgba(0,0,0,.45);
  color:#fff; padding:12px 18px; border-radius:12px; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  font-weight:800; letter-spacing:.3px;
}

/* ===== Ajustes responsive para HERO ===== */

/* Tablet y móvil */
@media (max-width: 768px){
  .property-hero .hero-media{
    height: clamp(260px, 55vw, 380px); /* un poco más compacto */
  }

  .hero-badges{
    top: 10px;
    left: 10px;
    right: 10px;               /* permite wrap dentro del ancho */
    display: flex;
    flex-wrap: wrap;           /* 👉 ya no se amontonan */
    gap: 6px;
  }
  .badge{
    padding: 6px 10px;
    font-size: .78rem;
    border-radius: 999px;
  }

  .hero-title{
    left: 12px;
    bottom: 56px;              /* deja espacio al precio */
  }
  .hero-title h1{
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 4px;
  }
  .hero-title p{
    font-size: .9rem;
    opacity: .9;
  }

  


}

/* Ultra-móvil (muy angosto): el precio sale del overlay y va debajo del hero */
@media (max-width: 420px){
  .hero-title{
    left: 10px;
    bottom: 66px;              /* un poco más de aire */
  }
  .hero-price{
    position: left;          /* 👉 sale del overlay */
    display: inline-block;
    margin: 8px 10px 0 10px;   /* aparece bajo la imagen */
    background: #111;          /* contraste sólido */
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 800;
  }
  /* Opcional: compacta badges y título un poco más */
  .badge{ font-size: .75rem; padding: 5px 8px; }
  .hero-title h1{ font-size: clamp(20px, 6.5vw, 26px); }
  .hero-title p{ font-size: .85rem; }
}

/* Ajuste de hero-title para móviles */
@media (max-width: 768px){
  .hero-title h1{
    font-size: clamp(8px, 5vw, 2px); /* mucho más pequeño */
  }
  .hero-title p{
    font-size: 0.85rem; /* subtítulo más compacto */
  }
}

@media (max-width: 420px){
  .hero-title h1{
    font-size: clamp(16px, 5.5vw, 2px);
  }
  .hero-title p{
    font-size: 0.8rem;
  }
}

/* Carrusel de imagenes*/

/* CONTROLES (prev/next) */
#carouselExampleCaptions .carousel-control-prev,
#carouselExampleCaptions .carousel-control-next {
  width: 15%;
  opacity: .5;
  transition: opacity .15s ease;
}

#carouselExampleCaptions .carousel-control-prev:hover,
#carouselExampleCaptions .carousel-control-next:hover {
  opacity: .9;
}

/* Iconos de flecha (2rem) con SVG blanco */
#carouselExampleCaptions .carousel-control-prev-icon,
#carouselExampleCaptions .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  background-size: 100% 100%;
}

#carouselExampleCaptions .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3E%3C/svg%3E");
}

#carouselExampleCaptions .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
}

/* INDICADORES (rayitas) */
#carouselExampleCaptions .carousel-indicators [data-bs-target] {
  width: 30px;
  height: 3px;
  margin: 3px;
  opacity: .5;
  background-color: #fff;
  transition: opacity .6s ease;
  border: 0;
  border-radius: 2px;
}

#carouselExampleCaptions .carousel-indicators .active {
  opacity: 1;
  background-color: #fff;
}

/* “Hit area” más alta (clic más cómodo) */
#carouselExampleCaptions .carousel-indicators {
  margin-bottom: 1rem;
  padding: 3.5px 0; /* ~ (10px de altura total) / 2 */
}

/* CAPTIONS */
#carouselExampleCaptions .carousel-caption {
  width: 70%;
  color: #fff;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* Transición de desplazamiento */
#carouselExampleCaptions .carousel-item {
  transition: transform .6s ease-in-out;
}

#carouselExampleCaptions .carousel-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.35) 60%, rgba(0,0,0,.55));
  pointer-events: none;
}
#carouselExampleCaptions .carousel-item { position: relative; }


/* === CARD DE INFORMACIÓN === */
.luxury-card{
  margin: clamp(16px, 3vw, 28px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(0,0,0,.08);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #efefef;
}
/* ===== Layout base (ya lo tienes) ===== */
/* ===== Base ===== */
.specs-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-bottom:1px dashed #e9e9e9;
  padding-bottom:16px;
  margin-bottom:18px;
}
.spec{
  background:#fcfcfc;
  border: 1px solid #eee;
  border-radius:12px;
  padding:12px 14px;
  display:grid;
  grid-template-columns: 28px 1fr auto;
  align-items:center;
  gap:10px;
}
.spec i{ color: var(--lux-gold); font-size:18px; }
.spec span{ color:#666; font-size:.9rem; }
.spec strong{ color:#222; font-size:1rem; }

/* ===== Ajustes tablet ===== */
@media (max-width: 1024px){
  .specs-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* ===== Ajustes móvil ===== */
@media (max-width: 768px){
  .specs-grid{
    grid-template-columns: 1fr;
  }
  .spec{
    display:flex;
    flex-direction: row;
    align-items: flex-start;
    gap:12px;
    padding:12px;
  }
  .spec i{
    flex-shrink: 0;
    font-size:16px;
    margin-top: 2px;
  }
  .spec span, .spec strong{
    display:block;
    font-size: .95rem;
    line-height: 1.3;
  }
  .spec span{
    color:#666;
  }
  .spec strong{
    font-weight:600;
    color:#111;
    margin-top:2px;
  }
}

/* ===== Ajustes extra para pantallas muy pequeñas ===== */
@media (max-width: 420px){
  .spec{
    flex-direction: column;       /* icono arriba, texto abajo */
    align-items: flex-start;
    gap:6px;
  }
  .spec i{
    font-size:15px;
    margin:0;
  }
  .spec span, .spec strong{
    font-size:.9rem;
    line-height:1.2;
  }
}


/* ===== Micro-ajustes en pantallas muy pequeñas (<= 420px) ===== */
@media (max-width: 720px){
  .spec{
    padding:10px 12px;
    gap:8px;
  }
  .spec i{ font-size:15px; }
  .spec span{ font-size:.95rem; }
  .spec strong{ font-size:1.02rem; }
}

/* Texto */
.lux-body h2{
  text-align:left; font-size: clamp(24px, 3.2vw, 32px); margin: 4px 0 10px; color:#111; font-weight:800;
}
.lux-body p{
  color:#444; line-height:1.8; text-align:justify; margin: 0 0 16px;
}

/* Botones */
.cta-row{
  display:flex; gap:12px; flex-wrap:wrap; margin-top: 6px;
}
.btn{
  display:inline-flex; align-items:center; gap:10px; cursor:pointer; text-decoration:none;
  padding:12px 18px; border-radius:12px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-weight:700; letter-spacing:.3px;
}
.btn-primary{
  color:#111; background: linear-gradient(135deg, var(--lux-gold), var(--lux-gold-2));
  box-shadow: 0 10px 20px rgba(199,162,101,.28);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 26px rgba(199,162,101,.32); }
.btn-ghost{
  color:#222; background:#fff; border:1px solid #e6e6e6;
}
.btn-ghost:hover{ background:#f8f8f8; transform: translateY(-2px); }

/* === GALERÍA SECUNDARIA === */
.casa-imagenes {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.casa-imagenes .imagen-item {
  flex: 1 1 250px;
  max-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.casa-imagenes .imagen-item img {
  width: 100%;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

/* === Responsive === */
@media (max-width: 1024px){
  .specs-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery .nav{ width:40px; height:40px; font-size:20px; }
}
@media (max-width: 768px){
  .casa-imagenes{ flex-direction: column; }
  .casa-imagenes .imagen-item{ max-width: 90%; }
  .thumbnails li{ flex-basis: 100px; height: 70px; }
  .thumb-nav{ width: 34px; height: 34px; }
}
@media (max-width: 640px){
  .specs-grid{ grid-template-columns: repeat(2, 1fr); }
}
