/* CSS Document */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ocupa todo el alto de la ventana */
}

main {
    flex: 1; /* El contenido empuja el footer hacia abajo */
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 15px 0;
}
.desk {
    display: block !important;
}

.mobile {
    display: none !important;
}
.card-link {
    position: relative;
    /*display: block;*/
    overflow: hidden;
}
.card {
    margin-bottom: 15px;
}
/* Overlay */
.card-link::after {
    content: "Más Detalles";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 1.5em;
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card-link:hover::after {
    opacity: 1;
}

.card-link img {
    transition: filter 0.3s ease;
}

.card-link:hover img {
    filter: grayscale(100%) brightness(0.6);
}
.card-img-top {
width: 100%;
height: 18vw;
object-fit: cover;
}
.card-title{
    color:#000;
    font-size: 1rem;
}
.card-text{
    color: #000;
    font-size: 0.8rem;
}
/* WHATSAPP */
.green-whatsapp {
    background-color: #4dc247;
    position: fixed;
    bottom: 3%;
    right: 3%;
    z-index: 1000;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    /* display: none; */
    display: flex;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}
.green-whatsapp_text {
    position: absolute;
    bottom: 8%;
    right: 8%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    display: flex;
}
.green-whatsapp img {
    width: 35px;
    height: 35px;
}
.green-whatsapp a {
    text-decoration: none;
    color: white;
}
.green-whatsapp a:hover {
    text-decoration: none;
    color: white;
}
/* DATAHEAD */
.datahead{
    background-color: #000;
    padding:0px;
    color: #fff;
    font-size: 0.8rem;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}
/* NAVBAR */
.logo{
    width: 300px;
    height: auto;
}
.navbar {
  min-height: 100px; /* Aumenta el espacio del menú */
}

.navbar .logo {
  max-height: 80px;
}

@media (max-width: 992px) {
  .navbar .logo {
    max-height: 60px;
  }
  .navbar-nav {
    margin-top: 10px; /* un poco de espacio debajo del logo */
  }
}
.navbar-toggler {
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid #520621;
    border-radius: .25rem;
    transition: box-shadow .15s ease-in-out;
}
.navbar-toggler.collapsed{
    color:#520621;
}
.nav-link {
    display: block;
    padding: .5rem 1rem;
    color: #520621;
    text-decoration: none;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}
.posicion {
	position: relative;
}
.buscador {
	position: absolute;
	/*background-image: url(../images/franja_oportunidad.png);*/
	top: 75% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff80;
    padding: 20px;	
    z-index: 1295;
    border-radius: 10px;
}
.carousel-item {
  height: 350px !important;
}
.item img {
    position: absolute !important;
    top: 0;
    left: 0;
    min-height: 300px !important;
}
.card {
    overflow: visible !important; /* deja que la cinta sobresalga */
    position: relative;
}

.badge-status {
    position: absolute;
    top: 38px;
    left: -39px;
    background: rgba(82, 6, 33, 0.85);
    color: #fff;
    padding: 5px 50px;
    font-size: 0.9rem;
    font-weight: bold;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-transform: uppercase;
    z-index: 20; /* arriba de la imagen y overlay */
    pointer-events: none; /* que no interfiera con el hover */
}

/* Colores por estado */
.badge-status.vendido   { background: rgba(255, 251, 0, 0.65); color:black;}
.badge-status.alquilado { background: rgb(0, 177, 15, 0.65); }
.badge-status.oportunidad { background: rgba(0, 120, 255, 0.65); }
.badge-status.reservado { background: rgba(255, 165, 0, 0.65); }
.badge-status.suspendido { background: rgba(255, 0, 0, 0.65); }

@media (max-width: 760px) {
    .badge-status {
        top: 29px;
        left: -33px;
        font-size: 0.75rem;
        padding: 4px 8px;
        text-align: center;
        width: 145px;
    } 
   .navbar{
        line-height: 25px;
    }

    .logo{
        width: 200px;
        height: auto;
    }
        .carousel-item {
        height: auto !important;
    }

    .datahead{
        text-align: center !important;
        background-color: #000;
        padding:0px;
        color: #fff;
        font-size: 0.8rem;
        font-family:Verdana, Geneva, Tahoma, sans-serif;
    }
    .buscador {
        position: relative;
        /*background-image: url(../images/franja_oportunidad.png);*/
        top: 0 !important;
        left: 0;
        transform: translate(-0, -0);
        background-color: #FFFFFF65;
        padding: 20px;	
        z-index: 1295;
        border-radius: 10px;
    }
    .desk {
        display: none !important;
    }
    .mobile {
        display: block !important;
    }
    .card-img-top {
        width: 100%;
        height: 80vw;
        object-fit: cover;
    }
}