/* ========================================
   Portafolio Page Styles
   ======================================== */

/* Hero Portafolio */
.portfolio-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: transparent;
}

.ph-eyebrow {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 13px;
    display: block;
    margin-bottom: 20px;
}

.ph-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    font-weight: 900;
    line-height: 1.1;
    margin: 15px 0 25px;
}

.ph-subtitle {
    color: rgba(255, 255, 255, 0.6);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Filtros Section */
.portfolio-filters-section {
    padding: 40px 20px;
    text-align: center;
    background: transparent;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filters-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn .icon {
    font-size: 16px;
    filter: grayscale(1);
    transition: 0.3s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--jz-white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--jz-white);
    color: var(--jz-dark);
    border-color: var(--jz-white);
}

.filter-btn.active .dot {
    width: 8px;
    height: 8px;
    background: var(--jz-teal);
    border-radius: 50%;
    display: inline-block;
}

.teal-btn:hover, .teal-btn.active-filter {
    border-color: var(--jz-teal);
    color: var(--jz-teal);
    box-shadow: 0 0 15px rgba(3, 180, 178, 0.2);
}

.teal-btn:hover .icon {
    filter: grayscale(0);
}

.lime-btn:hover, .lime-btn.active-filter {
    border-color: var(--jz-lime);
    color: var(--jz-lime);
    box-shadow: 0 0 15px rgba(221, 255, 25, 0.2);
}

.lime-btn:hover .icon {
    filter: grayscale(0);
}

.filter-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Grid de Proyectos */
.portfolio-grid-section {
    padding: 60px 20px 100px;
    background: transparent;
}

.pg-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.pg-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: var(--jz-dark-card);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pg-card:hover {
    transform: translateY(-10px);
    border-color: var(--jz-teal);
}

.pg-media {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #000;
}

.pg-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.05);
}

.pg-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 40px;
    text-align: center;
}

.pg-card:hover .pg-overlay {
    opacity: 1;
}

.pg-impact {
    margin-bottom: 30px;
}

.impact-num {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

.impact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--jz-white);
    opacity: 0.8;
}

.pg-btn-view {
    padding: 12px 25px;
    border: 1.5px solid var(--jz-white);
    border-radius: 50px;
    color: var(--jz-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pg-btn-view:hover {
    background: var(--jz-white);
    color: #000;
}

.pg-content {
    padding: 30px;
}

.pg-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pg-year {
    color: rgba(255, 255, 255, 0.3);
}

.pg-title {
    color: var(--jz-white);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}

.pg-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .pg-container {
        grid-template-columns: 1fr;
    }
    
    .pg-media {
        height: 320px;
    }
    
    .impact-num {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .filters-wrapper {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .ph-title {
        font-size: 2.5rem;
    }
}
