* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Josefin Sans", sans-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: linear-gradient(to right, #1E90FF, #0073E6);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.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);
}

h1{
    width: 100%;
    padding: 5rem 0;
    color: #003366;
    text-align: center;
}

.forminfo{
    width: 100%;
    height: auto;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: start;
}

.form{
    width: 35%;
    height: auto;
    margin-bottom: 4rem;
}

.formulario{
    width: 100%;
    height: auto;
    background-color: rgb(242, 242, 242);
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem 1rem;
    color: rgb(30, 144, 255);
    font-weight: bold;
}

.asterisco{
    color: red;
}

.pinput{
    width: 100%;
    height: auto;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: start;
    margin: 0.5rem 0;
}

.pinput p{
    width: 100%;
    height: 1.5rem;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.pinput input{
    width: 100%;
}

.pinput select{
    width: 100%;
    font-size: 1rem;
}

.pinput textarea{
    width: 100%;
    height: 6rem;
}

.interiores {
    width: 100%;
    height: auto;
    display: block;
    justify-content: space-evenly;
}

.interiores h1 {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

.exteriores {
    width: 100%;
    height: auto;
    display: block;
    justify-content: space-evenly;
}

.exteriores h1 {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

.sector {
    width: 100%;
    height: auto;
    display: block;
    justify-content: space-evenly;
}

.sector h1 {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

.grid_caracteristicas {
    display: none;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    justify-content: space-evenly;
}

.caracteristica {
    width: 11.8rem;
    height: 4.5rem;
    display: inline-flex;
    flex-flow: column;
    justify-content: space-evenly;
    border: 0.08rem solid rgb(30, 144, 255);
    margin: 0.5rem;
    padding: 0 0.2rem;
    text-align: center;
}

.checkboxes {
    width: 100%;
    height: auto;
    display: inline-flex;
    flex-flow: row wrap;
    gap: 0.5rem;
    justify-content: center;
}

.image-upload-container {
    border: 0.1rem dotted #ccc;
    padding: 1.25rem;
    border-radius: 0.5rem;
    background-color: #f7f9fc;
}

.image-upload-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.625rem;
    cursor: pointer;
}

.image-upload-label .required {
    color: red;
}

#drop-area {
    border: 0.125rem dashed #aaa;
    padding: 1.25rem;
    text-align: center;
    color: #888;
    margin-top: 0.625rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

#drop-area p {
    margin: 0;
    font-size: 0.875rem;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    grid-gap: 0.625rem;
    margin-top: 1.25rem;
    position: relative;
}

.image-preview-item {
    position: relative;
}

.image-preview-item img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
}

.image-preview-item .delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
}

.image-preview-item .delete-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.formulario button{
    margin-top: 1rem;
    width: 3.5rem;
    height: 2.5rem;
}

.infoo{
    width: 40%;
    height: auto;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
    color: black;
}

.infoo img{
    width: 100%;
    height: 20rem;
    border-radius: 0.2rem;
}

.infoo h2{
    width: 100%;
    margin: 4rem 0;
    text-align: center;
    font-size: 2.5rem;
    color: #003366;
}

.infoo p{
    width: 100%;
    height: auto;
    text-align: justify;
    font-size: 1.5rem;
    color: rgb(42, 142, 239);
    margin-bottom: 2rem;
}

.imgtexto{
    width: 100%;
    height: auto;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: center;
}

.imgtexto img{
    width: 5rem;
    height: 5rem;
}

.h3p{
    width: 80%;
    height: auto;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

.h3p h3{
    width: 100%;
    height: auto;
    font-size: 1.5rem;
    text-align: center;
    color: #003366;
}

.h3p p{
    width: 100%;
    height: auto;
    font-size: 1.2rem;
    text-align: justify;
    color: rgb(42, 142, 239);
}

.contrato{
    width: 100%;
    height: auto;
    margin: 2rem 0;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
}

.contrato img{
    width: 5rem;
    height: 5rem;
}

.contrato h2{
    width: 100%;
    margin: 1rem 0;
    text-align: center;
    font-size: 2.5rem;
    color: #003366;
}

.contrato p{
    width: 100%;
    height: auto;
    text-align: justify;
    font-size: 1.5rem;
    color: rgb(42, 142, 239);
    margin-bottom: 1rem;
}

.paso3{
    width: 100%;
    height: auto;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: start;
}

.paso3 p{
    width: auto;
}

.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: #2C2C2C;
    padding: 1rem 0;
}

.pie img{
    width: 12rem;
    height: 12rem;
}

.texto_pie{
    width: 18%;
    height: 100%;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
}

.menu_pie{
    width: 18%;
    height: 100%;
    display: inline-flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: center;
}

.menu_pie a{
    text-decoration:none;
    color: white;
}

.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;
    line-height: 2rem;
    background-color: #2C2C2C;
    text-align: center;
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    button{
        width: 3rem;
        height: 3rem;
    }
    
    .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;
    }

    h1{
        padding: 5rem 0.5rem;
    }

    .forminfo{
        flex-flow: column wrap;
        justify-content: center;
        align-items: center;
    }

    .form{
        width: 90%;
        order: 2;
    }

    .features_section {
        font-size: 0.875rem; /* 14px */
    }

    .features_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
    }

    .infoo{
        width: 90%;
    }
    
    .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;
    }
    
}