@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --wCard: 250px;
    --hCard: 100%;
    --minHCard: 8rem;
    --colorb: #09f;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-family: "Poppins", sans-serif;
    font-style: normal;
    scrollbar-width: thin;
}

body {
    background-image: url('../img/bg_100js.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: auto;
}


main {
    padding: 2rem;
    width: 100%;
    margin: 0 auto;
    max-width: 1140px;
}

.header_links {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    a {
        color: black;
        font-size: 16px;
    }
}

figure {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
figure img {
    max-width: 400px;
}

h1 {
    text-align: center;
    padding-block: 1rem;
}


pre {
    padding: .5rem;
    background: rgba(6,125,247,.15);
}
pre::selection, code::selection {
    background: #09f;
    text-shadow: none;
    opacity: .3;
}


.description {
    width: 100%;
    margin-block: 2rem;
    padding-inline: 1rem;
}
.description p {
    text-wrap: pretty;
}
.description p a, .description p a:active, .description p a:visited {
    color: var(--colorb);
    text-decoration: none;
}
.description p a:hover {
    text-decoration: underline;
}


.projects {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-block: 1rem;
}

.projects-item {
    position: relative;
    width: var(--wCard);
    height: var(--hCard);
    min-height: var(--minHCard);
    /* background-color: aquamarine; */

    border-radius: 7px;
    /* box-shadow: 0 0 3px 4px rgba(0 0 0 / 15%); */

    overflow: hidden;

    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(255,255,255,0.507921918767507) 37%);
}

.card-transition {
    view-transition-name: cardInit;
}

.projects-item--title {
    font-size: 1.5rem;
    z-index: 1;
    opacity: 1;
    color: black;
    transition: color .8s ease;

    position: absolute;
    padding-block: .5rem;
    padding-inline: 1.2rem;
    text-shadow: 0 2px 6px rgba(0 0 0 / 70%);
}
.projects-item--title.white {
    color: white;
}
.projects-item figure {
    width: 100%;
    border-radius: 7px;
}
.projects-item figure img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1;
    scale: 1;
    filter: none;
    transition: scale .4s ease;
}
.projects-item_back {
    position: absolute;
    width: var(--wCard);
    height: var(--hCard);
    min-height: var(--minHCard);
    background-color: #000000cf;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    top: 260px;
    opacity: 0;
    /* border-top-left-radius: 5px;
    border-top-right-radius: 5px; */
    /* transition: top .4s ease, opacity .8s ease, border 1.3s ease; */
    transition: top .4s ease, opacity .8s ease;

}
.projects-item_back p, .projects-item_back a  {
    color: white;
}
.projects-item_back p {
    text-align: center;
}
.projects-item_back a  {
    font-size: 16px;
    font-weight: 700;
    /* color: var(--colorb); */
}

.projects-item.no_events{
    filter: grayscale(1);
}
.projects-item:not(.no_events):hover .projects-item--title {
    color: white;
    opacity: .7;
    transition: color .8s ease;
}
.projects-item:not(.no_events):hover .projects-item_back  {
    z-index: 1;
    top: 0;
    opacity: .8;
    /* border-top-left-radius: 0;
    border-top-right-radius: 0; */
    /* transition: top .4s ease, opacity .9s ease, border 1.3s ease; */
    transition: top .4s ease, opacity .8s ease;
}
.projects-item:not(.no_events):hover figure img {
    scale: 1.6;
    filter: blur(1px);
    transition: scale .4s ease;
}

 /* foto antigua */
 /* foto nueva */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .4s;
}