:root{
    --primary:#0D4FA3;
    --primary-dark:#083D7C;
    --gold:#D79A2B;
    --dark:#172033;
    --muted:#667085;
    --bg:#f5f7fb;
    --border:#e5e7eb;
}

*{ box-sizing:border-box; }

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:var(--bg);
    color:var(--dark);
}

a{
    text-decoration:none;
    color:inherit;
}

/* HEADER */
.site-header{
    width:100%;
    background:#fff;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:100;
}

.topbar{
    max-width:1500px;
    height:92px;
    margin:0 auto;
    padding:0 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    width:78px;
    height:78px;
    object-fit:contain;
}

.logo-home,
.logo-solutions{
    font-size:30px;
    font-weight:900;
    letter-spacing:1px;
    line-height:1;
}

.logo-home{ color:var(--primary); }
.logo-solutions{ color:var(--gold); }

nav{
    display:flex;
    align-items:center;
    gap:25px;
}

nav a{
    font-weight:700;
    color:#172033;
}

nav a:hover{
    color:var(--gold);
}

.nav-login{
    background:var(--primary);
    color:#fff !important;
    padding:11px 22px;
    border-radius:12px;
    font-weight:800;
}

.nav-login:hover{
    background:var(--primary-dark);
    color:#fff !important;
}

.social-icons{
    display:flex;
    align-items:center;
    gap:12px;
}

.social-icons a{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#f5f7fb;
    border:1px solid var(--border);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:17px;
    transition:.3s;
}

.social-icons a:hover{
    background:var(--primary);
    color:#fff;
    transform:translateY(-3px);
}

