body {
    font-family: 'Open Sans', sans-serif;
}
/* Estilos para la barra de scroll */
::-webkit-scrollbar {
    width: 10px; /* Ancho de la barra de desplazamiento */
  }
  
  /* Track de la scrollbar (fondo) */
  ::-webkit-scrollbar-track {
    background: #8CA4A1; /* Color de fondo */
  
  }
  
  /* Thumb de la scrollbar (la parte que se mueve) */
  ::-webkit-scrollbar-thumb {
    background-color: #153332; /* Color de la parte que se desplaza */
    border-radius: 10px; /* Añade un borde redondeado */
    border: 2px solid transparent; /* Espacio alrededor del thumb */
    background-clip: content-box; /* Esto hace que el color de fondo no invada los bordes */
  }
  
  /* Thumb en hover (cuando el usuario pasa el mouse sobre el scrollbar) */
  ::-webkit-scrollbar-thumb:hover {
    background-color: #1A403F; /* Color cuando el usuario pasa el cursor */
  }


  .navbar {
    background-color: transparent !important;
    transition: background-color 0.3s ease; /* Añadir una transición suave */
}


.navbar-scroll {
    background-color: rgba(64, 64, 64, 0.8) !important; /* Gris semitransparente */
}

.navbar-nav .nav-link {
    font-size: 18px;
    color: #ffffff;
    font-weight: 400;
    margin-right: 20px;
    position: relative;
    transition: color 0.3s ease;



}

/* Hamburger button */
.navbar-toggler {
    border: none; 
    z-index: 10000;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='green' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: #8CA4A1;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}


  .swiper-container {
    width: 100%;
    height: 100vh;
  }
  
  .swiper-slide{
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    height: 100vh; /* Ensure it covers the viewport height */
    position: relative;
  }
  
  .banner-opacity::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  }
  


.banner-title {
    position: relative;
    z-index: 1;
    font-size: 70px;
    font-weight: 900;
    color: white;
    line-height: 1.2;
}

/* categorias */

.page-item .page-link{
    cursor: pointer;
}
.map-popup .destacadas-imagen {
    height: 120px;
}

.map-popup .destacadas-titulo .transaccion {
    font-size: 17px;
    display: block;
    padding-right: 0;
}
.map-popup .destacadas-titulo .precio {
    font-size: 17px;
    display: block;
}

.map-popup .destacadas-direccion {
    font-size: 13px;
}
.map-popup .destacadas-label {
    font-size: 15px !important;
}

.leaflet-popup-content{
    width: 220px;
}

