


.header_backgorund{
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: url(../img/Background_trabajos.jpg) no-repeat;
    background-color: rgb(90, 90, 90);
    background-blend-mode: soft-light;
    background-size: cover;
    background-position: center;
}

.presentation{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
	height:100%;
	position:absolute;
    text-align: center;
}

.presentation h1{
    font-size: var(--font-size-jumbo);
    color: var(--color6);
    font-family: var(--font-family-tittle);
    transition: 1s;
}

.MainContainerTrabajos{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50dvh;
    padding-bottom:1em;
    padding-top: 1em;
}

.infoTrabajos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 70%;
    min-height: 300px;
    padding: 15px 30px;
}

.infoTrabajos h1{
    font-family: var(--font-family-tittle);
    font-size: var(--font-size-display);
    margin-bottom: 20px;
}

.infoTrabajos h1 span{
    color: var(--color);
}

.infoTrabajos p{
    font-family: var(--font-family-body);
    font-size: var(--font-size-subencabezado);
    line-height: 1.2em;
    color: grey;
}

.containerTrabajos {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px auto;
}

.containerList {
    display: flex;
    width: 70%;
    margin-bottom: 20px;
}

.filter-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    font-family: var(--font-family-body);
    font-size: var(--font-size-p);
}

.filter-item {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.filter-item:hover {
    background-color: #ddd;
}

.filter-item.active {
    background-color: #ccc;
    font-weight: bold;
}


.containerTrabajos {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px auto;
}

.containerList {
    display: flex;
    width: 70%;
    margin-bottom: 20px;
}

.filter-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-family-body);
    font-size: var(--font-size-p);
}

.filter-item {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.filter-item:hover {
    background-color: #ddd;
}

.filter-item.active {
    background-color: #ccc;
    font-weight: bold;
}

.Containergallery{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery {
    position: relative;
    display: grid;
    width: 70%;
    min-height: 500px;
    grid-template-columns: repeat(3, 1fr); 
    gap: 5px; 
    
}

.gallery-item {
    position: relative;
    display: flex;
    height: 250px;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);   
}

.gallery-item img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0;
    left: 0;  
}

@keyframes customerfadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes customerfadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: block; /* Mostrar las imágenes por defecto */
}

.gallery-item.fade-out {
    animation: customerfadeOut 0.5s forwards;
}

.gallery-item.fade-in {
    animation: customerfadeIn 0.5s forwards;
    display: block;
}

.work_link{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 95%;
    height: 95%;
    padding: 10px;
    text-align: center;
}

.work_link a{
    display: block;
    opacity: 0;
    width: 100%; 
    height: 100%; 
    color: var(--color6);
    background-color: var(--color); 
    text-decoration: none; 
    border-radius: 5px; 
    overflow: hidden; 
    padding: 20px 20px; 
    box-sizing: border-box; 
    transition: all 0.5s ; 
    
}

.work_link a h1{
    font-size: var(--font-size-titulo);
    font-family: var(--font-family-tittle);
    text-align: left;
    
}

.work_link a:hover{
    opacity: 1;
}


.work_link .line{
    width: 50%;
    height: 5px;
    background-color: var(--color6);
    margin-top: 10px;
}



@media screen and (min-width:767px) and (max-width:1020px){

    .header_backgorund{
        height: 50dvh;
    }

    .MainContainerTrabajos{
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 30dvh;
        padding-bottom:0;
        padding-top: 0;
    }

    .infoTrabajos{
        width: 80%;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .infoTrabajos h1{
        font-family: var(--font-family-tittle);
        font-size: var(--font-size-display);
        text-align: center;
        width: 100%;
    }

    .infoTrabajos p{
        text-align: center;
        font-family: var(--font-family-body);
        font-size: var(--font-size-encabezado);
        width: 100%;
        line-height: 3rem;
        
    }

    .containerList{
        width: 90%;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .gallery {
        position: relative;
        display: grid;
        width: 70%;
        min-height: 5px;
        grid-template-columns: repeat(1, 1fr); 
        gap: 5px; 
        
    }

    .gallery-item {
        position: relative;
        display: flex;
        height: 30dvh;
        border: 1px solid #ccc;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);   
    }

}

