/* Flip Cards Manager - Frontend Styles */

.fcm-flip-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Open Sans', Arial, sans-serif;
}

.fcm-flip-card {
    width: 280px;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.fcm-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.fcm-flip-card:hover .fcm-flip-card-inner {
    transform: rotateY(180deg);
}

.fcm-flip-card-front,
.fcm-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #000000;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fcm-flip-card-front {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcm-flip-card-front img.fcm-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fcm-flip-card-back {
    background: #ffffff;
    color: #000000;
    transform: rotateY(180deg);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px;
    overflow: hidden;
}

.fcm-card-content {
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
    padding: 0;
    text-align: left;
}

.fcm-card-content > *:first-child {
    margin-top: 0 !important;
}

.fcm-card-content > *:last-child {
    margin-bottom: 0 !important;
}

.fcm-card-content h1,
.fcm-card-content h2,
.fcm-card-content h3,
.fcm-card-content h4,
.fcm-card-content h5,
.fcm-card-content h6 {
    color: #000000;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Open Sans', Arial, sans-serif;
}

.fcm-card-content p {
    color: #000000;
    line-height: 1.6;
    margin: 0 0 10px;
    font-size: 16px;
    font-family: 'Open Sans', Arial, sans-serif;
}

.fcm-card-content p:empty {
    display: none;
}

.fcm-card-content ul,
.fcm-card-content ol {
    color: #000000;
    text-align: left;
    margin: 0 0 12px;
    padding-left: 20px;
    font-size: 16px;
    font-family: 'Open Sans', Arial, sans-serif;
}

.fcm-card-content strong {
    color: #000000;
    font-weight: 600;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .fcm-flip-cards-container {
        gap: 25px;
    }

    .fcm-flip-card {
        width: 260px;
        height: 330px;
    }
}

@media (max-width: 768px) {
    .fcm-flip-cards-container {
        gap: 20px;
        padding: 30px 15px;
    }

    .fcm-flip-card {
        width: 240px;
        height: 310px;
    }

    .fcm-flip-card-back {
        padding: 25px;
    }

    .fcm-card-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fcm-flip-cards-container {
        gap: 15px;
        padding: 20px 10px;
    }

    .fcm-flip-card {
        width: 100%;
        max-width: 300px;
        height: 320px;
    }

    .fcm-flip-card-back {
        padding: 20px;
    }
}

/* Animación de entrada */
@keyframes fcmFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fcm-flip-card {
    animation: fcmFadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.fcm-flip-card:nth-child(1) { animation-delay: 0.1s; }
.fcm-flip-card:nth-child(2) { animation-delay: 0.2s; }
.fcm-flip-card:nth-child(3) { animation-delay: 0.3s; }
.fcm-flip-card:nth-child(4) { animation-delay: 0.4s; }
.fcm-flip-card:nth-child(5) { animation-delay: 0.5s; }

/* Accesibilidad - para dispositivos táctiles */
@media (hover: none) {
    .fcm-flip-card {
        position: relative;
    }

    .fcm-flip-card.active .fcm-flip-card-inner {
        transform: rotateY(180deg);
    }
}
