/* ============================================
   PORTFOLIO METALÚRGICA - FRONTEND
   ============================================ */

.mp-portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- FILTROS --- */
.mp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.mp-filter-btn {
    background: #fff;
    border: 2px solid #ddd;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.25s ease;
}

.mp-filter-btn:hover {
    border-color: #333;
    color: #333;
}

.mp-filter-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* --- GRID --- */
.mp-grid {
    display: grid;
    gap: 30px;
}

.mp-cols-1 { grid-template-columns: 1fr; }
.mp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mp-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* --- CARD --- */
.mp-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.08);
}

.mp-card-img {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f0f0f0;
}

.mp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mp-card:hover .mp-card-img img {
    transform: scale(1.04);
}

/* --- CARD BODY --- */
.mp-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mp-card-meta-top {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mp-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-tag-anio {
    background: #e8f5e9;
    color: #2e7d32;
}

.mp-tag-ot {
    background: #e3f2fd;
    color: #1565c0;
}

.mp-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.mp-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.mp-card-title a:hover {
    color: #0073aa;
}

.mp-card-empresa {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.mp-card-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    flex: 1;
}

.mp-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.mp-badge {
    background: #f0f0f0;
    color: #444;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.mp-card-gallery-count {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.mp-card-link {
    display: inline-block;
    margin-top: auto;
    padding: 10px 0;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    transition: color 0.2s;
}

.mp-card-link:hover {
    color: #005a87;
}

/* --- EMPTY --- */
.mp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .mp-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .mp-cols-2, .mp-cols-3 { grid-template-columns: 1fr; }
    
    .mp-card-img { height: 220px; }
    
    .mp-filters {
        gap: 6px;
    }
    
    .mp-filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}