/* public_html/assets/css/sections/portafolio.css */
.section-portafolio {
    padding: 100px 80px;
    background: var(--white);
}

.portafolio-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.portafolio-top h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #2F3B4A;
    font-weight: 400;
}

.portafolio-nav {
    display: flex;
    gap: 15px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    color: #666;
}

.nav-arrow:hover {
    border-color: #2F3B4A;
    color: #2F3B4A;
    background: #f8f8f8;
}

.portafolio-slider-container {
    max-width: 1400px;
    margin: 0 auto 60px;
    overflow: hidden;
}

.portafolio-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    gap: 30px;
}

.portafolio-item {
    min-width: calc(33.333% - 20px);
    flex: 0 0 calc(33.333% - 20px);
    text-align: left;
}

.portafolio-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.portafolio-item:hover img {
    transform: translateY(-5px);
}

.portafolio-category {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    font-size: 11px;
    color: #888;
    text-transform: capitalize;
    margin-bottom: 8px;
    display: block;
}

.portafolio-item h3 {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: #2F3B4A;
    font-weight: 500;
}

.portafolio-footer {
    text-align: center;
}

.portafolio-btn {
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid #2F3B4A;
    color: #2F3B4A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.portafolio-btn:hover {
    background: #2F3B4A;
    color: var(--white);
}

@media (max-width: 1280px) {
    .portafolio-item {
        min-width: calc(50% - 15px);
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .portafolio-item {
        min-width: 100%;
        flex: 0 0 100%;
    }
    .section-portafolio {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .section-portafolio {
        padding: 60px 16px;
    }

    .portafolio-top {
        align-items: flex-start;
        margin-bottom: 28px;
        gap: 18px;
    }

    .portafolio-top h2 {
        font-size: 34px;
    }

    .portafolio-slider-container {
        margin-bottom: 36px;
    }

    .portafolio-slider {
        gap: 20px;
    }

    .portafolio-item img {
        height: 260px;
        margin-bottom: 14px;
    }

    .portafolio-item h3 {
        font-size: 16px;
    }

    .portafolio-btn {
        width: 100%;
        text-align: center;
    }
}
