/* 🎨 Estilo general - Inmobiliaria Walter Dupuy */
:root{
  --accent:#e30013; --bg:#f8f8f8; --text:#222; --muted:#666;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:"Poppins", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

h1,h2,h3{
  font-weight:600;
  color:#1f1f1f;
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:20px;
}

/* ---------- HERO + CARRUSEL ---------- */
.hero{ position:relative; overflow:hidden; }

.carousel{
  position:relative;
  width:100%;
  height:70vh;
}

.carousel .slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1s ease-in-out;
}

.carousel .slide.active{
  opacity:1;
  z-index:2;
}

.carousel img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Flechas */
.carousel .nav{
  position:absolute;
  top:50%;
  left:0;
  right:0;
  display:flex;
  justify-content:space-between;
  transform:translateY(-50%);
  z-index:10;
}

.carousel .nav button{
  background:rgba(0,0,0,.5);
  border:none;
  color:#fff;
  font-size:2rem;
  cursor:pointer;
  padding:10px 20px;
  border-radius:6px;
  transition:background .3s;
}

.carousel .nav button:hover{ background:rgba(0,0,0,.8); }

/* Panel de búsqueda */
.search-panel{
  position:absolute;
  left:50%;
  bottom:40px;
  transform:translateX(-50%);
  background:rgba(255,255,255,.95);
  padding:20px;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.3);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  z-index:20;
}

.search-panel select,
.search-panel button{
  padding:10px 15px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:.9rem;
}

.search-panel button{
  background:#e30013;
  color:#fff;
  border:none;
  cursor:pointer;
  transition:background .3s;
}

.search-panel button:hover{ background:#c10011; }

/* ---------- LISTADO ---------- */
.listing{
  background:#fff;
  padding:50px 20px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:25px;
  margin-top:30px;
}

.prop-card{
  background:#fff;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  overflow:hidden;
  transition:transform .3s ease;
}

.prop-card:hover{ transform:translateY(-5px); }

.prop-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.prop-card h3{
  margin:10px;
  font-size:1.1rem;
}

.prop-meta{
  margin:0 10px;
  font-size:.9rem;
  color:#555;
}

.badge{
  display:inline-block;
  background:#e30013;
  color:#fff;
  border-radius:6px;
  padding:5px 10px;
  font-weight:600;
}

/* Botones genéricos */
.btn{
  display:inline-block;
  padding:8px 15px;
  background:#1f1f1f;
  color:#fff;
  border-radius:6px;
  text-decoration:none;
  font-size:.9rem;
  margin-right:6px;
  transition:background .3s;
}

.btn:hover{ background:#e30013; }

/* ---------- BOTÓN WHATSAPP SVG EMBEBIDO ---------- */
.wa-float,
.whatsapp-float{
  position:fixed;
  bottom:25px;
  right:25px;
  width:60px;
  height:60px;
  border-radius:50%;
  background:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,0.3);
  z-index:9999;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-float:hover,
.whatsapp-float:hover{
  transform:scale(1.1);
  box-shadow:0 4px 12px rgba(0,0,0,0.4);
}

.wa-float svg,
.whatsapp-float svg{
  width:30px;
  height:30px;
  fill:#fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:768px){
  .carousel{ height:50vh; }
  .search-panel{
    width:90%;
    bottom:20px;
    flex-direction:column;
  }
  .wa-float,
  .whatsapp-float{
    right:15px;
    bottom:15px;
    width:55px;
    height:55px;
  }
  .wa-float svg,
  .whatsapp-float svg{
    width:26px;
    height:26px;
  }
}
