/* Diseño relleno */

.carta__card{
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / .6;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    background-color: var(--categoryCardBgColorHoverDifuminado);
}

.carta__card img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carta__nombre{
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    transition: all .3s linear;
}

.carta__informative{
    position: relative;
    bottom: -50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: auto;
    width: 100%;
    padding: 10px;
    transition: all .3s linear;
    margin-top: auto;
    background-color: var(--categoryCardBgColorHoverDifuminado);
}

.carta__informative h3{
    display: inline-block;
    color: var(--category-card-txt-color);
    margin-top: auto;
    white-space: nowrap;
    width: 100%;
    text-align: left;
    transition: width .3s linear;
}

.carta__nombre button{
    width: fit-content;
}

@media screen and (min-width: 600px){
    .carta__card{
        width: 48%;
    }
}

@media screen and (min-width: 905px){
    .carta__card{
        width: 32%;
    }


    .carta__card:hover .carta__informative{
        justify-content: center;
        gap: 10px;
        bottom: 0;
        height: 100%;
    }

    .carta__card:hover h3{
        width: 90%;
        text-align: center;
        margin-top: initial;
    }

    .carta__card:not(:hover) h3 {
        width: 100%;
        text-align: left;
    }

    .carta__informative{
        bottom: -70px;
        gap: 20px;
    }
}

@media screen and (min-width: 1240px){
    .carta__card{
        width: 31%;
    }
}

@media screen and (min-width: 1440px){
    .carta__card{
        width: 32%;
    }

    .carta__informative{
        bottom: -65px;
        padding: 10px;
    }
}