*{
margin:0;
padding:0;
box-sizing:border-box;
}

:root{
--primary-color:#1d3557;
--secondary-color:#e76f51;
--accent-color:#2a9d8f;
--text-color:#273043;
--light-gray:#f4f7fb;
--border-color:#dce3ec;
--white:#ffffff;
--shadow:0 16px 35px rgba(17,24,39,0.08);
--border-radius:14px;
}

body{
font-family:'Inter','Segoe UI',sans-serif;
line-height:1.6;
color:var(--text-color);
background:linear-gradient(180deg,#f7faff 0%,#eef3f8 100%);
}

.container{
max-width:1200px;
margin:auto;
padding:0 20px;
}

.header{
background:rgba(255,255,255,.92);
backdrop-filter:blur(10px);
border-bottom:1px solid rgba(220,227,236,.85);
position:fixed;
width:100%;
top:0;
z-index:1000;
}

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:.9rem 0;
gap:1.5rem;
}

.logo{
font-size:1.25rem;
font-weight:700;
color:var(--primary-color);
text-decoration:none;
display:flex;
align-items:center;
gap:.6rem;
}

.nav-menu{
display:flex;
list-style:none;
gap:1.2rem;
align-items:center;
}

.nav-menu a{
text-decoration:none;
color:var(--text-color);
font-weight:600;
padding:.55rem .85rem;
border-radius:10px;
transition:.25s;
}

.nav-menu a:hover{
color:var(--primary-color);
background:rgba(42,157,143,.12);
}

.mobile-menu-btn{
display:none;
background:none;
border:none;
font-size:1.35rem;
cursor:pointer;
color:var(--primary-color);
}

.hero{
background:linear-gradient(135deg,#1d3557 0%,#244b7a 55%,#2a9d8f 100%);
color:white;
padding:150px 0 80px;
text-align:center;
margin-top:70px;
position:relative;
overflow:hidden;
}

.hero::before{
content:'';
position:absolute;
inset:0;
background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.18),transparent 40%),
radial-gradient(circle at 90% 80%,rgba(255,255,255,.12),transparent 35%);
pointer-events:none;
}

.hero h1{
font-size:2.5rem;
margin-bottom:1rem;
}

.hero p{
font-size:1.2rem;
margin-bottom:2rem;
}

.search-bar{
display:flex;
gap:10px;
justify-content:center;
flex-wrap:wrap;
max-width:600px;
margin:auto;
}

.search-bar input,
.search-bar select{
padding:12px;
border:1px solid transparent;
border-radius:var(--border-radius);
flex:1;
min-width:200px;
outline:none;
box-shadow:0 8px 16px rgba(20,27,45,0.12);
}

.search-bar input:focus,
.search-bar select:focus{
border-color:var(--accent-color);
}

.btn-primary{
background:var(--secondary-color);
color:white;
border:none;
padding:12px 24px;
border-radius:var(--border-radius);
cursor:pointer;
text-decoration:none;
font-weight:600;
transition:.25s;
}

.btn-primary:hover{
background:#cf5c40;
transform:translateY(-1px);
}

.featured-properties{
padding:80px 0;
background:white;
}

.featured-properties h2{
text-align:center;
margin-bottom:3rem;
font-size:2rem;
color:var(--primary-color);
position:relative;
padding-bottom:12px;
}

.featured-properties h2::after{
content:'';
position:absolute;
left:50%;
bottom:0;
transform:translateX(-50%);
width:88px;
height:4px;
border-radius:20px;
background:linear-gradient(90deg,var(--accent-color),var(--secondary-color));
}

.properties-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:2rem;
}

.property-card{
background:white;
border-radius:var(--border-radius);
overflow:hidden;
box-shadow:var(--shadow);
border:1px solid var(--border-color);
display:flex;
flex-direction:column;
height:100%;
transition:.3s;
position:relative;
}

.property-card:hover{
transform:translateY(-5px);
box-shadow:0 20px 40px rgba(0,0,0,.15);
border-color:rgba(42,157,143,.35);
}

