/* /assets/css/home.css (Minimal blanco + hero fotográfico editorial) */

.home-hero{
  position: relative;
  border-radius: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  min-height: 520px;
  background: #111;
  box-shadow: var(--shadow-soft);
}

/* Foto */
.home-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: url("/assets/img/hero-home.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

/* Overlay (sutil, tipo Sotheby's) */
.home-hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.20) 45%, rgba(0,0,0,.35) 100%),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.05) 100%);
}

.home-hero .hero-inner{
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 56px 36px;
}

.hero-kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(6px);
  font-size: .9rem;
}

.hero-title{
  font-size: clamp(2.0rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  margin-top: 14px;
  margin-bottom: 12px;
  letter-spacing: .2px;
}

.hero-sub{
  max-width: 46ch;
  font-size: 1.05rem;
  opacity: .92;
}

.hero-actions .btn{
  border-radius: 999px !important;
  padding: 10px 16px;
  font-weight: 600;
}

.hero-actions .btn-light{
  background: rgba(255,255,255,.92) !important;
  border: none !important;
}

.hero-actions .btn-outline-light{
  border-color: rgba(255,255,255,.80) !important;
}

.search-bar{
  margin-top: -26px;
  position: relative;
  z-index: 5;
}

.search-card{
  border-radius: var(--radius-xl) !important;
  border: 1px solid rgba(23,23,23,.10) !important;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17,17,17,.08);
}

.section-sub{
  color: var(--norte-muted);
  font-size:.95rem;
}

.property-card{
  border-radius: var(--radius-xl) !important;
  overflow:hidden;
}

.property-card img{
  height: 190px;
  object-fit: cover;
  transition: transform .5s ease;
}
.property-card:hover img{
  transform: scale(1.03);
}

.badge-pill{
  border-radius: 999px !important;
  font-weight: 700;
  letter-spacing: .3px;
}

.badge-sale{
  background: rgba(107,74,47,.10) !important;
  color: var(--norte-brown) !important;
  border: 1px solid rgba(107,74,47,.20) !important;
}

.badge-rent{
  background: rgba(199,176,138,.22) !important;
  color: var(--norte-dark) !important;
  border: 1px solid rgba(107,74,47,.15) !important;
}

.icon-pill{
  width: 44px; height: 44px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  background: #fff;
  border: 1px solid rgba(23,23,23,.10);
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.feature-row{
  color: var(--norte-muted);
  font-size: .9rem;
}


/* Responsive tweaks */
@media (max-width: 768px){
  .home-hero{ min-height: 460px; }
  .home-hero .hero-inner{ padding: 38px 18px; }
}

@media (max-width: 576px){
  /* Hero: menos altura, más aire y botones 100% */
  .home-hero{ min-height: 420px; }
  .home-hero::before{ background-position: 70% 30%; }
  .home-hero .hero-inner{ padding: 28px 16px; }

  .hero-kicker{
    font-size: .82rem;
    line-height: 1.2;
    max-width: 100%;
    white-space: normal;
  }

  .hero-title{
    font-size: clamp(1.9rem, 7.2vw, 2.6rem);
  }

  .hero-sub{ font-size: 1rem; }

  .hero-actions{ width: 100%; }
  .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }

  /* La tarjeta de búsqueda estaba muy "pegada" al hero */
  .search-bar{ margin-top: -14px; }
  .search-card{ box-shadow: 0 14px 28px rgba(17,17,17,.08); }
}
/* ===== CTA HOME ===== */
.home-cta{
  background:#fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  overflow: hidden;          /* clave para que el recorte sea limpio */
}

.home-cta .cta-inner{
  padding: 28px 28px;
}

.home-cta .cta-hero{
  width: 100%;
  min-height: 220px;         /* evita la “franja” */
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.12)),
    url("../img/cta-home.jpg");  /* <-- cambia a tu imagen real */
  background-size: cover;
  background-position: center;
}

@media (min-width: 992px){
  .home-cta{
    min-height: 260px;
  }
  .home-cta .cta-inner{
    padding: 34px 40px;
  }
  .home-cta .cta-hero{
    min-height: 260px;
  }
}

/* Mobile: que primero vaya el texto y luego la imagen */
@media (max-width: 991.98px){
  .home-cta .cta-hero{
    margin-top: 14px;
    min-height: 200px;
  }
}