.technologies {
    max-width: 1900px;
    margin: 50px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.description {
    font-size: 1.3em;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
}

.nav-tech ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    padding: 0;
    margin: 0 0 40px 0;
    border-bottom: 2px solid #ecf0f1;
}

.nav-tech {
    cursor: pointer;
    padding: 10px 0;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-tech::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F44730;
    transition: width 0.3s ease;
}

.nav-tech li:hover::after,
.nav-tech li.active::after {
    width: 100%;
}

.nav-tech li.active {
    color: #F44730;
}

.tech-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tech-icon {

    flex: 0 0 18%;
    margin: 10px;
    transition: transform 0.3s ease;
}



.tech-icon:hover img {
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.tech-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tech-section.active {
    display: block;
    opacity: 1;
}

.tech-icon img {
    
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    margin-top: 25px;
}

@media (max-width: 1200px) {
    .tech-icon {
        flex: 0 0 auto;
        width: 190px;
        margin-right: 15px;
    }
}

@media (max-width: 992px) {
    .tech-icon {
        flex: 0 0 auto;
        width: 190px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {

    .tech-icon {
        flex: 0 0 auto;
        width: 190px;
        margin-right: 15px;
    }


}

@media (max-width: 425px) {
    h2 {
        font-size: 1.8em;
    }

    .description {
        font-size: 0.9em !important;
    }

    .nav-tech {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        /* Para un desplazamiento suave en iOS */
    }

    .nav-tech ul {
        display: inline-flex;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        /* Espacio para la barra de desplazamiento */
    }

    .nav-tech li {
        flex: 0 0 auto;
        margin-right: 15px;
    }

    /* .tech-icons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    } */

    .tech-icon {
        flex: 0 0 auto;
        width: 190px;
        margin-right: 15px;
    }
}