* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    display: grid;
    grid-template-areas: 
    "nav"
    "main"
    "foot";
    grid-template-columns: auto;
    grid-template-rows:  70px 1fr auto;
    min-height: 100vh;
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
}
a {
    color: #171717;
    text-decoration: none;
}
nav {
    grid-area: nav;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: sticky;
    top: 0px;
    z-index: 100;
}
.btn-nav {
    font-size: 24px;
    color: #171717;
    cursor: pointer;
}
nav img {
    height: 40px;
    width: auto;
}
menu {
    display: none;
}
.inicio {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 32px;
}
.animation {
    height: 250px;
    width: 100%;
    margin-top: 32px;
    filter: brightness(0.95);
    background-size: cover;
    background-position: center;
    animation-name: changeImage;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
    animation-direction: alternate;
}
@keyframes changeImage {
    0%{
        background-image: url("../img/boceto-1.png");
    }
    50%{
        background-image: url("../img/boceto-2.png");
    }
    85%{
        background-image: url("../img/boceto-3.png");
    }
    100%{
        background-image: url("../img/boceto-3.png");
    }
}
h1 {
    font-size: 28px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}
.inicio p {
    width: 80%;
    margin: 32px 0px 0px;
    text-align: center;
    color: #7c7c7c;
    font-size: 16px;
    font-weight: 100;
    line-height: 26px;
}
main {
    grid-area:  main;
    background-color: white;
    overflow: scroll;
    height: 100%;
    scrollbar-width: none;
}
.productos {
    display: grid;
    grid-template-columns: auto;
    gap: 4px;
    padding: 16px 0px 32px;
}
.card {
    display: flex;
    flex-direction: column;
    justify-items: center;
    background-color: white;
    height: auto;
}
.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(1);
    transition: all 0.5s ease-in-out;
}
.card img:hover {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(0);
    transition: all 0.5s ease-in-out;
    cursor: pointer;  
}
.card button {
    background-color: white;
    border: 1px solid #171717;
    color: #1D0D38;
    padding: 12px 0;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}
.card button:hover {
    background-color: rgb(0, 255, 149);
    border: 1px solid rgb(2, 222, 130);
    color: 171717;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
footer {
    grid-area: foot;
    color: #7c7c7c;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0px 0px 32px;
    font-size: 16px;
    font-weight: 100;
}
footer a {
    color: #7c7c7c;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 100;
}
footer i{
    font-size: 20px;
}
footer p{
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    line-height: 18px;
    width: 55%;
}

@media (min-width: 576px) and (max-width: 1023px) {
    body {
        display: grid;
        grid-template-areas:
        "nav nav"
        "main main"
        "foot foot";
        grid-template-columns: 20% auto;
        grid-template-rows: 70px 1fr auto;
        height: 100vh;
    }
    nav {
        grid-area: nav;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background-color: white;
    }
    nav img {
        height: 40px;
        width: auto;
    }
    .btn-nav {
        display: none;
    }
    menu {
        display: flex;
        justify-content: end;
        flex-direction: row;
        color: white;
        width: 100%;
    }
    menu li {
        padding: 12px;
        margin: 4px;
        list-style: none;
        font-size: 12px;
        border-bottom: 1px solid white;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    menu li:hover {
        background-color: white;
        cursor: pointer;
        border-bottom: 1px solid #cecece;
        transition: all 0.2s ease;
    }
    ul {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    main {
        grid-area:  main;
        background-color: white;
        padding: 0px 20px;
    }
    .productos {
        display: grid;
        grid-template-columns: auto auto;
        gap: 4px;
    }
    .card {
        height: auto;
    }
    footer {
        grid-area:  foot;
        margin-top: 32px;
    }
}

@media screen and (min-width: 1024px) {
    body {
        display: grid;
        grid-template-areas:
        "nav main"
        "nav main";
        grid-template-columns: 20% auto;
        grid-template-rows: 1fr 90px;
        height: 100vh;
    }
    nav {
        grid-area: nav;
        min-width: 250px;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }
    nav img {
        height: 48px;
        width: auto;
        margin-left: 12px;
    }
    .btn-nav {
        display: none;
    }
    menu {
        grid-area:  menu;
        background-color: white;
        display: flex;
        flex-direction: column;
        min-width: 200px;
        color: #171717;
        margin-top: 80px;
        width: 100%;
    }
    menu li {
        background-color: white;
        padding: 16px 12px;
        list-style: none;
        font-size: 12px;
        border: 1px solid white;
        transition: all 0.5s ease;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    menu li:hover {
        background-color: white;
        cursor: pointer;
        border-bottom: 1px solid #cecece;
        transition: all 0.5s ease;
    }
    .inicio {
        padding: 64px 0px 8px;
    }
    .inicio p {
        width: 60%;
    }
    main {
        grid-area:  main;
        padding: 0px 16px;
    }
    .productos {
        display: grid;
        grid-template-columns: auto auto;
        gap: 4px;
        min-width: 970px;
    }
    .card {
        height: auto;
    }
    .card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        filter: grayscale(1);
        transition: all 0.5s ease-in-out;
    }
    .card img:hover {
        width: 100%;
        height: 300px;
        object-fit: cover;
        filter: grayscale(0);
        transition: all 0.5s ease-in-out;
        cursor: pointer;  
    }
    footer {
        margin-top: 32px;
    }
}