/* Botones de filtro */
.filtros-portafolio {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filtro {
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro.style-btn {
    color: #fff;
    background: linear-gradient(0deg, rgba(87, 87, 87, 1) 0%, rgba(56, 56, 56, 1) 100%);
    border-radius: 30px;
    padding: 7px 40px;
    font-weight: 700;
    font-size: 12px;
    border: none;
}

.filtro.style-btn:hover,
.filtro.style-btn.activo {
    background: linear-gradient(0deg, rgba(227, 18, 31, 1) 0%, rgba(154, 8, 18, 1) 100%);
    border-color: transparent;
}

/* Galería contenedor en Flex */
.grid-portafolio {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Galería individual */
.item-portafolio {
    width: calc(33.333% - 13.33px); /* 3 columns with gap compensation */
    box-sizing: border-box;
}

.item-portafolio img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile: 2 columnas */
@media (max-width: 900px) {
    .item-portafolio {
        width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .item-portafolio {
        width: 100%;
    }
}
/* Scroll filtros responsive */
.filtros-responsive-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 30px;
}

.filtros-portafolio-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 10px 5px;
    scrollbar-width: none; /* Firefox */
}

.filtros-portafolio-scroll::-webkit-scrollbar {
    display: none; /* Chrome */
}

.chevron {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    border-radius: 50%;
    font-size: 20px;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chevron:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #dadada;
    color: #dadada;
}

@media (min-width: 768px) {
    .filtros-responsive-wrapper {
        justify-content: center;
    }

    .chevron {
        display: none;
    }
}
