/*=====================================================
=                    COLORES                          =
=====================================================*/

:root{

    --verde:#0F5A43;
    --verde-oscuro:#073F31;
    --verde-profundo:#052F25;
    --verde-claro:#3B8D6A;

    --dorado:#C8A64B;
    --dorado-hover:#B9922F;

    --crema:#F7F5EE;

    --texto:#26322D;
    --gris:#6B746F;

    --blanco:#FFFFFF;

}

/*=====================================================
=                    GENERAL                          =
=====================================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--crema);

    color:var(--texto);

}

.btn-green{

    background-color: var(--verde);

    color: var(--blanco);

}

/*=====================================================
=                    NAVBAR                           =
=====================================================*/
.header-fixed{

    position: sticky;

    top: 0;

    z-index: 1050;

}
.navbar{

    background:rgba(7,63,49,.92);

    backdrop-filter:blur(18px);

    transition:.4s;

    border-bottom:1px solid rgba(255,255,255,.08);

    min-height:90px;

    position: sticky;

    top: 42px;

    z-index: 1030;

}

.navbar-brand img{

    width:65px;

    height:65px;

    object-fit:cover;

    border-radius:50%;

}

.navbar .nav-link{

    color:white;

    font-weight:500;

    margin-left:10px;

    transition:.3s;

}

.navbar .nav-link:hover{

    color:var(--dorado);

}

.btn-gold{

    background:var(--dorado);

    color:#072F24;

    font-weight:700;

    border:none;

    padding:12px 28px;

    border-radius:14px;

    transition:.35s;

}

.btn-gold:hover{

    background:var(--dorado-hover);

    color:white;

    transform:translateY(-2px);

}

/*=====================================================
=                    HERO                             =
=====================================================*/

.hero{

    min-height:90vh;

    display:flex;

    align-items:flex-start;

    position:relative;

    overflow:hidden;


}


.hero::after{

    content:"";

    position:absolute;

    width:100%;

    height:160px;

    left:0;

    bottom:0;

    background:

        linear-gradient(

            transparent,

            rgba(247,245,238,.95)

        );

}

.hero h1{

    font-size:clamp(3rem,6vw,5.4rem);

    font-weight:800;

    line-height:1.05;

    max-width:650px;

    margin-bottom:30px;

}

.hero h1 span{

    color:var(--dorado);

}

.hero p{

    font-size:1.25rem;

    line-height:1.8;

    max-width:620px;

    color:rgba(255,255,255,.92);

}

/*=====================================================
=                FOTO HERO                            =
=====================================================*/

.hero-photo-container {

    width: 100%;
    height: 510px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    background: #f7f5ee;

    border-top-right-radius: 25px;
    border-bottom-left-radius: 25px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, .18);
    background:linear-gradient(
        90deg,
        rgba(247,245,238,.95),
        rgba(240,236,224,.95)
    );
}

.hero-photo {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

}

@media (max-width: 991px) {

    .hero {

        text-align: center;

    }

    .hero-photo-container {

        margin: 40px auto 0;
        max-width: 400px;

    }

    .hero-photo {

        width: 100%;
        display: block;
        margin: 0 auto;

    }

}
/*=====================================================
=                    BUSCADOR                         =
=====================================================*/

.search-box{

    margin-top:-75px;

    position:relative;

    z-index:20;

}

.search-card{

    background:white;

    border-radius:25px;

    padding:25px;

    box-shadow:

        0 25px 60px rgba(0,0,0,.18);

}

.search-card select{

    height:58px;

    border-radius:14px;

}

.search-card button{

    height:58px;

    border-radius:14px;

}

/*=========================================================
                        TOP BAR
=========================================================*/

.top-bar{

    position: sticky;

    top: 0;

    z-index: 1031;

    background: #111518;

    color: var(--blanco);

    height: 42px;

    display: flex;

    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,.08);

}

.top-contact{

    display:flex;

    align-items:center;

    gap:35px;

}

.top-contact a{

    color:var(--blanco);

    text-decoration:none;

    transition:.30s;

}

@media (max-width:991px){

    .top-bar{

        height:auto;

        min-height:38px;

        padding:8px 12px;

    }

    .top-bar .row{

        justify-content:center;

    }

    .top-contact{

        width:100%;

        display:flex;

        justify-content:center;

        align-items:center;

        gap:18px;

        flex-wrap:wrap;

    }

    .top-contact a{

        font-size:.90rem;

    }

    .top-contact i{

        margin-right:6px;

    }

    .top-social{

        display:none;

    }

}   



.top-contact a:hover{

    color:var(--dorado);

}