/* carrousel destacadas */
.destacadas-link{
    display: inline-block;
    background: #153332;
    text-decoration: none;
    width: 100%; 
    height: 100%;
}
.destacadas-imagen {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.destacadas-imagen img {
    min-width: 100%;
    min-height: 100%;
}
.destacadas-titulo {
    text-align: center;
    background: #1a4240;
    color: #fff;
    text-transform: uppercase;
    padding: 4px;
}
.destacadas-titulo .transaccion{
    padding-right: 10px;
    font-weight: 700;
    font-size: 20px;
}
.destacadas-titulo .precio{
    font-size: 20px;
}
.destacadas-direccion {
    color: #fff;
    padding: 10px 20px;
    background: #1a4240;
    font-size: 17px;
}
.destacadas-direccion .calle{
    font-weight: 700;
    line-height: 1.3;
}
.destacadas-direccion .propiedad{
    font-weight: 400;
    line-height: 1.3;
}
.destacadas-label {
    padding: 20px 20px;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .lista .destacadas-imagen {
        height: 120px;
    }

    .lista .destacadas-titulo .transaccion {
        font-size: 17px;
        display: block;
        padding-right: 10px;
    }
    .lista .destacadas-titulo .precio {
        font-size: 17px;
        display: block;
    }

    .lista .destacadas-direccion {
        font-size: 13px;
    }
    .lista .destacadas-label {
        font-size: 15px;
    }
}

@media  (max-width: 1400px) {
    .banner-title {
        font-size: 64px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 768px) and (min-height: 1024px) and (max-height: 1024px) {
 .banner-title {
    font-size: 50px !important;
 }

.banner-container {
   height: 300px !important;
}


}




@media (max-width: 768px) {
    .navbar-nav {
        text-align: left;
    }

    .navbar-nav .nav-link {
        font-size: 16px; 
        margin: 0;
    }

    .main-banner {
        height: 60vh; 
    }

    .banner-title {
        font-size: 20px; 
    }
    .navbar-brand img {
        height: 40px; 
       
    }
    .navbar-collapse {
        background-color: rgba(26, 64, 63, 0.9); /* Fondo verde con opacidad del 90% */
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
      
        padding: 20px;
        z-index: 1030;
    }
    

}

/* SECCION PROPIEDADES */
.pagination .page-item a {
    color: #1a4240 !important;
  }
  
  .pagination .page-item a.active {
    color: #fff !important;
    background: #1a4240;
    border: #153332;
  }

  
.buscar-propiedades {
margin: 0 auto;
margin-left: 160px;
}

.titulo-buscar {
    background-color: #1A403F; /* Fondo verde */
    padding: 25px 122px;
    border-top-left-radius: 15px; 
   margin-bottom: 0;
    width: fit-content;
    color: #D0CBCB;
    font-size: 16px;
    font-weight: bold;
}

.buscar-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0;

}

.buscar-input {
    background-color: #D9D9D9; 
    border: 1px solid #ccc;
    width: 200px;
    height: 80px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0; 
    display: flex;
    align-items: center;
    padding: 20px;
}

.buscar-input-2 {
    background-color: #D9D9D9; 
    border: 1px solid #ccc;
    width: 250px;
    height: 80px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0; 
    display: flex;
    align-items: center;
    padding: 20px;
}

.buscar-input-2::placeholder {
    font-style: italic;
  }
.btn-buscar {
    background-color: #1A403F; /* Fondo verde */
    color: #ffffff;
    border: none;
    width: 267px;
    height: 80px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 15px; 
    border-bottom-right-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.btn-buscar:hover {
    background-color: #155d5b; /* Color al pasar el cursor */
    color: #ffffff;
}

.btn-buscar img {
    height: 20px; 
    width: 20px;
}

@media (max-width: 1024px) {
    .buscar-panel {
        gap: 15px; 
    }
}




@media (max-width: 768px) {
    .buscar-propiedades{
        margin-left: 0;
        padding: 20px!important;
    }
    .titulo-buscar {
        display: none; /* Ocultar el título "Buscar propiedades" */
    }

    .buscar-panel {
        flex-direction: column; 
        align-items: stretch;
        gap: 10px; 
    }
    .buscar-input{
        width: 267px; 
        height: auto;
        color: #1A403F !important;
        font-size: 14px;
        padding: 10px;
        border: 1px solid #000;
    }
    .buscar-input-2
    {
        display: none;
    }

    .btn-buscar {
        width: 80%; 
        height: auto;
        border-radius: 20px !important;
    }
}




.propiedades-destacadas {
    padding: 50px 20px;
}


.propiedades-destacadas h2{
   margin-top: 0;
    color: #1A4240;
    font-weight: bold;
    font-size: 25px;
}

.propiedades-swiper {
    position: relative;
    max-width:90%;
    margin: 0 auto;
    
 overflow: hidden;
  
}

.swiper-slide {
    width: 428px; 
    height:auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 50px;
  
}

.propiedad-img {
    width: 100%;
    height: auto;
  
    
}
.swiper-button-next,
.swiper-button-prev {
    
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 20;
    background: none; 
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; 

}

/* Asegurar que solo las flechas personalizadas estén visibles */
.swiper-button-prev img,
.swiper-button-next img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.swiper-button-prev {
    left: 0px; 
}

.swiper-button-next {
    right: 0px; 
}
.swiper-pagination-bullet {
    background: #497371 !important;
    width: 14px;
    height: 14px;
}

.swiper-pagination-bullet-active {
    background: #1A4240;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}
@media (max-width: 768px) {
    .propiedades-destacadas{
        padding: 10px 0 !important;
    }

    .propiedades-destacadas h2 {
        font-size: 20px;
    }
    .swiper-slide {
        width: 100%; /* Mostrar una sola tarjeta a la vez en móviles */
    }

    .propiedades-swiper {
        padding: 0 15px; /* Espacio lateral para que no quede pegado a los bordes */
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 25px;
        height: 25px;
        top: 60%;
    }

    .swiper-button-prev {
        left: 10px; /* Ajustar posición para no salir del viewport */
    }

    .swiper-button-next {
        right: 10px; /* Ajustar posición para no salir del viewport */
    }
    .swiper-pagination-bullet{
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1400px){
    .buscar-propiedades{
        margin-left: 100px ;

    }
    .btn-buscar{
        width: 200px;
    }
}


@media (min-width: 768px) and (max-width: 1024px) {
    .swiper-slide {
        width: 48%; /* Mostrar dos tarjetas a la vez en tabletas */
    }

    .propiedades-swiper {
        padding: 0 30px; /* Más espacio para tabletas */
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .swiper-button-prev {
        left: -20px; 
    }

    .swiper-button-next {
        right: -20px; 
    }
    .buscar-propiedades{
        margin-left: 0;
        padding: 20px!important;
    }
    .titulo-buscar {
        display: none; /* Ocultar el título "Buscar propiedades" */
    }

    .buscar-panel {
        flex-direction: column; 
        align-items: stretch;
        gap: 10px; 
    }
    .buscar-input{
        width: 80%; 
        height: auto;
        color: #1A403F !important;
        font-size: 14px;
        padding: 10px;
        border: 1px solid #000;
    }
    .buscar-input-2
    {
        display: none;
    }

    .btn-buscar {
        width: 30%; 
        height: auto;
        border-radius: 20px;} 
}


/* SECCION CONTADOR */

.contador-seccion {
    background-color: #1A4240;
    height: 194px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.contador {
    font-size: 45px;
    font-weight: 800;
   
}


.contador-seccion p {
    margin-top: -10px;
    font-size: 24px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .contador-seccion .row {
        flex-direction: column;
       
    }
    .contador{
        font-size: 25px;
    }
    .contador-seccion p {
        font-size: 16px;
        margin-bottom: 0;
    }
}

/* SECCION ICONOS */

.servicios-seccion {
    padding: 60px 250px; 
}

.titulo-servicios {
    color: #1A4240;
    font-weight: bold;
    font-size: 30px;
}

.servicio-icono {
    width: 200px; 
    height: 200px; 
    background-color: #8CA4A1; 
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}
.servicio-icono:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2); 
}

.servicio-icono img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    margin:  0 auto; 
}


.subtitulo-servicio {
    color: #1A4240;
    font-weight: bold;
    margin-top: 15px;
    font-size: 20px;
}

@media (max-width: 1024px)
{
    .servicios-seccion {
        padding: 60px 0;
    }
}
/* Estilos para la versión móvil */
@media (max-width: 768px) {

.servicios-seccion{

}

.titulo-servicios{
    font-size: 20px;
}
    .servicios-seccion .row {
        flex-direction: column;
        align-items: center;
        gap: 0px; 
    }

    .servicio-icono img {
      
      
        
    }

    .servicio-icono{
        width: 180px;
        height: 180px;

    }

    .subtitulo-servicio {
        color: #1A4240;
        font-weight: bold;
        margin-top: 5px;
        font-size: 16px;
        margin-bottom: 5px;
    }
    
}

/* BANNER HOME INFERIOR */


.banner-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 500px; 
   
}

.banner-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    color: #1A4240; 
}

.banner-title-2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.banner-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1A4240;
}