/* HERO */
.hero{
    min-height:470px;
    background:
    linear-gradient(rgba(10,25,50,.58),rgba(10,25,50,.58)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80')
    center/cover;
    color:white;
    padding:70px 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.hero h1{
    font-size:48px;
    line-height:1.15;
    margin:0 0 14px;
    max-width:760px;
}

.hero p{
    font-size:18px;
    font-weight:700;
    line-height:1.4;
    margin:0 0 25px;
    max-width:650px;
}

.hero .searchbox{
    width:100%;
    max-width:760px;
}

/* BUSCADOR */
.searchbox{
    background:white;
    padding:14px;
    border-radius:16px;
    display:flex;
    gap:10px;
    margin:auto;
    box-shadow:0 12px 40px rgba(0,0,0,.2);
}

input,
select,
textarea{
    padding:13px;
    border:1px solid var(--border);
    border-radius:10px;
    font-size:15px;
    width:100%;
}

/* BOTONES */
button,
.btn{
    background:var(--primary);
    color:#fff;
    border:0;
    border-radius:10px;
    padding:13px 18px;
    font-weight:800;
    cursor:pointer;
    transition:.3s;
}

button:hover,
.btn:hover{
    background:var(--primary-dark);
}

.btn.secondary{
    background:#FFF4D8;
    color:var(--gold);
}

/* CONTENEDOR */
.container{
    max-width:1180px;
    margin:35px auto;
    padding:0 20px;
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.section-title h2{
    margin:0;
    font-size:30px;
    color:var(--primary);
}

/* TARJETAS */
.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.card{
    background:white;
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 22px rgba(16,24,40,.06);
    transition:.3s;
}

.card:hover{
    transform:translateY(-4px);
}

.card img{
    width:100%;
    height:210px;
    object-fit:cover;
}

.card-body{
    padding:18px;
}

.tag{
    display:inline-block;
    background:#FFF4D8;
    color:var(--gold);
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.price{
    font-size:42px;
    font-weight:900;
    color:#0D4FA3;
    margin:15px 0;
}

.muted{
    color:var(--muted);
}

.features{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin:12px 0;
    color:#475467;
}

/* FILTROS */
.filters{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:18px;
    margin-bottom:22px;
    display:grid;
    grid-template-columns:2fr 1fr 1fr auto auto;
    gap:12px;
}

/* DETALLE */
.detail{
    display:grid;
    grid-template-columns:1.3fr .7fr;
    gap:28px;
}

.detail-img{
    width:100%;
    height:650px;
    object-fit:contain;
    background:#f5f5f5;
    border-radius:22px;
}

.panel{
    background:white;
    border:1px solid var(--border);
    border-radius:18px;
    padding:22px;
}

/* FORMULARIOS */
.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.form-grid .full{
    grid-column:1/-1;
}

/* STATS */
.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-top:-55px;
    position:relative;
}

.stat{
    background:white;
    border-radius:16px;
    padding:22px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.1);
}

/* LOGIN / REGISTRO */
.auth-page{
    min-height:calc(100vh - 220px);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:60px 20px;
}

.auth-card{
    width:100%;
    max-width:470px;
    background:#fff;
    border-radius:22px;
    padding:35px;
    border:1px solid var(--border);
    box-shadow:0 15px 45px rgba(15,23,42,.08);
}

.auth-card h1{
    margin-top:0;
    margin-bottom:10px;
    color:#172033;
    font-size:38px;
}

.auth-card p{
    margin-bottom:25px;
}

.auth-card input{
    margin-bottom:15px;
}

.btn-login,
.auth-card button{
    width:100%;
    height:52px;
    border-radius:12px;
}

.auth-link{
    margin-top:22px;
    text-align:center;
    color:var(--muted);
}

.auth-link a,
.link{
    color:var(--primary);
    font-weight:800;
}

.alert{
    padding:12px 15px;
    border-radius:10px;
    margin-bottom:18px;
}

.alert.error{
    background:#FEE2E2;
    color:#991B1B;
}

.center{
    text-align:center;
}

/* FOOTER */
.footer{
    margin-top:50px;
    background:#101828;
    color:#d0d5dd;
    text-align:center;
    padding:28px;
}

.footer strong{
    color:var(--gold);
}

/* RESPONSIVE */
@media(max-width:850px){
    .topbar{
        height:auto;
        flex-direction:column;
        padding:16px;
    }

    .logo img{
        width:68px;
        height:68px;
    }

    .logo-home,
    .logo-solutions{
        font-size:22px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .social-icons{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero{
        min-height:420px;
        padding:40px 20px;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:16px;
    }

    .searchbox,
    .filters,
    .detail,
    .form-grid{
        display:block;
    }

    .searchbox > *,
    .filters > *{
        margin-bottom:10px;
    }

    .grid,
    .stats{
        grid-template-columns:1fr;
    }

    .detail-img{
        height:280px;
    }
}
.property-detail{
    max-width:1450px;

    margin:40px auto;

    display:grid;

    grid-template-columns:minmax(0,1fr) 360px;

    gap:32px;

    align-items:start;
}

.property-gallery{
    display:flex;
    flex-direction:column;
    gap:18px;
    min-width:0;
}

.thumbs{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom:6px;
}

.thumb-img{
    width:135px;
    height:90px;
    object-fit:cover;
    border-radius:12px;
    cursor:pointer;
    border:3px solid transparent;
    transition:.25s;
}

.thumb-img:hover,
.thumb-img.active{
    border-color:var(--primary);
    transform:translateY(-2px);
}

.property-side{
    position:sticky;
    top:120px;
    width:100%;
    max-width:360px;
}
.property-side hr{
    border:0;
    border-top:1px solid var(--border);
    margin:18px 0;
}

@media(max-width:850px){
    .property-detail{
        grid-template-columns:1fr;
    }

    .property-side{
        position:static;
    }

    .thumb-img{
        width:95px;
        height:68px;
    }
}
.property-side input:not([type="checkbox"]),
.property-side input:not([type="radio"]),
.property-side textarea{
    width:100%;
    margin-bottom:14px;
}

.property-side button{
    width:100%;
    height:52px;
    font-size:16px;
}
.container.property-detail{
    max-width:1450px;
}
/* HOME PREMIUM CARDS */
.premium-card{
    position:relative;
    border-radius:22px;
    overflow:hidden;
    border:1px solid #e5e7eb;
}

.premium-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(15,23,42,.14);
}

.premium-img{
    position:relative;
    overflow:hidden;
}

.premium-img img{
    height:245px;
    transition:transform .45s ease;
}

.premium-card:hover .premium-img img{
    transform:scale(1.08);
}

.premium-badge{
    position:absolute;
    top:14px;
    left:14px;
    background:rgba(13,79,163,.92);
    color:#fff;
    padding:8px 13px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.premium-features{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:14px 0;
}

.premium-features span{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    padding:7px 10px;
    border-radius:999px;
    font-size:13px;
    color:#475467;
    font-weight:700;
}

.premium-card .price{
    font-size:30px;
    margin:15px 0;
}
.privacy-check{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:15px 0 20px;
    font-size:14px;
    line-height:1.45;
    color:#172033;
}
.privacy-check input[type="checkbox"]{
    width:18px;
    height:18px;
    min-width:18px;
    margin-top:2px;
    cursor:pointer;
}

.privacy-check span{
    flex:1;
}

.privacy-check a{
    color:#0D4FA3;
    font-weight:700;
    text-decoration:none;
}

.privacy-check a:hover{
    text-decoration:underline;
}
