body {
    margin-left: auto;
    margin-right: auto;
    background-color: whitesmoke;

}

.container {
    text-align: center;
}

h1 {
    font-size: 24px;
}

.counter {
    font-size: 48px;
    font-weight: bold;
}


.cards__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr)
}

.card {
    margin: 0 auto 2rem;
    max-width: 35rem
}

.card:last-of-type {
    margin-bottom: 0
}

@media (min-width:168px) {
    .card {
        margin: 0;
        max-width: unset
    }
}

.card__imagen {
    border: .5rem solid #fff;
    transition-duration: .3s;
    transition-property: rotate scale;
    width: 100%
}

.card__imagen:hover {
    -webkit-transform: rotate(4deg) scale(1.0);
    transform: rotate(4deg) scale(1.0)
}

.card__contenido {
    background-color: #fff;
    margin: 0 auto;
    max-width: 90%;
    -webkit-transform: translateY(-5rem);
    transform: translateY(-5rem)
}

.card__heading {
    color: #82d2e0;
    font-family: Italianno, sans-serif;
    font-size: 2rem;
    font-size: 2.4rem;
    font-weight: 300;
    line-height: .8;
    padding: 2rem;
    text-align: center;
    text-transform: lowercase
}

.card__heading span {
    color: #000;
    display: block;
    font-family: Lato, sans-serif;
    text-transform: uppercase
}

.card__enlace {
    background-color: #82d2e0;
    color: #fff;
    display: inline-block;
    display: block;
    font-size: 1.9rem;
    font-weight: 300;
    font-weight: 700;
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    text-transform: uppercase;
    transition: background-color;
    transition-duration: .3s
}

@media (min-width:768px) {
    .card__enlace {
        width: auto
    }
}

.card__enlace:hover {
    background-color: #74d659
}

.card {
    position: relative;
    width: 450px;
    height: 800px;
    background-color: #f2f2f2;
    text-align: justify;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    box-shadow: 0 0 0 5px #ffffff80;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card svg {
    width: 350px;
    fill: #333;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.card__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f2f2f2;
    transform: rotateX(-90deg);
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card__content {
    transform: rotateX(0deg);
}

.card__title {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.card:hover svg {
    scale: 0;
}

.card__description {
    margin: 10px 0 0;
    font-size: 20;
    color: #777;
    line-height: 1.4;
}

/*Para política ambiental*/
.card {
    width: 1000px;
    height: 0px;
    perspective: 1000px;

}

.card-inner {
    width: 700px;
    height: 550px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.999s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-front {
    background-color: #6A2C70;
    color: #fff;
    display: flex;
    align-items: center;
    border: 10px solid #6A2C70;
    border-radius: 10px;
    justify-content: center;
    font-size: 24px;
    transform: rotateY(0deg);
}

.card-back {
    background-color: #F08A5D;
    color: #fff;
    display: flex;
    align-items: center;
    border: 10px solid #F08A5D;
    border-radius: 10px;
    justify-content: center;
    font-size: 24px;
    transform: rotateY(180deg);
}