* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Spectral', serif;
}

body{
    width: 100%;
    height: 100%;
    background-color: white;
    color: white;
}

.cabecera{
    width: 100%;
    height: 7rem;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 2rem;
    background-color: rgb(30, 144, 255);
}

.cabecera a img{
    width: 6.8rem;
    height: 6.8rem;
}

.menu-toggle {
    display: none;
}

.nav{
    width: 50%;
    height: 100%;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
}

.nav li {
    flex: 1;
    height: 100%;
    list-style: none;
    text-align: center;
    font-size: 1.5rem;
    line-height: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.nav li a{
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    text-align: center;
    font-size: 1.5rem;
}

.nav li:hover {
    background-color: white;
    border-radius: 0.3rem;
}

.nav li:hover > a {
    color: rgb(30, 144, 255);
}

.inmueble{
    width: 100%;
    height: auto;
    padding: 2rem 6rem;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
}

.inmueble h2{
    width: 100%;
    height: 3rem;
    font-size: 2.5rem;
    color: rgb(30, 144, 255);
    line-height: 3rem;
}

.inmueble p{
    width: 100%;
    height: 3rem;
    font-size: 1.5rem;
    color: black;
    line-height: 3rem;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 36rem;
    margin: 0 auto;
    overflow: hidden;
    border: 0.2rem solid #ddd;
    border-radius: 1rem;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Esto hará que la imagen se ajuste al tamaño del contenedor sin recortarse */
    flex: 0 0 100%;
}

.arrow {
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

.dots {
    text-align: center;
    position: absolute;
    bottom: 1rem;
    width: 100%;
}

.dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.5rem;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: rgb(30, 144, 255);
}

.info_relevante{
    width: 100%;
    height: auto;
    margin: 1rem 0;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
}

.caracteristicas{
    width: 60%;
    height: auto;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: center;
}

.caracteristica{
    width: 33%;
    height: auto;
    margin: 0.5rem 0;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

.caracteristica img{
    width: 2rem;
    height: 2rem;
}

.caracteristica p{
    width: auto;
    height: auto;
    padding-left: 0.5rem;
}

.valores{
    width: 24%;
    height: auto;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
}

.descripcion{
    width: 100%;
    height: auto;
    margin: 2rem 0;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
}

.descripcion h2{
    height: auto;
    margin: 1rem 0;
}

.descripcion p{
    height: auto;
    text-align: justify;
}

.interior_exterior_sector{
    width: 100%;
    height: auto;
    margin: 2rem 0;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: start;
}

.especificaciones{
    width: 33%;
    height: auto;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
}

.titulo{
    width: auto;
    height: auto;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: start;
    align-items: center;
}

.titulo img{
    width: 4rem;
    height: 4rem;
}

.titulo h2{
    width: auto;
    height: auto;
    margin-left: 1rem;
}

.especificaciones ul{
    width: auto;
    height: auto;
    margin: 2rem 0;
    display: flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: start;
    color: black;
}

.especificaciones ul li{
    width: 100%;
    height: 2rem;
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.contactanos{
    width: auto;
    height: auto;
    border-radius: 0.5rem;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
}

.contactanos h2{
    width: 100%;
    height: auto;
    padding: 0.5rem 0.5rem;
    text-align: center;
    color: rgb(30, 144, 255);
    font-weight: bold;
}

.whatsapp{
    width: auto;
    height: auto;
    margin: 1rem 0;
    padding: 0.5rem;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    background-color: rgba(52, 168, 83, 0.8);
    border-radius: 0.4rem;
}

.whatsapp a{
    width: auto;
    height: auto;
    text-decoration: none;
}

.whatsapp a img{
    width: 3rem;
    height: 3rem;
}

.whatsapp a p{
    width: auto;
    height: auto;
    padding-left: 0.3rem;
    color: white;
}

.botones_flotantes{
    position: fixed;
    bottom: -4rem;
    right: 2rem;
    width: 4.5rem;
    height: 11rem;
    display: inline-flex;
    flex-flow: column wrap;
}

.botones_flotantes a{
    width: 4rem;
    height: 4rem;
    margin: 0.5rem 0;
    border-radius: 50%;
    background-color: rgb(30, 144, 255);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.botones_flotantes a img{
    width: 3rem;
    height: 3rem;
}

.botones_flotantes a:hover{
    width: 4.5rem;
    height: 4.5rem;
}

.botones_flotantes a img:hover{
    width: 3.5rem;
    height: 3.5rem;
}

.pie{
    width: 100%;
    height: 25rem;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: start;
    background-color: #717171;
    padding: 1rem 0;
}

.pie img{
    width: 12rem;
    height: 12rem;
}

.texto_pie{
    width: 18%;
    height: 100%;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: start;
    align-items: center;
}

.info{
    width: 100%;
    height: auto;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: start;
    align-items: center;
    margin: 1rem 0;
}

.info img{
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
}

.copy{
    width: 100%;
    height: 2rem;
    background-color: #717171;
    text-align: center;
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 50vw; 
        height: 100vh;
        background-color: rgb(30, 144, 255);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .nav.nav-open {
        transform: translateX(0);
    }
    
    .nav li {
        font-size: 1.2rem;
        line-height: 3rem;
        position: relative;
        list-style: none;
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
        margin: 0;
    }
    
    .nav li a {
        font-size: 1.2rem;
        line-height: 3rem;
        position: relative;
        list-style: none;
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
        margin: 0;
    }
    
    button{
        width: 3rem;
        height: 3rem;
    }
    
    .inmueble{
        padding: 0;
    }
    
    .info_relevante{
        flex-flow: column wrap;
    }
    
    .caracteristicas{
        width: 100%;
    }
    
    .caracteristica{
        width: 50%;
        flex-flow: column wrap;
    }
    
    .valores{
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .valores h2{
        text-align: center;
    }
    
    .valores p{
        text-align: center;
    }
    
    .descripcion{
        padding: 0 1rem;
    }
    
    .interior_exterior_sector{
        flex-flow: column wrap;
        align-items: center;
    }
    
    .especificaciones{
        width: 100%;
    }
    
    .titulo{
        justify-content: center;
    }

    .pie {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        height: auto;
    }
    
    .pie img {
        width: 8rem;
        height: 8rem;
    }
    
    .mapa {
        width: 100%;
        height: auto;
        max-width: 500px; /* Ajusta el tamaño máximo del mapa */
        margin: 1rem 0;
    }
    
    .texto_pie {
        width: 100%;
        max-width: 500px; /* Ajusta el tamaño máximo del contenedor del texto */
        margin: 1rem 0;
        text-align: center;
        align-items: center;
    }
    
    .info {
        width: auto;
        margin: 0.5rem 0;
    }
    
    .info img {
        width: 2rem;
        height: 2rem;
    }
    
    .copy {
        width: 100%;
        height: 2rem;
        background-color: #717171;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Color negro con opacidad del 50% */
        opacity: 0;
        pointer-events: none; /* Permite que los clics pasen a través del overlay cuando está oculto */
        transition: opacity 0.3s ease-in-out;
        z-index: 900; /* Asegura que el overlay esté detrás del menú pero encima del contenido */
    }
    
    .overlay.active {
        opacity: 1;
    }
    
}