*{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    font-family: sans-serif;
    background-color: #0000000d;
    color: #101632dd;
}

body,div,ul,nav,header,footer,a,li,label{
    margin: 0;
    padding: 0;
}
/*----------------------HEADER SECTION-----------------------*/
.header{
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    text-align: center;
    font-size: 20px;
    color: black;
}

.header__open-nav-button{
    color: rgb(5, 5, 5);
    font-size: 3rem;
    font-weight: 600;
    position: absolute;
    right: 10px;
    z-index: 90;
}
.header__checkbox{
    display: none;
}
.header__nav {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
        display: block; /* Siempre block para animar */
        background-color: rgba(255,255,255,0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(8px);
        position: absolute;
        height: auto;
        width: 100vw;
        top: 0;
        left: 0;
        z-index: 10;
    }
.header__checkbox:checked ~ .header__nav {
        max-height: 400px; /* Ajusta según la cantidad de ítems */
        opacity: 1;
}

.header__nav-list{
    display: flex;
    flex-direction: column;
    height: 40vh;
    margin: auto;
    justify-content: space-evenly;
}
.header__logo{
    max-width: 100%;
    width: 64px;
    margin: 0;
}
.header__nav-item{
    list-style: none;
}

.header__nav-item a{
    color: inherit;
    text-decoration: none;
    margin: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    transition: background-color 0.2s, transform 0.2s;
}

.header__nav-item a:is(:hover,:active){
    
    background-color:#363636 ;
    color: #fff;
}

/*---------------------HEADER QUERIES-----------------------*/
@media screen and (min-width: 600px) {

    .header{
        
        animation: header-movement both;
        animation-timeline: scroll();
        animation-range: cover 0% contain 100%;
        position: sticky;
        top: 0;
        will-change: background-color, color, transform;
        
    }

    .header__nav{
        max-height: none;
        opacity: 1;
        display: block;
        position: static;
        height: auto;
        width: auto; 
        z-index: 1;
        justify-content: space-between;
        background-color: initial;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .header__nav-list{
        flex-direction: row;
        height: auto;
        width: auto;
        gap: 20px;
        margin-right: 40px;
    }
    .header__open-nav-button{
        display: none;
    }
    
    .header__nav-item a{
        margin: 15px;
    }
    
}
/*--------------------HEADER ANIMATION--------------------*/

@keyframes header-movement {
    from{
        background-color: #fff;
        transform: scaleY(1);
        
    }
    to{
        background-color: #0e174166;
        color: #fff;
        
    }
    
}

/*----------------------HEADER ENDS-------------------------*/

/*-----------------------PROFILE SECTION--------------------*/
.profile{
    container-name: profile;
    container-type: inline-size;
    animation: aparecer 2.4s -.6s both;
    
}
.profile__wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    max-width: 1400px;
}

.profile__data-container{
    max-width: 600px;
    padding: 12px;
    overflow: hidden;
}

.profile__img-container{
    max-height: 500px;
    overflow: hidden;
    
}

.profile__img{
    max-width: 100%;
    width: 720px;
}

/*-----------------------PROFILE QUERIES--------------------*/
@container profile (min-width: 720px){
    .profile__wrapper{
        flex-direction: row;
        padding: 20px;
        background-color: transparent;
        height: 90vh;
        margin: auto;
    }
    .profile__img-container{
        max-height: initial;
        border-radius: 25px 0px 0px 25px;
    }
    .profile__data-container{
        background-color: #fff;
        display: flex;
        align-items: center;
        border-radius: 0px 25px 25px 0px;
        box-shadow: 0px 0px 9px #0002;
    }
    h1{
        margin-top: 0;
        font-size: 4rem;
        text-wrap: balance;
    }
    .profile__data{
        max-width: 650px;
        


    }
    .profile__img{
        height: 100%;
        object-fit: cover;
        width: 620px;
        background-color: #fff;
    }
    
}
/*-----------------------PROFILE ENDS--------------------*/



/*-----------------------PORTFOLIO SECTION--------------------*/

.portfolio{
    background-color: #080808f6;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    container-name: portfolio;
    container-type: inline-size;
    justify-content: space-evenly;
    
}
.portfolio__title{
    font-size: 3rem;
    margin-bottom: 0;
}
.portfolio__project-container{
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1300px;
    margin: auto;
    width: 100%;
    gap: 12px;
    padding: 12px;
    min-height: 80vh;
}

.portfolio__project{
    min-height: 200px;
    position: relative;
    background-image: linear-gradient(#0006, #0006);
    background-position: center;
    background-size: cover;
    display: grid;
    place-content: top;
    border-radius: 8px;
    animation: aparecer 0.9s cubic-bezier(0.4, 0, 0.2,1) both;
    animation-timeline: view();
    animation-range: contain 5% cover 40%;
    transition: opacity 0.3s, outline 0.3s, transform 0.4s cubic-bezier(0.4, 0, 0.2,1);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
    cursor: pointer;
}
.portfolio__project:hover {
    transform: scale(1.04);
    box-shadow: 0 0 40px #000a;
    z-index: 2;
}
.portfolio__project-name {
    text-shadow: 0px 0px 40px #0003 , 0 1px 2px #000;
}
.caracteristicas{
    margin-left: 17px;
    margin-top: 20px;
    font-size: 12px;
}

.caract__prop{
    
    display: block;
    /*flex-direction: column;
    text-align: left;
    overflow: auto;*/
    background-color: #000000ac;
    border-radius: 10px;
    padding: 0px;
    padding-right: 4px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: left;
}

@keyframes aparecer {
    from{
        opacity: 0;
        transform: translateY(30px);
        
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
    
}
.pancho-casa{
    background-image: url(imagenes/Pancho.webp);
}
.maximo-casa{
    background-image: url(imagenes/Maximo.webp);
}
.daniel-casa{
    background-image: url(imagenes/Daniel.webp);
}
.portfolio__project .project-link{
    position: absolute;
    inset: 0;
    z-index: 2;
    background-color: transparent;
    cursor: pointer;
    text-indent: -99999px;
}
.caract__prop ul{
    list-style: none;
}

/*-----------------------PORTFOLIO QUERIES--------------------*/





@container portfolio (min-width: 1040px){
    .portfolio__project-name{
        margin-top: 250px;
    }
    .caract__prop{
        display: flex;
        align-items: center;
        
        max-height: 150px;
        border-radius: 10px;
        overflow-y: visible;
    }
    .portfolio__project-container{
        grid-template-columns: repeat(auto-fill,minmax(300px,1fr)) ;
        
    }
    .portfolio__project:first-child{
        grid-column: span 2;
        grid-row: span 3;
    }
    .portfolio__project:nth-child(2){
        grid-column: span 1;
        grid-row: span 3;
    }
    .portfolio__project:last-child{
        grid-column: span 1;
        grid-row: span 3;
    }
    .portfolio__project{
        animation: none;
    }
}

/*-----------------------PORTFOLIO ENDS--------------------*/

/*-----------------------CONTACT SECTION--------------------*/

.form{
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    container-name: form;
    container-type: inline-size;
    animation: aparecer both;
    animation-timeline: view();
    animation-range: cover 20% contain 40%;
}
.formulario-p{
    margin-left: 15px;
    margin-bottom: 30px;
}
.form__form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 12px;
    max-width: 600px;
    width: 100%;
    margin-bottom: 30px;
}
.form__input-container :is(input, textarea){
    width: 100%;
    padding: 9px;
    font-size: 16px;
    margin: 4px;
    border: none;
    box-shadow: 2px 2px 4px #0003;
    background-color: #fff6;

}
.form__input-container textarea{
    resize: none;
    min-height: 120px;
    font-family: inherit;
}
.form__input-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.form__input-container input[type="submit"]{
    align-items: flex-end;
    width:fit-content;
    padding: 0.5em 2em;
    border-radius: 12px;
    cursor: pointer;
    padding: 12px;
    background-color: #080808;
    color: #fff;
    transition: background-color 0.2s, transform 0.2s;
}
input[type="submit"]:active {
    background-color: #174a96;
    transform: scale(0.97);
}
input[type="submit"]:hover {
    background-color: #4a6284;
    color: #fff;
    transform: scale(1.05);
}
.form__title{
    font-size:2.3rem ;
}
/*-----------------------CONTACT QUERIES--------------------*/

@container form (max-width: 56.25rem){
    .form__form{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
        "name lastname"
        "email email"
        "message message"
        "button button";
        gap: 12px;
        background-image: radial-gradient( #18233f11, #18233f33);
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 0 40px #0006;
    }
    .form__input-container:first-child{
        grid-area: name;
    }
    .form__input-container:nth-child(2){
        grid-area: lastname;
    }
    .form__input-container:nth-child(3){
        grid-area: email;
    }
    .form__input-container:nth-child(4){
        grid-area: message;
    }
    .form__input-container:nth-child(5){
        grid-area: button;
    }
    .form__input-container :is(input, textarea){
        box-shadow: 0;
        border-radius: 4px;
    }
}

/*-----------------------CONTACT ENDS--------------------*/


/*-------------------------CONTACTO SECTION---------------*/
.contacto{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    
}
.ubicacion{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-left: 10px;

}
.contact__title{
    margin-left: 10px;
}
.ubicacion img{
    width: 20px;
    height: 20px;
}
.phone{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}
.phone img{
    width: 20px;
    height: 20px;
}
.contact__text{
    margin-left: 10px;
}
.contact__list{
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-left: 10px;
}
.contact__item{
    list-style: none;
}
.contact__item a img{
    width: 20px;
    height: 20px;
}

.contact__item a img:hover{
    transform: scale(1.18);
    transition: transform 0.2s;
}
/*-----------------------FOOTER SECTION--------------------*/


footer{
    padding: 60px;
    text-align: center;
    background-color: #060606;
    color: #fffd;
    font-size: 22px;
}

/*-----------------------FOOTER QUERIES--------------------*/

/*----------------------FOOTER ENDS------------------------*/

/*------------------------PAGINA 2------------------------------------*/
.tittle{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    gap: 20px;
}
.desc_h2{
    margin-left: 24px;
}
.prop__container{
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1300px;
    margin: auto;
    width: 90%;
    padding: 12px;
    gap: 12px;
    container-name: img_casitas;
    container-type: inline-size;
    justify-content: space-evenly;
}

.prop__container-item{
    min-height: 200px;
    background-position: center;
    background-size: cover;
    place-content: top;
    border-radius: 5px;
    box-shadow: 0px 0px 20px #000; 
    transition: transform 0.3s linear, box-shadow 0.3s;
    cursor:pointer;
}
.prop__container-item:hover{
    transform: scale(1.08) ;
    box-shadow: 0 0 40px #0009;
    z-index: 2;
}
.fondo_prop{
    background-color: #0009;
    color: #fff;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.living_p{
    background-image: url(imagenes/pancho/living_p.webp);
}
.cocina_p{
    background-image: url(imagenes/pancho/cocina_p.webp);
}
.hab1_p{
    background-image: url(imagenes/pancho/hab1_p.webp);
}
.hab2_p{
    background-image: url(imagenes/pancho/hab2_p.webp);
}
.baño_p{
    background-image: url(imagenes/pancho/bano_p.webp);
}
.garaje_p{
    background-image: url(imagenes/pancho/garaje_p.webp);
}
.parrilla_p{
    background-image: url(imagenes/pancho/parrilla_p.webp);
}
.terraza_p{
    background-image: url(imagenes/pancho/terraza_p.webp);
}
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 40px #000a;
}

.shadow__div{
    background-color: #ffffff9d;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50%;
    margin: auto;
    font-size: 16px;
    color: #000;
    height: auto;
    overflow: visible;
}
.shadow__div li{
    list-style: none;
    margin: 10px;
}

.contact_p2{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-height: 100px;
    gap: 20px;
    margin: 20px 0px -60px 1px;
}

.go-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 12px 18px;
    border-radius: 50px;
    background: #fff;
    color: #000;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px #0004;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.go-top-btn:hover {
    opacity: 1;
}
.desco{
    margin-left: 5px;
}
@media screen and (min-width: 900px){
    .prop__container-item{
        margin: 6px;
        will-change: transform;
        transform: translateZ(0);
    }
    .prop__container{
        overflow: visible;
        isolation: isolate;
        grid-template-columns: repeat(auto-fill,minmax(400px,2fr)) ;  
        grid-auto-flow: dense;  
    }
    .prop__container >:first-child{
        grid-column: span 2;
        grid-row: span 2; 
    }
    .prop__container >:nth-child(3){
        grid-column: 2;
        grid-row: span 2;
    }
    .prop__container >:nth-child(7){
        grid-column:  span 1 ;
        grid-row: span 2;
    }
    
    .shadow__div{
        
        margin: 0;
        padding: 0;
        width: 30%;
        text-align: left;
    }
    .shadow{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .cp2{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
.frente_d{
    background-image: url(imagenes/Daniel.webp);
}
.living_d{
    background-image: url(imagenes/daniel/livingd.webp);
}
.cocina_d{
    background-image: url(imagenes/Daniel/cocinad.webp);
}
.livingcocina_d{
    background-image: url(imagenes/Daniel/cocinacomed.webp);
}
.hab1_d{
    background-image: url(imagenes/Daniel/habd.webp);
}
.hab2_d{
    background-image: url(imagenes/Daniel/hab2d.webp);
}
.baño_d{
    background-image: url(imagenes/Daniel/bañod.webp);
}
.garaje_d{
    background-image: url(imagenes/Daniel/garajed.webp);
}
.patio_d{
    background-image: url(imagenes/daniel/patiod.webp);
}
.terraza_d{
    background-image: url(imagenes/daniel/terrazad.webp);
}




.frente_m{
    background-image: url(imagenes/maximo/frentem.webp);
}
.living_m{
    background-image: url(imagenes/maximo/livingm.webp);
}
.cocina_m{
    background-image: url(imagenes/maximo/cocinam.webp);
}
.hab1_m{
    background-image: url(imagenes/maximo/hab1m.webp);
}
.hab2_m{
    background-image: url(imagenes/maximo/hab2m.webp);
}
.baño_m{
    background-image: url(imagenes/maximo/bañom.webp);
}
.garaje_m{
    background-image: url(imagenes/maximo/garajem.webp);
}
.patio_m{
    background-image: url(imagenes/maximo/patiom.webp);
}