body {
    display: grid;
    grid-template-columns: 200px 2fr 2fr;
    grid-template-rows: 100px 1fr 3fr 1fr;
    height: 100vh;
    column-gap: 1rem;
    animation: fadeIn 0.3s ease;
}

 .header-container {
    padding: 2rem 2rem 3rem 2rem;
    grid-column: 2 / span 2;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    height: fit-content;

 }
h1 {
    font-size: 4rem;
    color: #EDF060;
    font-family: Archivo, sans-serif;
    grid-area: 2 / 2 / 3 / 4;

}

p.description {
    font-family: "Google Sans", sans-serif;
    font-size: 1.25rem;
    line-height: 1.7rem;
    color: white;
    font-weight: 400;
    align-self: start;
    grid-area: 3 / 2 / 3 / 4;
    padding-top: 1rem;
    width: fit-content;
}

.wrapper {
    grid-column: 2 / 5;
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 3rem 3rem 3rem;
    gap: 2rem;
    max-width: 100vw;
}

.project-info {
    padding: 1rem 1.5rem;

}

.project-cover {
    height: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #EDF060;
}

.project-cover img {
    height: 100%;
}


.project-card {
    display: flex;
    flex-direction: column;
    min-width: 100%;
    max-width: 100%;
    min-height: fit-content;
    background-color: #100B00;
    border-radius: 8px;
    padding: 0;
    color: #FFFFFF;
    border: #FFFFFF 1px solid;
    transition: max-height 0.7s ease;
    overflow: hidden;
    gap: 0; /* por si flex añade espacios raros */
}

.project-info {
    background-color: #100B00;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3), 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: .5rem;
    padding-top: 1rem;
    font-family: Archivo, sans-serif;
}

.project-card span {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #9c9c9c;
    transition: ease-in-out 0.15s;
    font-family: "Google Sans", sans-serif;
    text-transform: capitalize;
}

.project-card p {
    font-family: google sans, sans-serif;
    font-size: 1rem;
    color: #9c9c9c;
    font-weight: 500;
    line-height: 1.5rem;
    padding: .5rem 0 0 0;
    display: block;
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    transform: translateY(8px);
}

.project-card a {
    font-family: google sans, sans-serif;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    color: #EDF060;
    text-decoration: underline;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    display: block;
    opacity: 1;
    transform: translateY(8px);
    transition: opacity 0.7s ease 0.5, transform 0.5s ease 0.3s color 0.2s ease; /* delay mayor para entrar después */
}

@media screen and (max-width: 768px) {

    .project-card h3 {
    padding-top: 1rem;

}

    .project-card {
        min-width: 100%;
        max-width: 100%;
        min-height: fit-content;
    }
    .project-card a {
        display: block;
        opacity: 1;
        transform: translateY(0);
        text-decoration: underline;
    }
    h1 {
        font-size: 3rem;
        margin-top: 1rem;
    }

    .wrapper {
        padding-bottom: 8rem;
        padding-left: 2rem;
        padding-right: 2rem;
        display: flex;
        flex-direction: column;

    }
}

@media screen and (max-width: 1280px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .project-card {
        min-width: 100%;
        max-width: 100%;
        min-height: fit-content;
    }
    .main-nav {
        display: none;
    }
        .project-card a {
        padding-bottom: 1.5rem;
    }
    h1 {
        font-size: 3rem;
        margin-top: 1rem;
    }

}