.categoria-gallery {
    padding: 8rem 2rem 5rem;
    background-color: #f8f9fa;
}

.categoria-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.back-button {
    position: absolute;
    left: 2rem;
    top: 0;
    text-decoration: none;
    color: #072c32;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #007bff;
}

.categoria-header h1 {
    color: #072c32;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.categoria-description {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    grid-column: 1 / -1;
    text-align: center;
    margin: 3rem 0 1.5rem;
    position: relative;
}

.section-title h2 {
    color: #072c32;
    font-size: 2rem;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #072c32, #007bff);
    border-radius: 2px;
}

.categoria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.photo-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.photo-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .categoria-header {
        padding-top: 2rem;
    }

    .back-button {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .categoria-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
} 