/* Flip Card Widget Styles */

.flip-cards-container {
    width: 100%;
    padding: 20px 0;
}

.flip-card {
    background-color: transparent;
    perspective: 1000px;
    cursor: pointer;
    overflow: hidden;
}

.flip-card__content {
    position: relative;
    width: 100%;
    height: auto;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    display: contents;
}

.flip-card__content.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80%;
    backface-visibility: hidden;
    border-radius: 35px;
    padding: 5px;
    top: 10%;
}

.card-front {
    z-index: 0;
}

.card-back {
    transform: rotateY(180deg);
}

/* FRENTE */
.card-front__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    background: black;
    border-radius: 32px;
}

.front-logo {
    margin-bottom: 30px;
    max-width: 80%;
}

.front-logo img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.front-subtitle h3 {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

/* ATRÁS */
.card-back__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background: black;
    border-radius: 32px;
}

.back-text {
    flex: 1;
    margin-bottom: 20px;
}

.back-text p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.back-footer {
    margin-top: auto;
}

.back-footer__columns {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
     align-items: center;
}

.back-contact p {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    white-space: pre-line;
}

.back-button {
    display: flex;
    align-items: center;
background: #E8B34A;
background: linear-gradient(125deg, rgba(232, 179, 74, 1) 10%, rgba(255, 255, 255, 1) 19%, rgba(232, 179, 74, 1) 30%, rgba(232, 179, 74, 1) 65%, rgba(255, 255, 255, 1) 69%, rgba(232, 179, 74, 1) 75%);

    justify-content: flex-end;
    border-radius: 10px;
}

.flip-card-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: black;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    margin: 1px;
 
}

.flip-card-button:hover {
   color: #E8B34A;
}
.front-subtitle h3 {
    font-size: 27px !important;
}
.card-back__inner,
.card-front__inner {
    padding: 30px;
} 
.back-text p {
font-size: 14px !important;
    text-align: justify;
    max-height: 210px;
    overflow-y: auto;
}
/* Responsive */
@media (max-width: 1024px) {
    .front-subtitle h3 {
        font-size: 28px;
    }
    
    .back-footer__columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .back-button {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {

    
    .front-subtitle h3 {
        font-size: 24px;
    }
    
    .card-front,
    .card-back {
        padding: 7px;
    }
    
    .back-text p {
        font-size: 13px;
    }
    
    .flip-card-button {
        padding: 12px 24px;
        font-size: 13px;
        width: 99%;
        text-align: center;
    }
.back-contact p {
    font-size: 14px;
}
    .back-text p {
    font-size: 10px !important;
        text-align: justify;
        max-height: 150px;
        overflow: scroll;
    }
    .flip-card {
        margin-bottom: -90px !important;
    }
    .back-button {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

}
