:root{--dark:#17212b;--orange:#ff5b0a}*{box-sizing:border-box}body{margin:0;font:15px Montserrat,Arial,sans-serif;color:var(--dark)}a{text-decoration:none;color:inherit}.wrap{max-width:1140px;margin:auto;padding:0 20px}.top{display:flex;justify-content:space-between;align-items:center;max-width:1180px;margin:auto;padding:14px 20px}.top img{max-width:150px;max-height:85px;object-fit:contain}.top nav a{margin-left:25px}.hero{background:linear-gradient(100deg,#17212bee,#17212b9a),url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1600&q=75') center/cover;color:white;padding:105px 0}.hero h1{font-size:clamp(35px,5vw,60px);max-width:800px;line-height:1.12}.hero em{color:#ff7a35;font-style:normal}main h2{font-size:29px}#propiedades{padding-top:50px;padding-bottom:75px}.search{display:flex;flex-wrap:wrap;gap:10px;background:#f4f5f5;padding:18px;border-radius:9px}.search input,.search select{padding:13px;border:1px solid #d8dce0;border-radius:5px;flex:1;min-width:170px;font:inherit}.search button,.cta{background:var(--orange);border:0;color:white;padding:14px 23px;border-radius:5px;font:inherit;cursor:pointer}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:28px}.card{border:1px solid #ececec;border-radius:9px;overflow:hidden;box-shadow:0 6px 20px #0000000a}.photo{height:225px;background:#e8ebee;display:grid;place-items:center;color:#8d949b}.photo img{width:100%;height:100%;object-fit:cover}.info{padding:20px}.info h3{margin:10px 0}.info p{color:#717981}.info strong{color:var(--orange);font-size:21px}.tag{font-size:12px;text-transform:uppercase;font-weight:700}.empty{text-align:center;padding:70px 10px;color:#777}.contact{background:var(--dark);color:white;text-align:center;padding:65px 0}.contact p{margin:24px 0}footer{text-align:center;padding:24px;color:#777;font-size:12px}.detail{max-width:1080px;margin:40px auto;padding:0 20px}.detail h1{font-size:36px}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.gallery img{width:100%;height:150px;object-fit:cover;border-radius:5px}.gallery img:first-child{grid-column:span 4;height:420px}.detail .price{color:var(--orange);font-size:30px;font-weight:800}.detail .desc{white-space:pre-wrap;line-height:1.8}@media(max-width:800px){.cards{grid-template-columns:repeat(2,1fr)}.gallery img:first-child{height:300px}}@media(max-width:580px){.cards{grid-template-columns:1fr}.top nav{font-size:12px}.hero{padding:65px 0}.gallery{grid-template-columns:repeat(2,1fr)}.gallery img:first-child{grid-column:span 2;height:250px}}

.wa-floating{position:fixed;right:22px;bottom:22px;z-index:1000;width:56px;height:56px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 18px #0003;transition:transform .15s}.wa-floating:hover{transform:translateY(-2px)}.wa-floating svg{width:32px;height:32px}@media(max-width:580px){.wa-floating{right:16px;bottom:16px;width:52px;height:52px}}

/* DIP: tarjetas de propiedades, contenido separado de la fotografía */
#propiedades .cards .card{display:flex;flex-direction:column;min-width:0;background:#fff;overflow:hidden}
#propiedades .cards .card>.photo{position:relative;display:block;width:100%;height:auto;aspect-ratio:1/1;overflow:hidden;background:#f2f3f4}
#propiedades .cards .card>.photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
#propiedades .cards .card>.info{position:static!important;inset:auto!important;transform:none!important;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:17px 19px 19px;background:#fff!important;color:#17212b!important;flex:1;min-height:155px}
#propiedades .cards .card>.info .tag{display:block;position:static!important;background:none!important;color:#6a737c!important;font-size:11px;line-height:1.4;letter-spacing:.025em;margin:0}
#propiedades .cards .card>.info h3{position:static!important;font-size:17px;line-height:1.35;margin:0!important;color:#17212b!important}
#propiedades .cards .card>.info p{position:static!important;color:#737b83!important;font-size:13px;line-height:1.45;margin:0!important}
#propiedades .cards .card>.info strong{position:static!important;display:block;color:#ff5b0a!important;font-size:19px;line-height:1.3;margin-top:auto;padding-top:6px}
@media(max-width:580px){#propiedades .cards .card>.info{min-height:0}}


/* DIP: galería de la ficha individual. Independiente de las tarjetas del inicio. */
.detail .gallery.gallery-dip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}
.detail .gallery.gallery-dip>a.gallery-dip-item{display:block;position:relative;min-width:0;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:7px;grid-column:auto;grid-row:auto;background:#f1f2f3}
.detail .gallery.gallery-dip>a.gallery-dip-item:first-child{grid-column:span 2;grid-row:span 2}
.detail .gallery.gallery-dip>a.gallery-dip-item>img,
.detail .gallery.gallery-dip>a.gallery-dip-item>img:first-child{display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;border-radius:0;grid-column:auto;grid-row:auto}
@media(max-width:680px){
 .detail .gallery.gallery-dip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .detail .gallery.gallery-dip>a.gallery-dip-item:first-child{grid-column:span 2;grid-row:auto}
}

/* Efecto hover - Tarjetas de propiedades DIP */

.card {
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.card .photo {
    overflow: hidden;
}

.card .photo img {
    transition: transform .35s ease;
}

.card:hover .photo img {
    transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
    .card, .card .photo img {
        transition: none;
    }
}