.banner-img {
    width: 100%;
    height: auto;

   
}

@media (max-width: 768px) {
    .banner-container {
        height: 150px;
        width: 100%;
    }


}


/* NOSOTROS SECCION */

.nosotros-seccion {
   padding: 80px 0;
    text-align: left; 
}

.nosotros-texto {
    max-width: 700px; 
}

.nosotros-texto h2 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}

.nosotros-texto p {
    font-size: 20px;
    font-weight: 300;
}
.btn-nosotros {
    width: 250px;
    height: 80px;
    background-color: #1A4240;
    color: #ffffff;
    border-radius: 20px;
    border: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.btn-nosotros:hover {
    background-color: #D9D9D9; 
}

/* Estilos para dispositivos móviles */
@media (max-width: 992px) {
  

    .nosotros-seccion{
        padding: 80px 20px;
    }
    .nosotros-texto {
       text-align: center;
        margin-bottom: 20px;
        width: 100%;
    }
    .nosotros-texto h2 {
        font-size: 20px;
    }

    .nosotros-texto p {
        text-align: left;
        font-size: 18px;
    }
    .btn-nosotros {
        margin: 0 auto; 
        width: 180px;
        height: 70px;
    }
}


.footer {
    background-color: #F1F0F0;
    padding: 30px 0;
  }
  
  .footer-top {
    padding-bottom: 30px;
  }
  
  .footer-logo img {
    width: 200px;
  }
  
  .footer-logo p {
    font-size: 14px;
    color: #333;
  }
  
  .footer-social a {
    margin-left: 10px;
  }
  
  .footer-social img {
    width: 34px;
    height: 34px;
  }
  
  .footer-divider {
    width: 90%;
    height: 1px;
    background-color: #ccc;
    margin: 0 auto 20px auto;
  }
  
  .footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .info-item {
    flex: 1;
    padding: 20px;
  }
  
  .info-item h4 {
    color: #111111;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .info-item p {
    color: #1A4240;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    line-height: 1.2;
    align-items: flex-start;
    margin-bottom: 5px;
  }
  
  .info-item img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  
  .footer-bottom {
    margin-top: 10px;
  }
  
  .footer-bottom p, .footer-bottom a {
    color: #1D1C1C;
    font-size: 14px;
  }
  
  .footer-bottom a {
    text-decoration: none;
  }
  
  .footer-bottom a:hover {
    text-decoration: underline;
  }
  
  @media (max-width: 768px) {
    .footer-info {
      flex-direction: column;
    }
    
    .info-item {
      padding:0;
    }
  
    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }
  
    .footer-divider {
      width: 100%;
    }
    .info-item h4 {
        display: none;
    }
    .info-item p {
        font-size: 14px;
    }
    .footer-bottom p, .footer-bottom a {
        font-size: 10px;
        margin-bottom: 0;
    }
  }
 
  @media (max-width: 360px){

   .nosotros-seccion p {
    font-size: 14px;
   }
   
   .banner-title{
    font-size: 30px;
   }

   .footer-social img {
    width: 24px;
    height: 24px
   }
   .footer-social a {
    margin-left: 5px;
   }
   .footer-logo img {
    width: 150px;
   }
  }

  .whatsapp-button {
    position: fixed;
    bottom: 20px; /* Ajusta según la posición vertical deseada */
    right: 20px; /* Ajusta según la posición horizontal deseada */
    width: 60px; /* Tamaño del botón */
    height: 60px;
    background-color: #EEEEEE; /* Color del círculo */
    border-radius: 50%; /* Hace que el botón sea circular */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Sombra para darle profundidad */
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
  }
  
  .whatsapp-button img {
    width: 40px; /* Ajusta el tamaño del icono según sea necesario */
    height: 40px;
  }
  
  .whatsapp-button a {
    display: inline-block;
  }
  
  .whatsapp-button:hover {
    background-color: #DADADA; /* Cambia el color de fondo al hacer hover */
    transition: background-color 0.3s ease;
  }
  