
/*=========================================
    # Inicio Seccion
===========================================*/

.inicio-section {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inicio-section img {
    width: 100%;
    height: auto;
    animation: fadeOpacity 1.2s ease;
}

/*=========================================
    # Services Section
===========================================*/

.services-section {
    margin-top: 160px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services-section h1 {
    letter-spacing: 10px;
    width: 90%;
    bottom: 25px;
    left: 70px;
    font-size: var(--h2-title);
    color: aqua;
    margin-bottom: 0px;
}

.services-section p {
    font-size: var(--h2-title);
    color: gray;
    width: 90%;
    margin-bottom: 80px;
}


.services-container {
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin: 50px 0px;
    margin-bottom: 0px;
}

.service-item {
    width: 23%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(40px);
}


.service-item .divisor {
    width: 50px;
    height: 1px;
    background-color: aqua;
}

.service-item img {
    width: clamp(120px, 8vw, 250px);;
    height: auto;
}

.service-item h2 {
    font-size: var(--h2-title);
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: lighter;
}

.service-item p {
    font-size: var(--p-title);
    color: gray;
    text-align: center;
}

.fadedIn {
    transform: translateY(-10px);
    opacity: 1;
}

/*=========================================
    # Proyects Section
===========================================*/

.proyects-section {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    margin-bottom: 80px;
}

.proyects-section h1 {
    text-align: center;
    letter-spacing: 10px;
    width: 100%;
    bottom: 25px;
    left: 70px;
    font-size: var(--h2-title);
    color: aqua;
    margin-top: 70px;
    margin-bottom: 10px;
}

.proyects-section p {
    width: 100%;
    text-align: center;
    margin: 0px;
    font-size: var(--p-title);
    color: gray;
    margin-bottom: 40px;
}

.principal-video-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 70vh;
    max-height: 880px;
    max-height: 1300px;
    margin-bottom: 15px;
}

.principal-video-container video {
    display: none;
    border-radius: 10px;
    max-width: 100%;
    max-height: 100%;
    z-index: 20;
    object-fit: contain;
    z-index: 10;
}

.principal-video-container .circle {
    display: block;
    border-radius: 50%;
    position: absolute;
    border: 7px solid white;
    border-top: 7px solid transparent;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    z-index: 1;
    animation: rotate 1s ease infinite;
}

@keyframes rotate {
    0% {
        rotate: 0deg;
    }
    100% {
        rotate: 365deg;
    }
}


@keyframes fade-in {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.proyects-container-mark {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1250px;
    position: relative;
    overflow: hidden;
}

.mark-button {
    position: absolute;
    height: 100%;
    width: 5%;
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mark-button-img {
    user-select: none;
    width: 50px;
    opacity: 0;
    transition: all 0.3s ease;
}

.proyects-container-mark:hover .mark-button-img {
    opacity: 0.8;
}

.previous-button {
    top: 0px;
    left: 0px;
    background: linear-gradient(90deg,rgba(15, 15, 15, 1) 0%, rgba(15, 15, 15, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.next-button {
    top: 0px;
    right: 0px;
    background: linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(15, 15, 15, 1) 100%, rgba(15, 15, 15, 1) 100%);
}

.proyects-container-mark::-webkit-scrollbar {
    display: none;
}

.proyects-container {
    transform: translateX(0px);
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    transition: all 0.3s ease;
    gap: 20px;
}

.proyect-item {
    user-select: none;
    width: clamp(300px, 5vw, 500px);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    box-shadow: none;
    background-color: rgb(32, 32, 32);
}

.proyect-item:hover {
    cursor: default;
   
}


.proyect-item .video {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video_src {
    width: 100%;
    object-fit: contain;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    transition: transform 0.3s ease, border-color 0.4s ease;
    border: 2px solid transparent;
}

.play_button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    z-index: 40;
}

.proyect-item:hover .play_button {
    opacity: 1;
}

.proyect-item h2 {
    font-size: var(--h2-title);
    margin: 0;
    font-weight: bold;
    margin-bottom: 5px;
    transition: color 0.4s ease;
    position: absolute;
    top: 15px;
    left: 20px;
    text-shadow: 1px 4px 10px black;
    opacity: 1;
    transition: all 0.4s ease;
}

.proyect-item p {
    transition: all 0.4s ease;
    opacity: 0;
    font-size: var(--p-title);
    color: white;
    margin: 0px;
    text-align: left;
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 90%;
}

.proyect-display {
    top: 50%;
    z-index: 101;
    width: 65vw;
    margin: 0 auto;
    transition: width 0.5s ease;
    transform-origin: center;
    transform: translateY(-50%);
    position: fixed;
    height: auto;
    background-color: black;
    border-radius: 10px;
}

.proyect-item:hover h2 {
    color: aqua;
    opacity: 1;
}

.proyect-item:hover .video_src {
    border: 2px solid transparent;
}

.proyect-item:hover .video .video_src {
     backdrop-filter: blur(20px);
     opacity: 0.5;
}

.proyect-item:hover p {
    opacity: 1;
}

/*==========================================================
        # RESPONSIVE
==========================================================*/

/* Tablet */
@media (max-width: 1024px) {
    .inicio-section {
        height: 60vh;
    }

    .inicio-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .services-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .proyects-container {
        flex-wrap: wrap;
        gap: 40px;
    }

    .proyect-item {
        width: 45%;
        box-sizing: border-box;
    }

    .play_button {
        opacity: 1;
    }

    .proyect-display {
        left: 50%;
        width: 80vw;
        transform: translate(-50%, -50%);
    }
    
    .mark-button {
        display: none;
    }
}

/* Móvil */
@media (max-width: 600px) {
    .inicio-section {
        height: 55vh;
    }

    .services-container {
        flex-direction: column;
        gap: 24px;
    }

    .service-item {
        width: 100%;
        max-width: 260px;
    }

    .service-item img {
        width: auto;
        height: 90px;
    }

    .principal-video-container {
        display: none;
    }

    .mark-button {
        display: none;
    }

    .proyects-container {
        flex-direction: column;
    }

    .proyects-container-mark {
        justify-content: center;
    }

    .proyect-item {
        width: 100%;
        max-width: 320px;
    }

    .proyect-display {
        width: 92vw;
    }
}