.top-contact i{

    color:var(--dorado);

    margin-right:8px;

    font-size:.95rem;

}

.top-social{

    display:flex;

    justify-content:flex-end;

    align-items:center;

    gap:18px;

}

.top-social span{

    color:#c7c7c7;

    font-size:.90rem;

}

.top-social a{

    color:var(--blanco);

    font-size:1rem;

    transition:.30s;

}

.top-social a:hover{

    color:var(--dorado);

    transform:translateY(-2px);

}


.top-bar{

    position:relative;

}

.top-bar::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    height:1px;

    background:rgba(200,166,75,.35);

}

@media (max-width:576px){

    .navbar .container{

        align-items:center;

    }

    .navbar-brand{

        min-width:0;
        max-width:calc(100% - 64px);
        margin-right:8px;
        gap:12px !important;
        white-space:normal;

    }

    .navbar-brand img{

        width:56px;
        height:56px;
        flex:0 0 56px;

    }

    .navbar-brand > div{

        min-width:0;
        line-height:1.15;

    }

    .navbar-brand small{

        display:block;
        margin-top:4px;
        font-size:.68rem;
        line-height:1.25;
        white-space:normal;

    }

    .navbar-toggler{

        flex:0 0 auto;

    }

    .top-contact{

        flex-direction:column;
        gap:6px;

    }

    .top-contact a{

        word-break:break-all;
        text-align:center;

    }

}


html,
body{

    width:100%;
    overflow-x:hidden;

}

img{

    max-width:100%;
    height:auto;

}

/*=====================================================
=              MAPA DE PROPIEDADES                    =
=====================================================*/

.map-properties-section{

    padding:90px 0;

    background:#ffffff;

    overflow:hidden;

}

.map-properties-header{

    max-width:800px;

    margin:0 auto 40px;

}

.map-subtitle{

    margin-bottom:8px;

    color:var(--dorado);

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:1px;

}

.map-wrapper{

    position:relative;

    width:100%;

    overflow:hidden;

    border-radius:24px;

    background:#ffffff;

    box-shadow:0 20px 50px rgba(0,0,0,.13);

}

#propertiesMap{

    width:100%;

    height:600px;

    z-index:1;

}

.map-legend{

    position:absolute;

    top:20px;

    right:20px;

    z-index:500;

    display:flex;

    flex-direction:column;

    gap:10px;

    padding:15px 18px;

    background:rgba(255,255,255,.95);

    border-radius:14px;

    box-shadow:0 8px 25px rgba(0,0,0,.15);

}

.legend-item{

    display:flex;

    align-items:center;

    gap:10px;

    color:var(--texto);

    font-size:.88rem;

    font-weight:600;

}

.legend-marker{

    width:16px;

    height:16px;

    display:block;

    border-radius:50%;

    border:3px solid #ffffff;

    box-shadow:0 2px 7px rgba(0,0,0,.25);

}

.marker-sale{

    background:var(--verde);

}

.marker-rent{

    background:var(--dorado);

}

/* Marcadores personalizados */

.property-map-marker{

    display:flex;

    justify-content:center;

    align-items:center;

    width:44px;

    height:44px;

    border:4px solid #ffffff;

    border-radius:50% 50% 50% 0;

    box-shadow:0 5px 14px rgba(0,0,0,.35);

    transform:rotate(-45deg);

}

.property-map-marker i{

    color:#ffffff;

    font-size:20px;

    transform:rotate(45deg);

}

.property-map-marker.sale{

    background:var(--verde);

}

.property-map-marker.rent{

    background:var(--dorado);

}

/* Popup */

.property-popup{

    width:240px;

    font-family:'Poppins',sans-serif;

}

.property-popup img{

    width:100%;

    height:130px;

    display:block;

    object-fit:cover;

    margin-bottom:12px;

    border-radius:10px;

}

.property-popup h5{

    margin-bottom:7px;

    color:var(--verde-profundo);

    font-size:1rem;

    font-weight:700;

}

.property-popup-location{

    margin-bottom:8px;

    color:var(--gris);

    font-size:.82rem;

}

.property-popup-price{

    margin-bottom:10px;

    color:var(--verde);

    font-size:1.15rem;

    font-weight:800;

}

.property-popup-features{

    display:flex;

    justify-content:space-between;

    gap:7px;

    margin-bottom:13px;

    padding:9px 0;

    border-top:1px solid #eeeeee;

    border-bottom:1px solid #eeeeee;

    color:var(--gris);

    font-size:.75rem;

}

