/* ******************************************** */
/** Components CARDS
/* ******************************************** */


.c-cards__item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    color: var(--color-lightest);
    border-radius: 35px;
    background-color: var(--color-skyblue);

    /* a prueba */
    overflow: hidden;
}

.c-cards__item:not(:first-child){
    margin-top: 40px;
}

.c-cards__item:nth-child(2n){
    background-color: var(--color-primary);
}

.c-cards__item:first-child,
.c-cards__item:last-child{
    background-color: var(--color-secondary);
}

.c-cards__title{
    font-size: 1.9rem;
    font-weight: 600;
}

.c-cards__text{
    font-size: 1.6rem;
    font-weight: 300;
    margin-top: .7em;
}

.c-cards__text a{
    position: relative;
}

.c-cards__text a:before{
    content: "";
    display: block;
    width: 100%;
    min-width: var(--tap-size);
    height: var(--tap-size);
    min-height: var(--tap-size);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

a.c-cards__text{
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: pre;
}


/* ********************** MOBILE LANDSCAPE ********************** */

@media (orientation: landscape) and (min-width: 500px) and (max-width: 767px) {

    .c-cards{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .c-cards__item:not(:first-child){
        margin-top: 0;
    }

}


/* ********************** de Mobile a TABLET ********************** */

@media (min-width: 768px) {

    .c-cards{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .c-cards__item:not(:first-child){
        margin-top: 0;
    }

}


/* ********************** de Mobile a TABLET ********************** */

@media (min-width: 768px) {

    a.c-cards__text:is(:hover,:focus){
        color: var(--color-hover);
    }

}



/* ********************** de Desktop a DESKTOP 2 ********************** */

@media (min-width: 1200px) {

    .c-cards{
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }

}


/* ********************** de Desktop 2 a HD ********************** */

@media (min-width: 1400px) {

    .c-cards{
        gap: 55px;
    }

    .c-cards__title{
        font-size: 2.1rem;
    }

    .c-cards__text{
        font-size: 1.8rem;
    }
}