/* Project Viewer - Sistema de visualización con animaciones */
#project-view {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.project-video {
    z-index: 99;
    height: 85vh;
    width: 100%;
    object-fit: cover;
}

/* Panel de info */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 15vh;
    min-height: 0;
    overflow: hidden !important;
    background-color: inherit;
    -webkit-transition: all 500ms !important;
    -moz-transition: all 500ms !important;
    transition: all 500ms !important;
}
.project-info.expanded {
    height: 400px;
    min-height: 350px;
    overflow: hidden !important;
    -webkit-transition: all 500ms !important;
    -moz-transition: all 500ms !important;
    transition: all 500ms !important;
}

@media screen and (max-width: 760px) {
    .project-info.expanded {
        height: 99vh;
        min-height: inherit;
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-content: flex-start !important;
        justify-content: center !important;
    }
}


/* Contenedor de contenido */
#project-content {
    display: block;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow:visible;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    padding-right: 6px;
    box-sizing: border-box;
    overflow-y: auto;
}

#project-content.active {
    max-height: calc(400px - 15vh);
    opacity: 1;
}

@media screen and (max-width: 760px) {
    #project-content.active {
        max-height: fit-content;
        opacity: 1;
    }

}


.project-link .elementor-heading-title a {
    text-transform: uppercase;
    border-bottom: 1px solid #000000;
}
.project-link:hover .elementor-heading-title a, 
.project-link .elementor-heading-title a:hover {
    border-bottom: 1px solid #BE9172;
}
.project-link.active .elementor-heading-title a{
    color:  #BE9172 !important;
}

#content-info .jet-listing-dynamic-repeater__items {
    column-count: 2;
    column-gap: 5%;
    column-width: 45% !important;
    max-height: 300px;
    overflow: auto;
    display: block !important;
}

#content-info .jet-listing-dynamic-repeater__item {
    width: 100%;
    break-inside: avoid;
    display: inline-block;
}
#content-info .pr-cr-puesto{
    padding-top: 15px;
}
#content-info .pr-cr-name {
    line-height: 6px;
    padding-top: 7px;
}
#content-info .pr-cr-name a{
    color: #FFFFFF;
    text-decoration: underline;
}
#content-info .pr-cr-name a:hover{
    text-decoration: none;
}
/* ANIMACIONES PARA ENTRADA Y SALIDA */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Estado inicial de secciones de contenido */
[id^="content-"] {
    display: none;
    padding: 20px 0;
    width: 100%;
}

/* Estado visible con animación de entrada */
[id^="content-"].visible {
    display: flex !important;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

/* Estado de salida con animación */
[id^="content-"].exiting {
    display: flex !important;
    opacity: 1;
    animation: fadeOutDown 0.5s forwards;
}

/* Estilos para enlaces */
.project-link .elementor-heading-title a {
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.project-link.active .elementor-heading-title a {
    font-weight: bold;
}

/*GALEREA IMAGENES*/
.project-img-flex{
    display: flex;
    justify-content: center;
    gap: 5%;
}

@media screen and (max-width: 760px) {
    .project-img-flex {
        display: flex;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        align-content: space-around;
        column-count: auto;
        padding: 50px;
        row-gap: 50px;
        column-gap: 50px;
    }
}

.project-img-flex img {
    height: 70px !important;
    object-fit: contain;
    background: transparent;
    filter: grayscale(100%);
    padding:   0px;
}
.project-img-flex img:hover{
    filter: grayscale(0%);
    opacity: .75;
}


/* Custom scrollbar */
#project-content::-webkit-scrollbar {
    width: 0px;
}