.property-popup-button{

    display:block;

    width:100%;

    padding:10px 14px;

    border-radius:10px;

    background:var(--verde);

    color:#ffffff !important;

    font-size:.85rem;

    font-weight:700;

    text-align:center;

    text-decoration:none;

    transition:.3s;

}

.property-popup-button:hover{

    background:var(--verde-oscuro);

}

@media(max-width:768px){

    .map-properties-section{

        padding:65px 0;

    }

    #propertiesMap{

        height:480px;

    }

    .map-properties-section .section-title{

        font-size:2rem;

    }

    .map-legend{

        top:12px;

        right:12px;

        left:12px;

        flex-direction:row;

        justify-content:center;

        flex-wrap:wrap;

        padding:10px;

    }

    .legend-item{

        font-size:.76rem;

    }

}
/*=====================================================
=               PROPIEDADES                           =
=====================================================*/

.section{

    padding:90px 0;

}

.section-title{

    color:var(--verde-profundo);

    font-size:3rem;

    font-weight:800;

}

.property-card{

    border:none;

    border-radius:24px;

    overflow:hidden;

    transition:.35s;

    box-shadow:

        0 10px 35px rgba(0,0,0,.10);

}

.property-card:hover{

    transform:translateY(-10px);

    box-shadow:

        0 20px 50px rgba(0,0,0,.18);

}

.property-card img{

    height:290px;

    width:100%;

    object-fit:cover;

    transition:.45s;

}

.property-card:hover img{

    transform:scale(1.08);

}

.property-price{

    font-size:2rem;

    color:var(--verde);

    font-weight:800;

}

.badge-sale{

    background:var(--verde);

}

.badge-rent{

    background:var(--dorado);

    color:#072F24;

}

/*=====================================================
=                  SERVICIOS                          =
=====================================================*/

.services{

    background:

        linear-gradient(

            135deg,

            var(--verde-profundo),

            var(--verde)

        );

}

.service-card{

    background:rgba(255,255,255,.08);

    border-radius:22px;

    padding:35px;

    transition:.3s;

}

.service-card:hover{

    transform:translateY(-8px);

    background:rgba(255,255,255,.12);

}

.service-icon{

    width:70px;

    height:70px;

    display:grid;

    place-items:center;

    border-radius:18px;

    background:var(--dorado);

    color:#072F24;

    font-size:1.8rem;

}

/*=====================================================
=                     FOOTER                          =
=====================================================*/

footer{

    background:var(--verde-profundo);

    color:white;

}

footer a{

    color:var(--dorado);

    transition:.3s;

}

footer a:hover{

    color:white;

}

/*=====================================================
=                  RESPONSIVE                         =
=====================================================*/

@media(max-width:992px){

    .hero{

        text-align:center;

    }

    .hero-photo{

        margin-top:40px;

        max-width:70%;

    }

    .hero h1{

        max-width:100%;

    }

    .search-box{

        margin-top:20px;

    }

}

.btn-ver-propiedad{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    width:100%;

    padding:14px 20px;

    margin-top:18px;

    border-radius:14px;

    border:2px solid var(--verde);

    background:#fff;

    color:var(--verde);

    font-weight:700;

    font-size:1rem;

    text-decoration:none;

    transition:.35s;

}

.btn-ver-propiedad:hover{

    background:var(--verde);

    color:#fff;

    transform:translateY(-3px);

    box-shadow:0 12px 25px rgba(15,90,67,.25);

}

.btn-ver-propiedad i{

    transition:.35s;

}

.btn-ver-propiedad:hover i{

    transform:translateX(6px);

}

.properties-pagination{

    margin-top:64px;
    padding-bottom:8px;

}

.properties-pagination .pagination{

    gap:10px;

}

.properties-pagination .page-link{

    display:grid;
    place-items:center;
    width:50px;
    height:50px;
    padding:0;
    border:2px solid rgba(15,90,67,.25);
    border-radius:12px !important;
    background:var(--blanco);
    color:var(--verde);
    font-size:1.05rem;
    font-weight:700;
    text-align:center;
    transition:.25s;
    box-shadow:0 5px 14px rgba(5,47,37,.08);

}

.properties-pagination .page-link:hover{

    background:var(--dorado);
    border-color:var(--dorado);
    color:var(--verde-profundo);
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(200,166,75,.25);

}

.properties-pagination .page-item.active .page-link{

    background:var(--verde) !important;
    border-color:var(--verde) !important;
    color:var(--blanco) !important;
    box-shadow:0 8px 18px rgba(15,90,67,.25);

}

.properties-pagination .page-link:focus-visible{

    outline:3px solid rgba(200,166,75,.55);
    outline-offset:3px;

}