.portfolio-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 30px 0;
    overflow: visible !important; /* Desactivar el scroll del carrusel */
}

.grid-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
    transform: scale(1);
}

.grid-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.grid-item:hover {
    transform: translateY(-10px);
    border-color: var(--cohete, #00d4a3);
    box-shadow: 0 15px 30px rgba(0, 212, 163, 0.2);
}

.grid-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.grid-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: white;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.grid-item:hover .overlay {
    transform: translateY(0);
}

.grid-item .title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.grid-item .category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cohete, #00d4a3);
    font-weight: 600;
}

/* Filtros */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-cohete-outline {
    border: 1px solid rgba(0, 212, 163, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-cohete-outline:hover, .btn-cohete-outline.active {
    background: #00d4a3;
    color: black;
    border-color: #00d4a3;
    box-shadow: 0 0 15px rgba(0, 212, 163, 0.4);
}
