/* 1. Contenedor Maestro */
.pf-tiktok-wrapper {
    width: 100%;
    padding: 40px 0;
    background: #000;
    clear: both;
}

/* 2. El contenedor de las 3 cartas */
.pf-tiktok-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto !important;
    height: 650px;
    gap: 15px;
}

/* 3. Estilo de cada carta */
.pf-tiktok-card {
    position: relative;
    flex: 1 1 30% !important;
    max-width: 33% !important;
    height: 100% !important;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0.4) grayscale(0.5);
    background: #222; /* Color de respaldo si el video falla */
}



.pf-tiktok-card.active {
    flex: 1.5 1 40% !important;
    max-width: 50% !important;
    filter: brightness(1) grayscale(0);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

/* 4. El Video */
.pf-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    border: none;
}

/* 5. Botón y Overlay */
.pf-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.pf-tiktok-card.active .pf-overlay {
    opacity: 1;
    pointer-events: auto;
}

.pf-btn-full {
    background: #fe2c55;
    color: white !important;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none !important;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pf-tiktok-container {
        flex-direction: column !important;
        height: 500px !important; /* Altura fija para el video en móvil */
        padding: 0 15px;
    }
    
    /* Ocultamos las cartas que no están activas en móvil */
    .pf-tiktok-card {
        display: none !important; 
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }

    /* Solo mostramos la activa */
    .pf-tiktok-card.active {
        display: block !important;
        filter: brightness(1);
    }
}

