#portfolio {
    position: relative;
    overflow: hidden;
    background-image: url("img/portfolio_bg.png");
    background-size: cover;
    background-position: center;
}

#portfolio::before,
#portfolio::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px; /* Ajusta la altura del degradado */
    pointer-events: none; /* No bloquea interacciones */
}

/* Degradado superior */
#portfolio::before {
    top: 0;
    background: linear-gradient(to bottom, black, transparent);
}

/* Degradado inferior */
#portfolio::after {
    bottom: 0;
    background: linear-gradient(to top, black, transparent);
}

.image-container {
    display: flex;
    gap: 1rem;
    max-width: 1000px;
    width: calc(100% - 100px);
    margin-inline: auto;
    padding: 0 1rem;
    overflow: hidden;
    cursor: pointer;
}

.image-container .image {
    position: relative;
    width: 60px;
    height: 420px;
    border-radius: 2rem;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.image-container .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.image-container span {
    display: inline-block;
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background-color: #000;
    padding: 0.7rem 1rem;
    border-radius: 100vw;
    color: #fff;
    font-size: 1.2rem;
    transform: scale(0);
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95) 0.3s;
}

.image-container .active {
    width: 100%;
}

.image-container .active span {
    transform: scale(1);
}

@media (max-width: 576px) {
    .image-container {
        flex-direction: column;
        max-width: 2000px;
        width: 100%;
        height: 400px;
    }

    .image-container .image {
        width: 100%;
        height: 60px;
        transition: height 0.5s ease-in-out;
    }

    .image-container .image img {
        width: 100%;
        height: 100%;
    }

    .image-container .active {
        height: 400px;
    }
}

.portfolio-btn {
    min-width: 130px;
    height: 40px;
    color: #fff;
    margin: 30px;
    padding: 5px 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    outline: none;
    border-radius: 8px;
    border: none;
    background: #b38be3;
    box-shadow: 0 5px #783c7e;
}

.portfolio-btn:hover {
    box-shadow: 0 3px #783c7e;
    top: 1px;
}

.portfolio-btn:active {
    box-shadow: 0 0 #783c7e;
    top: 5px;
}