/* ======= GENERAL ======= */
body {
    font-family: 'Arial', sans-serif;
    background: #ffffff;
    color: #333;
}

/* Hero */
.hero-porta {
    margin-top: 100px;
    height: 60vh;
    min-height: 350px;
    background: url('steph-washi-C9oS4ozQuQ4-unsplash.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-porta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-porta .hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 15px;
}

.hero-porta h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero-porta p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ======= FILTER BUTTONS ======= */
.filter-section {
    padding: 40px 20px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #eee;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.filter-btn:hover {
    transform: translateY(-3px);
}

.filter-btn.active {
    background: #ff6b35;
    color: white;
}

/* ======= PORTFOLIO GRID ======= */
.portfolio-section {
    padding: 20px 20px 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 35px;
}

/* ======= PROJECT CARD ======= */
.project-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    transition: all 0.35s ease;
    opacity: 1;
    transform: scale(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* Hidden when filtering */
.visible-card {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* ======= PROJECT IMAGE ======= */
.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 3px solid #ff6b35;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* ======= PROJECT INFO ======= */
.project-info {
    padding: 20px;
}

.project-category {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #222;
}

.project-description {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ======= VER MÁS BUTTON ======= */
.project-button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: 0.3s ease;
}

.project-button:hover {
    background: #ff5a1d;
}

/* ======= PROJECT META ======= */
.project-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #777;
    display: flex;
    justify-content: space-between;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 820px) {
    .hero-porta h1 {
        font-size: 2.4rem;
    }

    .hero-porta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 520px) {
    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        max-width: 300px;
        margin: 5px auto;
    }

    .hero-porta {
        height: 45vh;
    }

    .hero-porta h1 {
        font-size: 1.9rem;
    }
}
