body {
    background: radial-gradient(circle at top right, #1e293b, #020617);
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: rgba(2, 6, 23, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__logo img {
    height: 35px;
}

select[data-categorias] {
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
}

.section {
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible; 
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 4px;
}

.lista {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    list-style: none;
    padding: 10px 0;
}

.lista li {
    position: relative;
    transition: transform 0.3s ease;
    z-index: 1;
}

.lista li a img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.lista li:hover {
    transform: scale(1.1);
    z-index: 50;
}

.lista li:hover img {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.5);
}

@media (max-width: 1200px) {
    .lista {
        grid-template-columns: repeat(4, 1fr);
    }
    .header { padding: 1rem 2rem; }
    .section { padding: 2rem; }
}

@media (max-width: 900px) {
    .lista {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header__logo img { height: 30px; }

    .lista {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    h2 { font-size: 1.1rem; }

    .lista li:hover {
        transform: scale(1.05);
    }
}

.hidden { display: none !important; }

#categoria-filtrada {
    animation: fadeIn 0.4s ease;
    min-height: 60vh;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}