.property-image{
width:100%;
height:230px;
overflow:hidden;
position:relative;
background:#eee;
}

.property-image img{
width:100%;
height:100%;
object-fit:cover;
display:block;
transition:.4s;
}

.property-card:hover img{
transform:scale(1.08);
}

.badge-operacion,
.badge-tipo{
position:absolute;
color:white;
padding:5px 10px;
border-radius:20px;
font-size:12px;
font-weight:600;
}

.badge-operacion{
top:10px;
right:10px;
background:var(--secondary-color);
box-shadow:0 8px 20px rgba(231,111,81,.35);
}

.badge-tipo{
top:10px;
left:10px;
background:var(--accent-color);
box-shadow:0 8px 20px rgba(42,157,143,.32);
}

.property-info{
padding:20px;
display:flex;
flex-direction:column;
flex:1;
}

.property-price{
font-size:26px;
font-weight:bold;
color:var(--secondary-color);
margin-bottom:5px;
}

.property-title{
font-size:18px;
margin-bottom:5px;
}

.property-location{
color:#667085;
font-size:14px;
margin-bottom:10px;
display:flex;
align-items:center;
gap:6px;
}

.property-features{
display:flex;
gap:15px;
font-size:14px;
color:#666;
margin-bottom:15px;
flex-wrap:wrap;
}

.btn-ver{
margin-top:auto;
border:2px solid var(--primary-color);
padding:10px 20px;
border-radius:6px;
text-decoration:none;
color:var(--primary-color);
font-weight:500;
transition:.3s;
text-align:center;
background:linear-gradient(120deg,transparent 0%,transparent 50%,rgba(29,53,87,.08) 100%);
}

.btn-ver:hover{
background:var(--primary-color);
color:white;
}

.footer{
background:#111827;
color:white;
margin-top:60px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:40px;
padding:50px 0;
}

.footer-logo{
font-size:22px;
margin-bottom:10px;
}

.footer-desc{
opacity:.8;
margin-bottom:20px;
line-height:1.6;
}

.footer-col h4{
margin-bottom:15px;
}

.footer-col ul{
list-style:none;
padding:0;
}

.footer-col ul li{
margin-bottom:10px;
}

.footer-col ul a{
color:white;
text-decoration:none;
opacity:.8;
}

.footer-col ul a:hover{
opacity:1;
}

.footer-col p{
margin-bottom:10px;
opacity:.9;
}

.footer-col i{
margin-right:8px;
}

.social-icons{
display:flex;
gap:12px;
margin-top:10px;
}

.social-icons a{
width:40px;
height:40px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
color:white;
font-size:18px;
transition:.3s;
}

.facebook{ background:#1877f2; }
.instagram{ background:#e1306c; }
.linkedin{ background:#0a66c2; }

.social-icons a:hover{
transform:scale(1.1);
}

.btn-whatsapp-footer{
display:inline-block;
background:#25d366;
color:white;
padding:10px 16px;
border-radius:6px;
text-decoration:none;
margin-top:10px;
}

.btn-whatsapp-footer:hover{
background:#1ebe5d;
}

.footer-bottom{
text-align:center;
border-top:1px solid rgba(255,255,255,.1);
padding:20px 0;
font-size:14px;
opacity:.7;
}

@media(max-width:768px){
.nav-menu{
display:none;
position:absolute;
top:74px;
left:20px;
right:20px;
background:white;
padding:14px;
border-radius:14px;
box-shadow:var(--shadow);
border:1px solid var(--border-color);
flex-direction:column;
gap:.45rem;
}

.nav-menu.active{
display:flex;
}

.nav-menu a{ width:100%; }
.mobile-menu-btn{ display:block; }
.hero{ padding:120px 0 60px; }
.properties-grid{ grid-template-columns:1fr; }
.footer-grid{ gap:30px; }
}

@media(max-width:480px){
.container{ padding:0 15px; }
.hero h1{ font-size:1.8rem; }
.property-features{ gap:.6rem; }
}
