*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

.company-logo{    
    padding: 20px;
    width: 250px;
    margin: 0 0 20 0;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;      /* Ocupa al menos toda la pantalla */
    display: flex;
    flex-direction: column; /* Apila header, contenido y footer verticalmente */
}
.container{
    max-width: 1200px;
    margin: 0 auto;
}

.headerlogo {
    background-color: rgb(36, 43, 143);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    display: flex;
    position: relative;
    max-height: 130px;
    align-items: center;
}

p{
    font-size: 1rem;
}

a.no-image {
    color: #061539;
}
  
  a.no-image:hover{
    border-radius: 10px;
    background-color: #ffffff;
  }

img:hover{
    transform: scale(1.2);
}

/* SECTION */

section {
    padding: 20px;
    max-width: 800px;
    margin: 22px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

section .icono-container{
    padding: 10px;
    margin: 0 auto;
}

section  .icono-container .icono{
    float : left;
}

section h2{
    text-align: center;
} 

section  .icono-container p{
    padding-left: 40px;
    padding-bottom: 8px;
}

section .propiedad{
    padding: 0;
    margin: 0 auto;
}

/*  SECTION SEARCH  */

.section-search {
    padding: 20px;
    max-width: 100%;
    margin: 2px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.section-search #lsearch{
    padding: 10px;
    border-radius: 6px;
    max-width: 100%; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);    
    margin: 2px auto;
    border-radius: 12px;
    display: flex;  
    flex-wrap: wrap;
    font-size: 20px;
}

.section-search input[type="search"] {
    flex: 1;
    max-width: 50%;
    margin-right: 10px;
}

.section-search .select-container {
    flex: 1;
    max-width: calc(50% - 10px);
    align-self: flex-end;
}

.section-search .select-box {
    width: 100%;
    margin-top: 5px;
}

.section-search .select-container #lbutton{
    margin: 2px auto;
    width: 80%;
    color: #fff;
    background-color: #3a3696;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.section-search .select-container #lbutton:hover{
    transform: scale(1.02);
    cursor: pointer;
}
/* CONTAINER DESCRIPCIÓN */
.container-info {
    justify-content: center;
    text-align: center;
    background: #fff;   
    padding: 2rem;
    box-shadow: 0 0px 1px rgba(0, 0, 0, 1);           
  }
  .container-info .p{
    width: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .precio-izq {
    padding: 2rem;
    text-align: left;
    font-size: 45px;
    font-display: bold;
  }

/*  SECTION CONTACT */

/*.section-contact{
    
}*/

/* PROPIEDADES */ 

.propiedad-imagen{
    max-width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* FOOTER */

footer {
    background-color: rgb(36, 43, 143);
    color: #fff;
    text-align: center;
    width: 100%;
    padding-top: 1rem;   /* También corregí el valor inválido "1fr" → "1rem" */
    margin-top: auto;    /* Empuja el footer al fondo cuando hay poco contenido */
}

#footer img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

#footer img:hover {
    transform: scale(1.45);
}

#footer p {
    margin: 0;
    padding: 1em;
}


/*  FORM    */

.section-form .form {
    width: 100%;
    padding: 12px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    justify-content: space-between;

}

.section-form .section-form-p{
    background-color: #3a3696;
    color: #fff;
}

.section-form .form textarea {
    width: 100%;
    padding: 12px;
    height: 80px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.section-form .form input.send:focus {
    border-color: #1d1564;
}

.section-form .form input:not(.send) {
    width: calc(100% - 2px);
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 4px;
}

.section-form .form input.send {
    width: calc(100% - 24px);
    box-sizing: border-box;
    padding: 12px;
    margin-top: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.section-form .form input:focus{
    border-color: #1d1564;
}
.section-form .form textarea:focus {
    border-color: #1d1564;
}

.section-form .form input[type="submit"] {
    background-color: #3a3696; 
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.section-form .form input[type="submit"]:hover {
    background-color: #c1d4ff;
}

::placeholder {
    color: rgba(0, 0, 0, 0.5); /* Texto transparente */
}

/* SELECT */

.select-container{
    display: flex;
    justify-content: center;
    min-width: 250px;
    height: 50px;
}

.select-box{
    border: none;
    appearance: none;
    padding: 0 30px 0 15px;
    width: 100%;
    color: #061539;
    background-color: white;
    font-size: 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    margin: 2px auto;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.select-container .icon-container{
    width: 50px;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* MENU */

#menu{
    display: none;
}

.menu-icono{
    width: 25px;
}

.menu label{
    cursor: pointer;
    display: none;
}

.menu{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu .navbar ul li{
    position: relative;
    float : left;
}

.menu .navbar ul li a{
    font-size: 18px;
    padding: 20px;
    color : white;
    display: inline-block;
    font-weight: bold;
}

.menu .navbar ul li a:hover{
    color: #262371;
}

.container-items{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 15px;
}
.item{
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
}

.item img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: all .5s;
}
.item figure{
    overflow: hidden;
}

.item:hover img{
    transform: scale(1.2);
}

.container-imagen{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
    gap: 20px;
}

.item-p{
    position: relative;
    text-align: right;
    padding-right: 15px;
    bottom: 300px;
    font-size: 20px;
    font-weight: bold;
    color:#ffffff;
}

.menu-title{
    font-weight: bold;
    color:#061539;
    text-align: center;
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.1);
    font-size: 35px;
    font-weight: 600;
    padding: 30px;
}
/*   MEDIA QUERY   */


@media(max-width:768px) {

    /*  SECTION SEARCH  */
    .section-search input[type="search"],
    .section-search .select-container {
        flex: 1 1 100%; /* En pantallas más pequeñas, ocupan el 100% del ancho */
        max-width: 100%; /* Máximo 100% del ancho para el input y los select */
        margin-right: 0; /* Eliminar el espaciado entre el input y los select */
    }

    .section-search .select-container {
        margin-top: 10px; /* Agregado para espaciado entre los select */
    }

    .header{
        padding: 0 0 0 0;
        align-items: self-start;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .header .company-logo{
        padding: 40px 40px 40px 40px;
        margin: auto;
        width: 64%;
    }

    #footer p {
        padding: 0.5em; /* Ajusta el padding para pantallas más pequeñas */
    }

    #footer img {
        min-width: 36px; /* Ajusta el ancho máximo para hacer la imagen más grande */
    }

    /* MENU */
    .menu {
        padding: 30px;
    }

    .menu label {
        display: initial;
    }

    .menu .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #3F3F3F48;
        backdrop-filter: blur(5px);
        display: none;
    }

    .menu .navbar ul li{
        width: 100%;
    }    

    #menu:checked ~ .navbar{
        display: initial;
    }

    .item{
        border-radius: 10px;
    }
    
    .item:hover{
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
    }
    
    .item img{
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
        transition: all .5s;
    }
    .item figure{
        overflow: hidden;
    }
    
    .item:hover img{
        transform: scale(1.2);
    }

    .container-items{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 5px;
    }
}